natsio/model/supplier_role_response.go

20 lines
407 B
Go
Raw Normal View History

2022-10-28 02:31:39 +00:00
package model
2022-10-31 03:04:13 +00:00
type GetListRoleResponse struct {
Roles []RoleBrief `json:"roles"`
Total int64 `json:"total"`
}
type RoleBrief struct {
ID string `json:"_id"`
Name string `json:"name"`
Code string `json:"code"`
Type string `json:"type"`
CreatedAt string `json:"createdAt"`
UpdatedAt string `json:"updatedAt"`
}
2022-10-28 02:31:39 +00:00
type CreateRoleResponse struct {
ID string `json:"_id"`
}