first commit
This commit is contained in:
27
gateway/api/v1/internal/handler/account/userloginhandler.go
Normal file
27
gateway/api/v1/internal/handler/account/userloginhandler.go
Normal file
@@ -0,0 +1,27 @@
|
||||
package account
|
||||
|
||||
import (
|
||||
"github.com/gin-gonic/gin"
|
||||
"gitlab.33.cn/chat/dtalk/gateway/api/v1/internal/model"
|
||||
"gitlab.33.cn/chat/dtalk/gateway/api/v1/internal/svc"
|
||||
"gitlab.33.cn/chat/dtalk/pkg/api"
|
||||
)
|
||||
|
||||
// AddressLogin
|
||||
// @Summary 用户登录
|
||||
// @Description 内部接口,comet层使用
|
||||
// @Author dld@33.cn
|
||||
// @Tags account 账户模块
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
// @Param FZM-SIGNATURE header string true "MOCK"
|
||||
// @Success 200 {object} model.GeneralResponse{data=model.AddressLoginResp}
|
||||
// @Router /user/login [post]
|
||||
func AddressLogin(ctx *svc.ServiceContext) gin.HandlerFunc {
|
||||
return func(c *gin.Context) {
|
||||
c.Set(api.ReqResult, &model.AddressLoginResp{
|
||||
Address: c.MustGet(api.Address).(string),
|
||||
})
|
||||
c.Set(api.ReqError, nil)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user