auth.go 442 B

12345678910111213141516
  1. package xiangyu
  2. // GetTokenReq 获取token请求体
  3. type GetTokenReq struct {
  4. Code string `json:"code" form:"code" description:"code编码"`
  5. }
  6. // RefreshTokenReq 刷新token请求体
  7. type RefreshTokenReq struct {
  8. RefreshToken string `json:"refresh_token" form:"refresh_token" description:"刷新token"`
  9. }
  10. // RevokeTokenReq 销毁token请求体
  11. type RevokeTokenReq struct {
  12. Token string `json:"token" form:"token" description:"token"`
  13. }