sys_post.go 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // ==========================================================================
  2. // This is auto-generated by gf cli tool. Fill this file as you wish.
  3. // ==========================================================================
  4. package model
  5. import (
  6. comModel "dashoo.cn/micro/app/common/model"
  7. "dashoo.cn/micro/app/model/internal"
  8. )
  9. // SysPost is the golang structure for table sys_post.
  10. type SysPost internal.SysPost
  11. // Fill with you ideas below.
  12. // SysPostSearchParams 搜索参数
  13. type SysPostSearchParams struct {
  14. PostCode string `p:"postCode"` //岗位编码
  15. PostName string `p:"postName"` //岗位名称
  16. Status string `p:"status"` //状态
  17. comModel.PageReq
  18. }
  19. // SysPostAddParams 添加岗位参数
  20. type SysPostAddParams struct {
  21. PostCode string `p:"postCode" v:"required#岗位编码不能为空"`
  22. PostName string `p:"postName" v:"required#岗位名称不能为空"`
  23. PostSort int `p:"postSort" v:"required#岗位排序不能为空"`
  24. Status string `p:"status" v:"required#状态不能为空"`
  25. Remark string `p:"remark"`
  26. CreatedBy uint64
  27. }
  28. // SysPostEditParams 修改岗位参数
  29. type SysPostEditParams struct {
  30. PostId int64 `p:"postId" v:"required#id必须"`
  31. SysPostAddParams
  32. UpdatedBy uint64
  33. }