update admin

This commit is contained in:
全栈小学生 2023-09-06 18:50:36 +08:00
parent f841ed11e5
commit 944e6f291a
389 changed files with 8084 additions and 6733 deletions

View File

@ -7,7 +7,4 @@ VITE_APP_BASE_URL='/adminapi/'
VITE_IMG_DOMAIN=''
# 请求时header中token的参数名
VITE_REQUEST_HEADER_TOKEN_KEY='token'
# 请求时header中站点的参数名
VITE_REQUEST_HEADER_SITEID_KEY='site-id'
VITE_REQUEST_HEADER_TOKEN_KEY='token'

View File

@ -7,7 +7,4 @@ VITE_APP_BASE_URL='/adminapi/'
VITE_IMG_DOMAIN=''
# 请求时header中token的参数名
VITE_REQUEST_HEADER_TOKEN_KEY='token'
# 请求时header中站点的参数名
VITE_REQUEST_HEADER_SITEID_KEY='site-id'
VITE_REQUEST_HEADER_TOKEN_KEY='token'

View File

@ -1,5 +1,5 @@
// Generated by 'unplugin-auto-import'
export {}
declare global {
const ElMessage: typeof import('element-plus/es')['ElMessage']
}

View File

@ -16,8 +16,12 @@ declare module '@vue/runtime-core' {
ElBreadcrumb: typeof import('element-plus/es')['ElBreadcrumb']
ElBreadcrumbItem: typeof import('element-plus/es')['ElBreadcrumbItem']
ElButton: typeof import('element-plus/es')['ElButton']
ElCalendar: typeof import('element-plus/es')['ElCalendar']
ElCard: typeof import('element-plus/es')['ElCard']
ElCascader: typeof import('element-plus/es')['ElCascader']
ElCheckbox: typeof import('element-plus/es')['ElCheckbox']
ElCheckboxGroup: typeof import('element-plus/es')['ElCheckboxGroup']
ElCheckTag: typeof import('element-plus/es')['ElCheckTag']
ElCol: typeof import('element-plus/es')['ElCol']
ElCollapse: typeof import('element-plus/es')['ElCollapse']
ElCollapseItem: typeof import('element-plus/es')['ElCollapseItem']
@ -28,6 +32,7 @@ declare module '@vue/runtime-core' {
ElDescriptions: typeof import('element-plus/es')['ElDescriptions']
ElDescriptionsItem: typeof import('element-plus/es')['ElDescriptionsItem']
ElDialog: typeof import('element-plus/es')['ElDialog']
ElDivider: typeof import('element-plus/es')['ElDivider']
ElDrawer: typeof import('element-plus/es')['ElDrawer']
ElDropdown: typeof import('element-plus/es')['ElDropdown']
ElDropdownItem: typeof import('element-plus/es')['ElDropdownItem']
@ -41,11 +46,11 @@ declare module '@vue/runtime-core' {
ElImageViewer: typeof import('element-plus/es')['ElImageViewer']
ElInput: typeof import('element-plus/es')['ElInput']
ElInputNumber: typeof import('element-plus/es')['ElInputNumber']
ElLink: typeof import('element-plus/es')['ElLink']
ElMain: typeof import('element-plus/es')['ElMain']
ElMenu: typeof import('element-plus/es')['ElMenu']
ElMenuItem: typeof import('element-plus/es')['ElMenuItem']
ElOption: typeof import('element-plus/es')['ElOption']
ElOptionGroup: typeof import('element-plus/es')['ElOptionGroup']
ElPagination: typeof import('element-plus/es')['ElPagination']
ElPopover: typeof import('element-plus/es')['ElPopover']
ElRadio: typeof import('element-plus/es')['ElRadio']
@ -65,8 +70,10 @@ declare module '@vue/runtime-core' {
ElTabPane: typeof import('element-plus/es')['ElTabPane']
ElTabs: typeof import('element-plus/es')['ElTabs']
ElTag: typeof import('element-plus/es')['ElTag']
ElTimeSelect: typeof import('element-plus/es')['ElTimeSelect']
ElTooltip: typeof import('element-plus/es')['ElTooltip']
ElTree: typeof import('element-plus/es')['ElTree']
ElTreeSelect: typeof import('element-plus/es')['ElTreeSelect']
ElUpload: typeof import('element-plus/es')['ElUpload']
HeatMap: typeof import('./src/components/heat-map/index.vue')['default']
Icon: typeof import('./src/components/icon/index.vue')['default']

View File

@ -9,6 +9,7 @@
"version": "1.0.0",
"dependencies": {
"@element-plus/icons-vue": "^2.0.10",
"@highlightjs/vue-plugin": "^2.1.0",
"@vueuse/core": "^9.12.0",
"@wangeditor/editor": "^5.1.23",
"@wangeditor/editor-for-vue": "^5.1.12",
@ -17,6 +18,7 @@
"css-color-function": "^1.3.3",
"echarts": "^5.4.1",
"element-plus": "^2.2.29",
"highlight.js": "^11.8.0",
"nprogress": "^0.2.0",
"pinia": "^2.0.30",
"qrcode": "^1.5.1",
@ -855,6 +857,15 @@
"@floating-ui/core": "^1.1.0"
}
},
"node_modules/@highlightjs/vue-plugin": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/@highlightjs/vue-plugin/-/vue-plugin-2.1.0.tgz",
"integrity": "sha512-E+bmk4ncca+hBEYRV2a+1aIzIV0VSY/e5ArjpuSN9IO7wBJrzUE2u4ESCwrbQD7sAy+jWQjkV5qCCWgc+pu7CQ==",
"peerDependencies": {
"highlight.js": "^11.0.1",
"vue": "^3"
}
},
"node_modules/@humanwhocodes/config-array": {
"version": "0.11.8",
"resolved": "https://registry.npmmirror.com/@humanwhocodes/config-array/-/config-array-0.11.8.tgz",
@ -3922,6 +3933,14 @@
"he": "bin/he"
}
},
"node_modules/highlight.js": {
"version": "11.8.0",
"resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-11.8.0.tgz",
"integrity": "sha512-MedQhoqVdr0U6SSnWPzfiadUcDHfN/Wzq25AkXiQv9oiOO/sG0S7XkvpFIqWBl9Yq1UYyYOOVORs5UW2XlPyzg==",
"engines": {
"node": ">=12.0.0"
}
},
"node_modules/hls.js": {
"version": "1.3.4",
"resolved": "https://registry.npmmirror.com/hls.js/-/hls.js-1.3.4.tgz",
@ -7065,6 +7084,12 @@
"@floating-ui/core": "^1.1.0"
}
},
"@highlightjs/vue-plugin": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/@highlightjs/vue-plugin/-/vue-plugin-2.1.0.tgz",
"integrity": "sha512-E+bmk4ncca+hBEYRV2a+1aIzIV0VSY/e5ArjpuSN9IO7wBJrzUE2u4ESCwrbQD7sAy+jWQjkV5qCCWgc+pu7CQ==",
"requires": {}
},
"@humanwhocodes/config-array": {
"version": "0.11.8",
"resolved": "https://registry.npmmirror.com/@humanwhocodes/config-array/-/config-array-0.11.8.tgz",
@ -9533,6 +9558,11 @@
"integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==",
"dev": true
},
"highlight.js": {
"version": "11.8.0",
"resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-11.8.0.tgz",
"integrity": "sha512-MedQhoqVdr0U6SSnWPzfiadUcDHfN/Wzq25AkXiQv9oiOO/sG0S7XkvpFIqWBl9Yq1UYyYOOVORs5UW2XlPyzg=="
},
"hls.js": {
"version": "1.3.4",
"resolved": "https://registry.npmmirror.com/hls.js/-/hls.js-1.3.4.tgz",

View File

@ -10,6 +10,7 @@
},
"dependencies": {
"@element-plus/icons-vue": "^2.0.10",
"@highlightjs/vue-plugin": "^2.1.0",
"@vueuse/core": "^9.12.0",
"@wangeditor/editor": "^5.1.23",
"@wangeditor/editor-for-vue": "^5.1.12",
@ -18,6 +19,7 @@
"css-color-function": "^1.3.3",
"echarts": "^5.4.1",
"element-plus": "^2.2.29",
"highlight.js": "^11.8.0",
"nprogress": "^0.2.0",
"pinia": "^2.0.30",
"qrcode": "^1.5.1",

View File

@ -24,7 +24,7 @@ const toggleDark = useToggle(useDark())
watch(route, () => {
useAppStore().$patch(state => {
state.route = route.meta.view || route.path
state.route = route
})
}, { immediate: true })

View File

@ -1,102 +0,0 @@
import request from '@/utils/request'
/***************************************************** 文章表 ****************************************************/
/**
*
* @param params
* @returns
*/
export function getArticleList(params: Record<string, any>) {
return request.get(`article/article`, {params})
}
/**
*
* @param id id
* @returns
*/
export function getArticleInfo(id: number) {
return request.get(`article/article/${id}`);
}
/**
*
* @param params
* @returns
*/
export function addArticle(params: Record<string, any>) {
return request.post('article/article', params, {showSuccessMessage: true})
}
/**
*
* @param params
*/
export function editArticle(params: Record<string, any>) {
return request.put(`article/article/${params.id}`, params, {showSuccessMessage: true})
}
/**
*
* @param id
* @returns
*/
export function deleteArticle(id: number) {
return request.delete(`article/article/${id}`, {showSuccessMessage: true})
}
/***************************************************** 文章分类管理 ****************************************************/
/**
*
* @param params
* @returns
*/
export function getArticleCategoryList(params: Record<string, any>) {
return request.get(`article/category`, {params})
}
/**
*
* @param params
* @returns
*/
export function getArticleCategoryAll(params: Record<string, any>) {
return request.get(`article/category/all`, params)
}
/**
*
* @param category_id
*/
export function getArticleCategoryInfo(category_id: number) {
return request.get(`article/category/${category_id}`);
}
/**
*
* @param params
* @returns
*/
export function addArticleCategory(params: Record<string, any>) {
return request.post('article/category', params, {showSuccessMessage: true})
}
/**
*
* @param params
* @returns
*/
export function editArticleCategory(params: Record<string, any>) {
return request.put(`article/category/${params.category_id}`, params, {showSuccessMessage: true})
}
/**
*
* @param category_id
*/
export function deleteArticleCategory(category_id: number) {
return request.delete(`article/category/${category_id}`, {showSuccessMessage: true});
}

View File

@ -1,70 +0,0 @@
import request from '@/utils/request'
/***************************************************** 充值订单 ****************************************************/
/**
*
* @param params
* @returns
*/
export function getRechargeOrderList(params: Record<string, any>) {
return request.get(`order/recharge`, {params})
}
/**
*
* @param params
* @returns
*/
export function getRechargeStat(params: Record<string, any>) {
return request.get(`order/recharge/stat`, {params})
}
/**
*
* @param order_id
* @returns
*/
export function getRechargeOrderInfo(order_id: number) {
return request.get(`order/recharge/${order_id}`);
}
/**
*
* @returns
*/
export function getRechargeOrderStatusList() {
return request.get(`order/recharge/status`)
}
/**
* 退
* @returns
*/
export function getRechargeRefund(params: Record<string, any>) {
return request.get(`order/recharge/refund`, {params})
}
/**
* 退
* @returns
*/
export function getRechargeRefundStatus() {
return request.get(`order/recharge/refund/status`)
}
/**
* 退
* @returns
*/
export function rechargeRefund(id: number) {
return request.put(`order/recharge/refund/${id}`, {}, {showSuccessMessage: true});
}
/**
* 退
* @returns
*/
export function getRechargeRefundStat() {
return request.get(`order/recharge/refund/stat`);
}

View File

@ -1,236 +0,0 @@
import request from '@/utils/request'
//包含站点管理,站点用户管理,站点操作日志
/***************************************************** 站点管理 ****************************************************/
/**
*
* @param params
* @returns
*/
export function getSiteList(params: Record<string, any>) {
return request.get(`site/site`, {params})
}
/**
*
* @param site_id
*/
export function getSiteInfo(site_id: number) {
return request.get(`site/site/${site_id}`);
}
/**
*
* @param params
* @returns
*/
export function addSite(params: Record<string, any>) {
return request.post('site/site', params, {showSuccessMessage: true})
}
/**
*
* @param params
*/
export function editSite(params: Record<string, any>) {
return request.put(`site/site/${params.site_id}`, params, {showSuccessMessage: true})
}
/**
*
* @param params
*/
export function closeSite(params: Record<string, any>) {
return request.put(`site/closesite/${params.site_id}`, params, {showSuccessMessage: true})
}
/**
*
* @param params
*/
export function openSite(params: Record<string, any>) {
return request.put(`site/opensite/${params.site_id}`, params, {showSuccessMessage: true})
}
/**
*
*/
export function getStatusList() {
return request.get(`site/statuslist`)
}
/***************************************************** 站点分组管理 ****************************************************/
/**
*
* @param params
* @returns
*/
export function getSiteGroupList(params: Record<string, any>) {
return request.get(`site/group`, {params})
}
/**
*
* @param site_id
*/
export function getSiteGroupInfo(site_id: number) {
return request.get(`site/group/${site_id}`);
}
/**
*
* @param params
* @returns
*/
export function addSiteGroup(params: Record<string, any>) {
return request.post('site/group', params, {showSuccessMessage: true})
}
/**
*
* @param params
*/
export function editSiteGroup(params: Record<string, any>) {
return request.put(`site/group/${params.group_id}`, params, {showSuccessMessage: true})
}
/**
*
* @param group_id
*/
export function deleteSiteGroup(group_id: number) {
return request.delete(`site/group/${group_id}`, {showSuccessMessage: true});
}
/**
*
* @param params
* @returns
*/
export function getSiteGroupAll(params: Record<string, any>) {
return request.get(`site/group/all`, params)
}
/***************************************************** 当前站点用户 *************************************************/
/**
*
* @param params
* @returns
*/
export function getUserList(params: Record<string, any>) {
return request.get(`site/user`, {params})
}
/**
*
* @param uid
*/
export function getUserInfo(uid: number) {
return request.get(`site/user/${uid}`);
}
/**
*
* @param params
* @returns
*/
export function addUser(params: Record<string, any>) {
return request.post('site/user', params, {showSuccessMessage: true})
}
/**
*
* @param params
*/
export function editUser(params: Record<string, any>) {
return request.put(`site/user/${params.uid}`, params, {showSuccessMessage: true})
}
/**
*
* @param uid
* @returns
*/
export function deleteUser(uid: number) {
return request.delete(`site/user/${uid}`, {showSuccessMessage: true})
}
/**
*
* @param uid
* @returns
*/
export function lockUser(uid: number) {
return request.put(`site/user/lock/${uid}`)
}
/**
*
* @param uid
* @returns
*/
export function unlockUser(uid: number) {
return request.put(`site/user/unlock/${uid}`)
}
/***************************************************** 操作日志 **************************************************/
/**
*
* @param params
* @returns
*/
export function getLogList(params: Record<string, any>) {
return request.get(`site/log`, {params})
}
/**
*
* @param id
*/
export function getLogInfo(id: number) {
return request.get(`site/log/${id}`)
}
/***************************************************** 账单列表 **************************************************/
/**
*
* @param params
* @returns
*/
export function getAccountList(params: Record<string, any>) {
return request.get(`site/account`, {params})
}
/**
*
* @param id
*/
export function getAccountInfo(id: number) {
return request.get(`site/account/${id}`)
}
/**
*
* @returns
*/
export function getAccountStat() {
return request.get(`site/account/stat`)
}
/**
*
* @returns
*/
export function getAccountType() {
return request.get(`site/account/type`)
}

View File

@ -1,70 +0,0 @@
import request from '@/utils/request'
/***************************************************** 代码生成 ****************************************************/
/**
*
* @param params
* @returns
*/
export function getGenerateTableList(params: Record<string, any>) {
return request.get(`generator/generator`, {params})
}
/**
*
* @param id id
* @returns
*/
export function getGenerateTableInfo(id: number) {
return request.get(`generator/generator/${id}`);
}
/**
*
* @param params
* @returns
*/
export function addGenerateTable(params: Record<string, any>) {
return request.post('generator/generator', params, {showSuccessMessage: true})
}
/**
*
* @param params
*/
export function editGenerateTable(params: Record<string, any>) {
return request.put(`generator/generator/${params.id}`, params, {showSuccessMessage: true})
}
/**
*
* @param id
* @returns
*/
export function deleteGenerateTable(id: number) {
return request.delete(`generator/generator/${id}`, {showSuccessMessage: true})
}
/**
*
* @param params
* @returns
*/
export function generateCreate(params: Record<string, any>) {
return request.post(`generator/download`, params)
}
/**
*
*/
export function generateTable() {
return request.get(`generator/table`)
}
/**
*
*/
export function getSystem() {
return request.get(`sys/system`)
}

View File

@ -1,41 +0,0 @@
import request from '@/utils/request'
//当前接口用户指系统整体用户管理,站内用户添加,编辑,详情,操作日志,请查看站点内部相关接口
/***************************************************** 用户 ****************************************************/
/**
*
* @param params
* @returns
*/
export function getUserList(params: Record<string, any>) {
return request.get(`user/user`, { params })
}
/**
*
* @param uid uid
* @returns
*/
export function getUserInfo(uid: number) {
return request.get(`user/user/${uid}`);
}
/**
*
* @param params
* @returns
*/
export function addUser(params: Record<string, any>) {
return request.post('user/user', params, { showSuccessMessage: true })
}
/**
*
* @param params
*/
export function editUser(params: Record<string, any>) {
return request.put(`user/user/${params.uid}`, params, { showSuccessMessage: true })
}

View File

@ -16,6 +16,14 @@ export function getAddonDetial(id: number) {
return request.get(`addon/${id}`)
}
/**
*
* @returns
*/
export function getAddonByKey(key: string) {
return request.get(`addon/addon_by_key/${key}`)
}
/**
*
* @param params

View File

@ -0,0 +1,9 @@
import request from '@/utils/request'
/**
*
* @returns
*/
export function getApply(params: Record<string, any>) {
return request.get(`auth/authaddon`, {params})
}

View File

@ -3,10 +3,9 @@ import request from '@/utils/request'
/**
*
* @param params
* @param app_type
*/
export function login(params: Record<string, any>, app_type: string) {
return request.get(`login/${app_type}`, {params})
export function login(params: Record<string, any>) {
return request.get('login', { params })
}
/**
@ -31,4 +30,12 @@ export function getSiteInfo() {
*/
export function getLoginConfig() {
return request.get('login/config')
}
/**
*
* @returns
*/
export function setStarAddon(params: Record<string, any>) {
return request.post('auth/appstar', params)
}

View File

@ -22,7 +22,6 @@ export function getAdminAuthinfo() {
}
/**
*
* @returns
@ -33,7 +32,6 @@ export function getModule() {
/**
*
* @param params
* @returns
*/
export function getModuleVersion() {
@ -42,7 +40,7 @@ export function getModuleVersion() {
/**
*
* @param params
* @param addon
* @returns
*/
export function downloadVersion(addon) {

38
admin/src/app/api/pay.ts Normal file
View File

@ -0,0 +1,38 @@
import request from '@/utils/request'
/***************************************************** 账单列表 **************************************************/
/**
*
* @param params
* @returns
*/
export function getAccountList(params: Record<string, any>) {
return request.get(`pay/account`, {params})
}
/**
*
* @param id
*/
export function getAccountInfo(id: number) {
return request.get(`pay/account/${id}`)
}
/**
*
* @returns
*/
export function getAccountStat() {
return request.get(`pay/account/stat`)
}
/**
*
* @returns
*/
export function getAccountType() {
return request.get(`pay/account/type`)
}

View File

@ -61,6 +61,13 @@ export function deleteRole(roleId: number) {
return request.delete(`sys/role/${roleId}`, { showSuccessMessage: true })
}
/**
*
* @param params
*/
export function edstatus(params: Record<string, any>) {
return request.put(`sys/role/status/${params.role_id}/${params.status}`, { showSuccessMessage: true })
}
/**
*
* @returns
@ -69,14 +76,34 @@ export function allRole() {
return request.get('sys/role/all')
}
/**
*
* @returns
*/
export function getSystem() {
return request.get(`sys/menu/system_menu`)
}
/**
*
*/
export function getAddonList() {
return request.get(`app/getAddonList`)
}
/**
*
* @param key
*/
export function getaddonMenu(key: any) {
return request.get(`sys/menu/addon_menu/${key}`)
}
/***************************************************** 全部菜单 ****************************************************/
/**
*
* @returns
*/
export function getMenus(type: string) {
return request.get(`sys/menu/${type}`)
export function getMenus() {
return request.get(`sys/menu`)
}
/**
@ -103,7 +130,6 @@ export function addMenu(params: Record<string, any>) {
export function editMenu(params: Record<string, any>) {
return request.put(`sys/menu/${params.menu_key}`, params, { showSuccessMessage: true })
}
/**
*
* @param menu_key
@ -111,7 +137,20 @@ export function editMenu(params: Record<string, any>) {
export function deleteMenu(menu_key: string) {
return request.delete(`sys/menu/${menu_key}`, { showSuccessMessage: true })
}
/**
*
*
*/
export function getSystemMenu() {
return request.get(`sys/menu/system_menu`)
}
/**
*
*
*/
export function getAddonMenu(key:any) {
return request.get(`sys/menu/addon_menu/${key}`)
}
/***************************************************** 站点菜单 ****************************************************/
/**
@ -126,7 +165,7 @@ export function getSiteMenus() {
/***************************************************** 设置 ****************************************************/
/**
*
* []
* @returns
*/
export function getWebsite() {
@ -134,7 +173,7 @@ export function getWebsite() {
}
/**
*
* []
* @returns
*/
export function getWebConfig() {
@ -147,7 +186,7 @@ export function getWebConfig() {
* @returns
*/
export function setWebsite(params: Record<string, any>) {
return request.put(`sys/config/website`, params, { showSuccessMessage: true })
return request.post(`sys/config/website`, params, { showSuccessMessage: true })
}
/**
@ -536,15 +575,6 @@ export function clearSchemaCache(params: Record<string, any>) {
return request.post(`sys/schema/clear`, {}, { showSuccessMessage: true })
}
/***************************************************** 获取应用 ****************************************************/
/**
*
*/
export function getAppMange() {
return request.get(`sys/applist`)
}
/***************************************************** 地图设置 ****************************************************/
/**
@ -576,22 +606,6 @@ export function setIndexList(params: Record<string, any>) {
return request.put(`sys/config/site_index`, params, { showSuccessMessage: true })
}
/**
*
* @returns
*/
export function getLayouts() {
return request.get('sys/layout')
}
/**
*
* @returns
*/
export function setLayout(key: string) {
return request.put('sys/layout', { key }, { showSuccessMessage: true })
}
/**
*
*/
@ -621,3 +635,10 @@ export function payAuditRefuse(params: Record<string, any>) {
export function getPayDetail(id: number) {
return request.get(`pay/detail/${id}`)
}
/**
*
*/
export function getWapIndexList(params: Record<string, any>) {
return request.get('sys/config/wap_index', { params })
}

163
admin/src/app/api/tools.ts Normal file
View File

@ -0,0 +1,163 @@
import request from '@/utils/request'
/***************************************************** 插件开发 ****************************************************/
/**
*
* @returns
*/
export function getaddonDevelop(params: Record<string, any>) {
return request.get(`addon_develop`,{params});
}
/**
*
* @returns
*/
export function getAddontype() {
return request.get(`addontype`);
}
/**
*
* @returns
*/
export function getAddonDevelop(key:any) {
return request.get(`addon_develop/${key}`)
}
/**
* key是否存在
* @returns
*/
export function getAddonDevelopCheck(key:any) {
return request.get(`addon_develop/check/${key}`)
}
/**
*
* @param params
* @returns
*/
export function addAddonDevelop(key:any,params: Record<string, any>) {
return request.post(`addon_develop/${key}`, params)
}
/**
*
* @param params
* @returns
*/
export function editAddonDevelop(key:any,params: Record<string, any>) {
return request.put(`addon_develop/${key}`, params)
}
/**
*
* @param id
* @returns
*/
export function deleteAddonDevelop(key: any) {
return request.delete(`addon_develop/${key}`, {showSuccessMessage: true})
}
/**
*
* @returns
*/
export function addonDevelopBuild(key:any) {
return request.post(`addon_develop/build/${key}`)
}
/**
*
* @returns
*/
export function addonDevelopDownload(key:any) {
return request.post(`addon_develop/download/${key}`,{},{ "responseType": "blob" })
}
/***************************************************** 代码生成 ****************************************************/
/**
*
* @param params
* @returns
*/
export function getGenerateTableList(params: Record<string, any>) {
return request.get(`generator/generator`, {params})
}
/**
*
* @param id id
* @returns
*/
export function getGenerateTableInfo(id: number) {
return request.get(`generator/generator/${id}`);
}
/**
*
* @param params
* @returns
*/
export function addGenerateTable(params: Record<string, any>) {
return request.post('generator/generator', params, {showSuccessMessage: true})
}
/**
*
* @param params
*/
export function editGenerateTable(params: Record<string, any>) {
return request.put(`generator/generator/${params.id}`, params)
}
/**
*
* @param id
* @returns
*/
export function deleteGenerateTable(id: number) {
return request.delete(`generator/generator/${id}`, {showSuccessMessage: true})
}
/**
*
* @param params
* @returns
*/
export function generateCreate(params: Record<string, any>) {
return request.post(`generator/download`, params)
}
/**
*
* @param params
* @returns
*/
export function generatePreview(id: number) {
return request.get(`generator/preview/${id}`)
}
/**
*
*/
export function generateTable() {
return request.get(`generator/table`)
}
/**
*
*/
export function getSystem() {
return request.get(`sys/system`)
}
/**
*
*/
export function getGeneratorAllModel(params:any) {
return request.get(`generator/all_model`,params)
}
/**
*
*/
export function getGeneratorTableColumn(params:any){
return request.get(`generator/table_column`,params)
}
/**
*
*/
export function generatorCheckFile(params: Record<string, any>){
return request.get(`generator/check_file`,{params})
}

73
admin/src/app/api/user.ts Normal file
View File

@ -0,0 +1,73 @@
import request from '@/utils/request'
//当前接口用户指系统整体用户管理,站内用户添加,编辑,详情,操作日志,请查看站点内部相关接口
/***************************************************** 用户 ****************************************************/
/**
*
* @param params
* @returns
*/
export function getUserList(params: Record<string, any>) {
return request.get(`user`, { params })
}
/**
*
* @param uid uid
* @returns
*/
export function getUserInfo(uid: number) {
return request.get(`user/${uid}`);
}
/**
*
* @param params
* @returns
*/
export function addUser(params: Record<string, any>) {
return request.post('user', params, { showSuccessMessage: true })
}
/**
*
* @param params
*/
export function editUser(params: Record<string, any>) {
return request.put(`user/${params.uid}`, params, { showSuccessMessage: true })
}
/**
*
*/
export function lockUser(uid: number) {
return request.put(`user/lock/${uid}`, {}, { showSuccessMessage: true })
}
/**
*
*/
export function unlockUser(uid: number) {
return request.put(`user/unlock/${uid}`, {}, { showSuccessMessage: true })
}
/***************************************************** 操作日志 **************************************************/
/**
*
* @param params
* @returns
*/
export function getLogList(params: Record<string, any>) {
return request.get(`user/userlog`, { params })
}
/**
*
* @param id
*/
export function getLogInfo(id: number) {
return request.get(`user/userlog/${id}`)
}

View File

@ -14,7 +14,7 @@ export function getWeappConfig() {
* @returns
*/
export function setWeappConfig(params: Record<string, any>) {
return request.put('weapp/config', params, {showSuccessMessage: true})
return request.put('weapp/config', params, { showSuccessMessage: true })
}
/**
@ -31,9 +31,34 @@ export function getTemplateList() {
* @returns
*/
export function getBatchAcquisition(params: Record<string, any>) {
return request.put('weapp/template/sync', params, {showSuccessMessage: true})
return request.put('weapp/template/sync', params, { showSuccessMessage: true })
}
/**
*
* @param params
* @returns
*/
export function setWeappVersion(params: Record<string, any>) {
return request.post('weapp/version', params, { showSuccessMessage: true })
}
/**
*
* @param params
* @returns
*/
export function getWeappPreview() {
return request.get('weapp/preview')
}
/**
*
* @param params
* @returns
*/
export function getWeappVersionList(params: Record<string, any>) {
return request.get('weapp/version', { params })
}
/***************************************************** 管理端 ****************************************************/
/**
@ -42,7 +67,7 @@ export function getBatchAcquisition(params: Record<string, any>) {
* @returns
*/
export function uploadVersion(params: Record<string, any>) {
return request.put('applet/upload', params, {showSuccessMessage: true})
return request.put('applet/upload', params, { showSuccessMessage: true })
}
/**
@ -51,7 +76,7 @@ export function uploadVersion(params: Record<string, any>) {
* @returns
*/
export function addVersion(params: Record<string, any>) {
return request.post('applet/version', params, {showSuccessMessage: true})
return request.post('applet/version', params, { showSuccessMessage: true })
}
/**
@ -60,7 +85,7 @@ export function addVersion(params: Record<string, any>) {
* @returns
*/
export function getVersionList(params: Record<string, any>) {
return request.get('applet/version', {params})
return request.get('applet/version', { params })
}
/**
@ -78,7 +103,7 @@ export function getVersionInfo(id: string) {
* @returns
*/
export function editVersion(params: Record<string, any>) {
return request.put(`applet/version/${params.id}`, params, {showSuccessMessage: true})
return request.put(`applet/version/${params.id}`, params, { showSuccessMessage: true })
}
/**
@ -97,4 +122,13 @@ export function deleteVersion(id: string) {
*/
export function versionDown(id: string) {
return request.get(`applet/version/download/${id}`, { "responseType": "blob" })
}
/**
*
* @param params
* @returns
*/
export function addProcess(params: Record<string, any>) {
return request.post('weapp/examine', params, { showSuccessMessage: true })
}

View File

Before

Width:  |  Height:  |  Size: 54 KiB

After

Width:  |  Height:  |  Size: 54 KiB

View File

Before

Width:  |  Height:  |  Size: 156 KiB

After

Width:  |  Height:  |  Size: 156 KiB

View File

Before

Width:  |  Height:  |  Size: 907 B

After

Width:  |  Height:  |  Size: 907 B

View File

Before

Width:  |  Height:  |  Size: 544 B

After

Width:  |  Height:  |  Size: 544 B

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

Before

Width:  |  Height:  |  Size: 455 B

After

Width:  |  Height:  |  Size: 455 B

View File

Before

Width:  |  Height:  |  Size: 843 B

After

Width:  |  Height:  |  Size: 843 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

Before

Width:  |  Height:  |  Size: 108 KiB

After

Width:  |  Height:  |  Size: 108 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

Before

Width:  |  Height:  |  Size: 655 KiB

After

Width:  |  Height:  |  Size: 655 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

View File

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

View File

Before

Width:  |  Height:  |  Size: 7.8 KiB

After

Width:  |  Height:  |  Size: 7.8 KiB

View File

Before

Width:  |  Height:  |  Size: 78 KiB

After

Width:  |  Height:  |  Size: 78 KiB

View File

Before

Width:  |  Height:  |  Size: 88 KiB

After

Width:  |  Height:  |  Size: 88 KiB

View File

Before

Width:  |  Height:  |  Size: 673 B

After

Width:  |  Height:  |  Size: 673 B

View File

Before

Width:  |  Height:  |  Size: 605 B

After

Width:  |  Height:  |  Size: 605 B

View File

Before

Width:  |  Height:  |  Size: 392 B

After

Width:  |  Height:  |  Size: 392 B

View File

Before

Width:  |  Height:  |  Size: 897 B

After

Width:  |  Height:  |  Size: 897 B

View File

Before

Width:  |  Height:  |  Size: 8.2 KiB

After

Width:  |  Height:  |  Size: 8.2 KiB

View File

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

Before

Width:  |  Height:  |  Size: 6.2 KiB

After

Width:  |  Height:  |  Size: 6.2 KiB

View File

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

Before

Width:  |  Height:  |  Size: 8.0 KiB

After

Width:  |  Height:  |  Size: 8.0 KiB

View File

Before

Width:  |  Height:  |  Size: 773 B

After

Width:  |  Height:  |  Size: 773 B

View File

Before

Width:  |  Height:  |  Size: 550 B

After

Width:  |  Height:  |  Size: 550 B

View File

Before

Width:  |  Height:  |  Size: 8.0 KiB

After

Width:  |  Height:  |  Size: 8.0 KiB

View File

Before

Width:  |  Height:  |  Size: 8.3 KiB

After

Width:  |  Height:  |  Size: 8.3 KiB

View File

Before

Width:  |  Height:  |  Size: 157 B

After

Width:  |  Height:  |  Size: 157 B

View File

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

View File

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

View File

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

View File

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

View File

Before

Width:  |  Height:  |  Size: 44 KiB

After

Width:  |  Height:  |  Size: 44 KiB

View File

Before

Width:  |  Height:  |  Size: 8.4 KiB

After

Width:  |  Height:  |  Size: 8.4 KiB

View File

Before

Width:  |  Height:  |  Size: 47 KiB

After

Width:  |  Height:  |  Size: 47 KiB

View File

Before

Width:  |  Height:  |  Size: 113 KiB

After

Width:  |  Height:  |  Size: 113 KiB

View File

Before

Width:  |  Height:  |  Size: 1.7 MiB

After

Width:  |  Height:  |  Size: 1.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 172 KiB

View File

Before

Width:  |  Height:  |  Size: 32 KiB

After

Width:  |  Height:  |  Size: 32 KiB

View File

Before

Width:  |  Height:  |  Size: 87 KiB

After

Width:  |  Height:  |  Size: 87 KiB

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

Before

Width:  |  Height:  |  Size: 127 KiB

After

Width:  |  Height:  |  Size: 127 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

View File

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 112 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Some files were not shown because too many files have changed in this diff Show More