12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- package admin
- import "zhiyuan/pkg/param/common"
- var Entry = struct {
- PC string
- Leader string
- Servicer string
- Material string
- Manager string
- Work string
- Mobile string
- Final string
- Dispatch string
- }{
- PC: "pc",
- Leader: "leader",
- Servicer: "servicer",
- Material: "material",
- Manager: "manager",
- Work: "work",
- Mobile: "mobile",
- Final: "final",
- Dispatch: "dispatch",
- }
- const (
- LeaderRoleId = 5
- SupervisorRoleId = 6
- ServicerRoleId = 1
- ManagerRoleId = 4
- DesignerRoleId = 2
- SalesmanRoleId = 3
- QualityRoleId = 17
- AssistantRoleId = 16
- AdminRoleId = 7
- MaterialAdminRoleId = 12
- DivisionDirectorRoleId = 22
- )
- var Params = struct {
- DataAuth []common.Base `json:"data_auth"`
- DataSite []common.Base `json:"data_site"`
- District []common.Base `json:"district"`
- State []common.BaseWithColor `json:"state"`
- }{
- DataAuth: []common.Base{
- {1, "个人"},
- {2, "所在部门"},
- {3, "所在部门及下属部门"},
- {99, "所有"},
- },
- DataSite: []common.Base{
- {1, "基装"},
- {2, "轻改"},
- {0, "所有"},
- },
- State: []common.BaseWithColor{
- {1, "在职", "blue-500"},
- {-1, "离职", "pink-500"},
- },
- District: []common.Base{
- {1, "高新区"},
- {2, "经开区"},
- {3, "西湖区"},
- {4, "象湖区"},
- {5, "朝阳区"},
- {6, "青云谱区"},
- {7, "望城区"},
- {8, "青山湖区"},
- {9, "东湖区"},
- {10, "红谷滩区"},
- {11, "九龙湖区"},
- {12, "新建区"},
- {13, "南昌县"},
- {14, "莲塘区"},
- {15, "湾里区"},
- {16, "安义区"},
- {17, "进贤区"},
- {18, "新干"},
- {19, "向塘县"},
- {20, "丰城"},
- {21, "奉新"},
- {22, "高安"},
- {23, "永修"},
- {24, "樟树"},
- {25, "共青城"},
- },
- }
- func GetStateMap() map[int]common.BaseWithColor {
- stateMap := make(map[int]common.BaseWithColor)
- for _, v := range Params.State {
- stateMap[v.ID] = v
- }
- return stateMap
- }
|