2024-08-27 19:06:14 +07:00

29 lines
800 B
Go

package response
type LoginResponse struct {
Token string `json:"token"`
Name string `json:"name"`
Role Role `json:"role"`
Partner *Partner `json:"partner"`
Site *SiteName `json:"site,omitempty"`
ResetPassword bool `json:"reset_password"`
PartnerLicense *PartnerLicense `json:"partner_license,omitempty"`
}
type LoginResponseCustoemr struct {
ID int64 `json:"id"`
Token string `json:"token"`
Name string `json:"name"`
ResetPassword bool `json:"reset_password"`
}
type Role struct {
ID int64 `json:"id"`
Role string `json:"role_name"`
}
type PartnerLicense struct {
DaysToExpire int64 `json:"days_to_expire"`
Status string `json:"status"`
}