修改积分商城商品显示问题1 #35

Closed
free wants to merge 1 commits from sjy-one into master
520 changed files with 8513 additions and 8342 deletions

View File

@ -36,14 +36,14 @@ steps: # 定义流水线执行步骤,这些步骤将顺序执行
- chmod +x push.sh - chmod +x push.sh
- ./push.sh - ./push.sh
- scp run.sh root@1.14.205.126:/zymail/build - scp run.sh root@1.14.205.126:/zymail/build
# - ls # - ls
# - scp -r /zymail/maven/build root@1.14.205.126:/zymail # - scp -r /zymail/maven/build root@1.14.205.126:/zymail
# - ssh root@1.14.205.126 # - ssh root@1.14.205.126
# - ls # - ls
# - chmod +x run.sh # 更改为可执行脚本 # - chmod +x run.sh # 更改为可执行脚本
# - ./run.sh # 运行脚本打包应用镜像并运行 # - ./run.sh # 运行脚本打包应用镜像并运行
- name: build-start - name: build-start
image: appleboy/drone-ssh # SSH工具镜像 image: appleboy/drone-ssh # SSH工具镜像
@ -63,7 +63,7 @@ steps: # 定义流水线执行步骤,这些步骤将顺序执行
command_timeout: 5m # 远程执行命令超时时间 command_timeout: 5m # 远程执行命令超时时间
script: script:
# - ls # - ls
- cd /zymail/build - cd /zymail/build
- chmod +x run.sh # 更改为可执行脚本 - chmod +x run.sh # 更改为可执行脚本
- ./run.sh # 运行脚本打包应用镜像并运行 - ./run.sh # 运行脚本打包应用镜像并运行

View File

@ -3,7 +3,6 @@
"baseUrl": "http://127.0.0.1:48080/admin-api", "baseUrl": "http://127.0.0.1:48080/admin-api",
"token": "test1", "token": "test1",
"adminTenentId": "1", "adminTenentId": "1",
"appApi": "http://127.0.0.1:48080/app-api", "appApi": "http://127.0.0.1:48080/app-api",
"appToken": "test247", "appToken": "test247",
"appTenentId": "1" "appTenentId": "1"
@ -12,7 +11,6 @@
"baseUrl": "http://127.0.0.1:8888/admin-api", "baseUrl": "http://127.0.0.1:8888/admin-api",
"token": "test1", "token": "test1",
"adminTenentId": "1", "adminTenentId": "1",
"appApi": "http://127.0.0.1:8888/app-api", "appApi": "http://127.0.0.1:8888/app-api",
"appToken": "test1", "appToken": "test1",
"appTenantId": "1" "appTenantId": "1"

View File

@ -50,7 +50,7 @@ pipeline {
stage('部署') { stage('部署') {
steps { steps {
sh 'cp -f ' + ' bin/deploy.sh ' + "${env.APP_DEPLOY_BASE_DIR}" + "${env.APP_NAME}" sh 'cp -f ' + ' bin/deploy.sh ' + "${env.APP_DEPLOY_BASE_DIR}" + "${env.APP_NAME}"
sh 'cp -f ' + "${env.APP_NAME}" + '/target/*.jar ' + "${env.APP_DEPLOY_BASE_DIR}" + "${env.APP_NAME}" +'/build/' sh 'cp -f ' + "${env.APP_NAME}" + '/target/*.jar ' + "${env.APP_DEPLOY_BASE_DIR}" + "${env.APP_NAME}" + '/build/'
archiveArtifacts "${env.APP_NAME}" + '/target/*.jar' archiveArtifacts "${env.APP_NAME}" + '/target/*.jar'
sh 'chmod +x ' + "${env.APP_DEPLOY_BASE_DIR}" + "${env.APP_NAME}" + '/deploy.sh' sh 'chmod +x ' + "${env.APP_DEPLOY_BASE_DIR}" + "${env.APP_NAME}" + '/deploy.sh'
sh 'bash ' + "${env.APP_DEPLOY_BASE_DIR}" + "${env.APP_NAME}" + '/deploy.sh' sh 'bash ' + "${env.APP_DEPLOY_BASE_DIR}" + "${env.APP_NAME}" + '/deploy.sh'

View File

@ -15,6 +15,7 @@ import java.util.Properties;
import java.util.Set; import java.util.Set;
import java.util.regex.Matcher; import java.util.regex.Matcher;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import liquibase.CatalogAndSchema; import liquibase.CatalogAndSchema;
import liquibase.Scope; import liquibase.Scope;
import liquibase.database.AbstractJdbcDatabase; import liquibase.database.AbstractJdbcDatabase;
@ -63,7 +64,7 @@ public class DmDatabase extends AbstractJdbcDatabase {
*/ */
@Override @Override
public String getDefaultDriver(String url) { public String getDefaultDriver(String url) {
if(url.startsWith("jdbc:dm")) { if (url.startsWith("jdbc:dm")) {
return "dm.jdbc.driver.DmDriver"; return "dm.jdbc.driver.DmDriver";
} }
@ -435,10 +436,10 @@ public class DmDatabase extends AbstractJdbcDatabase {
"USLOG$", "USLOG$",
"SYS_FBA")); "SYS_FBA"));
for (int i = 0;i<clauses.size(); i++) { for (int i = 0; i < clauses.size(); i++) {
clauses.set(i, tableNameColumn+" NOT LIKE '"+clauses.get(i)+"%'"); clauses.set(i, tableNameColumn + " NOT LIKE '" + clauses.get(i) + "%'");
} }
return "("+ StringUtil.join(clauses, " AND ") + ")"; return "(" + StringUtil.join(clauses, " AND ") + ")";
} }
@Override @Override

View File

@ -133,7 +133,9 @@ public abstract class AbstractEngineConfiguration {
protected final Logger logger = LoggerFactory.getLogger(getClass()); protected final Logger logger = LoggerFactory.getLogger(getClass());
/** The tenant id indicating 'no tenant' */ /**
* The tenant id indicating 'no tenant'
*/
public static final String NO_TENANT_ID = ""; public static final String NO_TENANT_ID = "";
/** /**
@ -261,9 +263,9 @@ public abstract class AbstractEngineConfiguration {
/** /**
* Flag that can be set to configure or not a relational database is used. This is useful for custom implementations that do not use relational databases at all. * Flag that can be set to configure or not a relational database is used. This is useful for custom implementations that do not use relational databases at all.
* * <p>
* If true (default), the {@link AbstractEngineConfiguration#getDatabaseSchemaUpdate()} value will be used to determine what needs to happen wrt the database schema. * If true (default), the {@link AbstractEngineConfiguration#getDatabaseSchemaUpdate()} value will be used to determine what needs to happen wrt the database schema.
* * <p>
* If false, no validation or schema creation will be done. That means that the database schema must have been created 'manually' before but the engine does not validate whether the schema is * If false, no validation or schema creation will be done. That means that the database schema must have been created 'manually' before but the engine does not validate whether the schema is
* correct. The {@link AbstractEngineConfiguration#getDatabaseSchemaUpdate()} value will not be used. * correct. The {@link AbstractEngineConfiguration#getDatabaseSchemaUpdate()} value will not be used.
*/ */
@ -287,7 +289,7 @@ public abstract class AbstractEngineConfiguration {
/** /**
* Escape character for doing wildcard searches. * Escape character for doing wildcard searches.
* * <p>
* This will be added at then end of queries that include for example a LIKE clause. For example: SELECT * FROM table WHERE column LIKE '%\%%' ESCAPE '\'; * This will be added at then end of queries that include for example a LIKE clause. For example: SELECT * FROM table WHERE column LIKE '%\%%' ESCAPE '\';
*/ */
protected String databaseWildcardEscapeCharacter; protected String databaseWildcardEscapeCharacter;
@ -956,8 +958,8 @@ public abstract class AbstractEngineConfiguration {
} }
public void initCustomMybatisInterceptors(Configuration configuration) { public void initCustomMybatisInterceptors(Configuration configuration) {
if (customMybatisInterceptors!=null){ if (customMybatisInterceptors != null) {
for (Interceptor interceptor :customMybatisInterceptors){ for (Interceptor interceptor : customMybatisInterceptors) {
configuration.addInterceptor(interceptor); configuration.addInterceptor(interceptor);
} }
} }

View File

@ -25,41 +25,41 @@ export interface ChatConversationVO {
export const ChatConversationApi = { export const ChatConversationApi = {
// 获得【我的】聊天对话 // 获得【我的】聊天对话
getChatConversationMy: async (id: number) => { getChatConversationMy: async (id: number) => {
return await request.get({ url: `/ai/chat/conversation/get-my?id=${id}` }) return await request.get({url: `/ai/chat/conversation/get-my?id=${id}`})
}, },
// 新增【我的】聊天对话 // 新增【我的】聊天对话
createChatConversationMy: async (data?: ChatConversationVO) => { createChatConversationMy: async (data?: ChatConversationVO) => {
return await request.post({ url: `/ai/chat/conversation/create-my`, data }) return await request.post({url: `/ai/chat/conversation/create-my`, data})
}, },
// 更新【我的】聊天对话 // 更新【我的】聊天对话
updateChatConversationMy: async (data: ChatConversationVO) => { updateChatConversationMy: async (data: ChatConversationVO) => {
return await request.put({ url: `/ai/chat/conversation/update-my`, data }) return await request.put({url: `/ai/chat/conversation/update-my`, data})
}, },
// 删除【我的】聊天对话 // 删除【我的】聊天对话
deleteChatConversationMy: async (id: string) => { deleteChatConversationMy: async (id: string) => {
return await request.delete({ url: `/ai/chat/conversation/delete-my?id=${id}` }) return await request.delete({url: `/ai/chat/conversation/delete-my?id=${id}`})
}, },
// 删除【我的】所有对话,置顶除外 // 删除【我的】所有对话,置顶除外
deleteChatConversationMyByUnpinned: async () => { deleteChatConversationMyByUnpinned: async () => {
return await request.delete({ url: `/ai/chat/conversation/delete-by-unpinned` }) return await request.delete({url: `/ai/chat/conversation/delete-by-unpinned`})
}, },
// 获得【我的】聊天对话列表 // 获得【我的】聊天对话列表
getChatConversationMyList: async () => { getChatConversationMyList: async () => {
return await request.get({ url: `/ai/chat/conversation/my-list` }) return await request.get({url: `/ai/chat/conversation/my-list`})
}, },
// 获得对话分页 // 获得对话分页
getChatConversationPage: async (params: any) => { getChatConversationPage: async (params: any) => {
return await request.get({ url: `/ai/chat/conversation/page`, params }) return await request.get({url: `/ai/chat/conversation/page`, params})
}, },
// 管理员删除消息 // 管理员删除消息
deleteChatConversationByAdmin: async (id: number) => { deleteChatConversationByAdmin: async (id: number) => {
return await request.delete({ url: `/ai/chat/conversation/delete-by-admin?id=${id}` }) return await request.delete({url: `/ai/chat/conversation/delete-by-admin?id=${id}`})
} }
} }

View File

@ -1,7 +1,7 @@
import request from '@/config/axios' import request from '@/config/axios'
import { fetchEventSource } from '@microsoft/fetch-event-source' import {fetchEventSource} from '@microsoft/fetch-event-source'
import { getAccessToken } from '@/utils/auth' import {getAccessToken} from '@/utils/auth'
import { config } from '@/config/axios/config' import {config} from '@/config/axios/config'
// 聊天VO // 聊天VO
export interface ChatMessageVO { export interface ChatMessageVO {
@ -61,7 +61,7 @@ export const ChatMessageApi = {
// 删除消息 // 删除消息
deleteChatMessage: async (id: string) => { deleteChatMessage: async (id: string) => {
return await request.delete({ url: `/ai/chat/message/delete?id=${id}` }) return await request.delete({url: `/ai/chat/message/delete?id=${id}`})
}, },
// 删除指定对话的消息 // 删除指定对话的消息
@ -73,11 +73,11 @@ export const ChatMessageApi = {
// 获得消息分页 // 获得消息分页
getChatMessagePage: async (params: any) => { getChatMessagePage: async (params: any) => {
return await request.get({ url: '/ai/chat/message/page', params }) return await request.get({url: '/ai/chat/message/page', params})
}, },
// 管理员删除消息 // 管理员删除消息
deleteChatMessageByAdmin: async (id: number) => { deleteChatMessageByAdmin: async (id: number) => {
return await request.delete({ url: `/ai/chat/message/delete-by-admin?id=${id}` }) return await request.delete({url: `/ai/chat/message/delete-by-admin?id=${id}`})
} }
} }

View File

@ -54,54 +54,54 @@ export interface ImageMidjourneyButtonsVO {
export const ImageApi = { export const ImageApi = {
// 获取【我的】绘图分页 // 获取【我的】绘图分页
getImagePageMy: async (params: PageParam) => { getImagePageMy: async (params: PageParam) => {
return await request.get({ url: `/ai/image/my-page`, params }) return await request.get({url: `/ai/image/my-page`, params})
}, },
// 获取公开的绘图记录 // 获取公开的绘图记录
getImagePagePublic: async (params) => { getImagePagePublic: async (params) => {
return await request.get({ url: `/ai/image/public-page`, params }) return await request.get({url: `/ai/image/public-page`, params})
}, },
// 获取【我的】绘图记录 // 获取【我的】绘图记录
getImageMy: async (id: number) => { getImageMy: async (id: number) => {
return await request.get({ url: `/ai/image/get-my?id=${id}` }) return await request.get({url: `/ai/image/get-my?id=${id}`})
}, },
// 获取【我的】绘图记录列表 // 获取【我的】绘图记录列表
getImageListMyByIds: async (ids: number[]) => { getImageListMyByIds: async (ids: number[]) => {
return await request.get({ url: `/ai/image/my-list-by-ids`, params: { ids: ids.join(',') } }) return await request.get({url: `/ai/image/my-list-by-ids`, params: {ids: ids.join(',')}})
}, },
// 生成图片 // 生成图片
drawImage: async (data: ImageDrawReqVO) => { drawImage: async (data: ImageDrawReqVO) => {
return await request.post({ url: `/ai/image/draw`, data }) return await request.post({url: `/ai/image/draw`, data})
}, },
// 删除【我的】绘画记录 // 删除【我的】绘画记录
deleteImageMy: async (id: number) => { deleteImageMy: async (id: number) => {
return await request.delete({ url: `/ai/image/delete-my?id=${id}` }) return await request.delete({url: `/ai/image/delete-my?id=${id}`})
}, },
// ================ midjourney 专属 ================ // ================ midjourney 专属 ================
// 【Midjourney】生成图片 // 【Midjourney】生成图片
midjourneyImagine: async (data: ImageMidjourneyImagineReqVO) => { midjourneyImagine: async (data: ImageMidjourneyImagineReqVO) => {
return await request.post({ url: `/ai/image/midjourney/imagine`, data }) return await request.post({url: `/ai/image/midjourney/imagine`, data})
}, },
// 【Midjourney】Action 操作(二次生成图片) // 【Midjourney】Action 操作(二次生成图片)
midjourneyAction: async (data: ImageMidjourneyActionVO) => { midjourneyAction: async (data: ImageMidjourneyActionVO) => {
return await request.post({ url: `/ai/image/midjourney/action`, data }) return await request.post({url: `/ai/image/midjourney/action`, data})
}, },
// ================ 绘图管理 ================ // ================ 绘图管理 ================
// 查询绘画分页 // 查询绘画分页
getImagePage: async (params: any) => { getImagePage: async (params: any) => {
return await request.get({ url: `/ai/image/page`, params }) return await request.get({url: `/ai/image/page`, params})
}, },
// 更新绘画发布状态 // 更新绘画发布状态
updateImage: async (data: any) => { updateImage: async (data: any) => {
return await request.put({ url: '/ai/image/update-public-status', data }) return await request.put({url: '/ai/image/update-public-status', data})
}, },
// 删除绘画 // 删除绘画
deleteImage: async (id: number) => { deleteImage: async (id: number) => {
return await request.delete({ url: `/ai/image/delete?id=` + id }) return await request.delete({url: `/ai/image/delete?id=` + id})
} }
} }

View File

@ -14,31 +14,31 @@ export interface ApiKeyVO {
export const ApiKeyApi = { export const ApiKeyApi = {
// 查询 API 密钥分页 // 查询 API 密钥分页
getApiKeyPage: async (params: any) => { getApiKeyPage: async (params: any) => {
return await request.get({ url: `/ai/api-key/page`, params }) return await request.get({url: `/ai/api-key/page`, params})
}, },
// 获得 API 密钥列表 // 获得 API 密钥列表
getApiKeySimpleList: async () => { getApiKeySimpleList: async () => {
return await request.get({ url: `/ai/api-key/simple-list` }) return await request.get({url: `/ai/api-key/simple-list`})
}, },
// 查询 API 密钥详情 // 查询 API 密钥详情
getApiKey: async (id: number) => { getApiKey: async (id: number) => {
return await request.get({ url: `/ai/api-key/get?id=` + id }) return await request.get({url: `/ai/api-key/get?id=` + id})
}, },
// 新增 API 密钥 // 新增 API 密钥
createApiKey: async (data: ApiKeyVO) => { createApiKey: async (data: ApiKeyVO) => {
return await request.post({ url: `/ai/api-key/create`, data }) return await request.post({url: `/ai/api-key/create`, data})
}, },
// 修改 API 密钥 // 修改 API 密钥
updateApiKey: async (data: ApiKeyVO) => { updateApiKey: async (data: ApiKeyVO) => {
return await request.put({ url: `/ai/api-key/update`, data }) return await request.put({url: `/ai/api-key/update`, data})
}, },
// 删除 API 密钥 // 删除 API 密钥
deleteApiKey: async (id: number) => { deleteApiKey: async (id: number) => {
return await request.delete({ url: `/ai/api-key/delete?id=` + id }) return await request.delete({url: `/ai/api-key/delete?id=` + id})
} }
} }

View File

@ -18,7 +18,7 @@ export interface ChatModelVO {
export const ChatModelApi = { export const ChatModelApi = {
// 查询聊天模型分页 // 查询聊天模型分页
getChatModelPage: async (params: any) => { getChatModelPage: async (params: any) => {
return await request.get({ url: `/ai/chat-model/page`, params }) return await request.get({url: `/ai/chat-model/page`, params})
}, },
// 获得聊天模型列表 // 获得聊天模型列表
@ -33,21 +33,21 @@ export const ChatModelApi = {
// 查询聊天模型详情 // 查询聊天模型详情
getChatModel: async (id: number) => { getChatModel: async (id: number) => {
return await request.get({ url: `/ai/chat-model/get?id=` + id }) return await request.get({url: `/ai/chat-model/get?id=` + id})
}, },
// 新增聊天模型 // 新增聊天模型
createChatModel: async (data: ChatModelVO) => { createChatModel: async (data: ChatModelVO) => {
return await request.post({ url: `/ai/chat-model/create`, data }) return await request.post({url: `/ai/chat-model/create`, data})
}, },
// 修改聊天模型 // 修改聊天模型
updateChatModel: async (data: ChatModelVO) => { updateChatModel: async (data: ChatModelVO) => {
return await request.put({ url: `/ai/chat-model/update`, data }) return await request.put({url: `/ai/chat-model/update`, data})
}, },
// 删除聊天模型 // 删除聊天模型
deleteChatModel: async (id: number) => { deleteChatModel: async (id: number) => {
return await request.delete({ url: `/ai/chat-model/delete?id=` + id }) return await request.delete({url: `/ai/chat-model/delete?id=` + id})
} }
} }

View File

@ -28,53 +28,53 @@ export interface ChatRolePageReqVO {
export const ChatRoleApi = { export const ChatRoleApi = {
// 查询聊天角色分页 // 查询聊天角色分页
getChatRolePage: async (params: any) => { getChatRolePage: async (params: any) => {
return await request.get({ url: `/ai/chat-role/page`, params }) return await request.get({url: `/ai/chat-role/page`, params})
}, },
// 查询聊天角色详情 // 查询聊天角色详情
getChatRole: async (id: number) => { getChatRole: async (id: number) => {
return await request.get({ url: `/ai/chat-role/get?id=` + id }) return await request.get({url: `/ai/chat-role/get?id=` + id})
}, },
// 新增聊天角色 // 新增聊天角色
createChatRole: async (data: ChatRoleVO) => { createChatRole: async (data: ChatRoleVO) => {
return await request.post({ url: `/ai/chat-role/create`, data }) return await request.post({url: `/ai/chat-role/create`, data})
}, },
// 修改聊天角色 // 修改聊天角色
updateChatRole: async (data: ChatRoleVO) => { updateChatRole: async (data: ChatRoleVO) => {
return await request.put({ url: `/ai/chat-role/update`, data }) return await request.put({url: `/ai/chat-role/update`, data})
}, },
// 删除聊天角色 // 删除聊天角色
deleteChatRole: async (id: number) => { deleteChatRole: async (id: number) => {
return await request.delete({ url: `/ai/chat-role/delete?id=` + id }) return await request.delete({url: `/ai/chat-role/delete?id=` + id})
}, },
// ======= chat 聊天 // ======= chat 聊天
// 获取 my role // 获取 my role
getMyPage: async (params: ChatRolePageReqVO) => { getMyPage: async (params: ChatRolePageReqVO) => {
return await request.get({ url: `/ai/chat-role/my-page`, params}) return await request.get({url: `/ai/chat-role/my-page`, params})
}, },
// 获取角色分类 // 获取角色分类
getCategoryList: async () => { getCategoryList: async () => {
return await request.get({ url: `/ai/chat-role/category-list`}) return await request.get({url: `/ai/chat-role/category-list`})
}, },
// 创建角色 // 创建角色
createMy: async (data: ChatRoleVO) => { createMy: async (data: ChatRoleVO) => {
return await request.post({ url: `/ai/chat-role/create-my`, data}) return await request.post({url: `/ai/chat-role/create-my`, data})
}, },
// 更新角色 // 更新角色
updateMy: async (data: ChatRoleVO) => { updateMy: async (data: ChatRoleVO) => {
return await request.put({ url: `/ai/chat-role/update-my`, data}) return await request.put({url: `/ai/chat-role/update-my`, data})
}, },
// 删除角色 my // 删除角色 my
deleteMy: async (id: number) => { deleteMy: async (id: number) => {
return await request.delete({ url: `/ai/chat-role/delete-my?id=` + id }) return await request.delete({url: `/ai/chat-role/delete-my?id=` + id})
}, },
} }

View File

@ -26,16 +26,16 @@ export interface MusicVO {
export const MusicApi = { export const MusicApi = {
// 查询音乐分页 // 查询音乐分页
getMusicPage: async (params: any) => { getMusicPage: async (params: any) => {
return await request.get({ url: `/ai/music/page`, params }) return await request.get({url: `/ai/music/page`, params})
}, },
// 更新音乐 // 更新音乐
updateMusic: async (data: any) => { updateMusic: async (data: any) => {
return await request.put({ url: '/ai/music/update', data }) return await request.put({url: '/ai/music/update', data})
}, },
// 删除音乐 // 删除音乐
deleteMusic: async (id: number) => { deleteMusic: async (id: number) => {
return await request.delete({ url: `/ai/music/delete?id=` + id }) return await request.delete({url: `/ai/music/delete?id=` + id})
} }
} }

View File

@ -1,8 +1,8 @@
import { fetchEventSource } from '@microsoft/fetch-event-source' import {fetchEventSource} from '@microsoft/fetch-event-source'
import { getAccessToken } from '@/utils/auth' import {getAccessToken} from '@/utils/auth'
import { config } from '@/config/axios/config' import {config} from '@/config/axios/config'
import { AiWriteTypeEnum } from '@/views/ai/utils/constants' import {AiWriteTypeEnum} from '@/views/ai/utils/constants'
import request from '@/config/axios' import request from '@/config/axios'
export interface WriteVO { export interface WriteVO {
@ -76,10 +76,10 @@ export const WriteApi = {
}, },
// 获取写作列表 // 获取写作列表
getWritePage: (params: AiWritePageReqVO) => { getWritePage: (params: AiWritePageReqVO) => {
return request.get<PageResult<AiWriteRespVo[]>>({ url: `/ai/write/page`, params }) return request.get<PageResult<AiWriteRespVo[]>>({url: `/ai/write/page`, params})
}, },
// 删除写作 // 删除写作
deleteWrite(id: number) { deleteWrite(id: number) {
return request.delete({ url: `/ai/write/delete`, params: { id } }) return request.delete({url: `/ai/write/delete`, params: {id}})
} }
} }

View File

@ -13,31 +13,31 @@ export interface CategoryVO {
export const CategoryApi = { export const CategoryApi = {
// 查询流程分类分页 // 查询流程分类分页
getCategoryPage: async (params: any) => { getCategoryPage: async (params: any) => {
return await request.get({ url: `/bpm/category/page`, params }) return await request.get({url: `/bpm/category/page`, params})
}, },
// 查询流程分类列表 // 查询流程分类列表
getCategorySimpleList: async () => { getCategorySimpleList: async () => {
return await request.get({ url: `/bpm/category/simple-list` }) return await request.get({url: `/bpm/category/simple-list`})
}, },
// 查询流程分类详情 // 查询流程分类详情
getCategory: async (id: number) => { getCategory: async (id: number) => {
return await request.get({ url: `/bpm/category/get?id=` + id }) return await request.get({url: `/bpm/category/get?id=` + id})
}, },
// 新增流程分类 // 新增流程分类
createCategory: async (data: CategoryVO) => { createCategory: async (data: CategoryVO) => {
return await request.post({ url: `/bpm/category/create`, data }) return await request.post({url: `/bpm/category/create`, data})
}, },
// 修改流程分类 // 修改流程分类
updateCategory: async (data: CategoryVO) => { updateCategory: async (data: CategoryVO) => {
return await request.put({ url: `/bpm/category/update`, data }) return await request.put({url: `/bpm/category/update`, data})
}, },
// 删除流程分类 // 删除流程分类
deleteCategory: async (id: number) => { deleteCategory: async (id: number) => {
return await request.delete({ url: `/bpm/category/delete?id=` + id }) return await request.delete({url: `/bpm/category/delete?id=` + id})
} }
} }

View File

@ -3,7 +3,7 @@ import request from '@/config/axios'
export const getProcessDefinition = async (id?: string, key?: string) => { export const getProcessDefinition = async (id?: string, key?: string) => {
return await request.get({ return await request.get({
url: '/bpm/process-definition/get', url: '/bpm/process-definition/get',
params: { id, key } params: {id, key}
}) })
} }

View File

@ -13,15 +13,15 @@ export type LeaveVO = {
// 创建请假申请 // 创建请假申请
export const createLeave = async (data: LeaveVO) => { export const createLeave = async (data: LeaveVO) => {
return await request.post({ url: '/bpm/oa/leave/create', data: data }) return await request.post({url: '/bpm/oa/leave/create', data: data})
} }
// 获得请假申请 // 获得请假申请
export const getLeave = async (id: number) => { export const getLeave = async (id: number) => {
return await request.get({ url: '/bpm/oa/leave/get?id=' + id }) return await request.get({url: '/bpm/oa/leave/get?id=' + id})
} }
// 获得请假申请分页 // 获得请假申请分页
export const getLeavePage = async (params: PageParam) => { export const getLeavePage = async (params: PageParam) => {
return await request.get({ url: '/bpm/oa/leave/page', params }) return await request.get({url: '/bpm/oa/leave/page', params})
} }

View File

@ -27,15 +27,15 @@ export type ModelVO = {
} }
export const getModelPage = async (params) => { export const getModelPage = async (params) => {
return await request.get({ url: '/bpm/model/page', params }) return await request.get({url: '/bpm/model/page', params})
} }
export const getModel = async (id: number) => { export const getModel = async (id: number) => {
return await request.get({ url: '/bpm/model/get?id=' + id }) return await request.get({url: '/bpm/model/get?id=' + id})
} }
export const updateModel = async (data: ModelVO) => { export const updateModel = async (data: ModelVO) => {
return await request.put({ url: '/bpm/model/update', data: data }) return await request.put({url: '/bpm/model/update', data: data})
} }
// 任务状态修改 // 任务状态修改
@ -44,17 +44,17 @@ export const updateModelState = async (id: number, state: number) => {
id: id, id: id,
state: state state: state
} }
return await request.put({ url: '/bpm/model/update-state', data: data }) return await request.put({url: '/bpm/model/update-state', data: data})
} }
export const createModel = async (data: ModelVO) => { export const createModel = async (data: ModelVO) => {
return await request.post({ url: '/bpm/model/create', data: data }) return await request.post({url: '/bpm/model/create', data: data})
} }
export const deleteModel = async (id: number) => { export const deleteModel = async (id: number) => {
return await request.delete({ url: '/bpm/model/delete?id=' + id }) return await request.delete({url: '/bpm/model/delete?id=' + id})
} }
export const deployModel = async (id: number) => { export const deployModel = async (id: number) => {
return await request.post({ url: '/bpm/model/deploy?id=' + id }) return await request.post({url: '/bpm/model/deploy?id=' + id})
} }

View File

@ -12,31 +12,31 @@ export interface ProcessExpressionVO {
export const ProcessExpressionApi = { export const ProcessExpressionApi = {
// 查询BPM 流程表达式分页 // 查询BPM 流程表达式分页
getProcessExpressionPage: async (params: any) => { getProcessExpressionPage: async (params: any) => {
return await request.get({ url: `/bpm/process-expression/page`, params }) return await request.get({url: `/bpm/process-expression/page`, params})
}, },
// 查询BPM 流程表达式详情 // 查询BPM 流程表达式详情
getProcessExpression: async (id: number) => { getProcessExpression: async (id: number) => {
return await request.get({ url: `/bpm/process-expression/get?id=` + id }) return await request.get({url: `/bpm/process-expression/get?id=` + id})
}, },
// 新增BPM 流程表达式 // 新增BPM 流程表达式
createProcessExpression: async (data: ProcessExpressionVO) => { createProcessExpression: async (data: ProcessExpressionVO) => {
return await request.post({ url: `/bpm/process-expression/create`, data }) return await request.post({url: `/bpm/process-expression/create`, data})
}, },
// 修改BPM 流程表达式 // 修改BPM 流程表达式
updateProcessExpression: async (data: ProcessExpressionVO) => { updateProcessExpression: async (data: ProcessExpressionVO) => {
return await request.put({ url: `/bpm/process-expression/update`, data }) return await request.put({url: `/bpm/process-expression/update`, data})
}, },
// 删除BPM 流程表达式 // 删除BPM 流程表达式
deleteProcessExpression: async (id: number) => { deleteProcessExpression: async (id: number) => {
return await request.delete({ url: `/bpm/process-expression/delete?id=` + id }) return await request.delete({url: `/bpm/process-expression/delete?id=` + id})
}, },
// 导出BPM 流程表达式 Excel // 导出BPM 流程表达式 Excel
exportProcessExpression: async (params) => { exportProcessExpression: async (params) => {
return await request.download({ url: `/bpm/process-expression/export-excel`, params }) return await request.download({url: `/bpm/process-expression/export-excel`, params})
} }
} }

View File

@ -1,5 +1,5 @@
import request from '@/config/axios' import request from '@/config/axios'
import { ProcessDefinitionVO } from '@/api/bpm/model' import {ProcessDefinitionVO} from '@/api/bpm/model'
export type Task = { export type Task = {
id: string id: string
@ -23,15 +23,15 @@ export type ProcessInstanceVO = {
} }
export const getProcessInstanceMyPage = async (params: any) => { export const getProcessInstanceMyPage = async (params: any) => {
return await request.get({ url: '/bpm/process-instance/my-page', params }) return await request.get({url: '/bpm/process-instance/my-page', params})
} }
export const getProcessInstanceManagerPage = async (params: any) => { export const getProcessInstanceManagerPage = async (params: any) => {
return await request.get({ url: '/bpm/process-instance/manager-page', params }) return await request.get({url: '/bpm/process-instance/manager-page', params})
} }
export const createProcessInstance = async (data) => { export const createProcessInstance = async (data) => {
return await request.post({ url: '/bpm/process-instance/create', data: data }) return await request.post({url: '/bpm/process-instance/create', data: data})
} }
export const cancelProcessInstanceByStartUser = async (id: number, reason: string) => { export const cancelProcessInstanceByStartUser = async (id: number, reason: string) => {
@ -39,7 +39,7 @@ export const cancelProcessInstanceByStartUser = async (id: number, reason: strin
id: id, id: id,
reason: reason reason: reason
} }
return await request.delete({ url: '/bpm/process-instance/cancel-by-start-user', data: data }) return await request.delete({url: '/bpm/process-instance/cancel-by-start-user', data: data})
} }
export const cancelProcessInstanceByAdmin = async (id: number, reason: string) => { export const cancelProcessInstanceByAdmin = async (id: number, reason: string) => {
@ -47,13 +47,13 @@ export const cancelProcessInstanceByAdmin = async (id: number, reason: string) =
id: id, id: id,
reason: reason reason: reason
} }
return await request.delete({ url: '/bpm/process-instance/cancel-by-admin', data: data }) return await request.delete({url: '/bpm/process-instance/cancel-by-admin', data: data})
} }
export const getProcessInstance = async (id: string) => { export const getProcessInstance = async (id: string) => {
return await request.get({ url: '/bpm/process-instance/get?id=' + id }) return await request.get({url: '/bpm/process-instance/get?id=' + id})
} }
export const getProcessInstanceCopyPage = async (params: any) => { export const getProcessInstanceCopyPage = async (params: any) => {
return await request.get({ url: '/bpm/process-instance/copy/page', params }) return await request.get({url: '/bpm/process-instance/copy/page', params})
} }

View File

@ -15,26 +15,26 @@ export interface ProcessListenerVO {
export const ProcessListenerApi = { export const ProcessListenerApi = {
// 查询流程监听器分页 // 查询流程监听器分页
getProcessListenerPage: async (params: any) => { getProcessListenerPage: async (params: any) => {
return await request.get({ url: `/bpm/process-listener/page`, params }) return await request.get({url: `/bpm/process-listener/page`, params})
}, },
// 查询流程监听器详情 // 查询流程监听器详情
getProcessListener: async (id: number) => { getProcessListener: async (id: number) => {
return await request.get({ url: `/bpm/process-listener/get?id=` + id }) return await request.get({url: `/bpm/process-listener/get?id=` + id})
}, },
// 新增流程监听器 // 新增流程监听器
createProcessListener: async (data: ProcessListenerVO) => { createProcessListener: async (data: ProcessListenerVO) => {
return await request.post({ url: `/bpm/process-listener/create`, data }) return await request.post({url: `/bpm/process-listener/create`, data})
}, },
// 修改流程监听器 // 修改流程监听器
updateProcessListener: async (data: ProcessListenerVO) => { updateProcessListener: async (data: ProcessListenerVO) => {
return await request.put({ url: `/bpm/process-listener/update`, data }) return await request.put({url: `/bpm/process-listener/update`, data})
}, },
// 删除流程监听器 // 删除流程监听器
deleteProcessListener: async (id: number) => { deleteProcessListener: async (id: number) => {
return await request.delete({ url: `/bpm/process-listener/delete?id=` + id }) return await request.delete({url: `/bpm/process-listener/delete?id=` + id})
} }
} }

View File

@ -5,23 +5,23 @@ export type TaskVO = {
} }
export const getTaskTodoPage = async (params: any) => { export const getTaskTodoPage = async (params: any) => {
return await request.get({ url: '/bpm/task/todo-page', params }) return await request.get({url: '/bpm/task/todo-page', params})
} }
export const getTaskDonePage = async (params: any) => { export const getTaskDonePage = async (params: any) => {
return await request.get({ url: '/bpm/task/done-page', params }) return await request.get({url: '/bpm/task/done-page', params})
} }
export const getTaskManagerPage = async (params: any) => { export const getTaskManagerPage = async (params: any) => {
return await request.get({ url: '/bpm/task/manager-page', params }) return await request.get({url: '/bpm/task/manager-page', params})
} }
export const approveTask = async (data: any) => { export const approveTask = async (data: any) => {
return await request.put({ url: '/bpm/task/approve', data }) return await request.put({url: '/bpm/task/approve', data})
} }
export const rejectTask = async (data: any) => { export const rejectTask = async (data: any) => {
return await request.put({ url: '/bpm/task/reject', data }) return await request.put({url: '/bpm/task/reject', data})
} }
export const getTaskListByProcessInstanceId = async (processInstanceId: string) => { export const getTaskListByProcessInstanceId = async (processInstanceId: string) => {
@ -32,35 +32,35 @@ export const getTaskListByProcessInstanceId = async (processInstanceId: string)
// 获取所有可回退的节点 // 获取所有可回退的节点
export const getTaskListByReturn = async (id: string) => { export const getTaskListByReturn = async (id: string) => {
return await request.get({ url: '/bpm/task/list-by-return', params: { id } }) return await request.get({url: '/bpm/task/list-by-return', params: {id}})
} }
// 回退 // 回退
export const returnTask = async (data: any) => { export const returnTask = async (data: any) => {
return await request.put({ url: '/bpm/task/return', data }) return await request.put({url: '/bpm/task/return', data})
} }
// 委派 // 委派
export const delegateTask = async (data: any) => { export const delegateTask = async (data: any) => {
return await request.put({ url: '/bpm/task/delegate', data }) return await request.put({url: '/bpm/task/delegate', data})
} }
// 转派 // 转派
export const transferTask = async (data: any) => { export const transferTask = async (data: any) => {
return await request.put({ url: '/bpm/task/transfer', data }) return await request.put({url: '/bpm/task/transfer', data})
} }
// 加签 // 加签
export const signCreateTask = async (data: any) => { export const signCreateTask = async (data: any) => {
return await request.put({ url: '/bpm/task/create-sign', data }) return await request.put({url: '/bpm/task/create-sign', data})
} }
// 减签 // 减签
export const signDeleteTask = async (data: any) => { export const signDeleteTask = async (data: any) => {
return await request.delete({ url: '/bpm/task/delete-sign', data }) return await request.delete({url: '/bpm/task/delete-sign', data})
} }
// 获取减签任务列表 // 获取减签任务列表
export const getChildrenTaskList = async (id: string) => { export const getChildrenTaskList = async (id: string) => {
return await request.get({ url: '/bpm/task/list-by-parent-task-id?parentTaskId=' + id }) return await request.get({url: '/bpm/task/list-by-parent-task-id?parentTaskId=' + id})
} }

View File

@ -28,20 +28,20 @@ export const updateUserGroup = async (data: UserGroupVO) => {
// 删除用户组 // 删除用户组
export const deleteUserGroup = async (id: number) => { export const deleteUserGroup = async (id: number) => {
return await request.delete({ url: '/bpm/user-group/delete?id=' + id }) return await request.delete({url: '/bpm/user-group/delete?id=' + id})
} }
// 获得用户组 // 获得用户组
export const getUserGroup = async (id: number) => { export const getUserGroup = async (id: number) => {
return await request.get({ url: '/bpm/user-group/get?id=' + id }) return await request.get({url: '/bpm/user-group/get?id=' + id})
} }
// 获得用户组分页 // 获得用户组分页
export const getUserGroupPage = async (params) => { export const getUserGroupPage = async (params) => {
return await request.get({ url: '/bpm/user-group/page', params }) return await request.get({url: '/bpm/user-group/page', params})
} }
// 获取用户组精简信息列表 // 获取用户组精简信息列表
export const getUserGroupSimpleList = async (): Promise<UserGroupVO[]> => { export const getUserGroupSimpleList = async (): Promise<UserGroupVO[]> => {
return await request.get({ url: '/bpm/user-group/simple-list' }) return await request.get({url: '/bpm/user-group/simple-list'})
} }

View File

@ -1,5 +1,5 @@
import request from '@/config/axios' import request from '@/config/axios'
import { TransferReqVO } from '@/api/crm/permission' import {TransferReqVO} from '@/api/crm/permission'
export interface BusinessVO { export interface BusinessVO {
id: number id: number
@ -44,55 +44,55 @@ export interface BusinessVO {
// 查询 CRM 商机列表 // 查询 CRM 商机列表
export const getBusinessPage = async (params) => { export const getBusinessPage = async (params) => {
return await request.get({ url: `/crm/business/page`, params }) return await request.get({url: `/crm/business/page`, params})
} }
// 查询 CRM 商机列表,基于指定客户 // 查询 CRM 商机列表,基于指定客户
export const getBusinessPageByCustomer = async (params) => { export const getBusinessPageByCustomer = async (params) => {
return await request.get({ url: `/crm/business/page-by-customer`, params }) return await request.get({url: `/crm/business/page-by-customer`, params})
} }
// 查询 CRM 商机详情 // 查询 CRM 商机详情
export const getBusiness = async (id: number) => { export const getBusiness = async (id: number) => {
return await request.get({ url: `/crm/business/get?id=` + id }) return await request.get({url: `/crm/business/get?id=` + id})
} }
// 获得 CRM 商机列表(精简) // 获得 CRM 商机列表(精简)
export const getSimpleBusinessList = async () => { export const getSimpleBusinessList = async () => {
return await request.get({ url: `/crm/business/simple-all-list` }) return await request.get({url: `/crm/business/simple-all-list`})
} }
// 新增 CRM 商机 // 新增 CRM 商机
export const createBusiness = async (data: BusinessVO) => { export const createBusiness = async (data: BusinessVO) => {
return await request.post({ url: `/crm/business/create`, data }) return await request.post({url: `/crm/business/create`, data})
} }
// 修改 CRM 商机 // 修改 CRM 商机
export const updateBusiness = async (data: BusinessVO) => { export const updateBusiness = async (data: BusinessVO) => {
return await request.put({ url: `/crm/business/update`, data }) return await request.put({url: `/crm/business/update`, data})
} }
// 修改 CRM 商机状态 // 修改 CRM 商机状态
export const updateBusinessStatus = async (data: BusinessVO) => { export const updateBusinessStatus = async (data: BusinessVO) => {
return await request.put({ url: `/crm/business/update-status`, data }) return await request.put({url: `/crm/business/update-status`, data})
} }
// 删除 CRM 商机 // 删除 CRM 商机
export const deleteBusiness = async (id: number) => { export const deleteBusiness = async (id: number) => {
return await request.delete({ url: `/crm/business/delete?id=` + id }) return await request.delete({url: `/crm/business/delete?id=` + id})
} }
// 导出 CRM 商机 Excel // 导出 CRM 商机 Excel
export const exportBusiness = async (params) => { export const exportBusiness = async (params) => {
return await request.download({ url: `/crm/business/export-excel`, params }) return await request.download({url: `/crm/business/export-excel`, params})
} }
// 联系人关联商机列表 // 联系人关联商机列表
export const getBusinessPageByContact = async (params) => { export const getBusinessPageByContact = async (params) => {
return await request.get({ url: `/crm/business/page-by-contact`, params }) return await request.get({url: `/crm/business/page-by-contact`, params})
} }
// 商机转移 // 商机转移
export const transferBusiness = async (data: TransferReqVO) => { export const transferBusiness = async (data: TransferReqVO) => {
return await request.put({ url: '/crm/business/transfer', data }) return await request.put({url: '/crm/business/transfer', data})
} }

View File

@ -34,35 +34,35 @@ export const DEFAULT_STATUSES = [
// 查询商机状态组列表 // 查询商机状态组列表
export const getBusinessStatusPage = async (params: any) => { export const getBusinessStatusPage = async (params: any) => {
return await request.get({ url: `/crm/business-status/page`, params }) return await request.get({url: `/crm/business-status/page`, params})
} }
// 新增商机状态组 // 新增商机状态组
export const createBusinessStatus = async (data: BusinessStatusTypeVO) => { export const createBusinessStatus = async (data: BusinessStatusTypeVO) => {
return await request.post({ url: `/crm/business-status/create`, data }) return await request.post({url: `/crm/business-status/create`, data})
} }
// 修改商机状态组 // 修改商机状态组
export const updateBusinessStatus = async (data: BusinessStatusTypeVO) => { export const updateBusinessStatus = async (data: BusinessStatusTypeVO) => {
return await request.put({ url: `/crm/business-status/update`, data }) return await request.put({url: `/crm/business-status/update`, data})
} }
// 查询商机状态类型详情 // 查询商机状态类型详情
export const getBusinessStatus = async (id: number) => { export const getBusinessStatus = async (id: number) => {
return await request.get({ url: `/crm/business-status/get?id=` + id }) return await request.get({url: `/crm/business-status/get?id=` + id})
} }
// 删除商机状态 // 删除商机状态
export const deleteBusinessStatus = async (id: number) => { export const deleteBusinessStatus = async (id: number) => {
return await request.delete({ url: `/crm/business-status/delete?id=` + id }) return await request.delete({url: `/crm/business-status/delete?id=` + id})
} }
// 获得商机状态组列表 // 获得商机状态组列表
export const getBusinessStatusTypeSimpleList = async () => { export const getBusinessStatusTypeSimpleList = async () => {
return await request.get({ url: `/crm/business-status/type-simple-list` }) return await request.get({url: `/crm/business-status/type-simple-list`})
} }
// 获得商机阶段列表 // 获得商机阶段列表
export const getBusinessStatusSimpleList = async (typeId: number) => { export const getBusinessStatusSimpleList = async (typeId: number) => {
return await request.get({ url: `/crm/business-status/status-simple-list`, params: { typeId } }) return await request.get({url: `/crm/business-status/status-simple-list`, params: {typeId}})
} }

View File

@ -1,5 +1,5 @@
import request from '@/config/axios' import request from '@/config/axios'
import { TransferReqVO } from '@/api/crm/permission' import {TransferReqVO} from '@/api/crm/permission'
export interface ClueVO { export interface ClueVO {
id: number // 编号 id: number // 编号
@ -34,45 +34,45 @@ export interface ClueVO {
// 查询线索列表 // 查询线索列表
export const getCluePage = async (params: any) => { export const getCluePage = async (params: any) => {
return await request.get({ url: `/crm/clue/page`, params }) return await request.get({url: `/crm/clue/page`, params})
} }
// 查询线索详情 // 查询线索详情
export const getClue = async (id: number) => { export const getClue = async (id: number) => {
return await request.get({ url: `/crm/clue/get?id=` + id }) return await request.get({url: `/crm/clue/get?id=` + id})
} }
// 新增线索 // 新增线索
export const createClue = async (data: ClueVO) => { export const createClue = async (data: ClueVO) => {
return await request.post({ url: `/crm/clue/create`, data }) return await request.post({url: `/crm/clue/create`, data})
} }
// 修改线索 // 修改线索
export const updateClue = async (data: ClueVO) => { export const updateClue = async (data: ClueVO) => {
return await request.put({ url: `/crm/clue/update`, data }) return await request.put({url: `/crm/clue/update`, data})
} }
// 删除线索 // 删除线索
export const deleteClue = async (id: number) => { export const deleteClue = async (id: number) => {
return await request.delete({ url: `/crm/clue/delete?id=` + id }) return await request.delete({url: `/crm/clue/delete?id=` + id})
} }
// 导出线索 Excel // 导出线索 Excel
export const exportClue = async (params) => { export const exportClue = async (params) => {
return await request.download({ url: `/crm/clue/export-excel`, params }) return await request.download({url: `/crm/clue/export-excel`, params})
} }
// 线索转移 // 线索转移
export const transferClue = async (data: TransferReqVO) => { export const transferClue = async (data: TransferReqVO) => {
return await request.put({ url: '/crm/clue/transfer', data }) return await request.put({url: '/crm/clue/transfer', data})
} }
// 线索转化为客户 // 线索转化为客户
export const transformClue = async (id: number) => { export const transformClue = async (id: number) => {
return await request.put({ url: '/crm/clue/transform', params: { id } }) return await request.put({url: '/crm/clue/transform', params: {id}})
} }
// 获得分配给我的、待跟进的线索数量 // 获得分配给我的、待跟进的线索数量
export const getFollowClueCount = async () => { export const getFollowClueCount = async () => {
return await request.get({ url: '/crm/clue/follow-count' }) return await request.get({url: '/crm/clue/follow-count'})
} }

View File

@ -1,5 +1,5 @@
import request from '@/config/axios' import request from '@/config/axios'
import { TransferReqVO } from '@/api/crm/permission' import {TransferReqVO} from '@/api/crm/permission'
export interface ContactVO { export interface ContactVO {
id: number // 编号 id: number // 编号
@ -44,70 +44,70 @@ export interface ContactBusiness2ReqVO {
// 查询 CRM 联系人列表 // 查询 CRM 联系人列表
export const getContactPage = async (params) => { export const getContactPage = async (params) => {
return await request.get({ url: `/crm/contact/page`, params }) return await request.get({url: `/crm/contact/page`, params})
} }
// 查询 CRM 联系人列表,基于指定客户 // 查询 CRM 联系人列表,基于指定客户
export const getContactPageByCustomer = async (params: any) => { export const getContactPageByCustomer = async (params: any) => {
return await request.get({ url: `/crm/contact/page-by-customer`, params }) return await request.get({url: `/crm/contact/page-by-customer`, params})
} }
// 查询 CRM 联系人列表,基于指定商机 // 查询 CRM 联系人列表,基于指定商机
export const getContactPageByBusiness = async (params: any) => { export const getContactPageByBusiness = async (params: any) => {
return await request.get({ url: `/crm/contact/page-by-business`, params }) return await request.get({url: `/crm/contact/page-by-business`, params})
} }
// 查询 CRM 联系人详情 // 查询 CRM 联系人详情
export const getContact = async (id: number) => { export const getContact = async (id: number) => {
return await request.get({ url: `/crm/contact/get?id=` + id }) return await request.get({url: `/crm/contact/get?id=` + id})
} }
// 新增 CRM 联系人 // 新增 CRM 联系人
export const createContact = async (data: ContactVO) => { export const createContact = async (data: ContactVO) => {
return await request.post({ url: `/crm/contact/create`, data }) return await request.post({url: `/crm/contact/create`, data})
} }
// 修改 CRM 联系人 // 修改 CRM 联系人
export const updateContact = async (data: ContactVO) => { export const updateContact = async (data: ContactVO) => {
return await request.put({ url: `/crm/contact/update`, data }) return await request.put({url: `/crm/contact/update`, data})
} }
// 删除 CRM 联系人 // 删除 CRM 联系人
export const deleteContact = async (id: number) => { export const deleteContact = async (id: number) => {
return await request.delete({ url: `/crm/contact/delete?id=` + id }) return await request.delete({url: `/crm/contact/delete?id=` + id})
} }
// 导出 CRM 联系人 Excel // 导出 CRM 联系人 Excel
export const exportContact = async (params) => { export const exportContact = async (params) => {
return await request.download({ url: `/crm/contact/export-excel`, params }) return await request.download({url: `/crm/contact/export-excel`, params})
} }
// 获得 CRM 联系人列表(精简) // 获得 CRM 联系人列表(精简)
export const getSimpleContactList = async () => { export const getSimpleContactList = async () => {
return await request.get({ url: `/crm/contact/simple-all-list` }) return await request.get({url: `/crm/contact/simple-all-list`})
} }
// 批量新增联系人商机关联 // 批量新增联系人商机关联
export const createContactBusinessList = async (data: ContactBusinessReqVO) => { export const createContactBusinessList = async (data: ContactBusinessReqVO) => {
return await request.post({ url: `/crm/contact/create-business-list`, data }) return await request.post({url: `/crm/contact/create-business-list`, data})
} }
// 批量新增联系人商机关联 // 批量新增联系人商机关联
export const createContactBusinessList2 = async (data: ContactBusiness2ReqVO) => { export const createContactBusinessList2 = async (data: ContactBusiness2ReqVO) => {
return await request.post({ url: `/crm/contact/create-business-list2`, data }) return await request.post({url: `/crm/contact/create-business-list2`, data})
} }
// 解除联系人商机关联 // 解除联系人商机关联
export const deleteContactBusinessList = async (data: ContactBusinessReqVO) => { export const deleteContactBusinessList = async (data: ContactBusinessReqVO) => {
return await request.delete({ url: `/crm/contact/delete-business-list`, data }) return await request.delete({url: `/crm/contact/delete-business-list`, data})
} }
// 解除联系人商机关联 // 解除联系人商机关联
export const deleteContactBusinessList2 = async (data: ContactBusiness2ReqVO) => { export const deleteContactBusinessList2 = async (data: ContactBusiness2ReqVO) => {
return await request.delete({ url: `/crm/contact/delete-business-list2`, data }) return await request.delete({url: `/crm/contact/delete-business-list2`, data})
} }
// 联系人转移 // 联系人转移
export const transferContact = async (data: TransferReqVO) => { export const transferContact = async (data: TransferReqVO) => {
return await request.put({ url: '/crm/contact/transfer', data }) return await request.put({url: '/crm/contact/transfer', data})
} }

View File

@ -7,10 +7,10 @@ export interface ContractConfigVO {
// 获取合同配置 // 获取合同配置
export const getContractConfig = async () => { export const getContractConfig = async () => {
return await request.get({ url: `/crm/contract-config/get` }) return await request.get({url: `/crm/contract-config/get`})
} }
// 更新合同配置 // 更新合同配置
export const saveContractConfig = async (data: ContractConfigVO) => { export const saveContractConfig = async (data: ContractConfigVO) => {
return await request.put({ url: `/crm/contract-config/save`, data }) return await request.put({url: `/crm/contract-config/save`, data})
} }

View File

@ -1,5 +1,5 @@
import request from '@/config/axios' import request from '@/config/axios'
import { TransferReqVO } from '@/api/crm/permission' import {TransferReqVO} from '@/api/crm/permission'
export interface ContractVO { export interface ContractVO {
id: number id: number
@ -48,22 +48,22 @@ export interface ContractVO {
// 查询 CRM 合同列表 // 查询 CRM 合同列表
export const getContractPage = async (params) => { export const getContractPage = async (params) => {
return await request.get({ url: `/crm/contract/page`, params }) return await request.get({url: `/crm/contract/page`, params})
} }
// 查询 CRM 联系人列表,基于指定客户 // 查询 CRM 联系人列表,基于指定客户
export const getContractPageByCustomer = async (params: any) => { export const getContractPageByCustomer = async (params: any) => {
return await request.get({ url: `/crm/contract/page-by-customer`, params }) return await request.get({url: `/crm/contract/page-by-customer`, params})
} }
// 查询 CRM 联系人列表,基于指定商机 // 查询 CRM 联系人列表,基于指定商机
export const getContractPageByBusiness = async (params: any) => { export const getContractPageByBusiness = async (params: any) => {
return await request.get({ url: `/crm/contract/page-by-business`, params }) return await request.get({url: `/crm/contract/page-by-business`, params})
} }
// 查询 CRM 合同详情 // 查询 CRM 合同详情
export const getContract = async (id: number) => { export const getContract = async (id: number) => {
return await request.get({ url: `/crm/contract/get?id=` + id }) return await request.get({url: `/crm/contract/get?id=` + id})
} }
// 查询 CRM 合同下拉列表 // 查询 CRM 合同下拉列表
@ -75,40 +75,40 @@ export const getContractSimpleList = async (customerId: number) => {
// 新增 CRM 合同 // 新增 CRM 合同
export const createContract = async (data: ContractVO) => { export const createContract = async (data: ContractVO) => {
return await request.post({ url: `/crm/contract/create`, data }) return await request.post({url: `/crm/contract/create`, data})
} }
// 修改 CRM 合同 // 修改 CRM 合同
export const updateContract = async (data: ContractVO) => { export const updateContract = async (data: ContractVO) => {
return await request.put({ url: `/crm/contract/update`, data }) return await request.put({url: `/crm/contract/update`, data})
} }
// 删除 CRM 合同 // 删除 CRM 合同
export const deleteContract = async (id: number) => { export const deleteContract = async (id: number) => {
return await request.delete({ url: `/crm/contract/delete?id=` + id }) return await request.delete({url: `/crm/contract/delete?id=` + id})
} }
// 导出 CRM 合同 Excel // 导出 CRM 合同 Excel
export const exportContract = async (params) => { export const exportContract = async (params) => {
return await request.download({ url: `/crm/contract/export-excel`, params }) return await request.download({url: `/crm/contract/export-excel`, params})
} }
// 提交审核 // 提交审核
export const submitContract = async (id: number) => { export const submitContract = async (id: number) => {
return await request.put({ url: `/crm/contract/submit?id=${id}` }) return await request.put({url: `/crm/contract/submit?id=${id}`})
} }
// 合同转移 // 合同转移
export const transferContract = async (data: TransferReqVO) => { export const transferContract = async (data: TransferReqVO) => {
return await request.put({ url: '/crm/contract/transfer', data }) return await request.put({url: '/crm/contract/transfer', data})
} }
// 获得待审核合同数量 // 获得待审核合同数量
export const getAuditContractCount = async () => { export const getAuditContractCount = async () => {
return await request.get({ url: '/crm/contract/audit-count' }) return await request.get({url: '/crm/contract/audit-count'})
} }
// 获得即将到期(提醒)的合同数量 // 获得即将到期(提醒)的合同数量
export const getRemindContractCount = async () => { export const getRemindContractCount = async () => {
return await request.get({ url: '/crm/contract/remind-count' }) return await request.get({url: '/crm/contract/remind-count'})
} }

View File

@ -1,5 +1,5 @@
import request from '@/config/axios' import request from '@/config/axios'
import { TransferReqVO } from '@/api/crm/permission' import {TransferReqVO} from '@/api/crm/permission'
export interface CustomerVO { export interface CustomerVO {
id: number // 编号 id: number // 编号
@ -33,100 +33,100 @@ export interface CustomerVO {
// 查询客户列表 // 查询客户列表
export const getCustomerPage = async (params) => { export const getCustomerPage = async (params) => {
return await request.get({ url: `/crm/customer/page`, params }) return await request.get({url: `/crm/customer/page`, params})
} }
// 进入公海客户提醒的客户列表 // 进入公海客户提醒的客户列表
export const getPutPoolRemindCustomerPage = async (params) => { export const getPutPoolRemindCustomerPage = async (params) => {
return await request.get({ url: `/crm/customer/put-pool-remind-page`, params }) return await request.get({url: `/crm/customer/put-pool-remind-page`, params})
} }
// 获得待进入公海客户数量 // 获得待进入公海客户数量
export const getPutPoolRemindCustomerCount = async () => { export const getPutPoolRemindCustomerCount = async () => {
return await request.get({ url: `/crm/customer/put-pool-remind-count` }) return await request.get({url: `/crm/customer/put-pool-remind-count`})
} }
// 获得今日需联系客户数量 // 获得今日需联系客户数量
export const getTodayContactCustomerCount = async () => { export const getTodayContactCustomerCount = async () => {
return await request.get({ url: `/crm/customer/today-contact-count` }) return await request.get({url: `/crm/customer/today-contact-count`})
} }
// 获得分配给我、待跟进的线索数量的客户数量 // 获得分配给我、待跟进的线索数量的客户数量
export const getFollowCustomerCount = async () => { export const getFollowCustomerCount = async () => {
return await request.get({ url: `/crm/customer/follow-count` }) return await request.get({url: `/crm/customer/follow-count`})
} }
// 查询客户详情 // 查询客户详情
export const getCustomer = async (id: number) => { export const getCustomer = async (id: number) => {
return await request.get({ url: `/crm/customer/get?id=` + id }) return await request.get({url: `/crm/customer/get?id=` + id})
} }
// 新增客户 // 新增客户
export const createCustomer = async (data: CustomerVO) => { export const createCustomer = async (data: CustomerVO) => {
return await request.post({ url: `/crm/customer/create`, data }) return await request.post({url: `/crm/customer/create`, data})
} }
// 修改客户 // 修改客户
export const updateCustomer = async (data: CustomerVO) => { export const updateCustomer = async (data: CustomerVO) => {
return await request.put({ url: `/crm/customer/update`, data }) return await request.put({url: `/crm/customer/update`, data})
} }
// 更新客户的成交状态 // 更新客户的成交状态
export const updateCustomerDealStatus = async (id: number, dealStatus: boolean) => { export const updateCustomerDealStatus = async (id: number, dealStatus: boolean) => {
return await request.put({ url: `/crm/customer/update-deal-status`, params: { id, dealStatus } }) return await request.put({url: `/crm/customer/update-deal-status`, params: {id, dealStatus}})
} }
// 删除客户 // 删除客户
export const deleteCustomer = async (id: number) => { export const deleteCustomer = async (id: number) => {
return await request.delete({ url: `/crm/customer/delete?id=` + id }) return await request.delete({url: `/crm/customer/delete?id=` + id})
} }
// 导出客户 Excel // 导出客户 Excel
export const exportCustomer = async (params: any) => { export const exportCustomer = async (params: any) => {
return await request.download({ url: `/crm/customer/export-excel`, params }) return await request.download({url: `/crm/customer/export-excel`, params})
} }
// 下载客户导入模板 // 下载客户导入模板
export const importCustomerTemplate = () => { export const importCustomerTemplate = () => {
return request.download({ url: '/crm/customer/get-import-template' }) return request.download({url: '/crm/customer/get-import-template'})
} }
// 导入客户 // 导入客户
export const handleImport = async (formData) => { export const handleImport = async (formData) => {
return await request.upload({ url: `/crm/customer/import`, data: formData }) return await request.upload({url: `/crm/customer/import`, data: formData})
} }
// 客户列表 // 客户列表
export const getCustomerSimpleList = async () => { export const getCustomerSimpleList = async () => {
return await request.get({ url: `/crm/customer/simple-list` }) return await request.get({url: `/crm/customer/simple-list`})
} }
// ======================= 业务操作 ======================= // ======================= 业务操作 =======================
// 客户转移 // 客户转移
export const transferCustomer = async (data: TransferReqVO) => { export const transferCustomer = async (data: TransferReqVO) => {
return await request.put({ url: '/crm/customer/transfer', data }) return await request.put({url: '/crm/customer/transfer', data})
} }
// 锁定/解锁客户 // 锁定/解锁客户
export const lockCustomer = async (id: number, lockStatus: boolean) => { export const lockCustomer = async (id: number, lockStatus: boolean) => {
return await request.put({ url: `/crm/customer/lock`, data: { id, lockStatus } }) return await request.put({url: `/crm/customer/lock`, data: {id, lockStatus}})
} }
// 领取公海客户 // 领取公海客户
export const receiveCustomer = async (ids: any[]) => { export const receiveCustomer = async (ids: any[]) => {
return await request.put({ url: '/crm/customer/receive', params: { ids: ids.join(',') } }) return await request.put({url: '/crm/customer/receive', params: {ids: ids.join(',')}})
} }
// 分配公海给对应负责人 // 分配公海给对应负责人
export const distributeCustomer = async (ids: any[], ownerUserId: number) => { export const distributeCustomer = async (ids: any[], ownerUserId: number) => {
return await request.put({ return await request.put({
url: '/crm/customer/distribute', url: '/crm/customer/distribute',
data: { ids: ids, ownerUserId } data: {ids: ids, ownerUserId}
}) })
} }
// 客户放入公海 // 客户放入公海
export const putCustomerPool = async (id: number) => { export const putCustomerPool = async (id: number) => {
return await request.put({ url: `/crm/customer/put-pool?id=${id}` }) return await request.put({url: `/crm/customer/put-pool?id=${id}`})
} }

View File

@ -25,25 +25,25 @@ export enum LimitConfType {
// 查询客户限制配置列表 // 查询客户限制配置列表
export const getCustomerLimitConfigPage = async (params) => { export const getCustomerLimitConfigPage = async (params) => {
return await request.get({ url: `/crm/customer-limit-config/page`, params }) return await request.get({url: `/crm/customer-limit-config/page`, params})
} }
// 查询客户限制配置详情 // 查询客户限制配置详情
export const getCustomerLimitConfig = async (id: number) => { export const getCustomerLimitConfig = async (id: number) => {
return await request.get({ url: `/crm/customer-limit-config/get?id=` + id }) return await request.get({url: `/crm/customer-limit-config/get?id=` + id})
} }
// 新增客户限制配置 // 新增客户限制配置
export const createCustomerLimitConfig = async (data: CustomerLimitConfigVO) => { export const createCustomerLimitConfig = async (data: CustomerLimitConfigVO) => {
return await request.post({ url: `/crm/customer-limit-config/create`, data }) return await request.post({url: `/crm/customer-limit-config/create`, data})
} }
// 修改客户限制配置 // 修改客户限制配置
export const updateCustomerLimitConfig = async (data: CustomerLimitConfigVO) => { export const updateCustomerLimitConfig = async (data: CustomerLimitConfigVO) => {
return await request.put({ url: `/crm/customer-limit-config/update`, data }) return await request.put({url: `/crm/customer-limit-config/update`, data})
} }
// 删除客户限制配置 // 删除客户限制配置
export const deleteCustomerLimitConfig = async (id: number) => { export const deleteCustomerLimitConfig = async (id: number) => {
return await request.delete({ url: `/crm/customer-limit-config/delete?id=` + id }) return await request.delete({url: `/crm/customer-limit-config/delete?id=` + id})
} }

View File

@ -10,10 +10,10 @@ export interface CustomerPoolConfigVO {
// 获取客户公海规则设置 // 获取客户公海规则设置
export const getCustomerPoolConfig = async () => { export const getCustomerPoolConfig = async () => {
return await request.get({ url: `/crm/customer-pool-config/get` }) return await request.get({url: `/crm/customer-pool-config/get`})
} }
// 更新客户公海规则设置 // 更新客户公海规则设置
export const saveCustomerPoolConfig = async (data: CustomerPoolConfigVO) => { export const saveCustomerPoolConfig = async (data: CustomerPoolConfigVO) => {
return await request.put({ url: `/crm/customer-pool-config/save`, data }) return await request.put({url: `/crm/customer-pool-config/save`, data})
} }

View File

@ -28,16 +28,16 @@ export interface FollowUpRecordVO {
export const FollowUpRecordApi = { export const FollowUpRecordApi = {
// 查询跟进记录分页 // 查询跟进记录分页
getFollowUpRecordPage: async (params: any) => { getFollowUpRecordPage: async (params: any) => {
return await request.get({ url: `/crm/follow-up-record/page`, params }) return await request.get({url: `/crm/follow-up-record/page`, params})
}, },
// 新增跟进记录 // 新增跟进记录
createFollowUpRecord: async (data: FollowUpRecordVO) => { createFollowUpRecord: async (data: FollowUpRecordVO) => {
return await request.post({ url: `/crm/follow-up-record/create`, data }) return await request.post({url: `/crm/follow-up-record/create`, data})
}, },
// 删除跟进记录 // 删除跟进记录
deleteFollowUpRecord: async (id: number) => { deleteFollowUpRecord: async (id: number) => {
return await request.delete({ url: `/crm/follow-up-record/delete?id=` + id }) return await request.delete({url: `/crm/follow-up-record/delete?id=` + id})
} }
} }

View File

@ -4,20 +4,20 @@ import request from '@/config/axios'
export const FollowUpRecordApi = { export const FollowUpRecordApi = {
// 查询表单列表 // 查询表单列表
selectDynamicData: async () => { selectDynamicData: async () => {
return await request.get({ url: `/intelligentForm/selectDynamicData`}) return await request.get({url: `/intelligentForm/selectDynamicData`})
}, },
//添加智能表单 //添加智能表单
saveDynamicData: async (data) => { saveDynamicData: async (data) => {
return await request.post({ url: `/intelligentForm/saveDynamicData`, data }) return await request.post({url: `/intelligentForm/saveDynamicData`, data})
}, },
//查询对应表单的采集数据列表 //查询对应表单的采集数据列表
collectDataList: async(query) => { collectDataList: async (query) => {
return await request.get({ return await request.get({
url: '/intelligentForm/collectDataList', url: '/intelligentForm/collectDataList',
method: 'get', method: 'get',
params: {id:query} params: {id: query}
}) })
} }
} }

View File

@ -7,5 +7,5 @@ export interface OperateLogVO extends PageParam {
// 获得操作日志 // 获得操作日志
export const getOperateLogPage = async (params: OperateLogVO) => { export const getOperateLogPage = async (params: OperateLogVO) => {
return await request.get({ url: `/crm/operate-log/page`, params }) return await request.get({url: `/crm/operate-log/page`, params})
} }

View File

@ -48,25 +48,25 @@ export enum PermissionLevelEnum {
// 获得数据权限列表(查询团队成员列表) // 获得数据权限列表(查询团队成员列表)
export const getPermissionList = async (params) => { export const getPermissionList = async (params) => {
return await request.get({ url: `/crm/permission/list`, params }) return await request.get({url: `/crm/permission/list`, params})
} }
// 创建数据权限(新增团队成员) // 创建数据权限(新增团队成员)
export const createPermission = async (data: PermissionVO) => { export const createPermission = async (data: PermissionVO) => {
return await request.post({ url: `/crm/permission/create`, data }) return await request.post({url: `/crm/permission/create`, data})
} }
// 编辑数据权限(修改团队成员权限级别) // 编辑数据权限(修改团队成员权限级别)
export const updatePermission = async (data) => { export const updatePermission = async (data) => {
return await request.put({ url: `/crm/permission/update`, data }) return await request.put({url: `/crm/permission/update`, data})
} }
// 删除数据权限(删除团队成员) // 删除数据权限(删除团队成员)
export const deletePermissionBatch = async (val: number[]) => { export const deletePermissionBatch = async (val: number[]) => {
return await request.delete({ url: '/crm/permission/delete?ids=' + val.join(',') }) return await request.delete({url: '/crm/permission/delete?ids=' + val.join(',')})
} }
// 删除自己的数据权限(退出团队) // 删除自己的数据权限(退出团队)
export const deleteSelfPermission = async (id: number) => { export const deleteSelfPermission = async (id: number) => {
return await request.delete({ url: '/crm/permission/delete-self?id=' + id }) return await request.delete({url: '/crm/permission/delete-self?id=' + id})
} }

View File

@ -9,25 +9,25 @@ export interface ProductCategoryVO {
// 查询产品分类详情 // 查询产品分类详情
export const getProductCategory = async (id: number) => { export const getProductCategory = async (id: number) => {
return await request.get({ url: `/crm/product-category/get?id=` + id }) return await request.get({url: `/crm/product-category/get?id=` + id})
} }
// 新增产品分类 // 新增产品分类
export const createProductCategory = async (data: ProductCategoryVO) => { export const createProductCategory = async (data: ProductCategoryVO) => {
return await request.post({ url: `/crm/product-category/create`, data }) return await request.post({url: `/crm/product-category/create`, data})
} }
// 修改产品分类 // 修改产品分类
export const updateProductCategory = async (data: ProductCategoryVO) => { export const updateProductCategory = async (data: ProductCategoryVO) => {
return await request.put({ url: `/crm/product-category/update`, data }) return await request.put({url: `/crm/product-category/update`, data})
} }
// 删除产品分类 // 删除产品分类
export const deleteProductCategory = async (id: number) => { export const deleteProductCategory = async (id: number) => {
return await request.delete({ url: `/crm/product-category/delete?id=` + id }) return await request.delete({url: `/crm/product-category/delete?id=` + id})
} }
// 产品分类列表 // 产品分类列表
export const getProductCategoryList = async (params) => { export const getProductCategoryList = async (params) => {
return await request.get({ url: `/crm/product-category/list`, params }) return await request.get({url: `/crm/product-category/list`, params})
} }

View File

@ -15,35 +15,35 @@ export interface ProductVO {
// 查询产品列表 // 查询产品列表
export const getProductPage = async (params) => { export const getProductPage = async (params) => {
return await request.get({ url: `/crm/product/page`, params }) return await request.get({url: `/crm/product/page`, params})
} }
// 获得产品精简列表 // 获得产品精简列表
export const getProductSimpleList = async () => { export const getProductSimpleList = async () => {
return await request.get({ url: `/crm/product/simple-list` }) return await request.get({url: `/crm/product/simple-list`})
} }
// 查询产品详情 // 查询产品详情
export const getProduct = async (id: number) => { export const getProduct = async (id: number) => {
return await request.get({ url: `/crm/product/get?id=` + id }) return await request.get({url: `/crm/product/get?id=` + id})
} }
// 新增产品 // 新增产品
export const createProduct = async (data: ProductVO) => { export const createProduct = async (data: ProductVO) => {
return await request.post({ url: `/crm/product/create`, data }) return await request.post({url: `/crm/product/create`, data})
} }
// 修改产品 // 修改产品
export const updateProduct = async (data: ProductVO) => { export const updateProduct = async (data: ProductVO) => {
return await request.put({ url: `/crm/product/update`, data }) return await request.put({url: `/crm/product/update`, data})
} }
// 删除产品 // 删除产品
export const deleteProduct = async (id: number) => { export const deleteProduct = async (id: number) => {
return await request.delete({ url: `/crm/product/delete?id=` + id }) return await request.delete({url: `/crm/product/delete?id=` + id})
} }
// 导出产品 Excel // 导出产品 Excel
export const exportProduct = async (params) => { export const exportProduct = async (params) => {
return await request.download({ url: `/crm/product/export-excel`, params }) return await request.download({url: `/crm/product/export-excel`, params})
} }

View File

@ -29,45 +29,45 @@ export interface ReceivableVO {
// 查询回款列表 // 查询回款列表
export const getReceivablePage = async (params) => { export const getReceivablePage = async (params) => {
return await request.get({ url: `/crm/receivable/page`, params }) return await request.get({url: `/crm/receivable/page`, params})
} }
// 查询回款列表 // 查询回款列表
export const getReceivablePageByCustomer = async (params) => { export const getReceivablePageByCustomer = async (params) => {
return await request.get({ url: `/crm/receivable/page-by-customer`, params }) return await request.get({url: `/crm/receivable/page-by-customer`, params})
} }
// 查询回款详情 // 查询回款详情
export const getReceivable = async (id: number) => { export const getReceivable = async (id: number) => {
return await request.get({ url: `/crm/receivable/get?id=` + id }) return await request.get({url: `/crm/receivable/get?id=` + id})
} }
// 新增回款 // 新增回款
export const createReceivable = async (data: ReceivableVO) => { export const createReceivable = async (data: ReceivableVO) => {
return await request.post({ url: `/crm/receivable/create`, data }) return await request.post({url: `/crm/receivable/create`, data})
} }
// 修改回款 // 修改回款
export const updateReceivable = async (data: ReceivableVO) => { export const updateReceivable = async (data: ReceivableVO) => {
return await request.put({ url: `/crm/receivable/update`, data }) return await request.put({url: `/crm/receivable/update`, data})
} }
// 删除回款 // 删除回款
export const deleteReceivable = async (id: number) => { export const deleteReceivable = async (id: number) => {
return await request.delete({ url: `/crm/receivable/delete?id=` + id }) return await request.delete({url: `/crm/receivable/delete?id=` + id})
} }
// 导出回款 Excel // 导出回款 Excel
export const exportReceivable = async (params) => { export const exportReceivable = async (params) => {
return await request.download({ url: `/crm/receivable/export-excel`, params }) return await request.download({url: `/crm/receivable/export-excel`, params})
} }
// 提交审核 // 提交审核
export const submitReceivable = async (id: number) => { export const submitReceivable = async (id: number) => {
return await request.put({ url: `/crm/receivable/submit?id=${id}` }) return await request.put({url: `/crm/receivable/submit?id=${id}`})
} }
// 获得待审核回款数量 // 获得待审核回款数量
export const getAuditReceivableCount = async () => { export const getAuditReceivableCount = async () => {
return await request.get({ url: '/crm/receivable/audit-count' }) return await request.get({url: '/crm/receivable/audit-count'})
} }

View File

@ -28,17 +28,17 @@ export interface ReceivablePlanVO {
// 查询回款计划列表 // 查询回款计划列表
export const getReceivablePlanPage = async (params) => { export const getReceivablePlanPage = async (params) => {
return await request.get({ url: `/crm/receivable-plan/page`, params }) return await request.get({url: `/crm/receivable-plan/page`, params})
} }
// 查询回款计划列表 // 查询回款计划列表
export const getReceivablePlanPageByCustomer = async (params) => { export const getReceivablePlanPageByCustomer = async (params) => {
return await request.get({ url: `/crm/receivable-plan/page-by-customer`, params }) return await request.get({url: `/crm/receivable-plan/page-by-customer`, params})
} }
// 查询回款计划详情 // 查询回款计划详情
export const getReceivablePlan = async (id: number) => { export const getReceivablePlan = async (id: number) => {
return await request.get({ url: `/crm/receivable-plan/get?id=` + id }) return await request.get({url: `/crm/receivable-plan/get?id=` + id})
} }
// 查询回款计划下拉数据 // 查询回款计划下拉数据
@ -50,25 +50,25 @@ export const getReceivablePlanSimpleList = async (customerId: number, contractId
// 新增回款计划 // 新增回款计划
export const createReceivablePlan = async (data: ReceivablePlanVO) => { export const createReceivablePlan = async (data: ReceivablePlanVO) => {
return await request.post({ url: `/crm/receivable-plan/create`, data }) return await request.post({url: `/crm/receivable-plan/create`, data})
} }
// 修改回款计划 // 修改回款计划
export const updateReceivablePlan = async (data: ReceivablePlanVO) => { export const updateReceivablePlan = async (data: ReceivablePlanVO) => {
return await request.put({ url: `/crm/receivable-plan/update`, data }) return await request.put({url: `/crm/receivable-plan/update`, data})
} }
// 删除回款计划 // 删除回款计划
export const deleteReceivablePlan = async (id: number) => { export const deleteReceivablePlan = async (id: number) => {
return await request.delete({ url: `/crm/receivable-plan/delete?id=` + id }) return await request.delete({url: `/crm/receivable-plan/delete?id=` + id})
} }
// 导出回款计划 Excel // 导出回款计划 Excel
export const exportReceivablePlan = async (params) => { export const exportReceivablePlan = async (params) => {
return await request.download({ url: `/crm/receivable-plan/export-excel`, params }) return await request.download({url: `/crm/receivable-plan/export-excel`, params})
} }
// 获得待回款提醒数量 // 获得待回款提醒数量
export const getReceivablePlanRemindCount = async () => { export const getReceivablePlanRemindCount = async () => {
return await request.get({ url: '/crm/receivable-plan/remind-count' }) return await request.get({url: '/crm/receivable-plan/remind-count'})
} }

View File

@ -15,27 +15,27 @@ export interface AccountVO {
export const AccountApi = { export const AccountApi = {
// 查询结算账户分页 // 查询结算账户分页
getAccountPage: async (params: any) => { getAccountPage: async (params: any) => {
return await request.get({ url: `/erp/account/page`, params }) return await request.get({url: `/erp/account/page`, params})
}, },
// 查询结算账户精简列表 // 查询结算账户精简列表
getAccountSimpleList: async () => { getAccountSimpleList: async () => {
return await request.get({ url: `/erp/account/simple-list` }) return await request.get({url: `/erp/account/simple-list`})
}, },
// 查询结算账户详情 // 查询结算账户详情
getAccount: async (id: number) => { getAccount: async (id: number) => {
return await request.get({ url: `/erp/account/get?id=` + id }) return await request.get({url: `/erp/account/get?id=` + id})
}, },
// 新增结算账户 // 新增结算账户
createAccount: async (data: AccountVO) => { createAccount: async (data: AccountVO) => {
return await request.post({ url: `/erp/account/create`, data }) return await request.post({url: `/erp/account/create`, data})
}, },
// 修改结算账户 // 修改结算账户
updateAccount: async (data: AccountVO) => { updateAccount: async (data: AccountVO) => {
return await request.put({ url: `/erp/account/update`, data }) return await request.put({url: `/erp/account/update`, data})
}, },
// 修改结算账户默认状态 // 修改结算账户默认状态
@ -51,11 +51,11 @@ export const AccountApi = {
// 删除结算账户 // 删除结算账户
deleteAccount: async (id: number) => { deleteAccount: async (id: number) => {
return await request.delete({ url: `/erp/account/delete?id=` + id }) return await request.delete({url: `/erp/account/delete?id=` + id})
}, },
// 导出结算账户 Excel // 导出结算账户 Excel
exportAccount: async (params: any) => { exportAccount: async (params: any) => {
return await request.download({ url: `/erp/account/export-excel`, params }) return await request.download({url: `/erp/account/export-excel`, params})
} }
} }

View File

@ -15,22 +15,22 @@ export interface FinancePaymentVO {
export const FinancePaymentApi = { export const FinancePaymentApi = {
// 查询付款单分页 // 查询付款单分页
getFinancePaymentPage: async (params: any) => { getFinancePaymentPage: async (params: any) => {
return await request.get({ url: `/erp/finance-payment/page`, params }) return await request.get({url: `/erp/finance-payment/page`, params})
}, },
// 查询付款单详情 // 查询付款单详情
getFinancePayment: async (id: number) => { getFinancePayment: async (id: number) => {
return await request.get({ url: `/erp/finance-payment/get?id=` + id }) return await request.get({url: `/erp/finance-payment/get?id=` + id})
}, },
// 新增付款单 // 新增付款单
createFinancePayment: async (data: FinancePaymentVO) => { createFinancePayment: async (data: FinancePaymentVO) => {
return await request.post({ url: `/erp/finance-payment/create`, data }) return await request.post({url: `/erp/finance-payment/create`, data})
}, },
// 修改付款单 // 修改付款单
updateFinancePayment: async (data: FinancePaymentVO) => { updateFinancePayment: async (data: FinancePaymentVO) => {
return await request.put({ url: `/erp/finance-payment/update`, data }) return await request.put({url: `/erp/finance-payment/update`, data})
}, },
// 更新付款单的状态 // 更新付款单的状态
@ -56,6 +56,6 @@ export const FinancePaymentApi = {
// 导出付款单 Excel // 导出付款单 Excel
exportFinancePayment: async (params: any) => { exportFinancePayment: async (params: any) => {
return await request.download({ url: `/erp/finance-payment/export-excel`, params }) return await request.download({url: `/erp/finance-payment/export-excel`, params})
} }
} }

View File

@ -15,22 +15,22 @@ export interface FinanceReceiptVO {
export const FinanceReceiptApi = { export const FinanceReceiptApi = {
// 查询收款单分页 // 查询收款单分页
getFinanceReceiptPage: async (params: any) => { getFinanceReceiptPage: async (params: any) => {
return await request.get({ url: `/erp/finance-receipt/page`, params }) return await request.get({url: `/erp/finance-receipt/page`, params})
}, },
// 查询收款单详情 // 查询收款单详情
getFinanceReceipt: async (id: number) => { getFinanceReceipt: async (id: number) => {
return await request.get({ url: `/erp/finance-receipt/get?id=` + id }) return await request.get({url: `/erp/finance-receipt/get?id=` + id})
}, },
// 新增收款单 // 新增收款单
createFinanceReceipt: async (data: FinanceReceiptVO) => { createFinanceReceipt: async (data: FinanceReceiptVO) => {
return await request.post({ url: `/erp/finance-receipt/create`, data }) return await request.post({url: `/erp/finance-receipt/create`, data})
}, },
// 修改收款单 // 修改收款单
updateFinanceReceipt: async (data: FinanceReceiptVO) => { updateFinanceReceipt: async (data: FinanceReceiptVO) => {
return await request.put({ url: `/erp/finance-receipt/update`, data }) return await request.put({url: `/erp/finance-receipt/update`, data})
}, },
// 更新收款单的状态 // 更新收款单的状态
@ -56,6 +56,6 @@ export const FinanceReceiptApi = {
// 导出收款单 Excel // 导出收款单 Excel
exportFinanceReceipt: async (params: any) => { exportFinanceReceipt: async (params: any) => {
return await request.download({ url: `/erp/finance-receipt/export-excel`, params }) return await request.download({url: `/erp/finance-receipt/export-excel`, params})
} }
} }

View File

@ -14,36 +14,36 @@ export interface ProductCategoryVO {
export const ProductCategoryApi = { export const ProductCategoryApi = {
// 查询产品分类列表 // 查询产品分类列表
getProductCategoryList: async () => { getProductCategoryList: async () => {
return await request.get({ url: `/erp/product-category/list` }) return await request.get({url: `/erp/product-category/list`})
}, },
// 查询产品分类精简列表 // 查询产品分类精简列表
getProductCategorySimpleList: async () => { getProductCategorySimpleList: async () => {
return await request.get({ url: `/erp/product-category/simple-list` }) return await request.get({url: `/erp/product-category/simple-list`})
}, },
// 查询产品分类详情 // 查询产品分类详情
getProductCategory: async (id: number) => { getProductCategory: async (id: number) => {
return await request.get({ url: `/erp/product-category/get?id=` + id }) return await request.get({url: `/erp/product-category/get?id=` + id})
}, },
// 新增产品分类 // 新增产品分类
createProductCategory: async (data: ProductCategoryVO) => { createProductCategory: async (data: ProductCategoryVO) => {
return await request.post({ url: `/erp/product-category/create`, data }) return await request.post({url: `/erp/product-category/create`, data})
}, },
// 修改产品分类 // 修改产品分类
updateProductCategory: async (data: ProductCategoryVO) => { updateProductCategory: async (data: ProductCategoryVO) => {
return await request.put({ url: `/erp/product-category/update`, data }) return await request.put({url: `/erp/product-category/update`, data})
}, },
// 删除产品分类 // 删除产品分类
deleteProductCategory: async (id: number) => { deleteProductCategory: async (id: number) => {
return await request.delete({ url: `/erp/product-category/delete?id=` + id }) return await request.delete({url: `/erp/product-category/delete?id=` + id})
}, },
// 导出产品分类 Excel // 导出产品分类 Excel
exportProductCategory: async (params) => { exportProductCategory: async (params) => {
return await request.download({ url: `/erp/product-category/export-excel`, params }) return await request.download({url: `/erp/product-category/export-excel`, params})
} }
} }

View File

@ -22,36 +22,36 @@ export interface ProductVO {
export const ProductApi = { export const ProductApi = {
// 查询产品分页 // 查询产品分页
getProductPage: async (params: any) => { getProductPage: async (params: any) => {
return await request.get({ url: `/erp/product/page`, params }) return await request.get({url: `/erp/product/page`, params})
}, },
// 查询产品精简列表 // 查询产品精简列表
getProductSimpleList: async () => { getProductSimpleList: async () => {
return await request.get({ url: `/erp/product/simple-list` }) return await request.get({url: `/erp/product/simple-list`})
}, },
// 查询产品详情 // 查询产品详情
getProduct: async (id: number) => { getProduct: async (id: number) => {
return await request.get({ url: `/erp/product/get?id=` + id }) return await request.get({url: `/erp/product/get?id=` + id})
}, },
// 新增产品 // 新增产品
createProduct: async (data: ProductVO) => { createProduct: async (data: ProductVO) => {
return await request.post({ url: `/erp/product/create`, data }) return await request.post({url: `/erp/product/create`, data})
}, },
// 修改产品 // 修改产品
updateProduct: async (data: ProductVO) => { updateProduct: async (data: ProductVO) => {
return await request.put({ url: `/erp/product/update`, data }) return await request.put({url: `/erp/product/update`, data})
}, },
// 删除产品 // 删除产品
deleteProduct: async (id: number) => { deleteProduct: async (id: number) => {
return await request.delete({ url: `/erp/product/delete?id=` + id }) return await request.delete({url: `/erp/product/delete?id=` + id})
}, },
// 导出产品 Excel // 导出产品 Excel
exportProduct: async (params) => { exportProduct: async (params) => {
return await request.download({ url: `/erp/product/export-excel`, params }) return await request.download({url: `/erp/product/export-excel`, params})
} }
} }

View File

@ -11,36 +11,36 @@ export interface ProductUnitVO {
export const ProductUnitApi = { export const ProductUnitApi = {
// 查询产品单位分页 // 查询产品单位分页
getProductUnitPage: async (params: any) => { getProductUnitPage: async (params: any) => {
return await request.get({ url: `/erp/product-unit/page`, params }) return await request.get({url: `/erp/product-unit/page`, params})
}, },
// 查询产品单位精简列表 // 查询产品单位精简列表
getProductUnitSimpleList: async () => { getProductUnitSimpleList: async () => {
return await request.get({ url: `/erp/product-unit/simple-list` }) return await request.get({url: `/erp/product-unit/simple-list`})
}, },
// 查询产品单位详情 // 查询产品单位详情
getProductUnit: async (id: number) => { getProductUnit: async (id: number) => {
return await request.get({ url: `/erp/product-unit/get?id=` + id }) return await request.get({url: `/erp/product-unit/get?id=` + id})
}, },
// 新增产品单位 // 新增产品单位
createProductUnit: async (data: ProductUnitVO) => { createProductUnit: async (data: ProductUnitVO) => {
return await request.post({ url: `/erp/product-unit/create`, data }) return await request.post({url: `/erp/product-unit/create`, data})
}, },
// 修改产品单位 // 修改产品单位
updateProductUnit: async (data: ProductUnitVO) => { updateProductUnit: async (data: ProductUnitVO) => {
return await request.put({ url: `/erp/product-unit/update`, data }) return await request.put({url: `/erp/product-unit/update`, data})
}, },
// 删除产品单位 // 删除产品单位
deleteProductUnit: async (id: number) => { deleteProductUnit: async (id: number) => {
return await request.delete({ url: `/erp/product-unit/delete?id=` + id }) return await request.delete({url: `/erp/product-unit/delete?id=` + id})
}, },
// 导出产品单位 Excel // 导出产品单位 Excel
exportProductUnit: async (params) => { exportProductUnit: async (params) => {
return await request.download({ url: `/erp/product-unit/export-excel`, params }) return await request.download({url: `/erp/product-unit/export-excel`, params})
} }
} }

View File

@ -18,22 +18,22 @@ export interface PurchaseInVO {
export const PurchaseInApi = { export const PurchaseInApi = {
// 查询采购入库分页 // 查询采购入库分页
getPurchaseInPage: async (params: any) => { getPurchaseInPage: async (params: any) => {
return await request.get({ url: `/erp/purchase-in/page`, params }) return await request.get({url: `/erp/purchase-in/page`, params})
}, },
// 查询采购入库详情 // 查询采购入库详情
getPurchaseIn: async (id: number) => { getPurchaseIn: async (id: number) => {
return await request.get({ url: `/erp/purchase-in/get?id=` + id }) return await request.get({url: `/erp/purchase-in/get?id=` + id})
}, },
// 新增采购入库 // 新增采购入库
createPurchaseIn: async (data: PurchaseInVO) => { createPurchaseIn: async (data: PurchaseInVO) => {
return await request.post({ url: `/erp/purchase-in/create`, data }) return await request.post({url: `/erp/purchase-in/create`, data})
}, },
// 修改采购入库 // 修改采购入库
updatePurchaseIn: async (data: PurchaseInVO) => { updatePurchaseIn: async (data: PurchaseInVO) => {
return await request.put({ url: `/erp/purchase-in/update`, data }) return await request.put({url: `/erp/purchase-in/update`, data})
}, },
// 更新采购入库的状态 // 更新采购入库的状态
@ -59,6 +59,6 @@ export const PurchaseInApi = {
// 导出采购入库 Excel // 导出采购入库 Excel
exportPurchaseIn: async (params: any) => { exportPurchaseIn: async (params: any) => {
return await request.download({ url: `/erp/purchase-in/export-excel`, params }) return await request.download({url: `/erp/purchase-in/export-excel`, params})
} }
} }

View File

@ -18,22 +18,22 @@ export interface PurchaseOrderVO {
export const PurchaseOrderApi = { export const PurchaseOrderApi = {
// 查询采购订单分页 // 查询采购订单分页
getPurchaseOrderPage: async (params: any) => { getPurchaseOrderPage: async (params: any) => {
return await request.get({ url: `/erp/purchase-order/page`, params }) return await request.get({url: `/erp/purchase-order/page`, params})
}, },
// 查询采购订单详情 // 查询采购订单详情
getPurchaseOrder: async (id: number) => { getPurchaseOrder: async (id: number) => {
return await request.get({ url: `/erp/purchase-order/get?id=` + id }) return await request.get({url: `/erp/purchase-order/get?id=` + id})
}, },
// 新增采购订单 // 新增采购订单
createPurchaseOrder: async (data: PurchaseOrderVO) => { createPurchaseOrder: async (data: PurchaseOrderVO) => {
return await request.post({ url: `/erp/purchase-order/create`, data }) return await request.post({url: `/erp/purchase-order/create`, data})
}, },
// 修改采购订单 // 修改采购订单
updatePurchaseOrder: async (data: PurchaseOrderVO) => { updatePurchaseOrder: async (data: PurchaseOrderVO) => {
return await request.put({ url: `/erp/purchase-order/update`, data }) return await request.put({url: `/erp/purchase-order/update`, data})
}, },
// 更新采购订单的状态 // 更新采购订单的状态
@ -59,6 +59,6 @@ export const PurchaseOrderApi = {
// 导出采购订单 Excel // 导出采购订单 Excel
exportPurchaseOrder: async (params: any) => { exportPurchaseOrder: async (params: any) => {
return await request.download({ url: `/erp/purchase-order/export-excel`, params }) return await request.download({url: `/erp/purchase-order/export-excel`, params})
} }
} }

View File

@ -16,22 +16,22 @@ export interface PurchaseReturnVO {
export const PurchaseReturnApi = { export const PurchaseReturnApi = {
// 查询采购退货分页 // 查询采购退货分页
getPurchaseReturnPage: async (params: any) => { getPurchaseReturnPage: async (params: any) => {
return await request.get({ url: `/erp/purchase-return/page`, params }) return await request.get({url: `/erp/purchase-return/page`, params})
}, },
// 查询采购退货详情 // 查询采购退货详情
getPurchaseReturn: async (id: number) => { getPurchaseReturn: async (id: number) => {
return await request.get({ url: `/erp/purchase-return/get?id=` + id }) return await request.get({url: `/erp/purchase-return/get?id=` + id})
}, },
// 新增采购退货 // 新增采购退货
createPurchaseReturn: async (data: PurchaseReturnVO) => { createPurchaseReturn: async (data: PurchaseReturnVO) => {
return await request.post({ url: `/erp/purchase-return/create`, data }) return await request.post({url: `/erp/purchase-return/create`, data})
}, },
// 修改采购退货 // 修改采购退货
updatePurchaseReturn: async (data: PurchaseReturnVO) => { updatePurchaseReturn: async (data: PurchaseReturnVO) => {
return await request.put({ url: `/erp/purchase-return/update`, data }) return await request.put({url: `/erp/purchase-return/update`, data})
}, },
// 更新采购退货的状态 // 更新采购退货的状态
@ -57,6 +57,6 @@ export const PurchaseReturnApi = {
// 导出采购退货 Excel // 导出采购退货 Excel
exportPurchaseReturn: async (params: any) => { exportPurchaseReturn: async (params: any) => {
return await request.download({ url: `/erp/purchase-return/export-excel`, params }) return await request.download({url: `/erp/purchase-return/export-excel`, params})
} }
} }

View File

@ -23,36 +23,36 @@ export interface SupplierVO {
export const SupplierApi = { export const SupplierApi = {
// 查询供应商分页 // 查询供应商分页
getSupplierPage: async (params: any) => { getSupplierPage: async (params: any) => {
return await request.get({ url: `/erp/supplier/page`, params }) return await request.get({url: `/erp/supplier/page`, params})
}, },
// 获得供应商精简列表 // 获得供应商精简列表
getSupplierSimpleList: async () => { getSupplierSimpleList: async () => {
return await request.get({ url: `/erp/supplier/simple-list` }) return await request.get({url: `/erp/supplier/simple-list`})
}, },
// 查询供应商详情 // 查询供应商详情
getSupplier: async (id: number) => { getSupplier: async (id: number) => {
return await request.get({ url: `/erp/supplier/get?id=` + id }) return await request.get({url: `/erp/supplier/get?id=` + id})
}, },
// 新增供应商 // 新增供应商
createSupplier: async (data: SupplierVO) => { createSupplier: async (data: SupplierVO) => {
return await request.post({ url: `/erp/supplier/create`, data }) return await request.post({url: `/erp/supplier/create`, data})
}, },
// 修改供应商 // 修改供应商
updateSupplier: async (data: SupplierVO) => { updateSupplier: async (data: SupplierVO) => {
return await request.put({ url: `/erp/supplier/update`, data }) return await request.put({url: `/erp/supplier/update`, data})
}, },
// 删除供应商 // 删除供应商
deleteSupplier: async (id: number) => { deleteSupplier: async (id: number) => {
return await request.delete({ url: `/erp/supplier/delete?id=` + id }) return await request.delete({url: `/erp/supplier/delete?id=` + id})
}, },
// 导出供应商 Excel // 导出供应商 Excel
exportSupplier: async (params) => { exportSupplier: async (params) => {
return await request.download({ url: `/erp/supplier/export-excel`, params }) return await request.download({url: `/erp/supplier/export-excel`, params})
} }
} }

View File

@ -23,36 +23,36 @@ export interface CustomerVO {
export const CustomerApi = { export const CustomerApi = {
// 查询客户分页 // 查询客户分页
getCustomerPage: async (params: any) => { getCustomerPage: async (params: any) => {
return await request.get({ url: `/erp/customer/page`, params }) return await request.get({url: `/erp/customer/page`, params})
}, },
// 查询客户精简列表 // 查询客户精简列表
getCustomerSimpleList: async () => { getCustomerSimpleList: async () => {
return await request.get({ url: `/erp/customer/simple-list` }) return await request.get({url: `/erp/customer/simple-list`})
}, },
// 查询客户详情 // 查询客户详情
getCustomer: async (id: number) => { getCustomer: async (id: number) => {
return await request.get({ url: `/erp/customer/get?id=` + id }) return await request.get({url: `/erp/customer/get?id=` + id})
}, },
// 新增客户 // 新增客户
createCustomer: async (data: CustomerVO) => { createCustomer: async (data: CustomerVO) => {
return await request.post({ url: `/erp/customer/create`, data }) return await request.post({url: `/erp/customer/create`, data})
}, },
// 修改客户 // 修改客户
updateCustomer: async (data: CustomerVO) => { updateCustomer: async (data: CustomerVO) => {
return await request.put({ url: `/erp/customer/update`, data }) return await request.put({url: `/erp/customer/update`, data})
}, },
// 删除客户 // 删除客户
deleteCustomer: async (id: number) => { deleteCustomer: async (id: number) => {
return await request.delete({ url: `/erp/customer/delete?id=` + id }) return await request.delete({url: `/erp/customer/delete?id=` + id})
}, },
// 导出客户 Excel // 导出客户 Excel
exportCustomer: async (params) => { exportCustomer: async (params) => {
return await request.download({ url: `/erp/customer/export-excel`, params }) return await request.download({url: `/erp/customer/export-excel`, params})
} }
} }

View File

@ -18,22 +18,22 @@ export interface SaleOrderVO {
export const SaleOrderApi = { export const SaleOrderApi = {
// 查询销售订单分页 // 查询销售订单分页
getSaleOrderPage: async (params: any) => { getSaleOrderPage: async (params: any) => {
return await request.get({ url: `/erp/sale-order/page`, params }) return await request.get({url: `/erp/sale-order/page`, params})
}, },
// 查询销售订单详情 // 查询销售订单详情
getSaleOrder: async (id: number) => { getSaleOrder: async (id: number) => {
return await request.get({ url: `/erp/sale-order/get?id=` + id }) return await request.get({url: `/erp/sale-order/get?id=` + id})
}, },
// 新增销售订单 // 新增销售订单
createSaleOrder: async (data: SaleOrderVO) => { createSaleOrder: async (data: SaleOrderVO) => {
return await request.post({ url: `/erp/sale-order/create`, data }) return await request.post({url: `/erp/sale-order/create`, data})
}, },
// 修改销售订单 // 修改销售订单
updateSaleOrder: async (data: SaleOrderVO) => { updateSaleOrder: async (data: SaleOrderVO) => {
return await request.put({ url: `/erp/sale-order/update`, data }) return await request.put({url: `/erp/sale-order/update`, data})
}, },
// 更新销售订单的状态 // 更新销售订单的状态
@ -59,6 +59,6 @@ export const SaleOrderApi = {
// 导出销售订单 Excel // 导出销售订单 Excel
exportSaleOrder: async (params: any) => { exportSaleOrder: async (params: any) => {
return await request.download({ url: `/erp/sale-order/export-excel`, params }) return await request.download({url: `/erp/sale-order/export-excel`, params})
} }
} }

View File

@ -16,22 +16,22 @@ export interface SaleOutVO {
export const SaleOutApi = { export const SaleOutApi = {
// 查询销售出库分页 // 查询销售出库分页
getSaleOutPage: async (params: any) => { getSaleOutPage: async (params: any) => {
return await request.get({ url: `/erp/sale-out/page`, params }) return await request.get({url: `/erp/sale-out/page`, params})
}, },
// 查询销售出库详情 // 查询销售出库详情
getSaleOut: async (id: number) => { getSaleOut: async (id: number) => {
return await request.get({ url: `/erp/sale-out/get?id=` + id }) return await request.get({url: `/erp/sale-out/get?id=` + id})
}, },
// 新增销售出库 // 新增销售出库
createSaleOut: async (data: SaleOutVO) => { createSaleOut: async (data: SaleOutVO) => {
return await request.post({ url: `/erp/sale-out/create`, data }) return await request.post({url: `/erp/sale-out/create`, data})
}, },
// 修改销售出库 // 修改销售出库
updateSaleOut: async (data: SaleOutVO) => { updateSaleOut: async (data: SaleOutVO) => {
return await request.put({ url: `/erp/sale-out/update`, data }) return await request.put({url: `/erp/sale-out/update`, data})
}, },
// 更新销售出库的状态 // 更新销售出库的状态
@ -57,6 +57,6 @@ export const SaleOutApi = {
// 导出销售出库 Excel // 导出销售出库 Excel
exportSaleOut: async (params: any) => { exportSaleOut: async (params: any) => {
return await request.download({ url: `/erp/sale-out/export-excel`, params }) return await request.download({url: `/erp/sale-out/export-excel`, params})
} }
} }

View File

@ -16,22 +16,22 @@ export interface SaleReturnVO {
export const SaleReturnApi = { export const SaleReturnApi = {
// 查询销售退货分页 // 查询销售退货分页
getSaleReturnPage: async (params: any) => { getSaleReturnPage: async (params: any) => {
return await request.get({ url: `/erp/sale-return/page`, params }) return await request.get({url: `/erp/sale-return/page`, params})
}, },
// 查询销售退货详情 // 查询销售退货详情
getSaleReturn: async (id: number) => { getSaleReturn: async (id: number) => {
return await request.get({ url: `/erp/sale-return/get?id=` + id }) return await request.get({url: `/erp/sale-return/get?id=` + id})
}, },
// 新增销售退货 // 新增销售退货
createSaleReturn: async (data: SaleReturnVO) => { createSaleReturn: async (data: SaleReturnVO) => {
return await request.post({ url: `/erp/sale-return/create`, data }) return await request.post({url: `/erp/sale-return/create`, data})
}, },
// 修改销售退货 // 修改销售退货
updateSaleReturn: async (data: SaleReturnVO) => { updateSaleReturn: async (data: SaleReturnVO) => {
return await request.put({ url: `/erp/sale-return/update`, data }) return await request.put({url: `/erp/sale-return/update`, data})
}, },
// 更新销售退货的状态 // 更新销售退货的状态
@ -57,6 +57,6 @@ export const SaleReturnApi = {
// 导出销售退货 Excel // 导出销售退货 Excel
exportSaleReturn: async (params: any) => { exportSaleReturn: async (params: any) => {
return await request.download({ url: `/erp/sale-return/export-excel`, params }) return await request.download({url: `/erp/sale-return/export-excel`, params})
} }
} }

View File

@ -18,11 +18,11 @@ export interface ErpPurchaseTimeSummaryRespVO {
export const PurchaseStatisticsApi = { export const PurchaseStatisticsApi = {
// 获得采购统计 // 获得采购统计
getPurchaseSummary: async (): Promise<ErpPurchaseSummaryRespVO> => { getPurchaseSummary: async (): Promise<ErpPurchaseSummaryRespVO> => {
return await request.get({ url: `/erp/purchase-statistics/summary` }) return await request.get({url: `/erp/purchase-statistics/summary`})
}, },
// 获得采购时间段统计 // 获得采购时间段统计
getPurchaseTimeSummary: async (): Promise<ErpPurchaseTimeSummaryRespVO[]> => { getPurchaseTimeSummary: async (): Promise<ErpPurchaseTimeSummaryRespVO[]> => {
return await request.get({ url: `/erp/purchase-statistics/time-summary` }) return await request.get({url: `/erp/purchase-statistics/time-summary`})
} }
} }

View File

@ -18,11 +18,11 @@ export interface ErpSaleTimeSummaryRespVO {
export const SaleStatisticsApi = { export const SaleStatisticsApi = {
// 获得销售统计 // 获得销售统计
getSaleSummary: async (): Promise<ErpSaleSummaryRespVO> => { getSaleSummary: async (): Promise<ErpSaleSummaryRespVO> => {
return await request.get({ url: `/erp/sale-statistics/summary` }) return await request.get({url: `/erp/sale-statistics/summary`})
}, },
// 获得销售时间段统计 // 获得销售时间段统计
getSaleTimeSummary: async (): Promise<ErpSaleTimeSummaryRespVO[]> => { getSaleTimeSummary: async (): Promise<ErpSaleTimeSummaryRespVO[]> => {
return await request.get({ url: `/erp/sale-statistics/time-summary` }) return await request.get({url: `/erp/sale-statistics/time-summary`})
} }
} }

View File

@ -15,22 +15,22 @@ export interface StockCheckVO {
export const StockCheckApi = { export const StockCheckApi = {
// 查询库存盘点单分页 // 查询库存盘点单分页
getStockCheckPage: async (params: any) => { getStockCheckPage: async (params: any) => {
return await request.get({ url: `/erp/stock-check/page`, params }) return await request.get({url: `/erp/stock-check/page`, params})
}, },
// 查询库存盘点单详情 // 查询库存盘点单详情
getStockCheck: async (id: number) => { getStockCheck: async (id: number) => {
return await request.get({ url: `/erp/stock-check/get?id=` + id }) return await request.get({url: `/erp/stock-check/get?id=` + id})
}, },
// 新增库存盘点单 // 新增库存盘点单
createStockCheck: async (data: StockCheckVO) => { createStockCheck: async (data: StockCheckVO) => {
return await request.post({ url: `/erp/stock-check/create`, data }) return await request.post({url: `/erp/stock-check/create`, data})
}, },
// 修改库存盘点单 // 修改库存盘点单
updateStockCheck: async (data: StockCheckVO) => { updateStockCheck: async (data: StockCheckVO) => {
return await request.put({ url: `/erp/stock-check/update`, data }) return await request.put({url: `/erp/stock-check/update`, data})
}, },
// 更新库存盘点单的状态 // 更新库存盘点单的状态
@ -56,6 +56,6 @@ export const StockCheckApi = {
// 导出库存盘点单 Excel // 导出库存盘点单 Excel
exportStockCheck: async (params) => { exportStockCheck: async (params) => {
return await request.download({ url: `/erp/stock-check/export-excel`, params }) return await request.download({url: `/erp/stock-check/export-excel`, params})
} }
} }

View File

@ -16,22 +16,22 @@ export interface StockInVO {
export const StockInApi = { export const StockInApi = {
// 查询其它入库单分页 // 查询其它入库单分页
getStockInPage: async (params: any) => { getStockInPage: async (params: any) => {
return await request.get({ url: `/erp/stock-in/page`, params }) return await request.get({url: `/erp/stock-in/page`, params})
}, },
// 查询其它入库单详情 // 查询其它入库单详情
getStockIn: async (id: number) => { getStockIn: async (id: number) => {
return await request.get({ url: `/erp/stock-in/get?id=` + id }) return await request.get({url: `/erp/stock-in/get?id=` + id})
}, },
// 新增其它入库单 // 新增其它入库单
createStockIn: async (data: StockInVO) => { createStockIn: async (data: StockInVO) => {
return await request.post({ url: `/erp/stock-in/create`, data }) return await request.post({url: `/erp/stock-in/create`, data})
}, },
// 修改其它入库单 // 修改其它入库单
updateStockIn: async (data: StockInVO) => { updateStockIn: async (data: StockInVO) => {
return await request.put({ url: `/erp/stock-in/update`, data }) return await request.put({url: `/erp/stock-in/update`, data})
}, },
// 更新其它入库单的状态 // 更新其它入库单的状态
@ -57,6 +57,6 @@ export const StockInApi = {
// 导出其它入库单 Excel // 导出其它入库单 Excel
exportStockIn: async (params) => { exportStockIn: async (params) => {
return await request.download({ url: `/erp/stock-in/export-excel`, params }) return await request.download({url: `/erp/stock-in/export-excel`, params})
} }
} }

View File

@ -15,22 +15,22 @@ export interface StockMoveVO {
export const StockMoveApi = { export const StockMoveApi = {
// 查询库存调度单分页 // 查询库存调度单分页
getStockMovePage: async (params: any) => { getStockMovePage: async (params: any) => {
return await request.get({ url: `/erp/stock-move/page`, params }) return await request.get({url: `/erp/stock-move/page`, params})
}, },
// 查询库存调度单详情 // 查询库存调度单详情
getStockMove: async (id: number) => { getStockMove: async (id: number) => {
return await request.get({ url: `/erp/stock-move/get?id=` + id }) return await request.get({url: `/erp/stock-move/get?id=` + id})
}, },
// 新增库存调度单 // 新增库存调度单
createStockMove: async (data: StockMoveVO) => { createStockMove: async (data: StockMoveVO) => {
return await request.post({ url: `/erp/stock-move/create`, data }) return await request.post({url: `/erp/stock-move/create`, data})
}, },
// 修改库存调度单 // 修改库存调度单
updateStockMove: async (data: StockMoveVO) => { updateStockMove: async (data: StockMoveVO) => {
return await request.put({ url: `/erp/stock-move/update`, data }) return await request.put({url: `/erp/stock-move/update`, data})
}, },
// 更新库存调度单的状态 // 更新库存调度单的状态
@ -56,6 +56,6 @@ export const StockMoveApi = {
// 导出库存调度单 Excel // 导出库存调度单 Excel
exportStockMove: async (params) => { exportStockMove: async (params) => {
return await request.download({ url: `/erp/stock-move/export-excel`, params }) return await request.download({url: `/erp/stock-move/export-excel`, params})
} }
} }

View File

@ -16,22 +16,22 @@ export interface StockOutVO {
export const StockOutApi = { export const StockOutApi = {
// 查询其它出库单分页 // 查询其它出库单分页
getStockOutPage: async (params: any) => { getStockOutPage: async (params: any) => {
return await request.get({ url: `/erp/stock-out/page`, params }) return await request.get({url: `/erp/stock-out/page`, params})
}, },
// 查询其它出库单详情 // 查询其它出库单详情
getStockOut: async (id: number) => { getStockOut: async (id: number) => {
return await request.get({ url: `/erp/stock-out/get?id=` + id }) return await request.get({url: `/erp/stock-out/get?id=` + id})
}, },
// 新增其它出库单 // 新增其它出库单
createStockOut: async (data: StockOutVO) => { createStockOut: async (data: StockOutVO) => {
return await request.post({ url: `/erp/stock-out/create`, data }) return await request.post({url: `/erp/stock-out/create`, data})
}, },
// 修改其它出库单 // 修改其它出库单
updateStockOut: async (data: StockOutVO) => { updateStockOut: async (data: StockOutVO) => {
return await request.put({ url: `/erp/stock-out/update`, data }) return await request.put({url: `/erp/stock-out/update`, data})
}, },
// 更新其它出库单的状态 // 更新其它出库单的状态
@ -57,6 +57,6 @@ export const StockOutApi = {
// 导出其它出库单 Excel // 导出其它出库单 Excel
exportStockOut: async (params) => { exportStockOut: async (params) => {
return await request.download({ url: `/erp/stock-out/export-excel`, params }) return await request.download({url: `/erp/stock-out/export-excel`, params})
} }
} }

View File

@ -17,16 +17,16 @@ export interface StockRecordVO {
export const StockRecordApi = { export const StockRecordApi = {
// 查询产品库存明细分页 // 查询产品库存明细分页
getStockRecordPage: async (params: any) => { getStockRecordPage: async (params: any) => {
return await request.get({ url: `/erp/stock-record/page`, params }) return await request.get({url: `/erp/stock-record/page`, params})
}, },
// 查询产品库存明细详情 // 查询产品库存明细详情
getStockRecord: async (id: number) => { getStockRecord: async (id: number) => {
return await request.get({ url: `/erp/stock-record/get?id=` + id }) return await request.get({url: `/erp/stock-record/get?id=` + id})
}, },
// 导出产品库存明细 Excel // 导出产品库存明细 Excel
exportStockRecord: async (params) => { exportStockRecord: async (params) => {
return await request.download({ url: `/erp/stock-record/export-excel`, params }) return await request.download({url: `/erp/stock-record/export-excel`, params})
} }
} }

View File

@ -16,26 +16,26 @@ export interface StockVO {
export const StockApi = { export const StockApi = {
// 查询产品库存分页 // 查询产品库存分页
getStockPage: async (params: any) => { getStockPage: async (params: any) => {
return await request.get({ url: `/erp/stock/page`, params }) return await request.get({url: `/erp/stock/page`, params})
}, },
// 查询产品库存详情 // 查询产品库存详情
getStock: async (id: number) => { getStock: async (id: number) => {
return await request.get({ url: `/erp/stock/get?id=` + id }) return await request.get({url: `/erp/stock/get?id=` + id})
}, },
// 查询产品库存详情 // 查询产品库存详情
getStock2: async (productId: number, warehouseId: number) => { getStock2: async (productId: number, warehouseId: number) => {
return await request.get({ url: `/erp/stock/get`, params: { productId, warehouseId } }) return await request.get({url: `/erp/stock/get`, params: {productId, warehouseId}})
}, },
// 获得产品库存数量 // 获得产品库存数量
getStockCount: async (productId: number) => { getStockCount: async (productId: number) => {
return await request.get({ url: `/erp/stock/get-count`, params: { productId } }) return await request.get({url: `/erp/stock/get-count`, params: {productId}})
}, },
// 导出产品库存 Excel // 导出产品库存 Excel
exportStock: async (params) => { exportStock: async (params) => {
return await request.download({ url: `/erp/stock/export-excel`, params }) return await request.download({url: `/erp/stock/export-excel`, params})
} }
} }

View File

@ -18,27 +18,27 @@ export interface WarehouseVO {
export const WarehouseApi = { export const WarehouseApi = {
// 查询仓库分页 // 查询仓库分页
getWarehousePage: async (params: any) => { getWarehousePage: async (params: any) => {
return await request.get({ url: `/erp/warehouse/page`, params }) return await request.get({url: `/erp/warehouse/page`, params})
}, },
// 查询仓库精简列表 // 查询仓库精简列表
getWarehouseSimpleList: async () => { getWarehouseSimpleList: async () => {
return await request.get({ url: `/erp/warehouse/simple-list` }) return await request.get({url: `/erp/warehouse/simple-list`})
}, },
// 查询仓库详情 // 查询仓库详情
getWarehouse: async (id: number) => { getWarehouse: async (id: number) => {
return await request.get({ url: `/erp/warehouse/get?id=` + id }) return await request.get({url: `/erp/warehouse/get?id=` + id})
}, },
// 新增仓库 // 新增仓库
createWarehouse: async (data: WarehouseVO) => { createWarehouse: async (data: WarehouseVO) => {
return await request.post({ url: `/erp/warehouse/create`, data }) return await request.post({url: `/erp/warehouse/create`, data})
}, },
// 修改仓库 // 修改仓库
updateWarehouse: async (data: WarehouseVO) => { updateWarehouse: async (data: WarehouseVO) => {
return await request.put({ url: `/erp/warehouse/update`, data }) return await request.put({url: `/erp/warehouse/update`, data})
}, },
// 修改仓库默认状态 // 修改仓库默认状态
@ -54,11 +54,11 @@ export const WarehouseApi = {
// 删除仓库 // 删除仓库
deleteWarehouse: async (id: number) => { deleteWarehouse: async (id: number) => {
return await request.delete({ url: `/erp/warehouse/delete?id=` + id }) return await request.delete({url: `/erp/warehouse/delete?id=` + id})
}, },
// 导出仓库 Excel // 导出仓库 Excel
exportWarehouse: async (params) => { exportWarehouse: async (params) => {
return await request.download({ url: `/erp/warehouse/export-excel`, params }) return await request.download({url: `/erp/warehouse/export-excel`, params})
} }
} }

View File

@ -25,10 +25,10 @@ export interface ApiAccessLogVO {
// 查询列表API 访问日志 // 查询列表API 访问日志
export const getApiAccessLogPage = (params: PageParam) => { export const getApiAccessLogPage = (params: PageParam) => {
return request.get({ url: '/infra/api-access-log/page', params }) return request.get({url: '/infra/api-access-log/page', params})
} }
// 导出API 访问日志 // 导出API 访问日志
export const exportApiAccessLog = (params) => { export const exportApiAccessLog = (params) => {
return request.download({ url: '/infra/api-access-log/export-excel', params }) return request.download({url: '/infra/api-access-log/export-excel', params})
} }

View File

@ -29,7 +29,7 @@ export interface ApiErrorLogVO {
// 查询列表API 访问日志 // 查询列表API 访问日志
export const getApiErrorLogPage = (params: PageParam) => { export const getApiErrorLogPage = (params: PageParam) => {
return request.get({ url: '/infra/api-error-log/page', params }) return request.get({url: '/infra/api-error-log/page', params})
} }
// 更新 API 错误日志的处理状态 // 更新 API 错误日志的处理状态

View File

@ -68,55 +68,55 @@ export type CodegenCreateListReqVO = {
// 查询列表代码生成表定义 // 查询列表代码生成表定义
export const getCodegenTableList = (dataSourceConfigId: number) => { export const getCodegenTableList = (dataSourceConfigId: number) => {
return request.get({ url: '/infra/codegen/table/list?dataSourceConfigId=' + dataSourceConfigId }) return request.get({url: '/infra/codegen/table/list?dataSourceConfigId=' + dataSourceConfigId})
} }
// 查询列表代码生成表定义 // 查询列表代码生成表定义
export const getCodegenTablePage = (params: PageParam) => { export const getCodegenTablePage = (params: PageParam) => {
return request.get({ url: '/infra/codegen/table/page', params }) return request.get({url: '/infra/codegen/table/page', params})
} }
// 查询详情代码生成表定义 // 查询详情代码生成表定义
export const getCodegenTable = (id: number) => { export const getCodegenTable = (id: number) => {
return request.get({ url: '/infra/codegen/detail?tableId=' + id }) return request.get({url: '/infra/codegen/detail?tableId=' + id})
} }
// 新增代码生成表定义 // 新增代码生成表定义
export const createCodegenTable = (data: CodegenCreateListReqVO) => { export const createCodegenTable = (data: CodegenCreateListReqVO) => {
return request.post({ url: '/infra/codegen/create', data }) return request.post({url: '/infra/codegen/create', data})
} }
// 修改代码生成表定义 // 修改代码生成表定义
export const updateCodegenTable = (data: CodegenUpdateReqVO) => { export const updateCodegenTable = (data: CodegenUpdateReqVO) => {
return request.put({ url: '/infra/codegen/update', data }) return request.put({url: '/infra/codegen/update', data})
} }
// 基于数据库的表结构,同步数据库的表和字段定义 // 基于数据库的表结构,同步数据库的表和字段定义
export const syncCodegenFromDB = (id: number) => { export const syncCodegenFromDB = (id: number) => {
return request.put({ url: '/infra/codegen/sync-from-db?tableId=' + id }) return request.put({url: '/infra/codegen/sync-from-db?tableId=' + id})
} }
// 预览生成代码 // 预览生成代码
export const previewCodegen = (id: number) => { export const previewCodegen = (id: number) => {
return request.get({ url: '/infra/codegen/preview?tableId=' + id }) return request.get({url: '/infra/codegen/preview?tableId=' + id})
} }
// 下载生成代码 // 下载生成代码
export const downloadCodegen = (id: number) => { export const downloadCodegen = (id: number) => {
return request.download({ url: '/infra/codegen/download?tableId=' + id }) return request.download({url: '/infra/codegen/download?tableId=' + id})
} }
// 获得表定义 // 获得表定义
export const getSchemaTableList = (params) => { export const getSchemaTableList = (params) => {
return request.get({ url: '/infra/codegen/db/table/list', params }) return request.get({url: '/infra/codegen/db/table/list', params})
} }
// 基于数据库的表结构,创建代码生成器的表定义 // 基于数据库的表结构,创建代码生成器的表定义
export const createCodegenList = (data) => { export const createCodegenList = (data) => {
return request.post({ url: '/infra/codegen/create-list', data }) return request.post({url: '/infra/codegen/create-list', data})
} }
// 删除代码生成表定义 // 删除代码生成表定义
export const deleteCodegenTable = (id: number) => { export const deleteCodegenTable = (id: number) => {
return request.delete({ url: '/infra/codegen/delete?tableId=' + id }) return request.delete({url: '/infra/codegen/delete?tableId=' + id})
} }

View File

@ -14,35 +14,35 @@ export interface ConfigVO {
// 查询参数列表 // 查询参数列表
export const getConfigPage = (params: PageParam) => { export const getConfigPage = (params: PageParam) => {
return request.get({ url: '/infra/config/page', params }) return request.get({url: '/infra/config/page', params})
} }
// 查询参数详情 // 查询参数详情
export const getConfig = (id: number) => { export const getConfig = (id: number) => {
return request.get({ url: '/infra/config/get?id=' + id }) return request.get({url: '/infra/config/get?id=' + id})
} }
// 根据参数键名查询参数值 // 根据参数键名查询参数值
export const getConfigKey = (configKey: string) => { export const getConfigKey = (configKey: string) => {
return request.get({ url: '/infra/config/get-value-by-key?key=' + configKey }) return request.get({url: '/infra/config/get-value-by-key?key=' + configKey})
} }
// 新增参数 // 新增参数
export const createConfig = (data: ConfigVO) => { export const createConfig = (data: ConfigVO) => {
return request.post({ url: '/infra/config/create', data }) return request.post({url: '/infra/config/create', data})
} }
// 修改参数 // 修改参数
export const updateConfig = (data: ConfigVO) => { export const updateConfig = (data: ConfigVO) => {
return request.put({ url: '/infra/config/update', data }) return request.put({url: '/infra/config/update', data})
} }
// 删除参数 // 删除参数
export const deleteConfig = (id: number) => { export const deleteConfig = (id: number) => {
return request.delete({ url: '/infra/config/delete?id=' + id }) return request.delete({url: '/infra/config/delete?id=' + id})
} }
// 导出参数 // 导出参数
export const exportConfig = (params) => { export const exportConfig = (params) => {
return request.download({ url: '/infra/config/export', params }) return request.download({url: '/infra/config/export', params})
} }

View File

@ -11,25 +11,25 @@ export interface DataSourceConfigVO {
// 新增数据源配置 // 新增数据源配置
export const createDataSourceConfig = (data: DataSourceConfigVO) => { export const createDataSourceConfig = (data: DataSourceConfigVO) => {
return request.post({ url: '/infra/data-source-config/create', data }) return request.post({url: '/infra/data-source-config/create', data})
} }
// 修改数据源配置 // 修改数据源配置
export const updateDataSourceConfig = (data: DataSourceConfigVO) => { export const updateDataSourceConfig = (data: DataSourceConfigVO) => {
return request.put({ url: '/infra/data-source-config/update', data }) return request.put({url: '/infra/data-source-config/update', data})
} }
// 删除数据源配置 // 删除数据源配置
export const deleteDataSourceConfig = (id: number) => { export const deleteDataSourceConfig = (id: number) => {
return request.delete({ url: '/infra/data-source-config/delete?id=' + id }) return request.delete({url: '/infra/data-source-config/delete?id=' + id})
} }
// 查询数据源配置详情 // 查询数据源配置详情
export const getDataSourceConfig = (id: number) => { export const getDataSourceConfig = (id: number) => {
return request.get({ url: '/infra/data-source-config/get?id=' + id }) return request.get({url: '/infra/data-source-config/get?id=' + id})
} }
// 查询数据源配置列表 // 查询数据源配置列表
export const getDataSourceConfigList = () => { export const getDataSourceConfigList = () => {
return request.get({ url: '/infra/data-source-config/list' }) return request.get({url: '/infra/data-source-config/list'})
} }

View File

@ -11,30 +11,30 @@ export interface Demo01ContactVO {
// 查询示例联系人分页 // 查询示例联系人分页
export const getDemo01ContactPage = async (params) => { export const getDemo01ContactPage = async (params) => {
return await request.get({ url: `/infra/demo01-contact/page`, params }) return await request.get({url: `/infra/demo01-contact/page`, params})
} }
// 查询示例联系人详情 // 查询示例联系人详情
export const getDemo01Contact = async (id: number) => { export const getDemo01Contact = async (id: number) => {
return await request.get({ url: `/infra/demo01-contact/get?id=` + id }) return await request.get({url: `/infra/demo01-contact/get?id=` + id})
} }
// 新增示例联系人 // 新增示例联系人
export const createDemo01Contact = async (data: Demo01ContactVO) => { export const createDemo01Contact = async (data: Demo01ContactVO) => {
return await request.post({ url: `/infra/demo01-contact/create`, data }) return await request.post({url: `/infra/demo01-contact/create`, data})
} }
// 修改示例联系人 // 修改示例联系人
export const updateDemo01Contact = async (data: Demo01ContactVO) => { export const updateDemo01Contact = async (data: Demo01ContactVO) => {
return await request.put({ url: `/infra/demo01-contact/update`, data }) return await request.put({url: `/infra/demo01-contact/update`, data})
} }
// 删除示例联系人 // 删除示例联系人
export const deleteDemo01Contact = async (id: number) => { export const deleteDemo01Contact = async (id: number) => {
return await request.delete({ url: `/infra/demo01-contact/delete?id=` + id }) return await request.delete({url: `/infra/demo01-contact/delete?id=` + id})
} }
// 导出示例联系人 Excel // 导出示例联系人 Excel
export const exportDemo01Contact = async (params) => { export const exportDemo01Contact = async (params) => {
return await request.download({ url: `/infra/demo01-contact/export-excel`, params }) return await request.download({url: `/infra/demo01-contact/export-excel`, params})
} }

View File

@ -8,30 +8,30 @@ export interface Demo02CategoryVO {
// 查询示例分类列表 // 查询示例分类列表
export const getDemo02CategoryList = async () => { export const getDemo02CategoryList = async () => {
return await request.get({ url: `/infra/demo02-category/list` }) return await request.get({url: `/infra/demo02-category/list`})
} }
// 查询示例分类详情 // 查询示例分类详情
export const getDemo02Category = async (id: number) => { export const getDemo02Category = async (id: number) => {
return await request.get({ url: `/infra/demo02-category/get?id=` + id }) return await request.get({url: `/infra/demo02-category/get?id=` + id})
} }
// 新增示例分类 // 新增示例分类
export const createDemo02Category = async (data: Demo02CategoryVO) => { export const createDemo02Category = async (data: Demo02CategoryVO) => {
return await request.post({ url: `/infra/demo02-category/create`, data }) return await request.post({url: `/infra/demo02-category/create`, data})
} }
// 修改示例分类 // 修改示例分类
export const updateDemo02Category = async (data: Demo02CategoryVO) => { export const updateDemo02Category = async (data: Demo02CategoryVO) => {
return await request.put({ url: `/infra/demo02-category/update`, data }) return await request.put({url: `/infra/demo02-category/update`, data})
} }
// 删除示例分类 // 删除示例分类
export const deleteDemo02Category = async (id: number) => { export const deleteDemo02Category = async (id: number) => {
return await request.delete({ url: `/infra/demo02-category/delete?id=` + id }) return await request.delete({url: `/infra/demo02-category/delete?id=` + id})
} }
// 导出示例分类 Excel // 导出示例分类 Excel
export const exportDemo02Category = async (params) => { export const exportDemo02Category = async (params) => {
return await request.download({ url: `/infra/demo02-category/export-excel`, params }) return await request.download({url: `/infra/demo02-category/export-excel`, params})
} }

View File

@ -10,82 +10,82 @@ export interface Demo03StudentVO {
// 查询学生分页 // 查询学生分页
export const getDemo03StudentPage = async (params) => { export const getDemo03StudentPage = async (params) => {
return await request.get({ url: `/infra/demo03-student/page`, params }) return await request.get({url: `/infra/demo03-student/page`, params})
} }
// 查询学生详情 // 查询学生详情
export const getDemo03Student = async (id: number) => { export const getDemo03Student = async (id: number) => {
return await request.get({ url: `/infra/demo03-student/get?id=` + id }) return await request.get({url: `/infra/demo03-student/get?id=` + id})
} }
// 新增学生 // 新增学生
export const createDemo03Student = async (data: Demo03StudentVO) => { export const createDemo03Student = async (data: Demo03StudentVO) => {
return await request.post({ url: `/infra/demo03-student/create`, data }) return await request.post({url: `/infra/demo03-student/create`, data})
} }
// 修改学生 // 修改学生
export const updateDemo03Student = async (data: Demo03StudentVO) => { export const updateDemo03Student = async (data: Demo03StudentVO) => {
return await request.put({ url: `/infra/demo03-student/update`, data }) return await request.put({url: `/infra/demo03-student/update`, data})
} }
// 删除学生 // 删除学生
export const deleteDemo03Student = async (id: number) => { export const deleteDemo03Student = async (id: number) => {
return await request.delete({ url: `/infra/demo03-student/delete?id=` + id }) return await request.delete({url: `/infra/demo03-student/delete?id=` + id})
} }
// 导出学生 Excel // 导出学生 Excel
export const exportDemo03Student = async (params) => { export const exportDemo03Student = async (params) => {
return await request.download({ url: `/infra/demo03-student/export-excel`, params }) return await request.download({url: `/infra/demo03-student/export-excel`, params})
} }
// ==================== 子表(学生课程) ==================== // ==================== 子表(学生课程) ====================
// 获得学生课程分页 // 获得学生课程分页
export const getDemo03CoursePage = async (params) => { export const getDemo03CoursePage = async (params) => {
return await request.get({ url: `/infra/demo03-student/demo03-course/page`, params }) return await request.get({url: `/infra/demo03-student/demo03-course/page`, params})
} }
// 新增学生课程 // 新增学生课程
export const createDemo03Course = async (data) => { export const createDemo03Course = async (data) => {
return await request.post({ url: `/infra/demo03-student/demo03-course/create`, data }) return await request.post({url: `/infra/demo03-student/demo03-course/create`, data})
} }
// 修改学生课程 // 修改学生课程
export const updateDemo03Course = async (data) => { export const updateDemo03Course = async (data) => {
return await request.put({ url: `/infra/demo03-student/demo03-course/update`, data }) return await request.put({url: `/infra/demo03-student/demo03-course/update`, data})
} }
// 删除学生课程 // 删除学生课程
export const deleteDemo03Course = async (id: number) => { export const deleteDemo03Course = async (id: number) => {
return await request.delete({ url: `/infra/demo03-student/demo03-course/delete?id=` + id }) return await request.delete({url: `/infra/demo03-student/demo03-course/delete?id=` + id})
} }
// 获得学生课程 // 获得学生课程
export const getDemo03Course = async (id: number) => { export const getDemo03Course = async (id: number) => {
return await request.get({ url: `/infra/demo03-student/demo03-course/get?id=` + id }) return await request.get({url: `/infra/demo03-student/demo03-course/get?id=` + id})
} }
// ==================== 子表(学生班级) ==================== // ==================== 子表(学生班级) ====================
// 获得学生班级分页 // 获得学生班级分页
export const getDemo03GradePage = async (params) => { export const getDemo03GradePage = async (params) => {
return await request.get({ url: `/infra/demo03-student/demo03-grade/page`, params }) return await request.get({url: `/infra/demo03-student/demo03-grade/page`, params})
} }
// 新增学生班级 // 新增学生班级
export const createDemo03Grade = async (data) => { export const createDemo03Grade = async (data) => {
return await request.post({ url: `/infra/demo03-student/demo03-grade/create`, data }) return await request.post({url: `/infra/demo03-student/demo03-grade/create`, data})
} }
// 修改学生班级 // 修改学生班级
export const updateDemo03Grade = async (data) => { export const updateDemo03Grade = async (data) => {
return await request.put({ url: `/infra/demo03-student/demo03-grade/update`, data }) return await request.put({url: `/infra/demo03-student/demo03-grade/update`, data})
} }
// 删除学生班级 // 删除学生班级
export const deleteDemo03Grade = async (id: number) => { export const deleteDemo03Grade = async (id: number) => {
return await request.delete({ url: `/infra/demo03-student/demo03-grade/delete?id=` + id }) return await request.delete({url: `/infra/demo03-student/demo03-grade/delete?id=` + id})
} }
// 获得学生班级 // 获得学生班级
export const getDemo03Grade = async (id: number) => { export const getDemo03Grade = async (id: number) => {
return await request.get({ url: `/infra/demo03-student/demo03-grade/get?id=` + id }) return await request.get({url: `/infra/demo03-student/demo03-grade/get?id=` + id})
} }

View File

@ -10,32 +10,32 @@ export interface Demo03StudentVO {
// 查询学生分页 // 查询学生分页
export const getDemo03StudentPage = async (params) => { export const getDemo03StudentPage = async (params) => {
return await request.get({ url: `/infra/demo03-student/page`, params }) return await request.get({url: `/infra/demo03-student/page`, params})
} }
// 查询学生详情 // 查询学生详情
export const getDemo03Student = async (id: number) => { export const getDemo03Student = async (id: number) => {
return await request.get({ url: `/infra/demo03-student/get?id=` + id }) return await request.get({url: `/infra/demo03-student/get?id=` + id})
} }
// 新增学生 // 新增学生
export const createDemo03Student = async (data: Demo03StudentVO) => { export const createDemo03Student = async (data: Demo03StudentVO) => {
return await request.post({ url: `/infra/demo03-student/create`, data }) return await request.post({url: `/infra/demo03-student/create`, data})
} }
// 修改学生 // 修改学生
export const updateDemo03Student = async (data: Demo03StudentVO) => { export const updateDemo03Student = async (data: Demo03StudentVO) => {
return await request.put({ url: `/infra/demo03-student/update`, data }) return await request.put({url: `/infra/demo03-student/update`, data})
} }
// 删除学生 // 删除学生
export const deleteDemo03Student = async (id: number) => { export const deleteDemo03Student = async (id: number) => {
return await request.delete({ url: `/infra/demo03-student/delete?id=` + id }) return await request.delete({url: `/infra/demo03-student/delete?id=` + id})
} }
// 导出学生 Excel // 导出学生 Excel
export const exportDemo03Student = async (params) => { export const exportDemo03Student = async (params) => {
return await request.download({ url: `/infra/demo03-student/export-excel`, params }) return await request.download({url: `/infra/demo03-student/export-excel`, params})
} }
// ==================== 子表(学生课程) ==================== // ==================== 子表(学生课程) ====================

View File

@ -10,32 +10,32 @@ export interface Demo03StudentVO {
// 查询学生分页 // 查询学生分页
export const getDemo03StudentPage = async (params) => { export const getDemo03StudentPage = async (params) => {
return await request.get({ url: `/infra/demo03-student/page`, params }) return await request.get({url: `/infra/demo03-student/page`, params})
} }
// 查询学生详情 // 查询学生详情
export const getDemo03Student = async (id: number) => { export const getDemo03Student = async (id: number) => {
return await request.get({ url: `/infra/demo03-student/get?id=` + id }) return await request.get({url: `/infra/demo03-student/get?id=` + id})
} }
// 新增学生 // 新增学生
export const createDemo03Student = async (data: Demo03StudentVO) => { export const createDemo03Student = async (data: Demo03StudentVO) => {
return await request.post({ url: `/infra/demo03-student/create`, data }) return await request.post({url: `/infra/demo03-student/create`, data})
} }
// 修改学生 // 修改学生
export const updateDemo03Student = async (data: Demo03StudentVO) => { export const updateDemo03Student = async (data: Demo03StudentVO) => {
return await request.put({ url: `/infra/demo03-student/update`, data }) return await request.put({url: `/infra/demo03-student/update`, data})
} }
// 删除学生 // 删除学生
export const deleteDemo03Student = async (id: number) => { export const deleteDemo03Student = async (id: number) => {
return await request.delete({ url: `/infra/demo03-student/delete?id=` + id }) return await request.delete({url: `/infra/demo03-student/delete?id=` + id})
} }
// 导出学生 Excel // 导出学生 Excel
export const exportDemo03Student = async (params) => { export const exportDemo03Student = async (params) => {
return await request.download({ url: `/infra/demo03-student/export-excel`, params }) return await request.download({url: `/infra/demo03-student/export-excel`, params})
} }
// ==================== 子表(学生课程) ==================== // ==================== 子表(学生课程) ====================

View File

@ -18,28 +18,28 @@ export interface FilePresignedUrlRespVO {
// 查询文件列表 // 查询文件列表
export const getFilePage = (params: FilePageReqVO) => { export const getFilePage = (params: FilePageReqVO) => {
return request.get({ url: '/infra/file/page', params }) return request.get({url: '/infra/file/page', params})
} }
// 删除文件 // 删除文件
export const deleteFile = (id: number) => { export const deleteFile = (id: number) => {
return request.delete({ url: '/infra/file/delete?id=' + id }) return request.delete({url: '/infra/file/delete?id=' + id})
} }
// 获取文件预签名地址 // 获取文件预签名地址
export const getFilePresignedUrl = (path: string) => { export const getFilePresignedUrl = (path: string) => {
return request.get<FilePresignedUrlRespVO>({ return request.get<FilePresignedUrlRespVO>({
url: '/infra/file/presigned-url', url: '/infra/file/presigned-url',
params: { path } params: {path}
}) })
} }
// 创建文件 // 创建文件
export const createFile = (data: any) => { export const createFile = (data: any) => {
return request.post({ url: '/infra/file/create', data }) return request.post({url: '/infra/file/create', data})
} }
// 上传文件 // 上传文件
export const updateFile = (data: any) => { export const updateFile = (data: any) => {
return request.upload({ url: '/infra/file/upload', data }) return request.upload({url: '/infra/file/upload', data})
} }

View File

@ -27,35 +27,35 @@ export interface FileConfigVO {
// 查询文件配置列表 // 查询文件配置列表
export const getFileConfigPage = (params: PageParam) => { export const getFileConfigPage = (params: PageParam) => {
return request.get({ url: '/infra/file-config/page', params }) return request.get({url: '/infra/file-config/page', params})
} }
// 查询文件配置详情 // 查询文件配置详情
export const getFileConfig = (id: number) => { export const getFileConfig = (id: number) => {
return request.get({ url: '/infra/file-config/get?id=' + id }) return request.get({url: '/infra/file-config/get?id=' + id})
} }
// 更新文件配置为主配置 // 更新文件配置为主配置
export const updateFileConfigMaster = (id: number) => { export const updateFileConfigMaster = (id: number) => {
return request.put({ url: '/infra/file-config/update-master?id=' + id }) return request.put({url: '/infra/file-config/update-master?id=' + id})
} }
// 新增文件配置 // 新增文件配置
export const createFileConfig = (data: FileConfigVO) => { export const createFileConfig = (data: FileConfigVO) => {
return request.post({ url: '/infra/file-config/create', data }) return request.post({url: '/infra/file-config/create', data})
} }
// 修改文件配置 // 修改文件配置
export const updateFileConfig = (data: FileConfigVO) => { export const updateFileConfig = (data: FileConfigVO) => {
return request.put({ url: '/infra/file-config/update', data }) return request.put({url: '/infra/file-config/update', data})
} }
// 删除文件配置 // 删除文件配置
export const deleteFileConfig = (id: number) => { export const deleteFileConfig = (id: number) => {
return request.delete({ url: '/infra/file-config/delete?id=' + id }) return request.delete({url: '/infra/file-config/delete?id=' + id})
} }
// 测试文件配置 // 测试文件配置
export const testFileConfig = (id: number) => { export const testFileConfig = (id: number) => {
return request.get({ url: '/infra/file-config/test?id=' + id }) return request.get({url: '/infra/file-config/test?id=' + id})
} }

View File

@ -15,32 +15,32 @@ export interface JobVO {
// 任务列表 // 任务列表
export const getJobPage = (params: PageParam) => { export const getJobPage = (params: PageParam) => {
return request.get({ url: '/infra/job/page', params }) return request.get({url: '/infra/job/page', params})
} }
// 任务详情 // 任务详情
export const getJob = (id: number) => { export const getJob = (id: number) => {
return request.get({ url: '/infra/job/get?id=' + id }) return request.get({url: '/infra/job/get?id=' + id})
} }
// 新增任务 // 新增任务
export const createJob = (data: JobVO) => { export const createJob = (data: JobVO) => {
return request.post({ url: '/infra/job/create', data }) return request.post({url: '/infra/job/create', data})
} }
// 修改定时任务调度 // 修改定时任务调度
export const updateJob = (data: JobVO) => { export const updateJob = (data: JobVO) => {
return request.put({ url: '/infra/job/update', data }) return request.put({url: '/infra/job/update', data})
} }
// 删除定时任务调度 // 删除定时任务调度
export const deleteJob = (id: number) => { export const deleteJob = (id: number) => {
return request.delete({ url: '/infra/job/delete?id=' + id }) return request.delete({url: '/infra/job/delete?id=' + id})
} }
// 导出定时任务调度 // 导出定时任务调度
export const exportJob = (params) => { export const exportJob = (params) => {
return request.download({ url: '/infra/job/export-excel', params }) return request.download({url: '/infra/job/export-excel', params})
} }
// 任务状态修改 // 任务状态修改
@ -49,15 +49,15 @@ export const updateJobStatus = (id: number, status: number) => {
id, id,
status status
} }
return request.put({ url: '/infra/job/update-status', params }) return request.put({url: '/infra/job/update-status', params})
} }
// 定时任务立即执行一次 // 定时任务立即执行一次
export const runJob = (id: number) => { export const runJob = (id: number) => {
return request.put({ url: '/infra/job/trigger?id=' + id }) return request.put({url: '/infra/job/trigger?id=' + id})
} }
// 获得定时任务的下 n 次执行时间 // 获得定时任务的下 n 次执行时间
export const getJobNextTimes = (id: number) => { export const getJobNextTimes = (id: number) => {
return request.get({ url: '/infra/job/get_next_times?id=' + id }) return request.get({url: '/infra/job/get_next_times?id=' + id})
} }

View File

@ -17,12 +17,12 @@ export interface JobLogVO {
// 任务日志列表 // 任务日志列表
export const getJobLogPage = (params: PageParam) => { export const getJobLogPage = (params: PageParam) => {
return request.get({ url: '/infra/job-log/page', params }) return request.get({url: '/infra/job-log/page', params})
} }
// 任务日志详情 // 任务日志详情
export const getJobLog = (id: number) => { export const getJobLog = (id: number) => {
return request.get({ url: '/infra/job-log/get?id=' + id }) return request.get({url: '/infra/job-log/get?id=' + id})
} }
// 导出定时任务日志 // 导出定时任务日志

View File

@ -4,5 +4,5 @@ import request from '@/config/axios'
* redis * redis
*/ */
export const getCache = () => { export const getCache = () => {
return request.get({ url: '/infra/redis/get-monitor-info' }) return request.get({url: '/infra/redis/get-monitor-info'})
} }

View File

@ -1,6 +1,6 @@
import request from '@/config/axios' import request from '@/config/axios'
import { getRefreshToken } from '@/utils/auth' import {getRefreshToken} from '@/utils/auth'
import type { UserLoginVO } from './types' import type {UserLoginVO} from './types'
export interface SmsCodeVO { export interface SmsCodeVO {
mobile: string mobile: string
@ -14,42 +14,42 @@ export interface SmsLoginVO {
// 登录 // 登录
export const login = (data: UserLoginVO) => { export const login = (data: UserLoginVO) => {
return request.post({ url: '/system/auth/login', data }) return request.post({url: '/system/auth/login', data})
} }
// 刷新访问令牌 // 刷新访问令牌
export const refreshToken = () => { export const refreshToken = () => {
return request.post({ url: '/system/auth/refresh-token?refreshToken=' + getRefreshToken() }) return request.post({url: '/system/auth/refresh-token?refreshToken=' + getRefreshToken()})
} }
// 使用租户名,获得租户编号 // 使用租户名,获得租户编号
export const getTenantIdByName = (name: string) => { export const getTenantIdByName = (name: string) => {
return request.get({ url: '/system/tenant/get-id-by-name?name=' + name }) return request.get({url: '/system/tenant/get-id-by-name?name=' + name})
} }
// 使用租户域名,获得租户信息 // 使用租户域名,获得租户信息
export const getTenantByWebsite = (website: string) => { export const getTenantByWebsite = (website: string) => {
return request.get({ url: '/system/tenant/get-by-website?website=' + website }) return request.get({url: '/system/tenant/get-by-website?website=' + website})
} }
// 登出 // 登出
export const loginOut = () => { export const loginOut = () => {
return request.post({ url: '/system/auth/logout' }) return request.post({url: '/system/auth/logout'})
} }
// 获取用户权限信息 // 获取用户权限信息
export const getInfo = () => { export const getInfo = () => {
return request.get({ url: '/system/auth/get-permission-info' }) return request.get({url: '/system/auth/get-permission-info'})
} }
//获取登录验证码 //获取登录验证码
export const sendSmsCode = (data: SmsCodeVO) => { export const sendSmsCode = (data: SmsCodeVO) => {
return request.post({ url: '/system/auth/send-sms-code', data }) return request.post({url: '/system/auth/send-sms-code', data})
} }
// 短信验证码登录 // 短信验证码登录
export const smsLogin = (data: SmsLoginVO) => { export const smsLogin = (data: SmsLoginVO) => {
return request.post({ url: '/system/auth/sms-login', data }) return request.post({url: '/system/auth/sms-login', data})
} }
// 社交快捷登录,使用 code 授权码 // 社交快捷登录,使用 code 授权码
@ -72,10 +72,10 @@ export const socialAuthRedirect = (type: number, redirectUri: string) => {
} }
// 获取验证图片以及 token // 获取验证图片以及 token
export const getCode = (data) => { export const getCode = (data) => {
return request.postOriginal({ url: 'system/captcha/get', data }) return request.postOriginal({url: 'system/captcha/get', data})
} }
// 滑动或者点选验证 // 滑动或者点选验证
export const reqCheck = (data) => { export const reqCheck = (data) => {
return request.postOriginal({ url: 'system/captcha/check', data }) return request.postOriginal({url: 'system/captcha/check', data})
} }

View File

@ -2,7 +2,7 @@ import request from '@/config/axios'
// 获得授权信息 // 获得授权信息
export const getAuthorize = (clientId: string) => { export const getAuthorize = (clientId: string) => {
return request.get({ url: '/system/oauth2/authorize?clientId=' + clientId }) return request.get({url: '/system/oauth2/authorize?clientId=' + clientId})
} }
// 发起授权 // 发起授权

View File

@ -13,25 +13,25 @@ export interface BannerVO {
// 查询Banner管理列表 // 查询Banner管理列表
export const getBannerPage = async (params) => { export const getBannerPage = async (params) => {
return await request.get({ url: `/promotion/banner/page`, params }) return await request.get({url: `/promotion/banner/page`, params})
} }
// 查询Banner管理详情 // 查询Banner管理详情
export const getBanner = async (id: number) => { export const getBanner = async (id: number) => {
return await request.get({ url: `/promotion/banner/get?id=` + id }) return await request.get({url: `/promotion/banner/get?id=` + id})
} }
// 新增Banner管理 // 新增Banner管理
export const createBanner = async (data: BannerVO) => { export const createBanner = async (data: BannerVO) => {
return await request.post({ url: `/promotion/banner/create`, data }) return await request.post({url: `/promotion/banner/create`, data})
} }
// 修改Banner管理 // 修改Banner管理
export const updateBanner = async (data: BannerVO) => { export const updateBanner = async (data: BannerVO) => {
return await request.put({ url: `/promotion/banner/update`, data }) return await request.put({url: `/promotion/banner/update`, data})
} }
// 删除Banner管理 // 删除Banner管理
export const deleteBanner = async (id: number) => { export const deleteBanner = async (id: number) => {
return await request.delete({ url: `/promotion/banner/delete?id=` + id }) return await request.delete({url: `/promotion/banner/delete?id=` + id})
} }

View File

@ -32,30 +32,30 @@ export interface BrandVO {
// 创建商品品牌 // 创建商品品牌
export const createBrand = (data: BrandVO) => { export const createBrand = (data: BrandVO) => {
return request.post({ url: '/product/brand/create', data }) return request.post({url: '/product/brand/create', data})
} }
// 更新商品品牌 // 更新商品品牌
export const updateBrand = (data: BrandVO) => { export const updateBrand = (data: BrandVO) => {
return request.put({ url: '/product/brand/update', data }) return request.put({url: '/product/brand/update', data})
} }
// 删除商品品牌 // 删除商品品牌
export const deleteBrand = (id: number) => { export const deleteBrand = (id: number) => {
return request.delete({ url: `/product/brand/delete?id=${id}` }) return request.delete({url: `/product/brand/delete?id=${id}`})
} }
// 获得商品品牌 // 获得商品品牌
export const getBrand = (id: number) => { export const getBrand = (id: number) => {
return request.get({ url: `/product/brand/get?id=${id}` }) return request.get({url: `/product/brand/get?id=${id}`})
} }
// 获得商品品牌列表 // 获得商品品牌列表
export const getBrandParam = (params: PageParam) => { export const getBrandParam = (params: PageParam) => {
return request.get({ url: '/product/brand/page', params }) return request.get({url: '/product/brand/page', params})
} }
// 获得商品品牌精简信息列表 // 获得商品品牌精简信息列表
export const getSimpleBrandList = () => { export const getSimpleBrandList = () => {
return request.get({ url: '/product/brand/list-all-simple' }) return request.get({url: '/product/brand/list-all-simple'})
} }

View File

@ -32,25 +32,25 @@ export interface CategoryVO {
// 创建商品分类 // 创建商品分类
export const createCategory = (data: CategoryVO) => { export const createCategory = (data: CategoryVO) => {
return request.post({ url: '/product/category/create', data }) return request.post({url: '/product/category/create', data})
} }
// 更新商品分类 // 更新商品分类
export const updateCategory = (data: CategoryVO) => { export const updateCategory = (data: CategoryVO) => {
return request.put({ url: '/product/category/update', data }) return request.put({url: '/product/category/update', data})
} }
// 删除商品分类 // 删除商品分类
export const deleteCategory = (id: number) => { export const deleteCategory = (id: number) => {
return request.delete({ url: `/product/category/delete?id=${id}` }) return request.delete({url: `/product/category/delete?id=${id}`})
} }
// 获得商品分类 // 获得商品分类
export const getCategory = (id: number) => { export const getCategory = (id: number) => {
return request.get({ url: `/product/category/get?id=${id}` }) return request.get({url: `/product/category/get?id=${id}`})
} }
// 获得商品分类列表 // 获得商品分类列表
export const getCategoryList = (params: any) => { export const getCategoryList = (params: any) => {
return request.get({ url: '/product/category/list', params }) return request.get({url: '/product/category/list', params})
} }

View File

@ -25,25 +25,25 @@ export interface CommentVO {
// 查询商品评论列表 // 查询商品评论列表
export const getCommentPage = async (params) => { export const getCommentPage = async (params) => {
return await request.get({ url: `/product/comment/page`, params }) return await request.get({url: `/product/comment/page`, params})
} }
// 查询商品评论详情 // 查询商品评论详情
export const getComment = async (id: number) => { export const getComment = async (id: number) => {
return await request.get({ url: `/product/comment/get?id=` + id }) return await request.get({url: `/product/comment/get?id=` + id})
} }
// 添加自评 // 添加自评
export const createComment = async (data: CommentVO) => { export const createComment = async (data: CommentVO) => {
return await request.post({ url: `/product/comment/create`, data }) return await request.post({url: `/product/comment/create`, data})
} }
// 显示 / 隐藏评论 // 显示 / 隐藏评论
export const updateCommentVisible = async (data: any) => { export const updateCommentVisible = async (data: any) => {
return await request.put({ url: `/product/comment/update-visible`, data }) return await request.put({url: `/product/comment/update-visible`, data})
} }
// 商家回复 // 商家回复
export const replyComment = async (data: any) => { export const replyComment = async (data: any) => {
return await request.put({ url: `/product/comment/reply`, data }) return await request.put({url: `/product/comment/reply`, data})
} }

View File

@ -8,5 +8,5 @@ export interface Favorite {
// 获得 ProductFavorite 列表 // 获得 ProductFavorite 列表
export const getFavoritePage = (params: PageParam) => { export const getFavoritePage = (params: PageParam) => {
return request.get({ url: '/product/favorite/page', params }) return request.get({url: '/product/favorite/page', params})
} }

View File

@ -6,5 +6,5 @@ import request from '@/config/axios'
* @param params * @param params
*/ */
export const getBrowseHistoryPage = (params: any) => { export const getBrowseHistoryPage = (params: any) => {
return request.get({ url: '/product/browse-history/page', params }) return request.get({url: '/product/browse-history/page', params})
} }

View File

@ -42,52 +42,52 @@ export interface PropertyValueDetailVO {
// 创建属性项 // 创建属性项
export const createProperty = (data: PropertyVO) => { export const createProperty = (data: PropertyVO) => {
return request.post({ url: '/product/property/create', data }) return request.post({url: '/product/property/create', data})
} }
// 更新属性项 // 更新属性项
export const updateProperty = (data: PropertyVO) => { export const updateProperty = (data: PropertyVO) => {
return request.put({ url: '/product/property/update', data }) return request.put({url: '/product/property/update', data})
} }
// 删除属性项 // 删除属性项
export const deleteProperty = (id: number) => { export const deleteProperty = (id: number) => {
return request.delete({ url: `/product/property/delete?id=${id}` }) return request.delete({url: `/product/property/delete?id=${id}`})
} }
// 获得属性项 // 获得属性项
export const getProperty = (id: number): Promise<PropertyVO> => { export const getProperty = (id: number): Promise<PropertyVO> => {
return request.get({ url: `/product/property/get?id=${id}` }) return request.get({url: `/product/property/get?id=${id}`})
} }
// 获得属性项分页 // 获得属性项分页
export const getPropertyPage = (params: PageParam) => { export const getPropertyPage = (params: PageParam) => {
return request.get({ url: '/product/property/page', params }) return request.get({url: '/product/property/page', params})
} }
// ------------------------ 属性值 ------------------- // ------------------------ 属性值 -------------------
// 获得属性值分页 // 获得属性值分页
export const getPropertyValuePage = (params: PageParam & any) => { export const getPropertyValuePage = (params: PageParam & any) => {
return request.get({ url: '/product/property/value/page', params }) return request.get({url: '/product/property/value/page', params})
} }
// 获得属性值 // 获得属性值
export const getPropertyValue = (id: number): Promise<PropertyValueVO> => { export const getPropertyValue = (id: number): Promise<PropertyValueVO> => {
return request.get({ url: `/product/property/value/get?id=${id}` }) return request.get({url: `/product/property/value/get?id=${id}`})
} }
// 创建属性值 // 创建属性值
export const createPropertyValue = (data: PropertyValueVO) => { export const createPropertyValue = (data: PropertyValueVO) => {
return request.post({ url: '/product/property/value/create', data }) return request.post({url: '/product/property/value/create', data})
} }
// 更新属性值 // 更新属性值
export const updatePropertyValue = (data: PropertyValueVO) => { export const updatePropertyValue = (data: PropertyValueVO) => {
return request.put({ url: '/product/property/value/update', data }) return request.put({url: '/product/property/value/update', data})
} }
// 删除属性值 // 删除属性值
export const deletePropertyValue = (id: number) => { export const deletePropertyValue = (id: number) => {
return request.delete({ url: `/product/property/value/delete?id=${id}` }) return request.delete({url: `/product/property/value/delete?id=${id}`})
} }

View File

@ -62,50 +62,50 @@ export interface Spu {
// 获得 Spu 列表 // 获得 Spu 列表
export const getSpuPage = (params: PageParam) => { export const getSpuPage = (params: PageParam) => {
return request.get({ url: '/product/spu/page', params }) return request.get({url: '/product/spu/page', params})
} }
// 获得 Spu 列表 tabsCount // 获得 Spu 列表 tabsCount
export const getTabsCount = () => { export const getTabsCount = () => {
return request.get({ url: '/product/spu/get-count' }) return request.get({url: '/product/spu/get-count'})
} }
// 创建商品 Spu // 创建商品 Spu
export const createSpu = (data: Spu) => { export const createSpu = (data: Spu) => {
return request.post({ url: '/product/spu/create', data }) return request.post({url: '/product/spu/create', data})
} }
// 更新商品 Spu // 更新商品 Spu
export const updateSpu = (data: Spu) => { export const updateSpu = (data: Spu) => {
return request.put({ url: '/product/spu/update', data }) return request.put({url: '/product/spu/update', data})
} }
// 更新商品 Spu status // 更新商品 Spu status
export const updateStatus = (data: { id: number; status: number }) => { export const updateStatus = (data: { id: number; status: number }) => {
return request.put({ url: '/product/spu/update-status', data }) return request.put({url: '/product/spu/update-status', data})
} }
// 获得商品 Spu // 获得商品 Spu
export const getSpu = (id: number) => { export const getSpu = (id: number) => {
return request.get({ url: `/product/spu/get-detail?id=${id}` }) return request.get({url: `/product/spu/get-detail?id=${id}`})
} }
// 获得商品 Spu 详情列表 // 获得商品 Spu 详情列表
export const getSpuDetailList = (ids: number[]) => { export const getSpuDetailList = (ids: number[]) => {
return request.get({ url: `/product/spu/list?spuIds=${ids}` }) return request.get({url: `/product/spu/list?spuIds=${ids}`})
} }
// 删除商品 Spu // 删除商品 Spu
export const deleteSpu = (id: number) => { export const deleteSpu = (id: number) => {
return request.delete({ url: `/product/spu/delete?id=${id}` }) return request.delete({url: `/product/spu/delete?id=${id}`})
} }
// 导出商品 Spu Excel // 导出商品 Spu Excel
export const exportSpu = async (params) => { export const exportSpu = async (params) => {
return await request.download({ url: '/product/spu/export', params }) return await request.download({url: '/product/spu/export', params})
} }
// 获得商品 SPU 精简列表 // 获得商品 SPU 精简列表
export const getSpuSimpleList = async () => { export const getSpuSimpleList = async () => {
return request.get({ url: '/product/spu/list-all-simple' }) return request.get({url: '/product/spu/list-all-simple'})
} }

View File

@ -18,25 +18,25 @@ export interface ArticleVO {
// 查询文章管理列表 // 查询文章管理列表
export const getArticlePage = async (params: any) => { export const getArticlePage = async (params: any) => {
return await request.get({ url: `/promotion/article/page`, params }) return await request.get({url: `/promotion/article/page`, params})
} }
// 查询文章管理详情 // 查询文章管理详情
export const getArticle = async (id: number) => { export const getArticle = async (id: number) => {
return await request.get({ url: `/promotion/article/get?id=` + id }) return await request.get({url: `/promotion/article/get?id=` + id})
} }
// 新增文章管理 // 新增文章管理
export const createArticle = async (data: ArticleVO) => { export const createArticle = async (data: ArticleVO) => {
return await request.post({ url: `/promotion/article/create`, data }) return await request.post({url: `/promotion/article/create`, data})
} }
// 修改文章管理 // 修改文章管理
export const updateArticle = async (data: ArticleVO) => { export const updateArticle = async (data: ArticleVO) => {
return await request.put({ url: `/promotion/article/update`, data }) return await request.put({url: `/promotion/article/update`, data})
} }
// 删除文章管理 // 删除文章管理
export const deleteArticle = async (id: number) => { export const deleteArticle = async (id: number) => {
return await request.delete({ url: `/promotion/article/delete?id=` + id }) return await request.delete({url: `/promotion/article/delete?id=` + id})
} }

View File

@ -10,30 +10,30 @@ export interface ArticleCategoryVO {
// 查询文章分类列表 // 查询文章分类列表
export const getArticleCategoryPage = async (params) => { export const getArticleCategoryPage = async (params) => {
return await request.get({ url: `/promotion/article-category/page`, params }) return await request.get({url: `/promotion/article-category/page`, params})
} }
// 查询文章分类精简信息列表 // 查询文章分类精简信息列表
export const getSimpleArticleCategoryList = async () => { export const getSimpleArticleCategoryList = async () => {
return await request.get({ url: `/promotion/article-category/list-all-simple` }) return await request.get({url: `/promotion/article-category/list-all-simple`})
} }
// 查询文章分类详情 // 查询文章分类详情
export const getArticleCategory = async (id: number) => { export const getArticleCategory = async (id: number) => {
return await request.get({ url: `/promotion/article-category/get?id=` + id }) return await request.get({url: `/promotion/article-category/get?id=` + id})
} }
// 新增文章分类 // 新增文章分类
export const createArticleCategory = async (data: ArticleCategoryVO) => { export const createArticleCategory = async (data: ArticleCategoryVO) => {
return await request.post({ url: `/promotion/article-category/create`, data }) return await request.post({url: `/promotion/article-category/create`, data})
} }
// 修改文章分类 // 修改文章分类
export const updateArticleCategory = async (data: ArticleCategoryVO) => { export const updateArticleCategory = async (data: ArticleCategoryVO) => {
return await request.put({ url: `/promotion/article-category/update`, data }) return await request.put({url: `/promotion/article-category/update`, data})
} }
// 删除文章分类 // 删除文章分类
export const deleteArticleCategory = async (id: number) => { export const deleteArticleCategory = async (id: number) => {
return await request.delete({ url: `/promotion/article-category/delete?id=` + id }) return await request.delete({url: `/promotion/article-category/delete?id=` + id})
} }

View File

@ -1,5 +1,5 @@
import request from '@/config/axios' import request from '@/config/axios'
import { Sku, Spu } from '@/api/mall/product/spu' import {Sku, Spu} from '@/api/mall/product/spu'
export interface BargainActivityVO { export interface BargainActivityVO {
id?: number id?: number
@ -39,30 +39,30 @@ export interface SpuExtension extends Spu {
// 查询砍价活动列表 // 查询砍价活动列表
export const getBargainActivityPage = async (params: any) => { export const getBargainActivityPage = async (params: any) => {
return await request.get({ url: '/promotion/bargain-activity/page', params }) return await request.get({url: '/promotion/bargain-activity/page', params})
} }
// 查询砍价活动详情 // 查询砍价活动详情
export const getBargainActivity = async (id: number) => { export const getBargainActivity = async (id: number) => {
return await request.get({ url: '/promotion/bargain-activity/get?id=' + id }) return await request.get({url: '/promotion/bargain-activity/get?id=' + id})
} }
// 新增砍价活动 // 新增砍价活动
export const createBargainActivity = async (data: BargainActivityVO) => { export const createBargainActivity = async (data: BargainActivityVO) => {
return await request.post({ url: '/promotion/bargain-activity/create', data }) return await request.post({url: '/promotion/bargain-activity/create', data})
} }
// 修改砍价活动 // 修改砍价活动
export const updateBargainActivity = async (data: BargainActivityVO) => { export const updateBargainActivity = async (data: BargainActivityVO) => {
return await request.put({ url: '/promotion/bargain-activity/update', data }) return await request.put({url: '/promotion/bargain-activity/update', data})
} }
// 关闭砍价活动 // 关闭砍价活动
export const closeBargainActivity = async (id: number) => { export const closeBargainActivity = async (id: number) => {
return await request.put({ url: '/promotion/bargain-activity/close?id=' + id }) return await request.put({url: '/promotion/bargain-activity/close?id=' + id})
} }
// 删除砍价活动 // 删除砍价活动
export const deleteBargainActivity = async (id: number) => { export const deleteBargainActivity = async (id: number) => {
return await request.delete({ url: '/promotion/bargain-activity/delete?id=' + id }) return await request.delete({url: '/promotion/bargain-activity/delete?id=' + id})
} }

View File

@ -10,5 +10,5 @@ export interface BargainHelpVO {
// 查询砍价记录列表 // 查询砍价记录列表
export const getBargainHelpPage = async (params) => { export const getBargainHelpPage = async (params) => {
return await request.get({ url: `/promotion/bargain-help/page`, params }) return await request.get({url: `/promotion/bargain-help/page`, params})
} }

View File

@ -15,5 +15,5 @@ export interface BargainRecordVO {
// 查询砍价记录列表 // 查询砍价记录列表
export const getBargainRecordPage = async (params) => { export const getBargainRecordPage = async (params) => {
return await request.get({ url: `/promotion/bargain-record/page`, params }) return await request.get({url: `/promotion/bargain-record/page`, params})
} }

View File

@ -16,31 +16,31 @@ export interface CircleVO {
export const CircleApi = { export const CircleApi = {
// 查询商城动态分页 // 查询商城动态分页
getCirclePage: async (params: any) => { getCirclePage: async (params: any) => {
return await request.get({ url: `/promotion/circle/page`, params }) return await request.get({url: `/promotion/circle/page`, params})
}, },
// 查询商城动态详情 // 查询商城动态详情
getCircle: async (id: number) => { getCircle: async (id: number) => {
return await request.get({ url: `/promotion/circle/get?id=` + id }) return await request.get({url: `/promotion/circle/get?id=` + id})
}, },
// 新增商城动态 // 新增商城动态
createCircle: async (data: CircleVO) => { createCircle: async (data: CircleVO) => {
return await request.post({ url: `/promotion/circle/create`, data }) return await request.post({url: `/promotion/circle/create`, data})
}, },
// 修改商城动态 // 修改商城动态
updateCircle: async (data: CircleVO) => { updateCircle: async (data: CircleVO) => {
return await request.put({ url: `/promotion/circle/update`, data }) return await request.put({url: `/promotion/circle/update`, data})
}, },
// 删除商城动态 // 删除商城动态
deleteCircle: async (id: number) => { deleteCircle: async (id: number) => {
return await request.delete({ url: `/promotion/circle/delete?id=` + id }) return await request.delete({url: `/promotion/circle/delete?id=` + id})
}, },
// 导出商城动态 Excel // 导出商城动态 Excel
exportCircle: async (params) => { exportCircle: async (params) => {
return await request.download({ url: `/promotion/circle/export-excel`, params }) return await request.download({url: `/promotion/circle/export-excel`, params})
} }
} }

View File

@ -18,31 +18,31 @@ export interface CircleReviewVO {
export const CircleReviewApi = { export const CircleReviewApi = {
// 查询动态的评论分页 // 查询动态的评论分页
getCircleReviewPage: async (params: any) => { getCircleReviewPage: async (params: any) => {
return await request.get({ url: `/promotion/circle-review/page`, params }) return await request.get({url: `/promotion/circle-review/page`, params})
}, },
// 查询动态的评论详情 // 查询动态的评论详情
getCircleReview: async (id: number) => { getCircleReview: async (id: number) => {
return await request.get({ url: `/promotion/circle-review/get?id=` + id }) return await request.get({url: `/promotion/circle-review/get?id=` + id})
}, },
// 新增动态的评论 // 新增动态的评论
createCircleReview: async (data: CircleReviewVO) => { createCircleReview: async (data: CircleReviewVO) => {
return await request.post({ url: `/promotion/circle-review/create`, data }) return await request.post({url: `/promotion/circle-review/create`, data})
}, },
// 修改动态的评论 // 修改动态的评论
updateCircleReview: async (data: CircleReviewVO) => { updateCircleReview: async (data: CircleReviewVO) => {
return await request.put({ url: `/promotion/circle-review/update`, data }) return await request.put({url: `/promotion/circle-review/update`, data})
}, },
// 删除动态的评论 // 删除动态的评论
deleteCircleReview: async (id: number) => { deleteCircleReview: async (id: number) => {
return await request.delete({ url: `/promotion/circle-review/delete?id=` + id }) return await request.delete({url: `/promotion/circle-review/delete?id=` + id})
}, },
// 导出动态的评论 Excel // 导出动态的评论 Excel
exportCircleReview: async (params) => { exportCircleReview: async (params) => {
return await request.download({ url: `/promotion/circle-review/export-excel`, params }) return await request.download({url: `/promotion/circle-review/export-excel`, params})
} }
} }

View File

@ -1,5 +1,5 @@
import request from '@/config/axios' import request from '@/config/axios'
import { Sku, Spu } from '@/api/mall/product/spu' import {Sku, Spu} from '@/api/mall/product/spu'
export interface CombinationActivityVO { export interface CombinationActivityVO {
id?: number id?: number
@ -37,30 +37,30 @@ export interface SpuExtension extends Spu {
// 查询拼团活动列表 // 查询拼团活动列表
export const getCombinationActivityPage = async (params) => { export const getCombinationActivityPage = async (params) => {
return await request.get({ url: '/promotion/combination-activity/page', params }) return await request.get({url: '/promotion/combination-activity/page', params})
} }
// 查询拼团活动详情 // 查询拼团活动详情
export const getCombinationActivity = async (id: number) => { export const getCombinationActivity = async (id: number) => {
return await request.get({ url: '/promotion/combination-activity/get?id=' + id }) return await request.get({url: '/promotion/combination-activity/get?id=' + id})
} }
// 新增拼团活动 // 新增拼团活动
export const createCombinationActivity = async (data: CombinationActivityVO) => { export const createCombinationActivity = async (data: CombinationActivityVO) => {
return await request.post({ url: '/promotion/combination-activity/create', data }) return await request.post({url: '/promotion/combination-activity/create', data})
} }
// 修改拼团活动 // 修改拼团活动
export const updateCombinationActivity = async (data: CombinationActivityVO) => { export const updateCombinationActivity = async (data: CombinationActivityVO) => {
return await request.put({ url: '/promotion/combination-activity/update', data }) return await request.put({url: '/promotion/combination-activity/update', data})
} }
// 关闭拼团活动 // 关闭拼团活动
export const closeCombinationActivity = async (id: number) => { export const closeCombinationActivity = async (id: number) => {
return await request.put({ url: '/promotion/combination-activity/close?id=' + id }) return await request.put({url: '/promotion/combination-activity/close?id=' + id})
} }
// 删除拼团活动 // 删除拼团活动
export const deleteCombinationActivity = async (id: number) => { export const deleteCombinationActivity = async (id: number) => {
return await request.delete({ url: '/promotion/combination-activity/delete?id=' + id }) return await request.delete({url: '/promotion/combination-activity/delete?id=' + id})
} }

View File

@ -19,10 +19,10 @@ export interface CombinationRecordVO {
// 查询拼团记录列表 // 查询拼团记录列表
export const getCombinationRecordPage = async (params: any) => { export const getCombinationRecordPage = async (params: any) => {
return await request.get({ url: '/promotion/combination-record/page', params }) return await request.get({url: '/promotion/combination-record/page', params})
} }
// 获得拼团记录的概要信息 // 获得拼团记录的概要信息
export const getCombinationRecordSummary = async () => { export const getCombinationRecordSummary = async () => {
return await request.get({ url: '/promotion/combination-record/get-summary' }) return await request.get({url: '/promotion/combination-record/get-summary'})
} }

View File

@ -1,5 +1,5 @@
import request from '@/config/axios' import request from '@/config/axios'
import { Sku, Spu } from '@/api/mall/product/spu' import {Sku, Spu} from '@/api/mall/product/spu'
export interface DiscountActivityVO { export interface DiscountActivityVO {
id?: number id?: number
@ -11,6 +11,7 @@ export interface DiscountActivityVO {
endTime?: Date endTime?: Date
products?: DiscountProductVO[] products?: DiscountProductVO[]
} }
// 限时折扣相关 属性 // 限时折扣相关 属性
export interface DiscountProductVO { export interface DiscountProductVO {
spuId: number spuId: number
@ -31,30 +32,30 @@ export interface SpuExtension extends Spu {
// 查询限时折扣活动列表 // 查询限时折扣活动列表
export const getDiscountActivityPage = async (params) => { export const getDiscountActivityPage = async (params) => {
return await request.get({ url: '/promotion/discount-activity/page', params }) return await request.get({url: '/promotion/discount-activity/page', params})
} }
// 查询限时折扣活动详情 // 查询限时折扣活动详情
export const getDiscountActivity = async (id: number) => { export const getDiscountActivity = async (id: number) => {
return await request.get({ url: '/promotion/discount-activity/get?id=' + id }) return await request.get({url: '/promotion/discount-activity/get?id=' + id})
} }
// 新增限时折扣活动 // 新增限时折扣活动
export const createDiscountActivity = async (data: DiscountActivityVO) => { export const createDiscountActivity = async (data: DiscountActivityVO) => {
return await request.post({ url: '/promotion/discount-activity/create', data }) return await request.post({url: '/promotion/discount-activity/create', data})
} }
// 修改限时折扣活动 // 修改限时折扣活动
export const updateDiscountActivity = async (data: DiscountActivityVO) => { export const updateDiscountActivity = async (data: DiscountActivityVO) => {
return await request.put({ url: '/promotion/discount-activity/update', data }) return await request.put({url: '/promotion/discount-activity/update', data})
} }
// 关闭限时折扣活动 // 关闭限时折扣活动
export const closeDiscountActivity = async (id: number) => { export const closeDiscountActivity = async (id: number) => {
return await request.put({ url: '/promotion/discount-activity/close?id=' + id }) return await request.put({url: '/promotion/discount-activity/close?id=' + id})
} }
// 删除限时折扣活动 // 删除限时折扣活动
export const deleteDiscountActivity = async (id: number) => { export const deleteDiscountActivity = async (id: number) => {
return await request.delete({ url: '/promotion/discount-activity/delete?id=' + id }) return await request.delete({url: '/promotion/discount-activity/delete?id=' + id})
} }

View File

@ -11,35 +11,35 @@ export interface DiyPageVO {
// 查询装修页面列表 // 查询装修页面列表
export const getDiyPagePage = async (params: any) => { export const getDiyPagePage = async (params: any) => {
return await request.get({ url: `/promotion/diy-page/page`, params }) return await request.get({url: `/promotion/diy-page/page`, params})
} }
// 查询装修页面详情 // 查询装修页面详情
export const getDiyPage = async (id: number) => { export const getDiyPage = async (id: number) => {
return await request.get({ url: `/promotion/diy-page/get?id=` + id }) return await request.get({url: `/promotion/diy-page/get?id=` + id})
} }
// 新增装修页面 // 新增装修页面
export const createDiyPage = async (data: DiyPageVO) => { export const createDiyPage = async (data: DiyPageVO) => {
return await request.post({ url: `/promotion/diy-page/create`, data }) return await request.post({url: `/promotion/diy-page/create`, data})
} }
// 修改装修页面 // 修改装修页面
export const updateDiyPage = async (data: DiyPageVO) => { export const updateDiyPage = async (data: DiyPageVO) => {
return await request.put({ url: `/promotion/diy-page/update`, data }) return await request.put({url: `/promotion/diy-page/update`, data})
} }
// 删除装修页面 // 删除装修页面
export const deleteDiyPage = async (id: number) => { export const deleteDiyPage = async (id: number) => {
return await request.delete({ url: `/promotion/diy-page/delete?id=` + id }) return await request.delete({url: `/promotion/diy-page/delete?id=` + id})
} }
// 获得装修页面属性 // 获得装修页面属性
export const getDiyPageProperty = async (id: number) => { export const getDiyPageProperty = async (id: number) => {
return await request.get({ url: `/promotion/diy-page/get-property?id=` + id }) return await request.get({url: `/promotion/diy-page/get-property?id=` + id})
} }
// 更新装修页面属性 // 更新装修页面属性
export const updateDiyPageProperty = async (data: DiyPageVO) => { export const updateDiyPageProperty = async (data: DiyPageVO) => {
return await request.put({ url: `/promotion/diy-page/update-property`, data }) return await request.put({url: `/promotion/diy-page/update-property`, data})
} }

View File

@ -1,5 +1,5 @@
import request from '@/config/axios' import request from '@/config/axios'
import { DiyPageVO } from '@/api/mall/promotion/diy/page' import {DiyPageVO} from '@/api/mall/promotion/diy/page'
export interface DiyTemplateVO { export interface DiyTemplateVO {
id?: number id?: number
@ -17,32 +17,32 @@ export interface DiyTemplatePropertyVO extends DiyTemplateVO {
// 查询装修模板列表 // 查询装修模板列表
export const getDiyTemplatePage = async (params: any) => { export const getDiyTemplatePage = async (params: any) => {
return await request.get({ url: `/promotion/diy-template/page`, params }) return await request.get({url: `/promotion/diy-template/page`, params})
} }
// 查询装修模板详情 // 查询装修模板详情
export const getDiyTemplate = async (id: number) => { export const getDiyTemplate = async (id: number) => {
return await request.get({ url: `/promotion/diy-template/get?id=` + id }) return await request.get({url: `/promotion/diy-template/get?id=` + id})
} }
// 新增装修模板 // 新增装修模板
export const createDiyTemplate = async (data: DiyTemplateVO) => { export const createDiyTemplate = async (data: DiyTemplateVO) => {
return await request.post({ url: `/promotion/diy-template/create`, data }) return await request.post({url: `/promotion/diy-template/create`, data})
} }
// 修改装修模板 // 修改装修模板
export const updateDiyTemplate = async (data: DiyTemplateVO) => { export const updateDiyTemplate = async (data: DiyTemplateVO) => {
return await request.put({ url: `/promotion/diy-template/update`, data }) return await request.put({url: `/promotion/diy-template/update`, data})
} }
// 删除装修模板 // 删除装修模板
export const deleteDiyTemplate = async (id: number) => { export const deleteDiyTemplate = async (id: number) => {
return await request.delete({ url: `/promotion/diy-template/delete?id=` + id }) return await request.delete({url: `/promotion/diy-template/delete?id=` + id})
} }
// 使用装修模板 // 使用装修模板
export const useDiyTemplate = async (id: number) => { export const useDiyTemplate = async (id: number) => {
return await request.put({ url: `/promotion/diy-template/use?id=` + id }) return await request.put({url: `/promotion/diy-template/use?id=` + id})
} }
// 获得装修模板属性 // 获得装修模板属性
@ -54,5 +54,5 @@ export const getDiyTemplateProperty = async (id: number) => {
// 更新装修模板属性 // 更新装修模板属性
export const updateDiyTemplateProperty = async (data: DiyTemplateVO) => { export const updateDiyTemplateProperty = async (data: DiyTemplateVO) => {
return await request.put({ url: `/promotion/diy-template/update-property`, data }) return await request.put({url: `/promotion/diy-template/update-property`, data})
} }

View File

@ -11,7 +11,7 @@ export interface ArticleVO {
// 查询文章管理列表 // 查询文章管理列表
export const selectDynamicData = async () => { export const selectDynamicData = async () => {
return await request.get({ url: `/intelligentForm/selectDynamicData` }) return await request.get({url: `/intelligentForm/selectDynamicData`})
} }
// // 查询文章管理详情 // // 查询文章管理详情
@ -21,12 +21,12 @@ export const selectDynamicData = async () => {
// 新增文章管理 // 新增文章管理
export const saveDynamicData = async (data: ArticleVO) => { export const saveDynamicData = async (data: ArticleVO) => {
return await request.post({ url: `/intelligentForm/saveDynamicData`, data }) return await request.post({url: `/intelligentForm/saveDynamicData`, data})
} }
// 查询文章管理列表 // 查询文章管理列表
export const collectDataList = async (query: any) => { export const collectDataList = async (query: any) => {
return await request.get({ url: `/intelligentForm/collectDataList`, query }) return await request.get({url: `/intelligentForm/collectDataList`, query})
} }
// // 修改文章管理 // // 修改文章管理

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