forked from ebhomengo/niki
23 lines
392 B
Go
23 lines
392 B
Go
package service
|
|
|
|
import "git.gocasts.ir/ebhomengo/niki/types"
|
|
|
|
type RoleRequest struct {
|
|
Title string `json:"title"`
|
|
TitleFa string `json:"title_fa"`
|
|
}
|
|
|
|
type StoreRoleRequest struct {
|
|
RoleRequest
|
|
}
|
|
|
|
type UpdateRoleRequest struct {
|
|
ID types.ID `json:"id"`
|
|
RoleRequest
|
|
}
|
|
|
|
type AssignRoleToStaffRequest struct {
|
|
StaffID types.ID `json:"staff_id"`
|
|
RolesID []types.ID `json:"roles_id"`
|
|
}
|