250825
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import type { PageParam } from '@/api';
|
||||
import type { Role } from '../../role/model';
|
||||
import type { Menu } from '../../menu/model';
|
||||
import { Company } from '@/api/system/company/model';
|
||||
import type { PageParam } from "@/api";
|
||||
import type { Role } from "../../role/model";
|
||||
import type { Menu } from "../../menu/model";
|
||||
import { Company } from "@/api/system/company/model";
|
||||
|
||||
/**
|
||||
* 用户
|
||||
@@ -108,6 +108,7 @@ export interface User {
|
||||
idcard?: string;
|
||||
//
|
||||
truename?: string;
|
||||
limitSite?: string;
|
||||
// 是否管理员:1是;2否
|
||||
isAdmin?: boolean;
|
||||
// 客户端ID
|
||||
@@ -118,6 +119,7 @@ export interface User {
|
||||
sortNumber?: number;
|
||||
|
||||
deleted?: number;
|
||||
isOrganizationAdmin?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -104,3 +104,13 @@ export async function getThinkCardLog(id: number) {
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
export async function thinkCardLogExport(data: ThinkCardLog) {
|
||||
const res = await request.post<ApiResult<ThinkCardLog>>(
|
||||
THINK_API_URL + '/think/think-card-log/export', data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
@@ -88,10 +88,13 @@ export interface ThinkOrder {
|
||||
export interface ThinkOrderParam extends PageParam {
|
||||
id?: number;
|
||||
sid?: number;
|
||||
cid?: number;
|
||||
payStatus?: number;
|
||||
orderStatus?: number;
|
||||
payType?: number;
|
||||
isInvoice?: number;
|
||||
checkBill?: number;
|
||||
siteName?: string;
|
||||
keywords?: string;
|
||||
wechatOrder?: string;
|
||||
}
|
||||
|
||||
@@ -106,3 +106,13 @@ export async function getThinkRechargeLog(id: number) {
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
export async function thinkRechargeLogRefund(data: ThinkRechargeLog) {
|
||||
const res = await request.post<ApiResult<ThinkRechargeLog>>(
|
||||
THINK_API_URL + '/think/think-recharge-log/refund', data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
@@ -31,6 +31,7 @@ export interface ThinkSite {
|
||||
tel?: string;
|
||||
// 排序
|
||||
sortNumber?: number;
|
||||
sort?: number;
|
||||
// 类型:1天,2小时
|
||||
type?: string;
|
||||
// 天数或小时
|
||||
@@ -46,6 +47,7 @@ export interface ThinkSite {
|
||||
// 周末活动订场开关:1开,0关
|
||||
weekendOpen?: number;
|
||||
dailyMaxNum?: number;
|
||||
album?: string;
|
||||
key?: number;
|
||||
value?: number;
|
||||
title?: string;
|
||||
|
||||
@@ -11,6 +11,7 @@ export interface ThinkVip {
|
||||
name?: string;
|
||||
// 会员卡价格
|
||||
price?: number;
|
||||
renewPrice?: number;
|
||||
// 会员卡介绍
|
||||
desc?: string;
|
||||
// 会员卡说明
|
||||
@@ -50,6 +51,7 @@ export interface ThinkVip {
|
||||
// 是否有效:1是,0否
|
||||
isUse?: number;
|
||||
isSale?: number;
|
||||
reportSid?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -117,3 +117,12 @@ export async function getThinkVipCardsBills(id: number) {
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
export async function thinkVipCardsBillsExport(data: ThinkVipCardsBillsParam) {
|
||||
const res = await request.post<ApiResult<ThinkVipCardsBills>>(
|
||||
THINK_API_URL + '/think/think-vip-cards-bills/export', data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
@@ -34,4 +34,6 @@ export interface ThinkVipCardsBillsParam extends PageParam {
|
||||
keywords?: string;
|
||||
dateStart?: string;
|
||||
dateEnd?: string;
|
||||
isCard?: boolean;
|
||||
isVip?: boolean;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user