新增角色列表,岗位列表
This commit is contained in:
@@ -2,6 +2,7 @@ package requests
|
||||
|
||||
type PostRequest struct {
|
||||
GetPostPage // 获取岗位列表-分页
|
||||
GetPostList // 获取岗位列表
|
||||
AddPost // 新增岗位
|
||||
DeletePost // 删除岗位-批量
|
||||
PutPost // 修改岗位
|
||||
@@ -14,11 +15,16 @@ type AddPost struct {
|
||||
|
||||
// GetPostPage 获取岗位列表-分页
|
||||
type GetPostPage struct {
|
||||
DeptName string `json:"post_name" form:"post_name" label:"api名称"`
|
||||
PostName string `json:"post_name" form:"post_name" label:"岗位名称"`
|
||||
Page int `json:"page" form:"page" label:"页码"`
|
||||
PageSize int `json:"page_size" form:"page_size" label:"每页个数"`
|
||||
}
|
||||
|
||||
// GetPostList 获取岗位列表
|
||||
type GetPostList struct {
|
||||
PostName string `json:"post_name" form:"post_name" label:"岗位名称"`
|
||||
}
|
||||
|
||||
// DeletePost 删除岗位-批量
|
||||
type DeletePost struct {
|
||||
PostIds []string `json:"post_ids" form:"post_ids" validate:"required" label:"岗位id"`
|
||||
|
||||
Reference in New Issue
Block a user