Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrUserNameOrPassword = errors.New("手机号或密码错误")
)
Functions ¶
Types ¶
type LoginOaResponse ¶
type LoginOaResponse struct { Token string `json:"token"` Uuid string `gorm:"type:varchar(36);" json:"uuid"` NickName string `gorm:"type:varchar(60)" json:"nickname"` Name string `gorm:"type:varchar(60)" json:"name"` }
func GetAccessToken ¶
func GetAccessToken(req *LoginRequest) (LoginOaResponse, error)
GetAccessToken 登录
type LoginRequest ¶
type LoginRequest struct { Mobile string `json:"mobile" validate:"required"` Password string `json:"password" validate:"required"` }
LoginRequest 登录请求字段
func (*LoginRequest) Request ¶
func (req *LoginRequest) Request(ctx iris.Context) error
Click to show internal directories.
Click to hide internal directories.