duty.go 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // ============================================================================
  2. // This is auto-generated by gf cli tool only once. Fill this file as you wish.
  3. // ============================================================================
  4. package duty
  5. import (
  6. "dashoo.cn/modi_webapi/app/common"
  7. "github.com/gogf/gf/os/gtime"
  8. )
  9. // 搜索请求
  10. type SelectPageReq struct {
  11. Title string `protobuf:"bytes,2,opt,name=Title,proto3" json:"Title,omitempty"`
  12. Year int `protobuf:"bytes,2,opt,name=Year,proto3" json:"Year,omitempty"`
  13. Term int `protobuf:"bytes,2,opt,name=Term,proto3" json:"Term,omitempty"`
  14. Common common.SelectPageReq
  15. }
  16. // 添加
  17. type AddDateReq struct {
  18. Year int `xorm:"INT(10)" v:"required"` // 学年
  19. Term string `xorm:"VARCHAR(32)" v:"required"` // 学期
  20. Title string `xorm:"VARCHAR(32)" v:"required"` // 标题
  21. Status string `xorm:"VARCHAR(32)" v:"required"` // 状态
  22. CreatedBy string `xorm:"VARCHAR(32)"` // 创建人
  23. CreatedTime *gtime.Time `xorm:"DATETIME created"` // 创建时间
  24. IsDel int `xorm:"INT(10)"` // 删除标志
  25. }
  26. // 修改
  27. type UpdDateReq struct {
  28. Year int `xorm:"INT(10)"` // 学年
  29. Term string `xorm:"VARCHAR(32)"` // 学期
  30. Title string `xorm:"VARCHAR(32)"` // 标题
  31. Status string `xorm:"VARCHAR(32)"` // 状态
  32. UpdatedBy string `xorm:"VARCHAR(32)"` // 更新人
  33. UpdatedTime *gtime.Time `xorm:"DATETIME updated"` // 更新时间
  34. IsDel int `xorm:"INT(10)"` // 删除标志
  35. }