Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Credential ¶
type Credential struct { Id primitive.ObjectID `json:"_id" bson:"_id,omitempty"` UserId string `json:"user_id" bson:"user_id"` RoleCode int `json:"role_code" bson:"role_code"` AccessToken string `json:"access_token" bson:"access_token"` CreatedAt time.Time `json:"created_at" bson:"created_at"` UpdatedAt time.Time `json:"updated_at" bson:"updated_at"` }
type CredentialRes ¶
type CredentialRes struct { Id string `json:"_id" bson:"_id,omitempty"` UserId string `json:"user_id" bson:"user_id"` RoleCode int `json:"role_code" bson:"role_code"` AccessToken string `json:"access_token" bson:"access_token"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` }
type InsertUserRole ¶
type ProfileIntercepter ¶
type ProfileIntercepter struct { *user.UserProfile Credential *CredentialRes `json:"credential"` }
type RefreshTokenReq ¶
type RefreshTokenReq struct {
RefreshToken string `json:"refresh_token" form:"refresh_token" validate:"required.max=500"`
}
type UserLoginReq ¶
Click to show internal directories.
Click to hide internal directories.