mirror of
https://gitlab.52pay.top/go/easygoadmin.git
synced 2025-09-26 22:58:01 +08:00
36 lines
811 B
Go
36 lines
811 B
Go
/**
|
|
* 岗位Dto
|
|
* @author
|
|
* @since 2021/9/10
|
|
* @File : position
|
|
*/
|
|
package dto
|
|
|
|
// 分页查询条件
|
|
type PositionPageReq struct {
|
|
Name string `form:"name"` // 岗位名称
|
|
Page int `form:"page"` // 页码
|
|
Limit int `form:"limit"` // 每页数
|
|
}
|
|
|
|
// 添加岗位
|
|
type PositionAddReq struct {
|
|
Name string `form:"name" binding:"required"`
|
|
Status string `form:"status" binding:"required"`
|
|
Sort string `form:"sort"`
|
|
}
|
|
|
|
// 更新岗位
|
|
type PositionUpdateReq struct {
|
|
Id string `form:"id" binding:"required"`
|
|
Name string `form:"name" binding:"required"`
|
|
Status string `form:"status" binding:"required"`
|
|
Sort string `form:"sort"`
|
|
}
|
|
|
|
// 设置状态
|
|
type PositionStatusReq struct {
|
|
Id string `form:"id" binding:"required"`
|
|
Status string `form:"status" binding:"required"`
|
|
}
|