Archived
forked from admin/userbase
init: userbase front/service/deploy source (CI builds front via Gitea Actions)
This commit is contained in:
@@ -0,0 +1,231 @@
|
||||
const userinfoResult = {
|
||||
id: 186532,
|
||||
account: "zhd",
|
||||
name: "朱皓东",
|
||||
idcard: "130203192009217969",
|
||||
phone: null,
|
||||
email: "",
|
||||
birthday: null,
|
||||
gender: 0,
|
||||
profilePicture: "http://base.bestsch.com/upload/userPicture/186532_eae297df",
|
||||
groupId: 3613,
|
||||
type: 2,
|
||||
status: 0,
|
||||
createUser: 0,
|
||||
orderNumber: 32767,
|
||||
dept: null,
|
||||
roleIds: [1, 1, 1, 1, 1, 4, 4, 4, 7, 7, 7],
|
||||
roleList: [
|
||||
{
|
||||
roleId: 1,
|
||||
schId: 1410,
|
||||
userId: 186532,
|
||||
},
|
||||
{
|
||||
roleId: 1,
|
||||
schId: 3260,
|
||||
userId: 186532,
|
||||
},
|
||||
{
|
||||
roleId: 1,
|
||||
schId: 6237,
|
||||
userId: 186532,
|
||||
},
|
||||
{
|
||||
roleId: 4,
|
||||
schId: 1410,
|
||||
userId: 186532,
|
||||
},
|
||||
{
|
||||
roleId: 4,
|
||||
schId: 3260,
|
||||
userId: 186532,
|
||||
},
|
||||
{
|
||||
roleId: 4,
|
||||
schId: 6237,
|
||||
userId: 186532,
|
||||
},
|
||||
{
|
||||
roleId: 7,
|
||||
schId: 1410,
|
||||
userId: 186532,
|
||||
},
|
||||
{
|
||||
roleId: 7,
|
||||
schId: 3260,
|
||||
userId: 186532,
|
||||
},
|
||||
{
|
||||
roleId: 7,
|
||||
schId: 6237,
|
||||
userId: 186532,
|
||||
},
|
||||
],
|
||||
groups: [
|
||||
{
|
||||
userId: 0,
|
||||
groupId: 3613,
|
||||
orderNumber: 32767,
|
||||
schoolId: 3260,
|
||||
bureauId: 1596,
|
||||
},
|
||||
{
|
||||
userId: 0,
|
||||
groupId: 4805,
|
||||
orderNumber: 32767,
|
||||
schoolId: 1410,
|
||||
bureauId: 1596,
|
||||
},
|
||||
{
|
||||
userId: 0,
|
||||
groupId: 6277,
|
||||
orderNumber: 32767,
|
||||
schoolId: 6237,
|
||||
bureauId: 1596,
|
||||
},
|
||||
{
|
||||
userId: 0,
|
||||
groupId: 3615,
|
||||
orderNumber: 32767,
|
||||
schoolId: 3260,
|
||||
bureauId: 1596,
|
||||
},
|
||||
],
|
||||
school: {
|
||||
id: 3260,
|
||||
name: "上海鸿育初级中学",
|
||||
code: null,
|
||||
parentId: 3318,
|
||||
path: "1,1596,3318,",
|
||||
level: 4,
|
||||
type: 2,
|
||||
order: "32767",
|
||||
orderNo: 32767,
|
||||
createUser: 0,
|
||||
createDate: null,
|
||||
children: [],
|
||||
userList: [],
|
||||
},
|
||||
bureau: null,
|
||||
schools: [
|
||||
{
|
||||
id: 3260,
|
||||
name: "上海鸿育初级中学",
|
||||
code: null,
|
||||
parentId: 3318,
|
||||
path: "1,1596,3318,",
|
||||
level: 4,
|
||||
type: 2,
|
||||
order: "32767",
|
||||
orderNo: 32767,
|
||||
createUser: 0,
|
||||
createDate: null,
|
||||
children: [],
|
||||
userList: [],
|
||||
},
|
||||
{
|
||||
id: 1410,
|
||||
name: "上海弘育高级中学",
|
||||
code: null,
|
||||
parentId: 3318,
|
||||
path: "1,1596,3318,",
|
||||
level: 4,
|
||||
type: 2,
|
||||
order: "2",
|
||||
orderNo: 2,
|
||||
createUser: 0,
|
||||
createDate: null,
|
||||
children: [],
|
||||
userList: [],
|
||||
},
|
||||
{
|
||||
id: 6237,
|
||||
name: "上海弘育教育初级中学",
|
||||
code: null,
|
||||
parentId: 3318,
|
||||
path: "1,1596,3318,",
|
||||
level: 4,
|
||||
type: 2,
|
||||
order: "32767",
|
||||
orderNo: 32767,
|
||||
createUser: 0,
|
||||
createDate: null,
|
||||
children: [],
|
||||
userList: [],
|
||||
},
|
||||
],
|
||||
phone2: null,
|
||||
schId: 0,
|
||||
groupName: null,
|
||||
};
|
||||
|
||||
const userModResult = [
|
||||
{
|
||||
id: 1105,
|
||||
appId: 437,
|
||||
modId: 1001,
|
||||
name: "学习中心管理",
|
||||
parentId: 0,
|
||||
path: null,
|
||||
level: 0,
|
||||
page: "/",
|
||||
icon: "",
|
||||
orderNumber: 0,
|
||||
usable: true,
|
||||
children: [],
|
||||
},
|
||||
{
|
||||
id: 1106,
|
||||
appId: 437,
|
||||
modId: 1002,
|
||||
name: "数据统计",
|
||||
parentId: 0,
|
||||
path: null,
|
||||
level: 0,
|
||||
page: "/stats",
|
||||
icon: "",
|
||||
orderNumber: 0,
|
||||
usable: true,
|
||||
children: [],
|
||||
},
|
||||
{
|
||||
id: 1107,
|
||||
appId: 437,
|
||||
modId: 1003,
|
||||
name: "应用设置",
|
||||
parentId: 0,
|
||||
path: null,
|
||||
level: 0,
|
||||
page: "/appsettings",
|
||||
icon: "",
|
||||
orderNumber: 0,
|
||||
usable: true,
|
||||
children: [],
|
||||
},
|
||||
];
|
||||
|
||||
export default [
|
||||
{
|
||||
url: "/api/base/getUserInfo", //请求地址
|
||||
method: "get", //请求方式
|
||||
response: () => {
|
||||
return {
|
||||
code: 0,
|
||||
msg: null,
|
||||
data: userinfoResult,
|
||||
};
|
||||
},
|
||||
},
|
||||
{
|
||||
url: "/api/base/GetUserMod", //请求地址
|
||||
method: "get", //请求方式
|
||||
response: () => {
|
||||
return {
|
||||
code: 0,
|
||||
msg: null,
|
||||
data: userModResult,
|
||||
};
|
||||
},
|
||||
},
|
||||
];
|
||||
Reference in New Issue
Block a user