| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157 |
- import axios from 'axios';
- import type { ListRes, FormRes } from './base';
- export interface UpdateCookieModel {
- cookie: string;
- union_cookies: string;
- user_agent: string;
- h5st: string;
- }
- export function updateCookies(data: UpdateCookieModel) {
- return axios.post<FormRes>('/api/JdUnion/updateCookies', data);
- }
- // list
- export interface JdPoolRecord {
- id: number;
- pin: string;
- name: string;
- company: string;
- phone: string;
- create_time: Date;
- daily_income_limit: number;
- current_amt: number;
- daily_calls_limit: number;
- current_hourly_calls: number;
- hourly_calls_limit: number;
- current_daily_calls: number;
- draw_balance: number;
- description: string;
- floorId: string;
- last_time: Date;
- login_time: Date;
- refpid: string;
- status: boolean;
- work_mode: boolean;
- end_point: string;
- nodeName: string;
- enable_parse: boolean;
- enable_coupon: boolean;
- enable_sync_report: boolean;
- enable_sync_order: boolean;
- site_id: number;
- unionid: string;
- app_key: string;
- app_secret: string;
- user_agent: string;
- cookies: string;
- union_cookies: string;
- time_range: number;
- }
- export interface JdPoolParams extends Partial<JdPoolRecord> {
- current: number;
- pageSize: number;
- show_hide: boolean;
- sort?: string;
- order?: string;
- getTotal: boolean;
- }
- export interface JdPoolRes extends ListRes {
- list: JdPoolRecord[];
- }
- export function queryJdPool(data: JdPoolParams) {
- return axios.post<JdPoolRes>('/api/JdUnion/list', data);
- }
- export interface JdSettleBillRecord {
- id: number;
- accountName: string;
- report_date: Date;
- create_time: Date;
- last_time: Date;
- clickNum: number;
- cosFee: number;
- cosPrice: number;
- finishCosFee: number;
- finishCosPrice: number;
- finishOrderNum: number;
- orderNum: number;
- }
- export interface JdSettleBillsParams extends Partial<JdSettleBillRecord> {
- keyword?: string;
- query_date?: string[]; // 覆盖 report_date 的类型为字符串数组
- current: number;
- pageSize: number;
- sort?: string;
- order?: string;
- }
- export interface JdSettleBillsRes extends ListRes {
- list: JdSettleBillRecord[];
- }
- export function queryJdSettleBillsTotal(data: JdSettleBillsParams) {
- return axios.post<JdSettleBillsRes>(
- '/api/JdUnion/settle_bills_total',
- data
- );
- }
- export function queryJdSettleBills(data: JdSettleBillsParams) {
- return axios.post<JdSettleBillsRes>('/api/JdUnion/settle_bills', data);
- }
- export interface JdEstimateCommRecord {
- id: number;
- accountName: string;
- report_date: Date;
- create_time: Date;
- last_time: Date;
- cosFee: number;
- status: number;
- feeType: number;
- feeTypeStr: string;
-
- platform: number;
- platformStr: string;
-
- unionType: number;
- unionTypeStr: string;
- }
- export interface JdEstimateCommParams extends Partial<JdEstimateCommRecord> {
- keyword?: string;
- query_date?: string[]; // 覆盖 report_date 的类型为字符串数组
- current: number;
- pageSize: number;
- sort?: string;
- order?: string;
- }
- export interface JdEstimateCommRes extends ListRes {
- list: JdEstimateCommRecord[];
- }
- export function queryJdEstimateCommTotal(data: JdEstimateCommParams) {
- return axios.post<JdEstimateCommRes>(
- '/api/JdUnion/estimate_comm_total',
- data
- );
- }
- export function queryJdEstimateComm(data: JdEstimateCommParams) {
- return axios.post<JdEstimateCommRes>('/api/JdUnion/estimate_comm', data);
- }
|