Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseResponse ¶
type BaseResponse struct { Status int `json:"status"` Code string `json:"code"` Message string `json:"message"` Data interface{} `json:"data"` }
BaseResponse base response body
type LoginBodyParams ¶
type LoginBodyParams struct { Username string `json:"username" validate:"required"` Password string `json:"password" validate:"required,password"` }
LoginBodyParams schema
type RefreshBodyParams ¶
type RefreshBodyParams struct {
RefreshToken string `json:"refresh_token,omitempty" validate:"required"`
}
RefreshBodyParams schema
type RegisterBodyParams ¶
type RegisterBodyParams struct { Username string `json:"username" validate:"required"` Email string `json:"email" validate:"required,email"` Password string `json:"password" validate:"required,password"` RoleID string `json:"role_id"` }
RegisterBodyParams schema
type Role ¶
type Role struct { ID string `json:"id"` Name string `json:"name"` Description string `json:"description"` }
Role schema
type RoleBodyParams ¶
type RoleBodyParams struct { Name string `json:"name" validate:"required"` Description string `json:"description"` }
RoleBodyParams schema
type User ¶
type User struct { ID string `json:"id"` Username string `json:"username"` Email string `json:"email"` Extra interface{} `json:"extra,omitempty"` }
User schema
type UserQueryParam ¶
type UserQueryParam struct { Username string `json:"username,omitempty" form:"username,omitempty"` Email string `json:"email,omitempty" form:"email,omitempty"` Offset int `json:"-" form:"offset,omitempty"` Limit int `json:"-" form:"limit,omitempty"` }
UserQueryParam schema
type UserTokenInfo ¶
type UserTokenInfo struct { AccessToken string `json:"access_token"` RefreshToken string `json:"refresh_token"` TokenType string `json:"token_type"` }
UserTokenInfo schema
type UserUpdateBodyParam ¶
type UserUpdateBodyParam struct { Password string `json:"password,omitempty"` RoleID string `json:"role_id,omitempty"` RefreshToken string `json:"refresh_token,omitempty"` }
UserUpdateBodyParam schema
Click to show internal directories.
Click to hide internal directories.