123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264 |
- import request from "@/utils/request";
- const { api } = process.env.CONFIG;
- /**
- * 新增任务
- * @param data
- * @returns
- */
- export async function addTaskApi(data: BUSINES_SPLAN_API.AddTaskProps) {
- return request({
- url: api + `/corpOperation/corp/create/project/task/add`,
- method: 'POST',
- data
- });
- }
- /**
- * 计划列表
- * @param data
- * @returns
- */
- export async function getProjectListApi(data: BUSINES_SPLAN_API.GetProjectListProps) {
- return request({
- url: api + `/corpOperation/corp/create/project/listOfPage`,
- method: 'POST',
- data
- });
- }
- /**
- * 获取计划任务详情
- * @param projectId
- * @returns
- */
- export async function getProjectDetailsApi(projectId: string) {
- return request({
- url: api + `/corpOperation/corp/create/project/getDetail/${projectId}}`,
- method: 'GET',
- });
- }
- /**
- * 任务日志
- * @param projectId
- * @returns
- */
- export async function getProjectLogListApi(projectId: number) {
- return request({
- url: api + `/corpOperation/corp/create/project/getDetail/${projectId}`,
- method: 'GET'
- });
- }
- interface ListProps {
- pageNum: number,
- pageSize: number,
- }
- export interface WelcomeMsgCorpUserList extends ListProps {
- welcomeMsgId?: any,//欢迎语Id
- }
- /**获取送达客户列表*/
- export async function api_post_welcomeMsg_corpExternalUserList(data: WelcomeMsgCorpUserList) {
- return request({
- url: `/corp/welcomeMsg/corpExternalUserList`,
- method: 'POST',
- data
- });
- }
- /**获取欢迎语应用的企微号列表*/
- export async function api_post_welcomeMsg_welcomeMsgCorpUserList(data: WelcomeMsgCorpUserList) {
- return request({
- url: `/corp/welcomeMsg/welcomeMsgCorpUserList`,
- method: 'POST',
- data
- });
- }
- export interface GetSendTaskGroupuserListProps {
- corpId: string,
- pageNum: number,
- pageSize: number,
- msgId?: string,
- sendTimeEndTime?: string
- sendTimeStartTime?: string
- status?: number
- taskId: number,
- userId?: string,
- createStartDate?: string,
- createEndDate?: string
- }
- /**
- * 群发获取下发企微号列表
- * @param data
- * @returns
- */
- export async function getSendTaskGroupuserListApi(data: GetSendTaskGroupuserListProps) {
- return request({
- url: `/corp/group/send/task/user/list`,
- method: 'POST',
- data
- });
- }
- /**
- * 获取高级群发下发企微号列表
- * @param data
- * @returns
- */
- export async function getMessageSendTaskuserListApi(data: GetSendTaskGroupuserListProps) {
- return request({
- url: `/corp/message/send/task/user/list`,
- method: 'POST',
- data
- });
- }
- /**
- * 高级群发消息重试
- * @returns
- */
- export async function putMessageUpdateApi(id:any) {
- return request({
- url: `/corp/message/send/taskLog/status/update/${id}`,
- method: 'PUT',
- });
- }
- /**
- * 群发取消发送
- * @param params
- * @returns
- */
- export async function cancelGroupSendApi(params: { corpId: string, msgId: string }) {
- return request({
- url: `/corp/group/send/task/msg/cancel`,
- method: 'PATCH',
- params
- });
- }
- /**
- * 群发提醒发送
- * @param params
- * @returns
- */
- export async function remindGroupSendApi(params: { corpId: string, msgId: string }) {
- return request({
- url: `/corp/group/send/task/msg/remind`,
- method: 'PATCH',
- params
- });
- }
- /**
- * 群发送达客户列表同步
- * @param params
- * @returns
- */
- export async function syncSendGroupTaskExternalApi(params: { id: number, taskId: string }) {
- return request({
- url: `/corp/group/send/task/external/user/sync`,
- method: 'PATCH',
- params
- });
- }
- /**
- * 群发下发企微号列表同步
- * @param params
- * @returns
- */
- export async function syncSendGroupTaskUserApi(params: { id: number, taskId: string }) {
- return request({
- url: `/corp/group/send/task/user/sync`,
- method: 'PATCH',
- params
- });
- }
- export async function getGroupFailUserListApi(params: { corpId: string, msgId: string, taskId: string }) {
- return request({
- url: `/corp/group/send/task/msg/fail/external/user/list`,
- method: 'GET',
- params
- });
- }
- /**
- * 群发重新发送
- * @param data
- * @returns
- */
- export async function reSendGroupTaskApi(data: { id: number, corpUserId?: string }) {
- return request({
- url: `/corp/group/send/task/reSend`,
- method: 'POST',
- data
- });
- }
- export interface GetSendTaskGroupMsgListProps {
- corpId: string,
- pageNum: number,
- pageSize: number,
- taskId: number,
- sendTimeEndTime?: string
- sendTimeStartTime?: string
- }
- /**
- * 获取群发记录列表
- * @param data
- * @returns
- */
- export async function getSendTaskGroupMsgListApi(data: GetSendTaskGroupMsgListProps) {
- return request({
- url: `/corp/group/send/task/msg/list`,
- method: 'POST',
- data
- });
- }
- /**
- * 获取高级群发记录列表
- * @param data
- * @returns
- */
- export async function getMessageSendTaskMsgListApi(data: GetSendTaskGroupMsgListProps) {
- return request({
- url: `/corp/message/send/task/msg/list`,
- method: 'POST',
- data
- });
- }
- /**
- * 继承日志
- * @param data
- * @returns
- */
- export async function inheritLogList(data: any) {
- return request({
- url: '/corpExternalUserTransferTask/logListOfPage',
- method: 'POST',
- data
- });
- }
- /**日志统计*/
- export async function inheritLogCount(data: any) {
- return request({
- url: '/corpExternalUserTransferTask/count',
- method: 'POST',
- data
- });
- }
|