You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
755 B

  1. package v1
  2. type InsertMemberReq struct {
  3. Name string `json:"name" v:"required#姓名不可为空!"`
  4. Code string `json:"code" v:"required#国家/地区代码不可为空!"`
  5. Tel string `json:"tel" v:"required#电话号码不可为空!"`
  6. Type int `json:"type"`
  7. Url string `json:"url"`
  8. WeChat string `json:"weChat" v:"required#微信ID不可为空!"`
  9. Email string `json:"email" v:"required#邮箱号不可为空!"`
  10. }
  11. type GetMemberListReq struct {
  12. Page int `p:"page" d:"1"`
  13. PageSize int `p:"page_size" d:"20"`
  14. }
  15. type UpdateStateReq struct {
  16. Id int `json:"id" v:"required"`
  17. State int `json:"state" v:"required|integer|in:0,1"`
  18. }
  19. type EditNoteReq struct {
  20. Id int `json:"id" v:"required"`
  21. Note string `json:"note"`
  22. }