Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthAPI ¶
type AuthAPI struct {
// contains filtered or unexported fields
}
AuthAPI handle authentication api
func NewAuthAPI ¶
func NewAuthAPI(service interfaces.IAuthService) *AuthAPI
NewAuthAPI return new AuthAPI
func (*AuthAPI) Login ¶
Login godoc @Tags Auth @Summary api login @Description api login @Accept json @Produce json @Param body body schema.LoginBodyParams true "Body" @Success 200 {object} schema.BaseResponse @Router /login [post]
func (*AuthAPI) Logout ¶
Logout godoc @Tags Auth @Summary api logout @Description api logout @Accept json @Produce json @Security ApiKeyAuth @Success 200 {object} schema.BaseResponse @Router /logout [post]
func (*AuthAPI) Refresh ¶
Refresh godoc @Tags Auth @Summary api refresh token @Description api refresh token @Accept json @Produce json @Param body body schema.RefreshBodyParams true "Body" @Success 200 {object} schema.BaseResponse @Router /refresh [post]
type RoleAPI ¶
type RoleAPI struct {
// contains filtered or unexported fields
}
RoleAPI handle role api
func NewRoleAPI ¶
func NewRoleAPI(service interfaces.IRoleService) *RoleAPI
NewRoleAPI return new RoleAPI pointer
type UserAPI ¶
type UserAPI struct {
// contains filtered or unexported fields
}
UserAPI handle user api
func NewUserAPI ¶
func NewUserAPI(service interfaces.IUserService) *UserAPI
NewUserAPI return new UserAPI pointer