XinYeYouKu/app/http/entities/front/user.go

31 lines
559 B
Go
Raw Permalink Normal View History

2024-06-11 18:47:02 +08:00
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"`
2024-06-13 18:45:49 +08:00
UserId string `json:"userId"`
2024-06-11 18:47:02 +08:00
}
type LoginResponse struct {
Token string `json:"token"`
}
func (this *XyDecryptData) RequestToDb() (user usersmodel.Users) {
user.Phone = this.Mobile
user.Name = this.Mobile
2024-06-12 19:11:00 +08:00
user.Status = 1
2024-06-11 18:47:02 +08:00
user.CreateTime = time.Now()
user.UpdateTime = time.Now()
return
}