同步客服充值渠道配置
This commit is contained in:
@@ -2,6 +2,7 @@ import api from './client';
|
||||
import type {
|
||||
DouyuConfig,
|
||||
DouyuGoodsItem,
|
||||
DouyuRechargeChannel,
|
||||
DouyuTaskAccountItem,
|
||||
DouyuTaskBatchRequest,
|
||||
DouyuTaskBatchResult,
|
||||
@@ -21,6 +22,7 @@ export const douyuApi = {
|
||||
listAccountIds: (params?: { search?: string; tag?: string }) =>
|
||||
api.get<{ account_ids: number[]; total: number }, { account_ids: number[]; total: number }>('/douyu/accounts/ids', { params }),
|
||||
getConfig: () => api.get<DouyuConfig, DouyuConfig>('/douyu/config'),
|
||||
getRechargeChannel: () => api.get<DouyuRechargeChannel, DouyuRechargeChannel>('/douyu/recharge-channel'),
|
||||
updateConfig: (data: Partial<DouyuConfig>) => api.put<DouyuConfig, DouyuConfig>('/douyu/config', data),
|
||||
listGoods: () => api.get<DouyuGoodsItem[], DouyuGoodsItem[]>('/douyu/goods'),
|
||||
listEsportsGoods: () => api.get<DouyuGoodsItem[], DouyuGoodsItem[]>('/douyu/esports-goods'),
|
||||
|
||||
@@ -382,6 +382,10 @@ export interface DouyuConfig {
|
||||
updated_at: string | null;
|
||||
}
|
||||
|
||||
export interface DouyuRechargeChannel {
|
||||
gold_recharge_channel: 'wechat_qr' | 'supplier_api';
|
||||
}
|
||||
|
||||
export interface DouyuTaskBatchRequest {
|
||||
account_ids: number[];
|
||||
task_type: string;
|
||||
|
||||
Reference in New Issue
Block a user