2022-11-24 23:37:34 +08:00
|
|
|
// Package adminin
|
|
|
|
// @Link https://github.com/bufanyun/hotgo
|
|
|
|
// @Copyright Copyright (c) 2022 HotGo CLI
|
|
|
|
// @Author Ms <133814250@qq.com>
|
|
|
|
// @License https://github.com/bufanyun/hotgo/blob/master/LICENSE
|
|
|
|
//
|
|
|
|
package adminin
|
2022-02-25 17:11:17 +08:00
|
|
|
|
|
|
|
import (
|
2022-11-24 23:37:34 +08:00
|
|
|
"hotgo/internal/model"
|
|
|
|
"hotgo/internal/model/entity"
|
|
|
|
"hotgo/internal/model/input/form"
|
2022-02-25 17:11:17 +08:00
|
|
|
)
|
|
|
|
|
2022-11-24 23:37:34 +08:00
|
|
|
// RoleListInp 获取列表
|
|
|
|
type RoleListInp struct {
|
2023-01-18 16:23:39 +08:00
|
|
|
form.PageReq
|
2022-02-25 17:11:17 +08:00
|
|
|
}
|
|
|
|
|
2022-11-24 23:37:34 +08:00
|
|
|
type RoleListModel struct {
|
2022-02-25 17:11:17 +08:00
|
|
|
entity.AdminRole
|
2023-02-08 20:29:34 +08:00
|
|
|
Label string `json:"label" dc:"标签"`
|
|
|
|
Value int64 `json:"value" dc:"键值"`
|
2022-02-25 17:11:17 +08:00
|
|
|
}
|
|
|
|
|
2022-11-24 23:37:34 +08:00
|
|
|
// RoleMemberListInp 查询列表
|
|
|
|
type RoleMemberListInp struct {
|
2022-02-25 17:11:17 +08:00
|
|
|
form.PageReq
|
|
|
|
form.RangeDateReq
|
|
|
|
form.StatusReq
|
|
|
|
Role int `json:"role" description:"角色ID"`
|
2023-01-18 16:23:39 +08:00
|
|
|
DeptId int `json:"deptId" description:"部门ID"`
|
2022-02-25 17:11:17 +08:00
|
|
|
Mobile int `json:"mobile" description:"手机号"`
|
|
|
|
Username string `json:"username" description:"用户名"`
|
|
|
|
Realname string `json:"realname" description:"真实姓名"`
|
|
|
|
StartTime string `json:"start_time" description:"开始时间"`
|
|
|
|
EndTime string `json:"end_time" description:"结束时间"`
|
|
|
|
Name string `json:"name" description:"岗位名称"`
|
|
|
|
Code string `json:"code" description:"岗位编码"`
|
|
|
|
}
|
|
|
|
|
2022-11-24 23:37:34 +08:00
|
|
|
type RoleMemberListModel []*MemberListModel
|
2022-02-25 17:11:17 +08:00
|
|
|
|
2022-11-24 23:37:34 +08:00
|
|
|
// MenuRoleListInp 查询角色菜单列表
|
2022-02-25 17:11:17 +08:00
|
|
|
type MenuRoleListInp struct {
|
|
|
|
RoleId int64
|
|
|
|
}
|
|
|
|
type MenuRoleListModel struct {
|
|
|
|
Menus []*model.LabelTreeMenu `json:"menus" description:"菜单列表"`
|
|
|
|
CheckedKeys []int64 `json:"checkedKeys" description:"选择的菜单ID"`
|
|
|
|
}
|
2023-01-18 16:23:39 +08:00
|
|
|
|
|
|
|
type DataScopeEditInp struct {
|
|
|
|
Id int64 `json:"id" v:"required" dc:"角色ID"`
|
|
|
|
DataScope int `json:"dataScope" v:"required" dc:"数据范围"`
|
|
|
|
CustomDept []int64 `json:"customDept" dc:"自定义部门权限"`
|
|
|
|
}
|