build auth sms

This commit is contained in:
Tue 2022-11-01 11:40:37 +07:00
parent 56d210bf2d
commit 285ddb75e7
2 changed files with 18 additions and 11 deletions

View File

@ -17,3 +17,10 @@ type RoleBrief struct {
type CreateRoleResponse struct {
ID string `json:"_id"`
}
type RoleShort struct {
ID string `json:"_id"`
Name string `json:"name"`
Code string `json:"code"`
Type string `json:"type"`
}

View File

@ -7,8 +7,8 @@ type GetListOwnerResponse struct {
type SupplierUserBrief struct {
ID string `json:"_id"`
Role RoleBrief `json:"role"`
Supplier SupplierShort `json:"supplier"`
Role RoleShort `json:"role"`
SupplierID string `json:"supplierId"`
Name string `json:"name"`
Phone string `json:"phone"`
Email string `json:"email"`