const schema = { title: "通用代码", type: "object", properties: { userName: { title: "项目", type: "string", readOnly: true, showForList: true, rules: [ { required: true, }, ], }, userName: { title: "值", type: "string", readOnly: true, showForList: true, rules: [ { required: true, }, ], }, name: { title: "描述", type: "string", showForList: true, rules: [ { required: true, }, ], }, }, }; const url = "base/code-settings"; const createUrl = url; const updateUrl = url; const deleteUrl = url; const method = "GET"; const createMethod = "POST"; const updateMethod = "PUT"; const deleteMethod = "DELETE"; export default function () { return { query: { url, method, schema: { title: "通用代码", type: "object", properties: { filter: { title: "项目", type: "string", }, skipCount: { hidden: true, default: 0, }, maxResultCount: { hidden: true, default: 10, }, }, }, }, table: { schema: schema, }, edit: { createUrl, updateUrl, deleteUrl, createMethod, updateMethod, deleteMethod, schema: schema, }, }; }