login.go 598 B

123456789101112131415161718192021222324
  1. package admin
  2. type Login struct {
  3. Username string `json:"username" validate:"required" label:"用户名"`
  4. Password string `json:"password,omitempty" validate:"required" label:"密码"`
  5. Platform string `json:"platform" label:"平台"`
  6. Captcha string `json:"captcha,omitempty" label:"验证码"`
  7. CaptchaId string `json:"captcha_id,omitempty"`
  8. }
  9. type LoginLogQuery struct {
  10. UserId int `form:"user_id"`
  11. IsMy int `form:"is_my"`
  12. PageQuery
  13. }
  14. type LoginTokenQuery struct {
  15. UserId int `form:"user_id"`
  16. PageQuery
  17. }
  18. type LoginLogIds struct {
  19. Ids []uint `json:"ids" validate:"required"`
  20. }