Documentation ¶
Index ¶
- func AR2JSON(r *AccessTokenResp) []byte
- func ARR2JSON(r *AccessAndRefreshTokenResp) []byte
- func EC2JSON(r *ExchangeCodeResponse) []byte
- func ER2JSON(r *ErrorResp) []byte
- func ID2JSON(id *IDResp) []byte
- func U2JSON(u *User) []byte
- func UI2JSON(u *UserInfo) []byte
- func UL2JSON(us *[]UserInfo) []byte
- type AccessAndRefreshTokenResp
- type AccessTokenResp
- type AuthError
- type ErrorResp
- type ExchangeCodeResponse
- type IDResp
- type User
- type UserInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AR2JSON ¶
func AR2JSON(r *AccessTokenResp) []byte
func ARR2JSON ¶
func ARR2JSON(r *AccessAndRefreshTokenResp) []byte
func EC2JSON ¶
func EC2JSON(r *ExchangeCodeResponse) []byte
Types ¶
type AccessTokenResp ¶
type AccessTokenResp struct {
AccessToken string `json:"accessToken"`
}
type ExchangeCodeResponse ¶
type ExchangeCodeResponse struct {
Code string `json:"code"`
}
type User ¶
type User struct { ID int64 `bson:"_id" xorm:"varchar(200)"` Username string `bson:"username" xorm:"varchar(50)"` FirstName string `bson:"firstName" xorm:"varchar(50)"` LastName string `bson:"lastName" xorm:"varchar(50)"` Email string `bson:"email" xorm:"varchar(50)"` Password string `bson:"password" xorm:"varchar(60)"` InviteCode string `bson:"inviteCode" xorm:"varchar(60)"` RecoveryCode string `bson:"recoveryCode" xorm:"varchar(60)"` ResettingCode string `bson:"resettingCode" xorm:"varchar(60)"` }
User structure
Click to show internal directories.
Click to hide internal directories.