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.

71 lines
1.3 KiB

const schema = {
title: "角色",
type: "object",
properties: {
name: {
title: "角色名",
type: "string",
showForList: true,
rules: [
{
required: true,
},
{
max: 64,
message: "用户名的最大长度为 64",
},
],
},
},
};
2 years ago
const queryUrl = "identity/roles";
const deletetUrl = "identity/roles/{id}";
const updateUrl = "identity/roles/{id}";
const createUrl = "identity/roles/{id}";
const queryMethod = "GET";
const deletetMethod = "DELETE";
const updateMethod = "PUT";
const createMethod = "GET";
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,
},
2 years ago
edit: {
queryUrl,
deletetUrl,
updateUrl,
createUrl,
queryMethod,
deletetMethod,
updateMethod,
createMethod,
schema: schema,
},
};
}