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, }, }; }