68 changed files with 415 additions and 415 deletions
@ -1,32 +1,41 @@ |
|||||||
import { defHttp } from '@/utils/http/axios' |
import { defHttp } from '@/utils/http/axios' |
||||||
import { FormVO } from './types' |
|
||||||
|
export type FormVO = { |
||||||
|
id: number |
||||||
|
name: string |
||||||
|
conf: string |
||||||
|
fields: string[] |
||||||
|
status: number |
||||||
|
remark: string |
||||||
|
createTime: string |
||||||
|
} |
||||||
|
|
||||||
// 创建工作流的表单定义
|
// 创建工作流的表单定义
|
||||||
export const createFormApi = (data: FormVO) => { |
export function createForm(data: FormVO) { |
||||||
return defHttp.post({ url: '/bpm/form/create', data }) |
return defHttp.post({ url: '/bpm/form/create', data }) |
||||||
} |
} |
||||||
|
|
||||||
// 更新工作流的表单定义
|
// 更新工作流的表单定义
|
||||||
export const updateFormApi = (data: FormVO) => { |
export function updateForm(data: FormVO) { |
||||||
return defHttp.put({ url: '/bpm/form/update', data }) |
return defHttp.put({ url: '/bpm/form/update', data }) |
||||||
} |
} |
||||||
|
|
||||||
// 删除工作流的表单定义
|
// 删除工作流的表单定义
|
||||||
export const deleteFormApi = (id: number) => { |
export function deleteForm(id: number) { |
||||||
return defHttp.delete({ url: '/bpm/form/delete?id=' + id }) |
return defHttp.delete({ url: '/bpm/form/delete?id=' + id }) |
||||||
} |
} |
||||||
|
|
||||||
// 获得工作流的表单定义
|
// 获得工作流的表单定义
|
||||||
export const getFormApi = (id: number) => { |
export function getForm(id: number) { |
||||||
return defHttp.get({ url: '/bpm/form/get?id=' + id }) |
return defHttp.get({ url: '/bpm/form/get?id=' + id }) |
||||||
} |
} |
||||||
|
|
||||||
// 获得工作流的表单定义分页
|
// 获得工作流的表单定义分页
|
||||||
export const getFormPageApi = (params) => { |
export function getFormPage(params) { |
||||||
return defHttp.get({ url: '/bpm/form/page', params }) |
return defHttp.get({ url: '/bpm/form/page', params }) |
||||||
} |
} |
||||||
|
|
||||||
// 获得动态表单的精简列表
|
// 获得动态表单的精简列表
|
||||||
export const getSimpleFormsApi = async () => { |
export function getSimpleForms() { |
||||||
return await defHttp.get({ url: '/bpm/form/list-all-simple' }) |
return defHttp.get({ url: '/bpm/form/list-all-simple' }) |
||||||
} |
} |
||||||
|
@ -1,9 +0,0 @@ |
|||||||
export type FormVO = { |
|
||||||
id: number |
|
||||||
name: string |
|
||||||
conf: string |
|
||||||
fields: string[] |
|
||||||
status: number |
|
||||||
remark: string |
|
||||||
createTime: string |
|
||||||
} |
|
@ -1,17 +1,27 @@ |
|||||||
import { defHttp } from '@/utils/http/axios' |
import { defHttp } from '@/utils/http/axios' |
||||||
import { LeaveVO } from './types' |
|
||||||
|
export type LeaveVO = { |
||||||
|
id: number |
||||||
|
result: number |
||||||
|
type: number |
||||||
|
reason: string |
||||||
|
processInstanceId: string |
||||||
|
startTime: string |
||||||
|
endTime: string |
||||||
|
createTime: string |
||||||
|
} |
||||||
|
|
||||||
// 创建请假申请
|
// 创建请假申请
|
||||||
export const createLeaveApi = (data: LeaveVO) => { |
export function createLeave(data: LeaveVO) { |
||||||
return defHttp.post({ url: '/bpm/oa/leave/create', data }) |
return defHttp.post({ url: '/bpm/oa/leave/create', data }) |
||||||
} |
} |
||||||
|
|
||||||
// 获得请假申请
|
// 获得请假申请
|
||||||
export const getLeaveApi = (id: number) => { |
export function getLeave(id: number) { |
||||||
return defHttp.get({ url: '/bpm/oa/leave/get?id=' + id }) |
return defHttp.get({ url: '/bpm/oa/leave/get?id=' + id }) |
||||||
} |
} |
||||||
|
|
||||||
// 获得请假申请分页
|
// 获得请假申请分页
|
||||||
export const getLeavePageApi = (params) => { |
export function getLeavePage(params) { |
||||||
return defHttp.get({ url: '/bpm/oa/leave/page', params }) |
return defHttp.get({ url: '/bpm/oa/leave/page', params }) |
||||||
} |
} |
||||||
|
@ -1,10 +0,0 @@ |
|||||||
export type LeaveVO = { |
|
||||||
id: number |
|
||||||
result: number |
|
||||||
type: number |
|
||||||
reason: string |
|
||||||
processInstanceId: string |
|
||||||
startTime: string |
|
||||||
endTime: string |
|
||||||
createTime: string |
|
||||||
} |
|
@ -1,23 +0,0 @@ |
|||||||
export type ProcessDefinitionVO = { |
|
||||||
id: string |
|
||||||
version: number |
|
||||||
deploymentTIme: string |
|
||||||
suspensionState: number |
|
||||||
} |
|
||||||
|
|
||||||
export type ModelVO = { |
|
||||||
id: number |
|
||||||
formName: string |
|
||||||
key: string |
|
||||||
name: string |
|
||||||
description: string |
|
||||||
category: string |
|
||||||
formType: number |
|
||||||
formId: number |
|
||||||
formCustomCreatePath: string |
|
||||||
formCustomViewPath: string |
|
||||||
processDefinition: ProcessDefinitionVO |
|
||||||
status: number |
|
||||||
remark: string |
|
||||||
createTime: string |
|
||||||
} |
|
@ -1,18 +0,0 @@ |
|||||||
export type task = { |
|
||||||
id: string |
|
||||||
name: string |
|
||||||
} |
|
||||||
export type ProcessInstanceVO = { |
|
||||||
id: number |
|
||||||
name: string |
|
||||||
processDefinitionId: string |
|
||||||
category: string |
|
||||||
result: number |
|
||||||
tasks: task[] |
|
||||||
fields: string[] |
|
||||||
status: number |
|
||||||
remark: string |
|
||||||
businessKey: string |
|
||||||
createTime: string |
|
||||||
endTime: string |
|
||||||
} |
|
@ -1,14 +1,23 @@ |
|||||||
import { defHttp } from '@/utils/http/axios' |
import { defHttp } from '@/utils/http/axios' |
||||||
import { TaskAssignVO } from './types' |
|
||||||
|
|
||||||
export const getTaskAssignRuleList = (params) => { |
export type TaskAssignVO = { |
||||||
|
id: number |
||||||
|
modelId: string |
||||||
|
processDefinitionId: string |
||||||
|
taskDefinitionKey: string |
||||||
|
taskDefinitionName: string |
||||||
|
options: string[] |
||||||
|
type: number |
||||||
|
} |
||||||
|
|
||||||
|
export function getTaskAssignRuleList(params) { |
||||||
return defHttp.get({ url: '/bpm/task-assign-rule/list', params }) |
return defHttp.get({ url: '/bpm/task-assign-rule/list', params }) |
||||||
} |
} |
||||||
|
|
||||||
export const createTaskAssignRule = (data: TaskAssignVO) => { |
export function createTaskAssignRule(data: TaskAssignVO) { |
||||||
return defHttp.post({ url: '/bpm/task-assign-rule/create', data }) |
return defHttp.post({ url: '/bpm/task-assign-rule/create', data }) |
||||||
} |
} |
||||||
|
|
||||||
export const updateTaskAssignRule = (data: TaskAssignVO) => { |
export function updateTaskAssignRule(data: TaskAssignVO) { |
||||||
return defHttp.put({ url: '/bpm/task-assign-rule/update', data }) |
return defHttp.put({ url: '/bpm/task-assign-rule/update', data }) |
||||||
} |
} |
||||||
|
@ -1,9 +0,0 @@ |
|||||||
export type TaskAssignVO = { |
|
||||||
id: number |
|
||||||
modelId: string |
|
||||||
processDefinitionId: string |
|
||||||
taskDefinitionKey: string |
|
||||||
taskDefinitionName: string |
|
||||||
options: string[] |
|
||||||
type: number |
|
||||||
} |
|
@ -1,32 +1,41 @@ |
|||||||
import { defHttp } from '@/utils/http/axios' |
import { defHttp } from '@/utils/http/axios' |
||||||
import { UserGroupVO } from './types' |
|
||||||
|
export type UserGroupVO = { |
||||||
|
id: number |
||||||
|
name: string |
||||||
|
description: string |
||||||
|
memberUserIds: number[] |
||||||
|
status: number |
||||||
|
remark: string |
||||||
|
createTime: string |
||||||
|
} |
||||||
|
|
||||||
// 创建用户组
|
// 创建用户组
|
||||||
export const createUserGroupApi = (data: UserGroupVO) => { |
export function createUserGroup(data: UserGroupVO) { |
||||||
return defHttp.post({ url: '/bpm/user-group/create', data }) |
return defHttp.post({ url: '/bpm/user-group/create', data }) |
||||||
} |
} |
||||||
|
|
||||||
// 更新用户组
|
// 更新用户组
|
||||||
export const updateUserGroupApi = (data: UserGroupVO) => { |
export function updateUserGroup(data: UserGroupVO) { |
||||||
return defHttp.put({ url: '/bpm/user-group/update', data }) |
return defHttp.put({ url: '/bpm/user-group/update', data }) |
||||||
} |
} |
||||||
|
|
||||||
// 删除用户组
|
// 删除用户组
|
||||||
export const deleteUserGroupApi = (id: number) => { |
export function deleteUserGroup(id: number) { |
||||||
return defHttp.delete({ url: '/bpm/user-group/delete?id=' + id }) |
return defHttp.delete({ url: '/bpm/user-group/delete?id=' + id }) |
||||||
} |
} |
||||||
|
|
||||||
// 获得用户组
|
// 获得用户组
|
||||||
export const getUserGroupApi = (id: number) => { |
export function getUserGroup(id: number) { |
||||||
return defHttp.get({ url: '/bpm/user-group/get?id=' + id }) |
return defHttp.get({ url: '/bpm/user-group/get?id=' + id }) |
||||||
} |
} |
||||||
|
|
||||||
// 获得用户组分页
|
// 获得用户组分页
|
||||||
export const getUserGroupPageApi = (params) => { |
export function getUserGroupPage(params) { |
||||||
return defHttp.get({ url: '/bpm/user-group/page', params }) |
return defHttp.get({ url: '/bpm/user-group/page', params }) |
||||||
} |
} |
||||||
|
|
||||||
// 获取用户组精简信息列表
|
// 获取用户组精简信息列表
|
||||||
export const listSimpleUserGroupsApi = () => { |
export function listSimpleUserGroups() { |
||||||
return defHttp.get({ url: '/bpm/user-group/list-all-simple' }) |
return defHttp.get({ url: '/bpm/user-group/list-all-simple' }) |
||||||
} |
} |
||||||
|
@ -1,9 +0,0 @@ |
|||||||
export type UserGroupVO = { |
|
||||||
id: number |
|
||||||
name: string |
|
||||||
description: string |
|
||||||
memberUserIds: number[] |
|
||||||
status: number |
|
||||||
remark: string |
|
||||||
createTime: string |
|
||||||
} |
|
@ -1,16 +1,16 @@ |
|||||||
import { defHttp } from '@/utils/http/axios' |
import { defHttp } from '@/utils/http/axios' |
||||||
|
|
||||||
// 导出Html
|
// 导出Html
|
||||||
export const exportHtmlApi = async () => { |
export function exportHtmlApiasync() { |
||||||
return defHttp.get({ url: '/infra/db-doc/export-html', responseType: 'blob' }) |
return defHttp.get({ url: '/infra/db-doc/export-html', responseType: 'blob' }) |
||||||
} |
} |
||||||
|
|
||||||
// 导出Word
|
// 导出Word
|
||||||
export const exportWordApi = () => { |
export function exportWordApi() { |
||||||
return defHttp.get({ url: '/infra/db-doc/export-word', responseType: 'blob' }) |
return defHttp.get({ url: '/infra/db-doc/export-word', responseType: 'blob' }) |
||||||
} |
} |
||||||
|
|
||||||
// 导出Markdown
|
// 导出Markdown
|
||||||
export const exportMarkdownApi = () => { |
export function exportMarkdownApi() { |
||||||
return defHttp.get({ url: '/infra/db-doc/export-markdown', responseType: 'blob' }) |
return defHttp.get({ url: '/infra/db-doc/export-markdown', responseType: 'blob' }) |
||||||
} |
} |
||||||
|
@ -1,41 +1,41 @@ |
|||||||
import { defHttp } from '@/utils/http/axios' |
import { defHttp } from '@/utils/http/axios' |
||||||
|
|
||||||
// 创建公众号账号
|
// 创建公众号账号
|
||||||
export const createAccount = async (data) => { |
export function createAccount(data) { |
||||||
return await defHttp.post({ url: '/mp/account/create', data }) |
return defHttp.post({ url: '/mp/account/create', data }) |
||||||
} |
} |
||||||
|
|
||||||
// 更新公众号账号
|
// 更新公众号账号
|
||||||
export const updateAccount = async (data) => { |
export function updateAccount(data) { |
||||||
return defHttp.put({ url: '/mp/account/update', data }) |
return defHttp.put({ url: '/mp/account/update', data }) |
||||||
} |
} |
||||||
|
|
||||||
// 删除公众号账号
|
// 删除公众号账号
|
||||||
export const deleteAccount = async (id) => { |
export function deleteAccount(id) { |
||||||
return defHttp.delete({ url: '/mp/account/delete?id=' + id, method: 'delete' }) |
return defHttp.delete({ url: '/mp/account/delete?id=' + id, method: 'delete' }) |
||||||
} |
} |
||||||
|
|
||||||
// 获得公众号账号
|
// 获得公众号账号
|
||||||
export const getAccount = async (id) => { |
export function getAccount(id) { |
||||||
return defHttp.get({ url: '/mp/account/get?id=' + id }) |
return defHttp.get({ url: '/mp/account/get?id=' + id }) |
||||||
} |
} |
||||||
|
|
||||||
// 获得公众号账号分页
|
// 获得公众号账号分页
|
||||||
export const getAccountPage = async (params) => { |
export function getAccountPage(params) { |
||||||
return defHttp.get({ url: '/mp/account/page', params }) |
return defHttp.get({ url: '/mp/account/page', params }) |
||||||
} |
} |
||||||
|
|
||||||
// 获取公众号账号精简信息列表
|
// 获取公众号账号精简信息列表
|
||||||
export const getSimpleAccounts = async () => { |
export function getSimpleAccounts() { |
||||||
return defHttp.get({ url: '/mp/account/list-all-simple' }) |
return defHttp.get({ url: '/mp/account/list-all-simple' }) |
||||||
} |
} |
||||||
|
|
||||||
// 生成公众号二维码
|
// 生成公众号二维码
|
||||||
export const generateAccountQrCode = async (id) => { |
export function generateAccountQrCode(id) { |
||||||
return defHttp.put({ url: '/mp/account/generate-qr-code?id=' + id }) |
return defHttp.put({ url: '/mp/account/generate-qr-code?id=' + id }) |
||||||
} |
} |
||||||
|
|
||||||
// 清空公众号 API 配额
|
// 清空公众号 API 配额
|
||||||
export const clearAccountQuota = async (id) => { |
export function clearAccountQuota(id) { |
||||||
return defHttp.put({ url: '/mp/account/clear-quota?id=' + id }) |
return defHttp.put({ url: '/mp/account/clear-quota?id=' + id }) |
||||||
} |
} |
||||||
|
@ -1,26 +1,26 @@ |
|||||||
import { defHttp } from '@/utils/http/axios' |
import { defHttp } from '@/utils/http/axios' |
||||||
|
|
||||||
// 创建公众号的自动回复
|
// 创建公众号的自动回复
|
||||||
export const createAutoReply = (data) => { |
export function createAutoReply(data) { |
||||||
return defHttp.post({ url: '/mp/auto-reply/create', data }) |
return defHttp.post({ url: '/mp/auto-reply/create', data }) |
||||||
} |
} |
||||||
|
|
||||||
// 更新公众号的自动回复
|
// 更新公众号的自动回复
|
||||||
export const updateAutoReply = (data) => { |
export function updateAutoReply(data) { |
||||||
return defHttp.put({ url: '/mp/auto-reply/update', data }) |
return defHttp.put({ url: '/mp/auto-reply/update', data }) |
||||||
} |
} |
||||||
|
|
||||||
// 删除公众号的自动回复
|
// 删除公众号的自动回复
|
||||||
export const deleteAutoReply = (id) => { |
export function deleteAutoReply(id) { |
||||||
return defHttp.delete({ url: '/mp/auto-reply/delete?id=' + id }) |
return defHttp.delete({ url: '/mp/auto-reply/delete?id=' + id }) |
||||||
} |
} |
||||||
|
|
||||||
// 获得公众号的自动回复
|
// 获得公众号的自动回复
|
||||||
export const getAutoReply = (id) => { |
export function getAutoReply(id) { |
||||||
return defHttp.get({ url: '/mp/auto-reply/get?id=' + id }) |
return defHttp.get({ url: '/mp/auto-reply/get?id=' + id }) |
||||||
} |
} |
||||||
|
|
||||||
// 获得公众号的自动回复分页
|
// 获得公众号的自动回复分页
|
||||||
export const getAutoReplyPage = (params) => { |
export function getAutoReplyPage(params) { |
||||||
return defHttp.get({ url: '/mp/auto-reply/page', params }) |
return defHttp.get({ url: '/mp/auto-reply/page', params }) |
||||||
} |
} |
||||||
|
@ -1,16 +1,16 @@ |
|||||||
import { defHttp } from '@/utils/http/axios' |
import { defHttp } from '@/utils/http/axios' |
||||||
|
|
||||||
// 获得公众号素材分页
|
// 获得公众号素材分页
|
||||||
export const getFreePublishPage = (params) => { |
export function getFreePublishPage(params) { |
||||||
return defHttp.get({ url: '/mp/free-publish/page', params }) |
return defHttp.get({ url: '/mp/free-publish/page', params }) |
||||||
} |
} |
||||||
|
|
||||||
// 删除公众号素材
|
// 删除公众号素材
|
||||||
export const deleteFreePublish = (accountId, articleId) => { |
export function deleteFreePublish(accountId, articleId) { |
||||||
return defHttp.delete({ url: '/mp/free-publish/delete?accountId=' + accountId + '&&articleId=' + articleId }) |
return defHttp.delete({ url: '/mp/free-publish/delete?accountId=' + accountId + '&&articleId=' + articleId }) |
||||||
} |
} |
||||||
|
|
||||||
// 发布公众号素材
|
// 发布公众号素材
|
||||||
export const submitFreePublish = (accountId, mediaId) => { |
export function submitFreePublish(accountId, mediaId) { |
||||||
return defHttp.post({ url: '/mp/free-publish/submit?accountId=' + accountId + '&&mediaId=' + mediaId }) |
return defHttp.post({ url: '/mp/free-publish/submit?accountId=' + accountId + '&&mediaId=' + mediaId }) |
||||||
} |
} |
||||||
|
@ -1,11 +1,11 @@ |
|||||||
import { defHttp } from '@/utils/http/axios' |
import { defHttp } from '@/utils/http/axios' |
||||||
|
|
||||||
// 获得公众号素材分页
|
// 获得公众号素材分页
|
||||||
export const getMaterialPage = (params) => { |
export function getMaterialPage(params) { |
||||||
return defHttp.get({ url: '/mp/material/page', params }) |
return defHttp.get({ url: '/mp/material/page', params }) |
||||||
} |
} |
||||||
|
|
||||||
// 删除公众号永久素材
|
// 删除公众号永久素材
|
||||||
export const deletePermanentMaterial = (id) => { |
export function deletePermanentMaterial(id) { |
||||||
return defHttp.delete({ url: '/mp/material/delete-permanent?id=' + id }) |
return defHttp.delete({ url: '/mp/material/delete-permanent?id=' + id }) |
||||||
} |
} |
||||||
|
@ -1,11 +1,11 @@ |
|||||||
import { defHttp } from '@/utils/http/axios' |
import { defHttp } from '@/utils/http/axios' |
||||||
|
|
||||||
// 获得公众号消息分页
|
// 获得公众号消息分页
|
||||||
export const getMessagePage = (params) => { |
export function getMessagePage(params) { |
||||||
return defHttp.get({ url: '/mp/message/page', params }) |
return defHttp.get({ url: '/mp/message/page', params }) |
||||||
} |
} |
||||||
|
|
||||||
// 给粉丝发送消息
|
// 给粉丝发送消息
|
||||||
export const sendMessage = (data) => { |
export function sendMessage(data) { |
||||||
return defHttp.post({ url: '/mp/message/send', data }) |
return defHttp.post({ url: '/mp/message/send', data }) |
||||||
} |
} |
||||||
|
@ -1,21 +1,21 @@ |
|||||||
import { defHttp } from '@/utils/http/axios' |
import { defHttp } from '@/utils/http/axios' |
||||||
|
|
||||||
// 更新公众号粉丝
|
// 更新公众号粉丝
|
||||||
export const updateUser = (data) => { |
export function updateUser(data) { |
||||||
return defHttp.put({ url: '/mp/user/update', data }) |
return defHttp.put({ url: '/mp/user/update', data }) |
||||||
} |
} |
||||||
|
|
||||||
// 获得公众号粉丝
|
// 获得公众号粉丝
|
||||||
export const getUser = (id) => { |
export function getUser(id) { |
||||||
return defHttp.get({ url: '/mp/user/get?id=' + id }) |
return defHttp.get({ url: '/mp/user/get?id=' + id }) |
||||||
} |
} |
||||||
|
|
||||||
// 获得公众号粉丝分页
|
// 获得公众号粉丝分页
|
||||||
export const getUserPage = (params) => { |
export function getUserPage(params) { |
||||||
return defHttp.get({ url: '/mp/user/page', params }) |
return defHttp.get({ url: '/mp/user/page', params }) |
||||||
} |
} |
||||||
|
|
||||||
// 同步公众号粉丝
|
// 同步公众号粉丝
|
||||||
export const syncUser = (accountId) => { |
export function syncUser(accountId) { |
||||||
return defHttp.post({ url: '/mp/tag/sync?accountId=' + accountId }) |
return defHttp.post({ url: '/mp/tag/sync?accountId=' + accountId }) |
||||||
} |
} |
||||||
|
@ -1,21 +1,21 @@ |
|||||||
import { defHttp } from '@/utils/http/axios' |
import { defHttp } from '@/utils/http/axios' |
||||||
|
|
||||||
// 获取消息发送概况数据
|
// 获取消息发送概况数据
|
||||||
export const getUpstreamMessage = (params) => { |
export function getUpstreamMessage(params) { |
||||||
return defHttp.get({ url: '/mp/statistics/upstream-message', params }) |
return defHttp.get({ url: '/mp/statistics/upstream-message', params }) |
||||||
} |
} |
||||||
|
|
||||||
// 用户增减数据
|
// 用户增减数据
|
||||||
export const getUserSummary = (params) => { |
export function getUserSummary(params) { |
||||||
return defHttp.get({ url: '/mp/statistics/user-summary', params }) |
return defHttp.get({ url: '/mp/statistics/user-summary', params }) |
||||||
} |
} |
||||||
|
|
||||||
// 获得用户累计数据
|
// 获得用户累计数据
|
||||||
export const getUserCumulate = (params) => { |
export function getUserCumulate(params) { |
||||||
return defHttp.get({ url: '/mp/statistics/user-cumulate', params }) |
return defHttp.get({ url: '/mp/statistics/user-cumulate', params }) |
||||||
} |
} |
||||||
|
|
||||||
// 获得接口分析数据
|
// 获得接口分析数据
|
||||||
export const getInterfaceSummary = (params) => { |
export function getInterfaceSummary(params) { |
||||||
return defHttp.get({ url: '/mp/statistics/interface-summary', params }) |
return defHttp.get({ url: '/mp/statistics/interface-summary', params }) |
||||||
} |
} |
||||||
|
@ -1,36 +1,36 @@ |
|||||||
import { defHttp } from '@/utils/http/axios' |
import { defHttp } from '@/utils/http/axios' |
||||||
|
|
||||||
// 创建公众号标签
|
// 创建公众号标签
|
||||||
export const createTag = (data) => { |
export function createTag(data) { |
||||||
return defHttp.post({ url: '/mp/tag/create', data }) |
return defHttp.post({ url: '/mp/tag/create', data }) |
||||||
} |
} |
||||||
|
|
||||||
// 更新公众号标签
|
// 更新公众号标签
|
||||||
export const updateTag = (data) => { |
export function updateTag(data) { |
||||||
return defHttp.put({ url: '/mp/tag/update', data }) |
return defHttp.put({ url: '/mp/tag/update', data }) |
||||||
} |
} |
||||||
|
|
||||||
// 删除公众号标签
|
// 删除公众号标签
|
||||||
export const deleteTag = (id) => { |
export function deleteTag(id) { |
||||||
return defHttp.delete({ url: '/mp/tag/delete?id=' + id }) |
return defHttp.delete({ url: '/mp/tag/delete?id=' + id }) |
||||||
} |
} |
||||||
|
|
||||||
// 获得公众号标签
|
// 获得公众号标签
|
||||||
export const getTag = (id) => { |
export function getTag(id) { |
||||||
return defHttp.get({ url: '/mp/tag/get?id=' + id }) |
return defHttp.get({ url: '/mp/tag/get?id=' + id }) |
||||||
} |
} |
||||||
|
|
||||||
// 获得公众号标签分页
|
// 获得公众号标签分页
|
||||||
export const getTagPage = (params) => { |
export function getTagPage(params) { |
||||||
return defHttp.get({ url: '/mp/tag/page', params }) |
return defHttp.get({ url: '/mp/tag/page', params }) |
||||||
} |
} |
||||||
|
|
||||||
// 获取公众号标签精简信息列表
|
// 获取公众号标签精简信息列表
|
||||||
export const getSimpleTags = () => { |
export function getSimpleTags() { |
||||||
return defHttp.get({ url: '/mp/tag/list-all-simple' }) |
return defHttp.get({ url: '/mp/tag/list-all-simple' }) |
||||||
} |
} |
||||||
|
|
||||||
// 同步公众号标签
|
// 同步公众号标签
|
||||||
export const syncTag = (accountId) => { |
export function syncTag(accountId) { |
||||||
return defHttp.post({ url: '/mp/tag/sync?accountId=' + accountId }) |
return defHttp.post({ url: '/mp/tag/sync?accountId=' + accountId }) |
||||||
} |
} |
||||||
|
@ -1,11 +1,11 @@ |
|||||||
import { defHttp } from '@/utils/http/axios' |
import { defHttp } from '@/utils/http/axios' |
||||||
|
|
||||||
// 获得地区树
|
// 获得地区树
|
||||||
export const getAreaTree = () => { |
export function getAreaTree() { |
||||||
return defHttp.get({ url: '/system/area/tree' }) |
return defHttp.get({ url: '/system/area/tree' }) |
||||||
} |
} |
||||||
|
|
||||||
// 获得 IP 对应的地区名
|
// 获得 IP 对应的地区名
|
||||||
export const getAreaByIp = (ip: string) => { |
export function getAreaByIp(ip: string) { |
||||||
return defHttp.get({ url: '/system/area/get-by-ip?ip=' + ip }) |
return defHttp.get({ url: '/system/area/get-by-ip?ip=' + ip }) |
||||||
} |
} |
||||||
|
@ -1,31 +1,31 @@ |
|||||||
import { defHttp } from '@/utils/http/axios' |
import { defHttp } from '@/utils/http/axios' |
||||||
|
|
||||||
// 创建邮箱账号
|
// 创建邮箱账号
|
||||||
export const createMailAccount = (data) => { |
export function createMailAccount(data) { |
||||||
return defHttp.post({ url: '/system/mail-account/create', data }) |
return defHttp.post({ url: '/system/mail-account/create', data }) |
||||||
} |
} |
||||||
|
|
||||||
// 更新邮箱账号
|
// 更新邮箱账号
|
||||||
export const updateMailAccount = (data) => { |
export function updateMailAccount(data) { |
||||||
return defHttp.put({ url: '/system/mail-account/update', data }) |
return defHttp.put({ url: '/system/mail-account/update', data }) |
||||||
} |
} |
||||||
|
|
||||||
// 删除邮箱账号
|
// 删除邮箱账号
|
||||||
export const deleteMailAccount = (id: number) => { |
export function deleteMailAccount(id: number) { |
||||||
return defHttp.delete({ url: '/system/mail-account/delete?id=' + id }) |
return defHttp.delete({ url: '/system/mail-account/delete?id=' + id }) |
||||||
} |
} |
||||||
|
|
||||||
// 获得邮箱账号
|
// 获得邮箱账号
|
||||||
export const getMailAccount = (id: number) => { |
export function getMailAccount(id: number) { |
||||||
return defHttp.get({ url: '/system/mail-account/get?id=' + id }) |
return defHttp.get({ url: '/system/mail-account/get?id=' + id }) |
||||||
} |
} |
||||||
|
|
||||||
// 获得邮箱账号分页
|
// 获得邮箱账号分页
|
||||||
export const getMailAccountPage = (params) => { |
export function getMailAccountPage(params) { |
||||||
return defHttp.get({ url: '/system/mail-account/page', params }) |
return defHttp.get({ url: '/system/mail-account/page', params }) |
||||||
} |
} |
||||||
|
|
||||||
// 获取邮箱账号的精简信息列表
|
// 获取邮箱账号的精简信息列表
|
||||||
export const getSimpleMailAccountList = () => { |
export function getSimpleMailAccountList() { |
||||||
return defHttp.get({ url: '/system/mail-account/list-all-simple' }) |
return defHttp.get({ url: '/system/mail-account/list-all-simple' }) |
||||||
} |
} |
||||||
|
@ -1,11 +1,11 @@ |
|||||||
import { defHttp } from '@/utils/http/axios' |
import { defHttp } from '@/utils/http/axios' |
||||||
|
|
||||||
// 获得邮件日志
|
// 获得邮件日志
|
||||||
export const getMailLog = (id: number) => { |
export function getMailLog(id: number) { |
||||||
return defHttp.get({ url: '/system/mail-log/get?id=' + id }) |
return defHttp.get({ url: '/system/mail-log/get?id=' + id }) |
||||||
} |
} |
||||||
|
|
||||||
// 获得邮件日志分页
|
// 获得邮件日志分页
|
||||||
export const getMailAccountPage = (params) => { |
export function getMailAccountPage(params) { |
||||||
return defHttp.get({ url: '/system/mail-log/page', params }) |
return defHttp.get({ url: '/system/mail-log/page', params }) |
||||||
} |
} |
||||||
|
@ -1,31 +1,31 @@ |
|||||||
import { defHttp } from '@/utils/http/axios' |
import { defHttp } from '@/utils/http/axios' |
||||||
|
|
||||||
// 创建邮件模版
|
// 创建邮件模版
|
||||||
export const createMailTemplate = (data) => { |
export function createMailTemplate(data) { |
||||||
return defHttp.post({ url: '/system/mail-template/create', data }) |
return defHttp.post({ url: '/system/mail-template/create', data }) |
||||||
} |
} |
||||||
|
|
||||||
// 更新邮件模版
|
// 更新邮件模版
|
||||||
export const updateMailTemplate = (data) => { |
export function updateMailTemplate(data) { |
||||||
return defHttp.put({ url: '/system/mail-template/update', data }) |
return defHttp.put({ url: '/system/mail-template/update', data }) |
||||||
} |
} |
||||||
|
|
||||||
// 删除邮件模版
|
// 删除邮件模版
|
||||||
export const deleteMailTemplate = (id: number) => { |
export function deleteMailTemplate(id: number) { |
||||||
return defHttp.delete({ url: '/system/mail-template/delete?id=' + id }) |
return defHttp.delete({ url: '/system/mail-template/delete?id=' + id }) |
||||||
} |
} |
||||||
|
|
||||||
// 获得邮件模版
|
// 获得邮件模版
|
||||||
export const getMailTemplate = (id: number) => { |
export function getMailTemplate(id: number) { |
||||||
return defHttp.get({ url: '/system/mail-template/get?id=' + id }) |
return defHttp.get({ url: '/system/mail-template/get?id=' + id }) |
||||||
} |
} |
||||||
|
|
||||||
// 获得邮件模版分页
|
// 获得邮件模版分页
|
||||||
export const getMailTemplatePage = (params) => { |
export function getMailTemplatePage(params) { |
||||||
return defHttp.get({ url: '/system/mail-template/page', params }) |
return defHttp.get({ url: '/system/mail-template/page', params }) |
||||||
} |
} |
||||||
|
|
||||||
// 发送测试邮件
|
// 发送测试邮件
|
||||||
export const sendMail = (data) => { |
export function sendMail(data) { |
||||||
return defHttp.post({ url: '/system/mail-template/send-mail', data }) |
return defHttp.post({ url: '/system/mail-template/send-mail', data }) |
||||||
} |
} |
||||||
|
@ -1,36 +1,36 @@ |
|||||||
import { defHttp } from '@/utils/http/axios' |
import { defHttp } from '@/utils/http/axios' |
||||||
|
|
||||||
// 创建站内信模板
|
// 创建站内信模板
|
||||||
export const createNotifyTemplate = (data) => { |
export function createNotifyTemplate(data) { |
||||||
return defHttp.post({ url: '/system/notify-template/create', data }) |
return defHttp.post({ url: '/system/notify-template/create', data }) |
||||||
} |
} |
||||||
|
|
||||||
// 更新站内信模板
|
// 更新站内信模板
|
||||||
export const updateNotifyTemplate = (data) => { |
export function updateNotifyTemplate(data) { |
||||||
return defHttp.put({ url: '/system/notify-template/update', data }) |
return defHttp.put({ url: '/system/notify-template/update', data }) |
||||||
} |
} |
||||||
|
|
||||||
// 删除站内信模板
|
// 删除站内信模板
|
||||||
export const deleteNotifyTemplate = (id: number) => { |
export function deleteNotifyTemplate(id: number) { |
||||||
return defHttp.delete({ url: '/system/notify-template/delete?id=' + id }) |
return defHttp.delete({ url: '/system/notify-template/delete?id=' + id }) |
||||||
} |
} |
||||||
|
|
||||||
// 获得站内信模板
|
// 获得站内信模板
|
||||||
export const getNotifyTemplate = (id: number) => { |
export function getNotifyTemplate(id: number) { |
||||||
return defHttp.get({ url: '/system/notify-template/get?id=' + id }) |
return defHttp.get({ url: '/system/notify-template/get?id=' + id }) |
||||||
} |
} |
||||||
|
|
||||||
// 获得站内信模板分页
|
// 获得站内信模板分页
|
||||||
export const getNotifyTemplatePage = (params) => { |
export function getNotifyTemplatePage(params) { |
||||||
return defHttp.get({ url: '/system/notify-template/page', params }) |
return defHttp.get({ url: '/system/notify-template/page', params }) |
||||||
} |
} |
||||||
|
|
||||||
// 获取岗位精简信息列表
|
// 获取岗位精简信息列表
|
||||||
export const listSimplePosts = () => { |
export function listSimplePosts() { |
||||||
return defHttp.get({ url: '/system/post/list-all-simple' }) |
return defHttp.get({ url: '/system/post/list-all-simple' }) |
||||||
} |
} |
||||||
|
|
||||||
// 导出站内信模板 Excel
|
// 导出站内信模板 Excel
|
||||||
export const exportNotifyTemplateExcel = (params) => { |
export function exportNotifyTemplateExcel(params) { |
||||||
return defHttp.download({ url: '/system/notify-template/export-excel', params }, '导出站内信模板.xls') |
return defHttp.download({ url: '/system/notify-template/export-excel', params }, '导出站内信模板.xls') |
||||||
} |
} |
||||||
|
Reference in new issue