You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
OneAuth/oa/internal/types/types.go

52 lines
1.1 KiB
Go

// Code generated by goctl. DO NOT EDIT.
package types
type AppReq struct {
Appname string `json:"username"`
Password string `json:"password"`
}
type AppResp struct {
Id int64 `json:"id"`
Name string `json:"name"`
Token string `json:"token"`
ExpireAt string `json:"expireAt"`
}
type LoginReq struct {
Id string `json:"id"`
Code string `json:"code"`
Verify string `json:"verify"`
}
type RegReq struct {
Username string `json:"username"`
Pwd string `json:"pwd"`
}
type Auth struct {
Authorization string `header:"authorization"`
}
type GetReq struct {
Id int64 `path:"id"`
}
type ListReq struct {
Username string `query:"username"`
}
type UserResp struct {
Id string `json:"id"`
Created uint `json:"created"`
Updated uint `json:"updated"`
Username string `json:"username"`
Nickname string `json:"nickname"`
Email string `json:"email"`
Phone string `json:"phone"`
Icon string `json:"icon"`
Status int64 `json:"status"` // 状态0ok1disabled
Used int64 `json:"used"`
Space int64 `json:"space"`
}