29 lines
800 B
Go
Raw Normal View History

2023-10-08 15:59:42 +07:00
package response
type LoginResponse struct {
2024-08-02 00:51:54 +07:00
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"`
2023-10-08 15:59:42 +07:00
}
2024-08-04 01:14:59 +07:00
type LoginResponseCustoemr struct {
ID int64 `json:"id"`
Token string `json:"token"`
Name string `json:"name"`
ResetPassword bool `json:"reset_password"`
}
2023-10-08 15:59:42 +07:00
type Role struct {
ID int64 `json:"id"`
Role string `json:"role_name"`
}
2024-08-02 00:51:54 +07:00
type PartnerLicense struct {
2024-08-27 19:06:14 +07:00
DaysToExpire int64 `json:"days_to_expire"`
Status string `json:"status"`
2024-08-02 00:51:54 +07:00
}