| 1234567891011121314151617181920212223242526272829303132333435363738 |
- // ==========================================================================
- // 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"
- )
- // SysGroup is the golang structure for table sys_group.
- type SysGroup internal.SysGroup
- // Fill with you ideas below.
- // SysGroupSearchParams 搜索参数
- type SysGroupSearchParams struct {
- GroupCode string `p:"groupCode"` //用户组编码
- GroupName string `p:"groupName"` //用户组名称
- Status string `p:"status"` //状态
- request.PageReq
- }
- // SysGroupReq 添加用户组参数
- type SysGroupReq struct {
- GroupCode string `p:"groupCode" v:"required#用户组编码不能为空"`
- GroupName string `p:"groupName" v:"required#用户组名称不能为空"`
- Sort int `p:"sort" v:"required#用户组排序不能为空"`
- Status string `p:"status" v:"required|in:10,20#状态不能为空|状态只能为10或20"`
- Remark string `p:"remark"`
- }
- // UpdateSysGroupReq 修改用户组参数
- type UpdateSysGroupReq struct {
- Id int64 `p:"id" v:"required#id必须"`
- SysGroupReq
- }
|