29 lines
511 B
Go
29 lines
511 B
Go
package front
|
|
|
|
import (
|
|
"qteam/app/models/usersmodel"
|
|
"time"
|
|
)
|
|
|
|
type LoginRequest struct {
|
|
Data string `form:"data" validate:"required"`
|
|
}
|
|
|
|
type XyDecryptData struct {
|
|
Mobile string `json:"phone"`
|
|
CerNo string `json:"cerNo"`
|
|
Time string `json:"time"`
|
|
}
|
|
|
|
type LoginResponse struct {
|
|
Token string `json:"token"`
|
|
}
|
|
|
|
func (this *XyDecryptData) RequestToDb() (user usersmodel.Users) {
|
|
user.Phone = this.Mobile
|
|
user.Name = this.Mobile
|
|
user.CreateTime = time.Now()
|
|
user.UpdateTime = time.Now()
|
|
return
|
|
}
|