Documentation ¶
Index ¶
- type Error
- type Session
- type TokenController
- func (tc *TokenController) Create(req *restful.Request, resp *restful.Response)
- func (tc *TokenController) Delete(req *restful.Request, resp *restful.Response)
- func (tc *TokenController) Get(req *restful.Request, resp *restful.Response)
- func (tc *TokenController) List(req *restful.Request, resp *restful.Response)
- func (tc *TokenController) RegisterRoutes(ws *restful.WebService)
- type TokenDetailResponse
- type TokenRequest
- type TokenResponse
- type UpdateNicknameRequest
- type UserController
- func (uc *UserController) Create(req *restful.Request, resp *restful.Response)
- func (uc *UserController) Get(req *restful.Request, resp *restful.Response)
- func (uc *UserController) GetUserLogin(req *restful.Request, resp *restful.Response)
- func (uc *UserController) RegisterRoutes(ws *restful.WebService)
- func (uc *UserController) UpdateNickname(req *restful.Request, resp *restful.Response)
- type UserDetailResponse
- type UserLoginRequest
- type UserLoginResponse
- type UserRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TokenController ¶
type TokenController struct {
// contains filtered or unexported fields
}
func NewTokenController ¶
func NewTokenController(key *rsa.PrivateKey, tokenService *service.TokenService) *TokenController
func (*TokenController) Create ¶
func (tc *TokenController) Create(req *restful.Request, resp *restful.Response)
func (*TokenController) Delete ¶
func (tc *TokenController) Delete(req *restful.Request, resp *restful.Response)
func (*TokenController) Get ¶
func (tc *TokenController) Get(req *restful.Request, resp *restful.Response)
func (*TokenController) List ¶
func (tc *TokenController) List(req *restful.Request, resp *restful.Response)
func (*TokenController) RegisterRoutes ¶
func (tc *TokenController) RegisterRoutes(ws *restful.WebService)
type TokenDetailResponse ¶
type TokenRequest ¶
type TokenResponse ¶
type TokenResponse struct {
TokenID int64 `json:"token_id"`
}
type UpdateNicknameRequest ¶
type UpdateNicknameRequest struct {
Nickname string `json:"nickname"`
}
type UserController ¶
type UserController struct {
// contains filtered or unexported fields
}
func NewUserController ¶
func NewUserController(key *rsa.PrivateKey, userService *service.UserService) *UserController
func (*UserController) Create ¶
func (uc *UserController) Create(req *restful.Request, resp *restful.Response)
func (*UserController) Get ¶
func (uc *UserController) Get(req *restful.Request, resp *restful.Response)
func (*UserController) GetUserLogin ¶
func (uc *UserController) GetUserLogin(req *restful.Request, resp *restful.Response)
func (*UserController) RegisterRoutes ¶
func (uc *UserController) RegisterRoutes(ws *restful.WebService)
func (*UserController) UpdateNickname ¶
func (uc *UserController) UpdateNickname(req *restful.Request, resp *restful.Response)
type UserDetailResponse ¶
type UserLoginRequest ¶
type UserLoginResponse ¶
type UserLoginResponse struct {
Token string `json:"token"`
}
type UserRequest ¶
Click to show internal directories.
Click to hide internal directories.