| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- // ==========================================================================
- // This is auto-generated by gf cli tool. Fill this file as you wish.
- // ==========================================================================
- package model
- import (
- "dashoo.cn/micro/app/model/internal"
- "dashoo.cn/opms_libary/request"
- )
- // SysPost is the golang structure for table sys_post.
- type SysPost internal.SysPost
- // Fill with you ideas below.
- // SysPostSearchParams 搜索参数
- type SysPostSearchParams struct {
- PostCode string `p:"postCode"` //岗位编码
- PostName string `p:"postName"` //岗位名称
- Status string `p:"status"` //状态
- request.PageReq
- }
- // SysPostReq 添加岗位参数
- type SysPostReq struct {
- PostCode string `p:"postCode" v:"required#岗位编码不能为空"`
- PostName string `p:"postName" v:"required#岗位名称不能为空"`
- Sort int `p:"sort" v:"required#岗位排序不能为空"`
- Status string `p:"status" v:"required|in:10,20#状态不能为空|状态只能为10或20"`
- RoleIds []int `p:"roleIds"`
- Remark string `p:"remark"`
- }
- // UpdateSysPostReq 修改岗位参数
- type UpdateSysPostReq struct {
- Id int64 `p:"id" v:"required#id必须"`
- SysPostReq
- }
- // SysPostRes 岗位详情
- type SysPostRes struct {
- SysPost
- RoleIds []int `json:"roleIds"`
- }
|