Documentation ¶
Index ¶
- Variables
- type ArticleHandler
- func (h *ArticleHandler) Detail(ctx *gin.Context)
- func (h *ArticleHandler) Edit(ctx *gin.Context)
- func (h *ArticleHandler) List(ctx *gin.Context)
- func (h *ArticleHandler) PubDetail(ctx *gin.Context)
- func (h *ArticleHandler) Publish(ctx *gin.Context)
- func (h *ArticleHandler) RegisterRoutes(server *gin.Engine)
- func (h *ArticleHandler) Withdraw(ctx *gin.Context)
- type UserClaim
- type UserHandler
- func (h *UserHandler) Edit(ctx *gin.Context)
- func (h *UserHandler) Login(ctx *gin.Context)
- func (h *UserHandler) LoginJWT(ctx *gin.Context)
- func (h *UserHandler) LoginSMS(ctx *gin.Context)
- func (h *UserHandler) Profile(ctx *gin.Context)
- func (h *UserHandler) RegisterRoutes(server *gin.Engine)
- func (h *UserHandler) SendSMSLoginCode(ctx *gin.Context)
- func (h *UserHandler) SignUp(ctx *gin.Context)
Constants ¶
This section is empty.
Variables ¶
View Source
var JWTKey = []byte("k6CswdUm77WKcbM68UQUuxVsHSpTCwgK")
Functions ¶
This section is empty.
Types ¶
type ArticleHandler ¶
type ArticleHandler struct {
// contains filtered or unexported fields
}
func NewArticleHandler ¶
func NewArticleHandler(svc service.ArticleService, userActSvc service.UserActivityService, l logger2.Logger) *ArticleHandler
func (*ArticleHandler) Detail ¶
func (h *ArticleHandler) Detail(ctx *gin.Context)
func (*ArticleHandler) Edit ¶
func (h *ArticleHandler) Edit(ctx *gin.Context)
func (*ArticleHandler) List ¶
func (h *ArticleHandler) List(ctx *gin.Context)
func (*ArticleHandler) PubDetail ¶
func (h *ArticleHandler) PubDetail(ctx *gin.Context)
func (*ArticleHandler) Publish ¶
func (h *ArticleHandler) Publish(ctx *gin.Context)
func (*ArticleHandler) RegisterRoutes ¶
func (h *ArticleHandler) RegisterRoutes(server *gin.Engine)
func (*ArticleHandler) Withdraw ¶
func (h *ArticleHandler) Withdraw(ctx *gin.Context)
type UserHandler ¶
func NewUserHandler ¶
func NewUserHandler(svc service.UserService, codeSvc service.CodeService, logger logger.Logger) *UserHandler
func (*UserHandler) Edit ¶
func (h *UserHandler) Edit(ctx *gin.Context)
func (*UserHandler) Login ¶
func (h *UserHandler) Login(ctx *gin.Context)
func (*UserHandler) LoginJWT ¶
func (h *UserHandler) LoginJWT(ctx *gin.Context)
func (*UserHandler) LoginSMS ¶
func (h *UserHandler) LoginSMS(ctx *gin.Context)
func (*UserHandler) Profile ¶
func (h *UserHandler) Profile(ctx *gin.Context)
func (*UserHandler) RegisterRoutes ¶
func (h *UserHandler) RegisterRoutes(server *gin.Engine)
func (*UserHandler) SendSMSLoginCode ¶
func (h *UserHandler) SendSMSLoginCode(ctx *gin.Context)
func (*UserHandler) SignUp ¶
func (h *UserHandler) SignUp(ctx *gin.Context)
Click to show internal directories.
Click to hide internal directories.