sys_post.go 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. // =================================================================================
  2. // This is auto-generated by GoFrame CLI tool only once. Fill this file as you wish.
  3. // =================================================================================
  4. package dao
  5. import (
  6. comModel "gfast/app/common/model"
  7. "gfast/app/system/dao/internal"
  8. )
  9. // sysPostDao is the manager for logic model data accessing and custom defined data operations functions management.
  10. // You can define custom methods on it to extend its functionality as you wish.
  11. type sysPostDao struct {
  12. *internal.SysPostDao
  13. }
  14. var (
  15. // SysPost is globally public accessible object for table sys_post operations.
  16. SysPost sysPostDao
  17. )
  18. func init() {
  19. SysPost = sysPostDao{
  20. internal.NewSysPostDao(),
  21. }
  22. }
  23. // Fill with you ideas below.
  24. // SysPostSearchParams 搜索参数
  25. type SysPostSearchParams struct {
  26. PostCode string `p:"postCode"` //岗位编码
  27. PostName string `p:"postName"` //岗位名称
  28. Status string `p:"status"` //状态
  29. comModel.PageReq
  30. }
  31. // SysPostAddParams 添加岗位参数
  32. type SysPostAddParams struct {
  33. PostCode string `p:"postCode" v:"required#岗位编码不能为空"`
  34. PostName string `p:"postName" v:"required#岗位名称不能为空"`
  35. PostSort int `p:"postSort" v:"required#岗位排序不能为空"`
  36. Status string `p:"status" v:"required#状态不能为空"`
  37. Remark string `p:"remark"`
  38. CreatedBy uint64
  39. }
  40. // SysPostEditParams 修改岗位参数
  41. type SysPostEditParams struct {
  42. PostId int64 `p:"postId" v:"required#id必须"`
  43. SysPostAddParams
  44. UpdatedBy uint64
  45. }