Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthenticationHandler ¶
func AuthenticationHandler() gin.HandlerFunc
Response format
response.data{ code: int data:{ json_object } msg: string }
Types ¶
type LoginRequest ¶
type LoginRequest struct { UserName string `json:"username"` PassWord string `json:"password"` PlatformID string `json:"platform_id"` BotCode string `json:"code"` }
UserName: raw username, telphone or email address Password: md5+sal PlatformID: admin platform, user platform, ios platform or android platform BotCode: Verification Code
Click to show internal directories.
Click to hide internal directories.