|
@@ -581,20 +581,42 @@ export async function getWechatAppletDetailApi(id: number) {
|
|
|
* @param data
|
|
|
* @returns
|
|
|
*/
|
|
|
-export async function addCorpWechatApi(data: { wechatId: string, wechatName: string }) {
|
|
|
- return request(api + `/adq/v3/corpWechat/add`, {
|
|
|
+export async function addCorpWechatApi(data: { agentId: number, corpName: string, localCorpId: string, tencentCorpId: string }) {
|
|
|
+ return request(api + `/adq/v3/tencentCorp/add`, {
|
|
|
method: 'POST',
|
|
|
data
|
|
|
})
|
|
|
}
|
|
|
|
|
|
+/**
|
|
|
+ * 修改本地企微微信信息
|
|
|
+ * @param data
|
|
|
+ * @returns
|
|
|
+ */
|
|
|
+export async function modifyCorpWechatApi(data: { agentId: number, corpName: string, localCorpId: string, tencentCorpId: string }) {
|
|
|
+ return request(api + `/adq/v3/tencentCorp/modify`, {
|
|
|
+ method: 'PUT',
|
|
|
+ data
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * 查询企微列表
|
|
|
+ * @returns
|
|
|
+ */
|
|
|
+export async function getLocalCorpListApi() {
|
|
|
+ return request(api + `/adq/v3/tencentCorp/localCorpList`, {
|
|
|
+ method: 'GET'
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
/**
|
|
|
* 查询本地企业微信列表
|
|
|
* @param data
|
|
|
* @returns
|
|
|
*/
|
|
|
-export async function getCorpWechatApi(data: { pageNum: number, pageSize: number, wechatName?: string, wechatIdList?: string[] }) {
|
|
|
- return request(api + `/adq/v3/corpWechat/list`, {
|
|
|
+export async function getCorpWechatApi(data: { pageNum: number, pageSize: number, corpName?: string, wechatIdList?: string[] }) {
|
|
|
+ return request(api + `/adq/v3/tencentCorp/list`, {
|
|
|
method: 'POST',
|
|
|
data
|
|
|
})
|
|
@@ -615,25 +637,26 @@ export async function delCorpWechatApi(id: number) {
|
|
|
|
|
|
|
|
|
/**
|
|
|
- * 获取所有微信小程序列表
|
|
|
+ * 获取填写所有企微列表 投放
|
|
|
* @param data
|
|
|
* @returns
|
|
|
*/
|
|
|
-export async function getCorpWechatAllApi(data: { wechatName?: string, wechatIdList?: string[] }) {
|
|
|
- return request(api + `/adq/v3/corpWechat/listAll`, {
|
|
|
+export async function getCorpWechatAllApi(data: { corpName?: string }) {
|
|
|
+ return request(api + `/adq/v3/tencentCorp/listAll`, {
|
|
|
method: 'POST',
|
|
|
data
|
|
|
})
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 获取详情
|
|
|
+ * 获取企微详情
|
|
|
* @param id
|
|
|
* @returns
|
|
|
*/
|
|
|
-export async function getCorpWechatDetailApi(id: number) {
|
|
|
- return request(api + `/adq/v3/corpWechat/getById/${id}`, {
|
|
|
- method: 'GET'
|
|
|
+export async function getCorpWechatDetailApi(params: { tencentCorpId: string }) {
|
|
|
+ return request(api + `/adq/v3/tencentCorp/getByTencentCorpId`, {
|
|
|
+ method: 'GET',
|
|
|
+ params
|
|
|
})
|
|
|
}
|
|
|
|
|
@@ -1003,18 +1026,115 @@ export async function getApplicationDetailApi(id: number) {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+export interface GetCustomerServiceGroupListProps {
|
|
|
+ pageNum: number,
|
|
|
+ pageSize: number,
|
|
|
+ csgroupName?: string, // 客服组名称
|
|
|
+ tencentCorpId?: string, // 企业微信ID
|
|
|
+ parentId?: number, // 父级ID
|
|
|
+ type?: 0 | 1, // 类型 0:客服组集,1:客服组,
|
|
|
+ policyId?: number, // 轮换策略ID
|
|
|
+}
|
|
|
/**
|
|
|
* 查询企业微信组件客服组
|
|
|
* @param data
|
|
|
* @returns
|
|
|
*/
|
|
|
-export async function getCustomerServiceGroupListApi(data: { adAccountId: number, pageNum: number, pageSize: number, tencentCorpId?: string }) {
|
|
|
- return request(api + `/adq/v3/launch/tools/selectCustomerServiceGroup`, {
|
|
|
+export async function getCustomerServiceGroupListApi(data: GetCustomerServiceGroupListProps) {
|
|
|
+ return request(api + `/adq/localCorpCsgroup/listOfPage`, {
|
|
|
method: 'POST',
|
|
|
data
|
|
|
})
|
|
|
}
|
|
|
|
|
|
+/**
|
|
|
+ * 客服组-按类型查询(不分页, 类型非必传, 下拉筛选框使用)
|
|
|
+ * @param params
|
|
|
+ * @returns
|
|
|
+ */
|
|
|
+export async function getLocalCorpCsgroupListAllApi(params: { type?: 0 | 1 }) {
|
|
|
+ return request(api + `/adq/localCorpCsgroup/listOfType`, {
|
|
|
+ method: 'GET',
|
|
|
+ params
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
+export interface GetCustomerServiceGroupUserListProps {
|
|
|
+ localCsgroupId: number, // 企业微信ID
|
|
|
+ pageNum: number, // 页码
|
|
|
+ pageSize: number, // 页大小
|
|
|
+ localCorpUserName?: string, // 客服组成员名称
|
|
|
+ poolType?: 'BLOCKLIST' | 'OFFLINE' | 'ONLINE' | 'WAITING' | 'WARRING', // 客服组成员状态
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * 客服组成员-分页查询
|
|
|
+ * @param data
|
|
|
+ * @returns
|
|
|
+ */
|
|
|
+export async function getLocalCorpCsgroupUserListApi(data: GetCustomerServiceGroupUserListProps) {
|
|
|
+ return request(api + `/adq/localCorpCsgroup/user/listOfPage`, {
|
|
|
+ method: 'POST',
|
|
|
+ data
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * 所有成员
|
|
|
+ * @param data
|
|
|
+ * @returns
|
|
|
+ */
|
|
|
+export async function getLocalCorpCsgroupUserAllListApi(data: { poolType?: 'BLOCKLIST' | 'OFFLINE' | 'ONLINE' | 'WAITING' | 'WARRING', localCsgroupId: number, localCorpUserName?: string }) {
|
|
|
+ return request(api + `/adq/localCorpCsgroup/user/all`, {
|
|
|
+ method: 'POST',
|
|
|
+ data
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
+export interface AddLocalCorpCsgroupUserListProps {
|
|
|
+ localCsgroupId: number,
|
|
|
+ tencentCorpId: string,
|
|
|
+ tencentCorpUserIdList: string[]
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * 新增客服组成员
|
|
|
+ * @param data
|
|
|
+ * @returns
|
|
|
+ */
|
|
|
+export async function addLocalCorpCsgroupUserListApi(data: AddLocalCorpCsgroupUserListProps) {
|
|
|
+ return request(api + `/adq/localCorpCsgroup/user/add`, {
|
|
|
+ method: 'POST',
|
|
|
+ data
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * 删除客服组成员
|
|
|
+ * @param data
|
|
|
+ * @returns
|
|
|
+ */
|
|
|
+export async function delLocalCorpCsgroupUserApi(data: { idList: number[] }) {
|
|
|
+ return request(api + `/adq/localCorpCsgroup/user/deleteBatch`, {
|
|
|
+ method: 'DELETE',
|
|
|
+ data
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+/**
|
|
|
+ * 修改客服号
|
|
|
+ * @param data
|
|
|
+ * @returns
|
|
|
+ */
|
|
|
+export async function modifyLocalCorpCsgroupUserApi(data: { idList: number[], limitAddFansOfDay: number, poolType: 'BLOCKLIST' | 'OFFLINE' | 'ONLINE' | 'WAITING' | 'WARRING' }) {
|
|
|
+ return request(api + `/adq/localCorpCsgroup/user/modifyBatch`, {
|
|
|
+ method: 'PATCH',
|
|
|
+ data
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
export interface updateCustomerServiceGroupProps {
|
|
|
adAccountId: number,
|
|
|
tencentCorpId: string,
|
|
@@ -1022,18 +1142,38 @@ export interface updateCustomerServiceGroupProps {
|
|
|
groupName: string,
|
|
|
userIdList: string[]
|
|
|
}
|
|
|
+
|
|
|
+export interface AddLocalCorpCsgroupProps {
|
|
|
+ csgroupName: string, // 客服组名称
|
|
|
+ tencentCorpId: string,
|
|
|
+ type: 0 | 1, // 类型 0:客服组集,1:客服组,
|
|
|
+ parentId?: number, // 父级ID
|
|
|
+ policyId?: number, // 轮换策略ID
|
|
|
+}
|
|
|
/**
|
|
|
- * 修改企业微信组件客服组
|
|
|
+ * 新增客服组
|
|
|
* @param data
|
|
|
* @returns
|
|
|
*/
|
|
|
-export async function updateCustomerServiceGroupApi(data: updateCustomerServiceGroupProps) {
|
|
|
- return request(api + `/adq/v3/launch/tools/updateCustomerServiceGroup`, {
|
|
|
+export async function addLocalCorpCsgroupApi(data: AddLocalCorpCsgroupProps) {
|
|
|
+ return request(api + `/adq/localCorpCsgroup/add`, {
|
|
|
method: 'POST',
|
|
|
data
|
|
|
})
|
|
|
}
|
|
|
|
|
|
+/**
|
|
|
+ * 修改客服组
|
|
|
+ * @param data
|
|
|
+ * @returns
|
|
|
+ */
|
|
|
+export async function modifyLocalCorpCsgroupApi(data: AddLocalCorpCsgroupProps) {
|
|
|
+ return request(api + `/adq/localCorpCsgroup/modifyById`, {
|
|
|
+ method: 'PATCH',
|
|
|
+ data
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
export interface getWechatPagesCsgroupUserProps {
|
|
|
adAccountId: number,
|
|
|
tencentCorpId: string,
|
|
@@ -1064,25 +1204,74 @@ export async function getCorpDepartmentListApi(params: { corpName: string }) {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
+export interface GetTencentCorpCsgroupListProps {
|
|
|
+ groupName?: string, // 客服组名称
|
|
|
+ pageNum: number, // 页码
|
|
|
+ pageSize: number, // 页大小
|
|
|
+}
|
|
|
+
|
|
|
/**
|
|
|
- * 查询企微关系列表
|
|
|
+ * 腾讯客服组列表查询
|
|
|
+ * @param data
|
|
|
+ * @returns
|
|
|
+ */
|
|
|
+export async function getTencentCorpCsgroupListApi(data: GetTencentCorpCsgroupListProps) {
|
|
|
+ return request(api + `/adq/tencentCorpCsgroup/listOfPage`, {
|
|
|
+ method: 'POST',
|
|
|
+ data
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * 腾讯客服组-查询组内成员
|
|
|
* @param params
|
|
|
* @returns
|
|
|
*/
|
|
|
-export async function getCorpRelationListApi(data: { adAccountId: number }) {
|
|
|
- return request(api + `/adq/corpRelation/listOfPage`, {
|
|
|
+export async function getUserListListApi(params: { groupId: number }) {
|
|
|
+ return request(api + `/adq/tencentCorpCsgroup/userList`, {
|
|
|
+ method: 'GET',
|
|
|
+ params
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
+export interface AddTencentCorpCsgroupProps {
|
|
|
+ accountId: number, // 账户ID
|
|
|
+ tencentCorpId: string, // 企业微信ID
|
|
|
+ groupName: string, // 客服组名称
|
|
|
+ tencentCorpUserIds: string[], // 企业微信成员ID
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * 腾讯客服组-新增
|
|
|
+ * @param data
|
|
|
+ * @returns
|
|
|
+ */
|
|
|
+export async function addTencentCorpCsgroupApi(data: GetTencentCorpCsgroupListProps) {
|
|
|
+ return request(api + `/adq/tencentCorpCsgroup/add`, {
|
|
|
method: 'POST',
|
|
|
data
|
|
|
})
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 查询所有企微关系
|
|
|
+ * 绑定本地客服组
|
|
|
* @param data
|
|
|
* @returns
|
|
|
*/
|
|
|
-export async function getCorpRelationAllApi(data: { adAccountId: number }) {
|
|
|
- return request(api + `/adq/corpRelation/listAll`, {
|
|
|
+export async function bandTencentCorpCsgroupApi(data: { groupId: number, localCsgroupId?: number }) {
|
|
|
+ return request(api + `/adq/tencentCorpCsgroup/modifyById`, {
|
|
|
+ method: 'PATCH',
|
|
|
+ data
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * 查询企微关系列表
|
|
|
+ * @param params
|
|
|
+ * @returns
|
|
|
+ */
|
|
|
+export async function getCorpRelationListApi(data: { adAccountId: number }) {
|
|
|
+ return request(api + `/adq/corpRelation/listOfPage`, {
|
|
|
method: 'POST',
|
|
|
data
|
|
|
})
|
|
@@ -1111,6 +1300,65 @@ export async function addCorpRelationListApi(data: { adAccountId: number, corpId
|
|
|
})
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+export interface AddUserRotatePolicyProps {
|
|
|
+ policyName: string // 策略名称
|
|
|
+ addCostCalculationCycle?: number // 加粉成本的计算周期(/分钟,必须 >= 20,且必须是 10 的整数倍数)
|
|
|
+ addCostException?: number // 加粉成本异常值 (单位:/分)
|
|
|
+ maxAddFansCount?: number // 单号单日最大加粉数量
|
|
|
+ minAddFansCount?: number // 单号单日最大加粉数量,默认 20,加粉数少于该值永远不触发风控
|
|
|
+ onlineCount?: number // 组内客服号在线数量
|
|
|
+ rollingCustomerTime?: number // 客服组内滚动客服号的周期(/分钟,必须 >= 10)
|
|
|
+ id?: number
|
|
|
+}
|
|
|
+/**
|
|
|
+ * 客服组成员轮换策略-新增
|
|
|
+ * @param params
|
|
|
+ * @returns
|
|
|
+ */
|
|
|
+export async function addUserRotatePolicyApi(data: AddUserRotatePolicyProps) {
|
|
|
+ return request(api + `/adq/localCorpCsgroup/userRotatePolicy/add`, {
|
|
|
+ method: 'POST',
|
|
|
+ data
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * 修改策略
|
|
|
+ * @param data
|
|
|
+ * @returns
|
|
|
+ */
|
|
|
+export async function modifyUserRotatePolicyApi(data: AddUserRotatePolicyProps) {
|
|
|
+ return request(api + `/adq/localCorpCsgroup/userRotatePolicy/modifyById`, {
|
|
|
+ method: 'PATCH',
|
|
|
+ data
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * 客服组成员轮换策略-分页查询
|
|
|
+ * @param data
|
|
|
+ * @returns
|
|
|
+ */
|
|
|
+export async function getUserRotatePolicyListApi(data: { pageNum: number, pageSize: number, policyName?: string }) {
|
|
|
+ return request(api + `/adq/localCorpCsgroup/userRotatePolicy/listOfPage`, {
|
|
|
+ method: 'POST',
|
|
|
+ data
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * 所有客服组成员轮换策略
|
|
|
+ * @param data
|
|
|
+ * @returns
|
|
|
+ */
|
|
|
+export async function getUserRotatePolicyAllListApi(data: { policyName?: string }) {
|
|
|
+ return request(api + `/adq/localCorpCsgroup/userRotatePolicy/all`, {
|
|
|
+ method: 'POST',
|
|
|
+ data
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
/**
|
|
|
* 获取所有企微列表
|
|
|
* @returns
|
|
@@ -1122,12 +1370,8 @@ export async function getCorpListAllApi() {
|
|
|
}
|
|
|
|
|
|
export interface AddPageCustomerGroupProps {
|
|
|
- adAccountId: number,
|
|
|
- customerGroupId: number,
|
|
|
- customerGroupName: string,
|
|
|
- pageId: number,
|
|
|
- pageName: string,
|
|
|
- tencentCorpId: string
|
|
|
+ landingPageList: { [x: string]: any }[], // 落地页
|
|
|
+ localCsgroupId: string
|
|
|
}
|
|
|
/**
|
|
|
* 新增落地页客服关系
|
|
@@ -1135,32 +1379,54 @@ export interface AddPageCustomerGroupProps {
|
|
|
* @returns
|
|
|
*/
|
|
|
export async function addPageCustomerGroupApi(data: AddPageCustomerGroupProps) {
|
|
|
- return request(api + `/adq/pageCustomerGroup/relation/add`, {
|
|
|
+ return request(api + `/adq/localCorpCsgroup/landingPage/add`, {
|
|
|
method: 'POST',
|
|
|
data
|
|
|
})
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 删除落地页客服关系
|
|
|
- * @param id
|
|
|
+ * 修改落地页客服关系
|
|
|
+ * @param data
|
|
|
* @returns
|
|
|
*/
|
|
|
-export async function delPageCustomerGroupApi(id: number) {
|
|
|
- return request(api + `/adq/pageCustomerGroup/relation/delById/${id}`, {
|
|
|
- method: 'DELETE'
|
|
|
+export async function modifyPageCustomerGroupApi(data: { localCsgroupId: number, pageId: number, pageType: string }) {
|
|
|
+ return request(api + `/adq/localCorpCsgroup/landingPage/modifyById`, {
|
|
|
+ method: 'PATCH',
|
|
|
+ data
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+/**
|
|
|
+ * 新增原生落地页客服关系
|
|
|
+ * @param data
|
|
|
+ * @returns
|
|
|
+ */
|
|
|
+export async function addLandingPageCustomerGroupApi(data: AddPageCustomerGroupProps) {
|
|
|
+ return request(api + `/adq/localCorpCsgroup/wechat/landingPage/add`, {
|
|
|
+ method: 'POST',
|
|
|
+ data
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * 修改落地页客服关系
|
|
|
+ * @param data
|
|
|
+ * @returns
|
|
|
+ */
|
|
|
+export async function modifyLandingPageCustomerGroupApi(data: { localCsgroupId: number, pageId: number }) {
|
|
|
+ return request(api + `/adq/localCorpCsgroup/wechat/landingPage/modifyById`, {
|
|
|
+ method: 'PATCH',
|
|
|
+ data
|
|
|
})
|
|
|
}
|
|
|
|
|
|
export interface GetPageCustomerGroupListProps {
|
|
|
- adAccountId: number,
|
|
|
pageNum: number,
|
|
|
pageSize: number,
|
|
|
- pageId?: number,
|
|
|
- customerGroupId?: number,
|
|
|
- customerGroupName?: string,
|
|
|
- pageName?: string,
|
|
|
- tencentCorpId?: string
|
|
|
+ pageId?: string,
|
|
|
+ pageName?: string
|
|
|
}
|
|
|
/**
|
|
|
* 查询落地页客服关系
|
|
@@ -1168,7 +1434,19 @@ export interface GetPageCustomerGroupListProps {
|
|
|
* @returns
|
|
|
*/
|
|
|
export async function getPageCustomerGroupListApi(data: GetPageCustomerGroupListProps) {
|
|
|
- return request(api + `/adq/pageCustomerGroup/relation/listOfPage`, {
|
|
|
+ return request(api + `/adq/localCorpCsgroup/landingPage/listOfPage`, {
|
|
|
+ method: 'POST',
|
|
|
+ data
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * 原生落地页客服关系
|
|
|
+ * @param data
|
|
|
+ * @returns
|
|
|
+ */
|
|
|
+export async function getLandingPageCustomerGroupListApi(data: GetPageCustomerGroupListProps) {
|
|
|
+ return request(api + `/adq/localCorpCsgroup/wechat/landingPage/listOfPage`, {
|
|
|
method: 'POST',
|
|
|
data
|
|
|
})
|
|
@@ -1311,7 +1589,7 @@ export async function updateDefaultSharingApi(params: { adAccountId: number, typ
|
|
|
* @param params
|
|
|
* @returns
|
|
|
*/
|
|
|
-export async function delComponentApi({componentId, ...params}: { adAccountId: number, componentId: number[] }) {
|
|
|
+export async function delComponentApi({ componentId, ...params }: { adAccountId: number, componentId: number[] }) {
|
|
|
return request(api + `/adq/creative/component/deleteBatch`, {
|
|
|
method: 'DELETE',
|
|
|
params,
|