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.Status = 1 user.CreateTime = time.Now() user.UpdateTime = time.Now() return }