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.

70 lines
1.2 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 = "role/get-list";
const deleteUrl = "role/delete/%s";
const updateUrl = "role/update/%s";
const createUrl = "role/create";
2 years ago
const queryMethod = "GET";
2 years ago
const deleteMethod = "DELETE";
2 years ago
const updateMethod = "PUT";
2 years ago
const createMethod = "POST";
2 years ago
export default function () {
return {
query: {
2 years ago
url: queryUrl,
method: queryMethod,
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: {
2 years ago
deleteUrl,
2 years ago
updateUrl,
createUrl,
2 years ago
deleteMethod,
2 years ago
updateMethod,
createMethod,
schema: schema,
},
};
}