refactor: ♻️ 生成前端apijs

This commit is contained in:
tk 2024-12-06 17:19:14 +08:00 committed by nsnail
parent c2a2b27afd
commit d622111f53
4 changed files with 11 additions and 33 deletions

View File

@ -82,17 +82,6 @@ export default {
}, },
}, },
/**
* 计划作业是否存在
*/
exist: {
url: `${config.API_URL}/api/sys/job/exist`,
name: `计划作业是否存在`,
post: async function (data = {}, config = {}) {
return await http.post(this.url, data, config)
},
},
/** /**
* 导出计划作业 * 导出计划作业
*/ */

View File

@ -49,17 +49,6 @@ export default {
}, },
}, },
/**
* 登录日志是否存在
*/
exist: {
url: `${config.API_URL}/api/sys/login.log/exist`,
name: `登录日志是否存在`,
post: async function (data = {}, config = {}) {
return await http.post(this.url, data, config)
},
},
/** /**
* 导出登录日志 * 导出登录日志
*/ */

View File

@ -60,17 +60,6 @@ export default {
}, },
}, },
/**
* 站内信是否存在
*/
exist: {
url: `${config.API_URL}/api/sys/site.msg/exist`,
name: `站内信是否存在`,
post: async function (data = {}, config = {}) {
return await http.post(this.url, data, config)
},
},
/** /**
* 导出站内信 * 导出站内信
*/ */

View File

@ -49,6 +49,17 @@ export default {
}, },
}, },
/**
* 编辑示例
*/
edit: {
url: `${config.API_URL}/api/tpl/example/edit`,
name: `编辑示例`,
post: async function (data = {}, config = {}) {
return await http.post(this.url, data, config)
},
},
/** /**
* 获取单个示例 * 获取单个示例
*/ */