Skip to content

Commit

Permalink
Merge pull request #99 from suyuan32/dev
Browse files Browse the repository at this point in the history
fix: wrong validate in position list request
  • Loading branch information
suyuan32 committed May 11, 2023
2 parents 4dc9adf + d7bc1fd commit 472fbe8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion api/desc/position.api
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ type (
PageInfo

// Name | 职位名称
Name string `json:"name,optional" validate:"omitempty,len=50"`
Name string `json:"name,optional" validate:"omitempty,max=50"`

// Code | 职位代码
Code string `json:"code,optional" validate:"omitempty,max=20"`
Expand Down
3 changes: 1 addition & 2 deletions api/internal/types/types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 8 additions & 9 deletions core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1564,7 +1564,6 @@ definitions:
name:
description: Name | 职位名称
maxLength: 50
minLength: 50
type: string
x-go-name: Name
page:
Expand Down Expand Up @@ -2515,8 +2514,8 @@ paths:
- in: body
name: body
schema:
$ref: '#/definitions/IDReq'
type: object
$ref: '#/definitions/IDReq'
type: object
responses:
"200":
description: ApiInfoResp
Expand Down Expand Up @@ -3630,8 +3629,8 @@ paths:
- in: body
name: body
schema:
$ref: '#/definitions/UUIDReq'
type: object
$ref: '#/definitions/UUIDReq'
type: object
responses:
"200":
description: BaseMsgResp
Expand All @@ -3648,8 +3647,8 @@ paths:
- in: body
name: body
schema:
$ref: '#/definitions/TokenInfo'
type: object
$ref: '#/definitions/TokenInfo'
type: object
responses:
"200":
description: BaseMsgResp
Expand All @@ -3666,8 +3665,8 @@ paths:
- in: body
name: body
schema:
$ref: '#/definitions/UUIDReq'
type: object
$ref: '#/definitions/UUIDReq'
type: object
responses:
"200":
description: UserInfoResp
Expand Down

0 comments on commit 472fbe8

Please sign in to comment.