user.go 712 B

123456789101112131415161718192021222324252627282930313233
  1. package api
  2. // int的action
  3. const (
  4. FollowAdd int32 = 1
  5. FollowCancel int32 = 2
  6. BlackAdd int32 = 3
  7. BlackCancel int32 = 4
  8. )
  9. // relation list type
  10. const (
  11. Follow int32 = 1
  12. Fan int32 = 2
  13. Black int32 = 4
  14. )
  15. //ForbidRequest ..
  16. type ForbidRequest struct {
  17. MID uint64 `json:"mid" form:"mid" validate:"required,gt=0"`
  18. ExpireTime uint64 `json:"expire_time" form:"expire_time" validate:"required,gt=0"`
  19. }
  20. //ReleaseRequest ..
  21. type ReleaseRequest struct {
  22. MID uint64 `json:"mid" form:"mid" validate:"required,gt=0"`
  23. }
  24. // CmsTagRequest 修改cms_tag的请求
  25. type CmsTagRequest struct {
  26. Mid int64 `json:"mid" form:"mid" validate:"required"`
  27. CmsTag int64 `json:"cms_tag" form:"cms_tag"`
  28. }