You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
const schema = {
|
|
|
|
title: "角色",
|
|
|
|
type: "object",
|
|
|
|
properties: {
|
|
|
|
name: {
|
|
|
|
title: "角色名",
|
|
|
|
type: "string",
|
|
|
|
showForList: true,
|
|
|
|
rules: [
|
|
|
|
{
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
max: 64,
|
|
|
|
message: "用户名的最大长度为 64",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
export default function () {
|
|
|
|
return {
|
|
|
|
query: {
|
|
|
|
url: "identity/roles",
|
|
|
|
method: "GET",
|
|
|
|
schema: {
|
|
|
|
title: "用户",
|
|
|
|
type: "object",
|
|
|
|
properties: {
|
|
|
|
filter: {
|
|
|
|
title: "角色名",
|
|
|
|
type: "string",
|
|
|
|
},
|
|
|
|
skipCount: {
|
|
|
|
hidden: true,
|
|
|
|
default: 0,
|
|
|
|
},
|
|
|
|
maxResultCount: {
|
|
|
|
hidden: true,
|
|
|
|
default: 10,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
table: {
|
|
|
|
schema: schema,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
}
|