feat: 流程类型筛选改从后端字典接口加载(保留静态兜底)

This commit is contained in:
weicw
2026-10-31 07:43:17 +08:00
parent 7ae4319102
commit 3f62712ecb
664 changed files with 12766 additions and 9498 deletions
+18 -1
View File
@@ -1,6 +1,10 @@
import request from '@/utils/request'; import request from '@/utils/request';
import type { ApiResult } from '@/api'; import type { ApiResult } from '@/api';
import type { ApprovalOrganization, ApprovalUser } from '../instance/model'; import type {
ApprovalFlowOption,
ApprovalOrganization,
ApprovalUser
} from '../instance/model';
import { THINK_API_URL } from '@/config/setting'; import { THINK_API_URL } from '@/config/setting';
/** /**
@@ -32,3 +36,16 @@ export async function searchApprovalUsers(params?: {
} }
return Promise.reject(new Error(res.data.message)); return Promise.reject(new Error(res.data.message));
} }
/**
* 流程类型选项(flowCode → 流程名称),新增单据自动出现
*/
export async function listApprovalFlows() {
const res = await request.get<ApiResult<ApprovalFlowOption[]>>(
THINK_API_URL + '/approval/directory/flows'
);
if (res.data.code === 0 && res.data.data) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
+8
View File
@@ -168,6 +168,14 @@ export interface ApprovalInstance {
permissions?: ApprovalPermissions; permissions?: ApprovalPermissions;
} }
/**
* 流程类型选项
*/
export interface ApprovalFlowOption {
flowCode?: string;
flowName?: string;
}
/** /**
* 审批目录组织 * 审批目录组织
*/ */
+1 -1
View File
@@ -2,7 +2,7 @@ import request from '@/utils/request';
import type { ApiResult, PageResult } from '@/api'; import type { ApiResult, PageResult } from '@/api';
import type { BookingCashier, BookingCashierParam } from './model'; import type { BookingCashier, BookingCashierParam } from './model';
import { MODULES_API_URL } from '@/config/setting'; import { MODULES_API_URL } from '@/config/setting';
import type { CashierParam, CashierVo } from "@/api/shop/cashier/model"; import type { CashierParam, CashierVo } from '@/api/shop/cashier/model';
/** /**
* 分页查询收银 * 分页查询收银
+3 -1
View File
@@ -79,7 +79,9 @@ export async function removeBookingCooperate(id?: number) {
/** /**
* 批量删除商务合作 * 批量删除商务合作
*/ */
export async function removeBatchBookingCooperate(data: (number | undefined)[]) { export async function removeBatchBookingCooperate(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>( const res = await request.delete<ApiResult<unknown>>(
MODULES_API_URL + '/booking/booking-cooperate/batch', MODULES_API_URL + '/booking/booking-cooperate/batch',
{ {
+9 -3
View File
@@ -6,7 +6,9 @@ import { MODULES_API_URL } from '@/config/setting';
/** /**
* 分页查询商务合作留言记录 * 分页查询商务合作留言记录
*/ */
export async function pageBookingCooperateLog(params: BookingCooperateLogParam) { export async function pageBookingCooperateLog(
params: BookingCooperateLogParam
) {
const res = await request.get<ApiResult<PageResult<BookingCooperateLog>>>( const res = await request.get<ApiResult<PageResult<BookingCooperateLog>>>(
MODULES_API_URL + '/booking/booking-cooperate-log/page', MODULES_API_URL + '/booking/booking-cooperate-log/page',
{ {
@@ -22,7 +24,9 @@ export async function pageBookingCooperateLog(params: BookingCooperateLogParam)
/** /**
* 查询商务合作留言记录列表 * 查询商务合作留言记录列表
*/ */
export async function listBookingCooperateLog(params?: BookingCooperateLogParam) { export async function listBookingCooperateLog(
params?: BookingCooperateLogParam
) {
const res = await request.get<ApiResult<BookingCooperateLog[]>>( const res = await request.get<ApiResult<BookingCooperateLog[]>>(
MODULES_API_URL + '/booking/booking-cooperate-log', MODULES_API_URL + '/booking/booking-cooperate-log',
{ {
@@ -79,7 +83,9 @@ export async function removeBookingCooperateLog(id?: number) {
/** /**
* 批量删除商务合作留言记录 * 批量删除商务合作留言记录
*/ */
export async function removeBatchBookingCooperateLog(data: (number | undefined)[]) { export async function removeBatchBookingCooperateLog(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>( const res = await request.delete<ApiResult<unknown>>(
MODULES_API_URL + '/booking/booking-cooperate-log/batch', MODULES_API_URL + '/booking/booking-cooperate-log/batch',
{ {
+3 -1
View File
@@ -79,7 +79,9 @@ export async function removeBookingEmergency(id?: number) {
/** /**
* 批量删除紧急联系人管理 * 批量删除紧急联系人管理
*/ */
export async function removeBatchBookingEmergency(data: (number | undefined)[]) { export async function removeBatchBookingEmergency(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>( const res = await request.delete<ApiResult<unknown>>(
MODULES_API_URL + '/booking/booking-emergency/batch', MODULES_API_URL + '/booking/booking-emergency/batch',
{ {
+2 -2
View File
@@ -1,10 +1,10 @@
import type { PageParam } from '@/api'; import type { PageParam } from '@/api';
/** /**
* *
*/ */
export interface BookingField { export interface BookingField {
// //
id?: number; id?: number;
// 场地名称 // 场地名称
name?: string; name?: string;
@@ -1,10 +1,10 @@
import type { PageParam } from '@/api'; import type { PageParam } from '@/api';
/** /**
* *
*/ */
export interface BookingIntegral { export interface BookingIntegral {
// //
id?: number; id?: number;
// 用户id // 用户id
uid?: number; uid?: number;
+3 -1
View File
@@ -79,7 +79,9 @@ export async function removeBookingIntegralLog(id?: number) {
/** /**
* 批量删除 * 批量删除
*/ */
export async function removeBatchBookingIntegralLog(data: (number | undefined)[]) { export async function removeBatchBookingIntegralLog(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>( const res = await request.delete<ApiResult<unknown>>(
MODULES_API_URL + '/booking/booking-integral-log/batch', MODULES_API_URL + '/booking/booking-integral-log/batch',
{ {
@@ -1,10 +1,10 @@
import type { PageParam } from '@/api'; import type { PageParam } from '@/api';
/** /**
* *
*/ */
export interface BookingIntegralLog { export interface BookingIntegralLog {
// //
id?: number; id?: number;
// 场馆订单号 // 场馆订单号
orderNum?: string; orderNum?: string;
+3 -1
View File
@@ -79,7 +79,9 @@ export async function removeBookingOrderInfo(id?: number) {
/** /**
* 批量删除 * 批量删除
*/ */
export async function removeBatchBookingOrderInfo(data: (number | undefined)[]) { export async function removeBatchBookingOrderInfo(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>( const res = await request.delete<ApiResult<unknown>>(
MODULES_API_URL + '/booking/booking-order-info/batch', MODULES_API_URL + '/booking/booking-order-info/batch',
{ {
+3 -3
View File
@@ -1,10 +1,10 @@
import type { PageParam } from '@/api'; import type { PageParam } from '@/api';
/** /**
* *
*/ */
export interface BookingPeriod { export interface BookingPeriod {
// //
id?: number; id?: number;
// 时段 // 时段
timePeriod?: string; timePeriod?: string;
@@ -32,7 +32,7 @@ export interface BookingPeriod {
startTime?: string; startTime?: string;
// 儿童价 // 儿童价
createTime?: number; createTime?: number;
// //
updateTime?: number; updateTime?: number;
// 租户id // 租户id
tenantId?: number; tenantId?: number;
+3 -1
View File
@@ -79,7 +79,9 @@ export async function removeBookingUserCoupon(id?: number) {
/** /**
* 批量删除我的优惠券 * 批量删除我的优惠券
*/ */
export async function removeBatchBookingUserCoupon(data: (number | undefined)[]) { export async function removeBatchBookingUserCoupon(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>( const res = await request.delete<ApiResult<unknown>>(
MODULES_API_URL + '/booking/booking-user-coupon/batch', MODULES_API_URL + '/booking/booking-user-coupon/batch',
{ {
@@ -6,7 +6,9 @@ import { MODULES_API_URL } from '@/config/setting';
/** /**
* 分页查询紧急联系人表 * 分页查询紧急联系人表
*/ */
export async function pageBookingUserEmergency(params: BookingUserEmergencyParam) { export async function pageBookingUserEmergency(
params: BookingUserEmergencyParam
) {
const res = await request.get<ApiResult<PageResult<BookingUserEmergency>>>( const res = await request.get<ApiResult<PageResult<BookingUserEmergency>>>(
MODULES_API_URL + '/booking/booking-user-emergency/page', MODULES_API_URL + '/booking/booking-user-emergency/page',
{ {
@@ -22,7 +24,9 @@ export async function pageBookingUserEmergency(params: BookingUserEmergencyParam
/** /**
* 查询紧急联系人表列表 * 查询紧急联系人表列表
*/ */
export async function listBookingUserEmergency(params?: BookingUserEmergencyParam) { export async function listBookingUserEmergency(
params?: BookingUserEmergencyParam
) {
const res = await request.get<ApiResult<BookingUserEmergency[]>>( const res = await request.get<ApiResult<BookingUserEmergency[]>>(
MODULES_API_URL + '/booking/booking-user-emergency', MODULES_API_URL + '/booking/booking-user-emergency',
{ {
@@ -79,7 +83,9 @@ export async function removeBookingUserEmergency(id?: number) {
/** /**
* 批量删除紧急联系人表 * 批量删除紧急联系人表
*/ */
export async function removeBatchBookingUserEmergency(data: (number | undefined)[]) { export async function removeBatchBookingUserEmergency(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>( const res = await request.delete<ApiResult<unknown>>(
MODULES_API_URL + '/booking/booking-user-emergency/batch', MODULES_API_URL + '/booking/booking-user-emergency/batch',
{ {
@@ -4,7 +4,7 @@ import type { PageParam } from '@/api';
* 紧急联系人表 * 紧急联系人表
*/ */
export interface BookingUserEmergency { export interface BookingUserEmergency {
// //
id?: number; id?: number;
// 用户id // 用户id
uid?: number; uid?: number;
+3 -1
View File
@@ -79,7 +79,9 @@ export async function removeBookingUserInvoice(id?: number) {
/** /**
* 批量删除发票 * 批量删除发票
*/ */
export async function removeBatchBookingUserInvoice(data: (number | undefined)[]) { export async function removeBatchBookingUserInvoice(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>( const res = await request.delete<ApiResult<unknown>>(
MODULES_API_URL + '/booking/booking-user-invoice/batch', MODULES_API_URL + '/booking/booking-user-invoice/batch',
{ {
+4 -4
View File
@@ -1,10 +1,10 @@
import type { PageParam } from '@/api'; import type { PageParam } from '@/api';
/** /**
* *
*/ */
export interface BookingVip { export interface BookingVip {
// //
id?: number; id?: number;
// sid场馆id集合,适用的场馆 // sid场馆id集合,适用的场馆
sid?: string; sid?: string;
@@ -42,9 +42,9 @@ export interface BookingVip {
prices?: string; prices?: string;
// 是否赠送积分:1赠送,2不赠送 // 是否赠送积分:1赠送,2不赠送
isIntegral?: string; isIntegral?: string;
// //
createTime?: number; createTime?: number;
// //
updateTime?: number; updateTime?: number;
// 是否有效:1是,0否 // 是否有效:1是,0否
isUse?: string; isUse?: string;
+1 -1
View File
@@ -1,5 +1,5 @@
import type { PageParam } from '@/api'; import type { PageParam } from '@/api';
import { OrderInfo } from "@/api/shop/orderInfo/model"; import { OrderInfo } from '@/api/shop/orderInfo/model';
/** /**
* 场馆场地 * 场馆场地
+3 -3
View File
@@ -1,10 +1,10 @@
import type { PageParam } from '@/api'; import type { PageParam } from '@/api';
/** /**
* *
*/ */
export interface Order { export interface Order {
// //
orderId?: number; orderId?: number;
// 订单类型,0商城订单 1预定订单 2会员卡 // 订单类型,0商城订单 1预定订单 2会员卡
type?: number; type?: number;
@@ -76,7 +76,7 @@ export interface Order {
isInvoice?: string; isInvoice?: string;
// 下单时间 // 下单时间
createTime?: number; createTime?: number;
// //
updateTime?: number; updateTime?: number;
// 付款时间 // 付款时间
payTime?: number; payTime?: number;
+2 -2
View File
@@ -1,10 +1,10 @@
import type { PageParam } from '@/api'; import type { PageParam } from '@/api';
/** /**
* *
*/ */
export interface OrderInfo { export interface OrderInfo {
// //
id?: number; id?: number;
// 关联订单表id // 关联订单表id
oid?: number; oid?: number;
+3 -1
View File
@@ -79,7 +79,9 @@ export async function removeCmsArticleComment(id?: number) {
/** /**
* 批量删除文章评论表 * 批量删除文章评论表
*/ */
export async function removeBatchCmsArticleComment(data: (number | undefined)[]) { export async function removeBatchCmsArticleComment(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>( const res = await request.delete<ApiResult<unknown>>(
MODULES_API_URL + '/cms/cms-article-comment/batch', MODULES_API_URL + '/cms/cms-article-comment/batch',
{ {
+3 -1
View File
@@ -79,7 +79,9 @@ export async function removeCmsArticleContent(id?: number) {
/** /**
* 批量删除文章记录表 * 批量删除文章记录表
*/ */
export async function removeBatchCmsArticleContent(data: (number | undefined)[]) { export async function removeBatchCmsArticleContent(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>( const res = await request.delete<ApiResult<unknown>>(
MODULES_API_URL + '/cms/cms-article-content/batch', MODULES_API_URL + '/cms/cms-article-content/batch',
{ {
+1 -1
View File
@@ -4,7 +4,7 @@ import type { PageParam } from '@/api';
* 文章记录表 * 文章记录表
*/ */
export interface CmsArticleContent { export interface CmsArticleContent {
// //
id?: number; id?: number;
// 文章ID // 文章ID
articleId?: number; articleId?: number;
+1 -1
View File
@@ -6,7 +6,7 @@ import type { PageParam } from '@/api';
export interface CmsDomain { export interface CmsDomain {
// ID // ID
id?: number; id?: number;
// 类型 0赠送域名 1绑定域名 // 类型 0赠送域名 1绑定域名
type?: number; type?: number;
// 域名 // 域名
domain?: string; domain?: string;
+1 -1
View File
@@ -2,7 +2,7 @@ import request from '@/utils/request';
import type { ApiResult, PageResult } from '@/api'; import type { ApiResult, PageResult } from '@/api';
import type { CmsProduct, CmsProductParam } from './model'; import type { CmsProduct, CmsProductParam } from './model';
import { SERVER_API_URL } from '@/config/setting'; import { SERVER_API_URL } from '@/config/setting';
import type { ArticleParam } from "@/api/cms/article/model"; import type { ArticleParam } from '@/api/cms/article/model';
/** /**
* 分页查询产品 * 分页查询产品
+3 -1
View File
@@ -79,7 +79,9 @@ export async function removeCmsProductComment(id?: number) {
/** /**
* 批量删除产品评论 * 批量删除产品评论
*/ */
export async function removeBatchCmsProductComment(data: (number | undefined)[]) { export async function removeBatchCmsProductComment(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>( const res = await request.delete<ApiResult<unknown>>(
MODULES_API_URL + '/cms/cms-product-comment/batch', MODULES_API_URL + '/cms/cms-product-comment/batch',
{ {
+3 -1
View File
@@ -79,7 +79,9 @@ export async function removeCmsProductRecord(id?: number) {
/** /**
* 批量删除插件安装明细 * 批量删除插件安装明细
*/ */
export async function removeBatchCmsProductRecord(data: (number | undefined)[]) { export async function removeBatchCmsProductRecord(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>( const res = await request.delete<ApiResult<unknown>>(
MODULES_API_URL + '/cms/cms-product-record/batch', MODULES_API_URL + '/cms/cms-product-record/batch',
{ {
+9 -3
View File
@@ -6,7 +6,9 @@ import { MODULES_API_URL } from '@/config/setting';
/** /**
* 分页查询规格值 * 分页查询规格值
*/ */
export async function pageCmsProductSpecValue(params: CmsProductSpecValueParam) { export async function pageCmsProductSpecValue(
params: CmsProductSpecValueParam
) {
const res = await request.get<ApiResult<PageResult<CmsProductSpecValue>>>( const res = await request.get<ApiResult<PageResult<CmsProductSpecValue>>>(
MODULES_API_URL + '/cms/cms-product-spec-value/page', MODULES_API_URL + '/cms/cms-product-spec-value/page',
{ {
@@ -22,7 +24,9 @@ export async function pageCmsProductSpecValue(params: CmsProductSpecValueParam)
/** /**
* 查询规格值列表 * 查询规格值列表
*/ */
export async function listCmsProductSpecValue(params?: CmsProductSpecValueParam) { export async function listCmsProductSpecValue(
params?: CmsProductSpecValueParam
) {
const res = await request.get<ApiResult<CmsProductSpecValue[]>>( const res = await request.get<ApiResult<CmsProductSpecValue[]>>(
MODULES_API_URL + '/cms/cms-product-spec-value', MODULES_API_URL + '/cms/cms-product-spec-value',
{ {
@@ -79,7 +83,9 @@ export async function removeCmsProductSpecValue(id?: number) {
/** /**
* 批量删除规格值 * 批量删除规格值
*/ */
export async function removeBatchCmsProductSpecValue(data: (number | undefined)[]) { export async function removeBatchCmsProductSpecValue(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>( const res = await request.delete<ApiResult<unknown>>(
MODULES_API_URL + '/cms/cms-product-spec-value/batch', MODULES_API_URL + '/cms/cms-product-spec-value/batch',
{ {
+4 -1
View File
@@ -111,7 +111,10 @@ export async function removeBatchNavigation(data: (number | undefined)[]) {
/** /**
* 修改用户状态 * 修改用户状态
*/ */
export async function updateNavigationStatus(navigationId?: number, status?: number) { export async function updateNavigationStatus(
navigationId?: number,
status?: number
) {
const res = await request.put<ApiResult<unknown>>( const res = await request.put<ApiResult<unknown>>(
MODULES_API_URL + '/cms/navigation/status', MODULES_API_URL + '/cms/navigation/status',
{ {
+3 -1
View File
@@ -79,7 +79,9 @@ export async function removeShopDealerCapital(id?: number) {
/** /**
* 批量删除分销商资金明细表 * 批量删除分销商资金明细表
*/ */
export async function removeBatchShopDealerCapital(data: (number | undefined)[]) { export async function removeBatchShopDealerCapital(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>( const res = await request.delete<ApiResult<unknown>>(
MODULES_API_URL + '/mall/shop-dealer-capital/batch', MODULES_API_URL + '/mall/shop-dealer-capital/batch',
{ {
+3 -1
View File
@@ -79,7 +79,9 @@ export async function removeShopDealerReferee(id?: number) {
/** /**
* 批量删除分销商推荐关系表 * 批量删除分销商推荐关系表
*/ */
export async function removeBatchShopDealerReferee(data: (number | undefined)[]) { export async function removeBatchShopDealerReferee(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>( const res = await request.delete<ApiResult<unknown>>(
MODULES_API_URL + '/mall/shop-dealer-referee/batch', MODULES_API_URL + '/mall/shop-dealer-referee/batch',
{ {
+3 -1
View File
@@ -79,7 +79,9 @@ export async function removeShopDealerSetting(id?: number) {
/** /**
* 批量删除分销商设置表 * 批量删除分销商设置表
*/ */
export async function removeBatchShopDealerSetting(data: (number | undefined)[]) { export async function removeBatchShopDealerSetting(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>( const res = await request.delete<ApiResult<unknown>>(
MODULES_API_URL + '/mall/shop-dealer-setting/batch', MODULES_API_URL + '/mall/shop-dealer-setting/batch',
{ {
+3 -1
View File
@@ -79,7 +79,9 @@ export async function removeShopDealerWithdraw(id?: number) {
/** /**
* 批量删除分销商提现明细表 * 批量删除分销商提现明细表
*/ */
export async function removeBatchShopDealerWithdraw(data: (number | undefined)[]) { export async function removeBatchShopDealerWithdraw(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>( const res = await request.delete<ApiResult<unknown>>(
MODULES_API_URL + '/mall/shop-dealer-withdraw/batch', MODULES_API_URL + '/mall/shop-dealer-withdraw/batch',
{ {
+3 -1
View File
@@ -79,7 +79,9 @@ export async function removeShopGoodsCategory(id?: number) {
/** /**
* 批量删除商品分类 * 批量删除商品分类
*/ */
export async function removeBatchShopGoodsCategory(data: (number | undefined)[]) { export async function removeBatchShopGoodsCategory(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>( const res = await request.delete<ApiResult<unknown>>(
MODULES_API_URL + '/mall/shop-goods-category/batch', MODULES_API_URL + '/mall/shop-goods-category/batch',
{ {
+3 -1
View File
@@ -79,7 +79,9 @@ export async function removeShopGoodsComment(id?: number) {
/** /**
* 批量删除评论表 * 批量删除评论表
*/ */
export async function removeBatchShopGoodsComment(data: (number | undefined)[]) { export async function removeBatchShopGoodsComment(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>( const res = await request.delete<ApiResult<unknown>>(
MODULES_API_URL + '/mall/shop-goods-comment/batch', MODULES_API_URL + '/mall/shop-goods-comment/batch',
{ {
+1 -1
View File
@@ -4,7 +4,7 @@ import type { PageParam } from '@/api';
* 商品优惠券表 * 商品优惠券表
*/ */
export interface ShopGoodsCoupon { export interface ShopGoodsCoupon {
// //
id?: number; id?: number;
// 商品id // 商品id
goodsId?: number; goodsId?: number;
+3 -1
View File
@@ -79,7 +79,9 @@ export async function removeShopGoodsRelation(id?: number) {
/** /**
* 批量删除商品点赞和收藏表 * 批量删除商品点赞和收藏表
*/ */
export async function removeBatchShopGoodsRelation(data: (number | undefined)[]) { export async function removeBatchShopGoodsRelation(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>( const res = await request.delete<ApiResult<unknown>>(
MODULES_API_URL + '/mall/shop-goods-relation/batch', MODULES_API_URL + '/mall/shop-goods-relation/batch',
{ {
+9 -3
View File
@@ -6,7 +6,9 @@ import { MODULES_API_URL } from '@/config/setting';
/** /**
* 分页查询商户账号 * 分页查询商户账号
*/ */
export async function pageShopMerchantAccount(params: ShopMerchantAccountParam) { export async function pageShopMerchantAccount(
params: ShopMerchantAccountParam
) {
const res = await request.get<ApiResult<PageResult<ShopMerchantAccount>>>( const res = await request.get<ApiResult<PageResult<ShopMerchantAccount>>>(
MODULES_API_URL + '/mall/shop-merchant-account/page', MODULES_API_URL + '/mall/shop-merchant-account/page',
{ {
@@ -22,7 +24,9 @@ export async function pageShopMerchantAccount(params: ShopMerchantAccountParam)
/** /**
* 查询商户账号列表 * 查询商户账号列表
*/ */
export async function listShopMerchantAccount(params?: ShopMerchantAccountParam) { export async function listShopMerchantAccount(
params?: ShopMerchantAccountParam
) {
const res = await request.get<ApiResult<ShopMerchantAccount[]>>( const res = await request.get<ApiResult<ShopMerchantAccount[]>>(
MODULES_API_URL + '/mall/shop-merchant-account', MODULES_API_URL + '/mall/shop-merchant-account',
{ {
@@ -79,7 +83,9 @@ export async function removeShopMerchantAccount(id?: number) {
/** /**
* 批量删除商户账号 * 批量删除商户账号
*/ */
export async function removeBatchShopMerchantAccount(data: (number | undefined)[]) { export async function removeBatchShopMerchantAccount(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>( const res = await request.delete<ApiResult<unknown>>(
MODULES_API_URL + '/mall/shop-merchant-account/batch', MODULES_API_URL + '/mall/shop-merchant-account/batch',
{ {
+3 -1
View File
@@ -79,7 +79,9 @@ export async function removeShopMerchantApply(id?: number) {
/** /**
* 批量删除商户入驻申请 * 批量删除商户入驻申请
*/ */
export async function removeBatchShopMerchantApply(data: (number | undefined)[]) { export async function removeBatchShopMerchantApply(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>( const res = await request.delete<ApiResult<unknown>>(
MODULES_API_URL + '/mall/shop-merchant-apply/batch', MODULES_API_URL + '/mall/shop-merchant-apply/batch',
{ {
+3 -1
View File
@@ -79,7 +79,9 @@ export async function removeShopMerchantCount(id?: number) {
/** /**
* 批量删除门店销售统计表 * 批量删除门店销售统计表
*/ */
export async function removeBatchShopMerchantCount(data: (number | undefined)[]) { export async function removeBatchShopMerchantCount(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>( const res = await request.delete<ApiResult<unknown>>(
MODULES_API_URL + '/mall/shop-merchant-count/batch', MODULES_API_URL + '/mall/shop-merchant-count/batch',
{ {
+3 -1
View File
@@ -79,7 +79,9 @@ export async function removeShopMerchantType(id?: number) {
/** /**
* 批量删除商户类型 * 批量删除商户类型
*/ */
export async function removeBatchShopMerchantType(data: (number | undefined)[]) { export async function removeBatchShopMerchantType(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>( const res = await request.delete<ApiResult<unknown>>(
MODULES_API_URL + '/mall/shop-merchant-type/batch', MODULES_API_URL + '/mall/shop-merchant-type/batch',
{ {
+3 -1
View File
@@ -79,7 +79,9 @@ export async function removeShopOrderCartInfo(id?: number) {
/** /**
* 批量删除订单购物详情表 * 批量删除订单购物详情表
*/ */
export async function removeBatchShopOrderCartInfo(data: (number | undefined)[]) { export async function removeBatchShopOrderCartInfo(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>( const res = await request.delete<ApiResult<unknown>>(
MODULES_API_URL + '/mall/shop-order-cart-info/batch', MODULES_API_URL + '/mall/shop-order-cart-info/batch',
{ {
@@ -4,7 +4,7 @@ import type { PageParam } from '@/api';
* 订单购物详情表 * 订单购物详情表
*/ */
export interface ShopOrderCartInfo { export interface ShopOrderCartInfo {
// //
id?: string; id?: string;
// 订单id // 订单id
oid?: string; oid?: string;
+3 -1
View File
@@ -79,7 +79,9 @@ export async function removeShopOrderInfoLog(id?: number) {
/** /**
* 批量删除订单核销 * 批量删除订单核销
*/ */
export async function removeBatchShopOrderInfoLog(data: (number | undefined)[]) { export async function removeBatchShopOrderInfoLog(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>( const res = await request.delete<ApiResult<unknown>>(
MODULES_API_URL + '/mall/shop-order-info-log/batch', MODULES_API_URL + '/mall/shop-order-info-log/batch',
{ {
+1 -1
View File
@@ -4,7 +4,7 @@ import type { PageParam } from '@/api';
* 订单核销 * 订单核销
*/ */
export interface ShopOrderInfoLog { export interface ShopOrderInfoLog {
// //
id?: number; id?: number;
// 关联订单表id // 关联订单表id
orderId?: number; orderId?: number;
+3 -1
View File
@@ -79,7 +79,9 @@ export async function removeShopUserCollection(id?: number) {
/** /**
* 批量删除我的收藏 * 批量删除我的收藏
*/ */
export async function removeBatchShopUserCollection(data: (number | undefined)[]) { export async function removeBatchShopUserCollection(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>( const res = await request.delete<ApiResult<unknown>>(
MODULES_API_URL + '/mall/shop-user-collection/batch', MODULES_API_URL + '/mall/shop-user-collection/batch',
{ {
+3 -1
View File
@@ -79,7 +79,9 @@ export async function removeShopWechatDeposit(id?: number) {
/** /**
* 批量删除押金 * 批量删除押金
*/ */
export async function removeBatchShopWechatDeposit(data: (number | undefined)[]) { export async function removeBatchShopWechatDeposit(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>( const res = await request.delete<ApiResult<unknown>>(
MODULES_API_URL + '/mall/shop-wechat-deposit/batch', MODULES_API_URL + '/mall/shop-wechat-deposit/batch',
{ {
@@ -4,7 +4,7 @@ import type { PageParam } from '@/api';
* 押金 * 押金
*/ */
export interface ShopWechatDeposit { export interface ShopWechatDeposit {
// //
id?: number; id?: number;
// 订单id // 订单id
oid?: number; oid?: number;
@@ -14,7 +14,7 @@ export interface ShopWechatDeposit {
orderNum?: string; orderNum?: string;
// 付款订单号 // 付款订单号
wechatOrder?: string; wechatOrder?: string;
// 退款订单号 // 退款订单号
wechatReturn?: string; wechatReturn?: string;
// 场馆名称 // 场馆名称
siteName?: string; siteName?: string;
+1 -1
View File
@@ -1,6 +1,6 @@
import type { PageParam } from '@/api'; import type { PageParam } from '@/api';
import type { User } from '@/api/system/user/model'; import type { User } from '@/api/system/user/model';
import {AssetsUser} from "@/api/oa/assets/user/model"; import { AssetsUser } from '@/api/oa/assets/user/model';
/** /**
* 资产 * 资产
+5 -2
View File
@@ -1,13 +1,16 @@
import request from '@/utils/request'; import request from '@/utils/request';
import type { ApiResult } from '@/api'; import type { ApiResult } from '@/api';
import { ChatParam } from '@/api/oa/chatgpt/model'; import { ChatParam } from '@/api/oa/chatgpt/model';
import {MODULES_API_URL} from "@/config/setting"; import { MODULES_API_URL } from '@/config/setting';
/** /**
* 发送 * 发送
*/ */
export async function send(data: ChatParam) { export async function send(data: ChatParam) {
const res = await request.post<ApiResult<unknown>>(MODULES_API_URL + '/open/chat/send', data); const res = await request.post<ApiResult<unknown>>(
MODULES_API_URL + '/open/chat/send',
data
);
if (res.data.code === 0) { if (res.data.code === 0) {
return res.data.data; return res.data.data;
} }
+1 -1
View File
@@ -6,7 +6,7 @@ import type { PageParam } from '@/api';
export interface OaAppUser { export interface OaAppUser {
// 自增ID // 自增ID
appUserId?: number; appUserId?: number;
// 角色,10体验成员 20开发者成员 30管理员 // 角色,10体验成员 20开发者成员 30管理员
role?: number; role?: number;
// 用户ID // 用户ID
userId?: number; userId?: number;
+1 -1
View File
@@ -6,7 +6,7 @@ import type { PageParam } from '@/api';
export interface OaAssetsUser { export interface OaAssetsUser {
// 自增ID // 自增ID
id?: number; id?: number;
// 角色,10体验成员 20开发者成员 30管理员 // 角色,10体验成员 20开发者成员 30管理员
role?: number; role?: number;
// 用户ID // 用户ID
userId?: number; userId?: number;
+1 -1
View File
@@ -18,7 +18,7 @@ export interface OaTask {
promoter?: number; promoter?: number;
// 受理人 // 受理人
commander?: number; commander?: number;
// 工单状态, 0未开始 1已指派 // 工单状态, 0未开始 1已指派
progress?: number; progress?: number;
// 优先级 // 优先级
priority?: string; priority?: string;
+1 -1
View File
@@ -6,7 +6,7 @@ import type { PageParam } from '@/api';
export interface OaTaskUser { export interface OaTaskUser {
// 自增ID // 自增ID
taskUserId?: number; taskUserId?: number;
// 角色,10体验成员 20开发者成员 30管理员 // 角色,10体验成员 20开发者成员 30管理员
role?: number; role?: number;
// 用户ID // 用户ID
userId?: number; userId?: number;
+1 -1
View File
@@ -1,5 +1,5 @@
import type { PageParam } from '@/api'; import type { PageParam } from '@/api';
import {Company} from "@/api/system/company/model"; import { Company } from '@/api/system/company/model';
/** /**
* 产品 * 产品
-1
View File
@@ -179,7 +179,6 @@ export async function getByGroup(groupId: number) {
return Promise.reject(new Error(res.data.message)); return Promise.reject(new Error(res.data.message));
} }
/** /**
* 删除整单 * 删除整单
*/ */
+1 -1
View File
@@ -4,7 +4,7 @@ import type { PageParam } from '@/api';
* 商品优惠券表 * 商品优惠券表
*/ */
export interface GoodsCoupon { export interface GoodsCoupon {
// //
id?: number; id?: number;
// 商品id // 商品id
goodsId?: number; goodsId?: number;
+3 -1
View File
@@ -79,7 +79,9 @@ export async function removeGoodsDescription(id?: number) {
/** /**
* 批量删除商品描述表 * 批量删除商品描述表
*/ */
export async function removeBatchGoodsDescription(data: (number | undefined)[]) { export async function removeBatchGoodsDescription(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>( const res = await request.delete<ApiResult<unknown>>(
MODULES_API_URL + '/shop/goods-description/batch', MODULES_API_URL + '/shop/goods-description/batch',
{ {
+1 -1
View File
@@ -4,7 +4,7 @@ import type { PageParam } from '@/api';
* 商品描述表 * 商品描述表
*/ */
export interface GoodsDescription { export interface GoodsDescription {
// //
id?: number; id?: number;
// 商品ID // 商品ID
goodsId?: number; goodsId?: number;
+1 -1
View File
@@ -4,7 +4,7 @@ import type { PageParam } from '@/api';
* 商品规则值(规格)表 * 商品规则值(规格)表
*/ */
export interface GoodsRule { export interface GoodsRule {
// //
id?: number; id?: number;
// 规格名称 // 规格名称
ruleName?: string; ruleName?: string;
+2 -2
View File
@@ -30,9 +30,9 @@ export interface ShopMerchant {
merchantCategoryTitle?: string; merchantCategoryTitle?: string;
// 经纬度 // 经纬度
lngAndLat?: string; lngAndLat?: string;
// //
lng?: string; lng?: string;
// //
lat?: string; lat?: string;
// 所在省份 // 所在省份
province?: string; province?: string;
+9 -3
View File
@@ -6,7 +6,9 @@ import { MODULES_API_URL } from '@/config/setting';
/** /**
* 分页查询商户账号 * 分页查询商户账号
*/ */
export async function pageShopMerchantAccount(params: ShopMerchantAccountParam) { export async function pageShopMerchantAccount(
params: ShopMerchantAccountParam
) {
const res = await request.get<ApiResult<PageResult<ShopMerchantAccount>>>( const res = await request.get<ApiResult<PageResult<ShopMerchantAccount>>>(
MODULES_API_URL + '/shop/shop-merchant-account/page', MODULES_API_URL + '/shop/shop-merchant-account/page',
{ {
@@ -22,7 +24,9 @@ export async function pageShopMerchantAccount(params: ShopMerchantAccountParam)
/** /**
* 查询商户账号列表 * 查询商户账号列表
*/ */
export async function listShopMerchantAccount(params?: ShopMerchantAccountParam) { export async function listShopMerchantAccount(
params?: ShopMerchantAccountParam
) {
const res = await request.get<ApiResult<ShopMerchantAccount[]>>( const res = await request.get<ApiResult<ShopMerchantAccount[]>>(
MODULES_API_URL + '/shop/shop-merchant-account', MODULES_API_URL + '/shop/shop-merchant-account',
{ {
@@ -79,7 +83,9 @@ export async function removeShopMerchantAccount(id?: number) {
/** /**
* 批量删除商户账号 * 批量删除商户账号
*/ */
export async function removeBatchShopMerchantAccount(data: (number | undefined)[]) { export async function removeBatchShopMerchantAccount(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>( const res = await request.delete<ApiResult<unknown>>(
MODULES_API_URL + '/shop/shop-merchant-account/batch', MODULES_API_URL + '/shop/shop-merchant-account/batch',
{ {
+3 -1
View File
@@ -79,7 +79,9 @@ export async function removeShopMerchantApply(id?: number) {
/** /**
* 批量删除商户入驻申请 * 批量删除商户入驻申请
*/ */
export async function removeBatchShopMerchantApply(data: (number | undefined)[]) { export async function removeBatchShopMerchantApply(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>( const res = await request.delete<ApiResult<unknown>>(
MODULES_API_URL + '/shop/shop-merchant-apply/batch', MODULES_API_URL + '/shop/shop-merchant-apply/batch',
{ {
+3 -1
View File
@@ -79,7 +79,9 @@ export async function removeShopMerchantCount(id?: number) {
/** /**
* 批量删除门店销售统计表 * 批量删除门店销售统计表
*/ */
export async function removeBatchShopMerchantCount(data: (number | undefined)[]) { export async function removeBatchShopMerchantCount(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>( const res = await request.delete<ApiResult<unknown>>(
MODULES_API_URL + '/shop/shop-merchant-count/batch', MODULES_API_URL + '/shop/shop-merchant-count/batch',
{ {
+3 -1
View File
@@ -79,7 +79,9 @@ export async function removeShopMerchantType(id?: number) {
/** /**
* 批量删除商户类型 * 批量删除商户类型
*/ */
export async function removeBatchShopMerchantType(data: (number | undefined)[]) { export async function removeBatchShopMerchantType(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>( const res = await request.delete<ApiResult<unknown>>(
MODULES_API_URL + '/shop/shop-merchant-type/batch', MODULES_API_URL + '/shop/shop-merchant-type/batch',
{ {
+1 -1
View File
@@ -16,7 +16,7 @@ export interface UserBalanceLog {
balance?: string; balance?: string;
// 管理员备注 // 管理员备注
remark?: string; remark?: string;
// //
orderId?: number; orderId?: number;
// 操作人ID // 操作人ID
adminId?: number; adminId?: number;
+3 -3
View File
@@ -4,7 +4,7 @@ import type { PageParam } from '@/api';
* 押金 * 押金
*/ */
export interface WechatDeposit { export interface WechatDeposit {
// //
id?: number; id?: number;
// 订单id // 订单id
oid?: number; oid?: number;
@@ -14,7 +14,7 @@ export interface WechatDeposit {
orderNum?: string; orderNum?: string;
// 付款订单号 // 付款订单号
wechatOrder?: string; wechatOrder?: string;
// 退款订单号 // 退款订单号
wechatReturn?: string; wechatReturn?: string;
// 场馆名称 // 场馆名称
siteName?: string; siteName?: string;
@@ -28,7 +28,7 @@ export interface WechatDeposit {
price?: string; price?: string;
// 押金状态,1已付款,2未付款,已退押金 // 押金状态,1已付款,2未付款,已退押金
status?: string; status?: string;
// //
createTime?: number; createTime?: number;
// 租户id // 租户id
tenantId?: number; tenantId?: number;
+10 -7
View File
@@ -1,20 +1,23 @@
import request from '@/utils/request'; import request from '@/utils/request';
import type {ApiResult} from '@/api'; import type { ApiResult } from '@/api';
import {Area} from "@/api/system/area/model"; import { Area } from '@/api/system/area/model';
import { THINK_API_URL } from "@/config/setting"; import { THINK_API_URL } from '@/config/setting';
export async function listArea(param: any) { export async function listArea(param: any) {
const res = await request.post<ApiResult<Area[]>>(`${THINK_API_URL}/common/area/list-by-level`, param); const res = await request.post<ApiResult<Area[]>>(
`${THINK_API_URL}/common/area/list-by-level`,
param
);
if (res.data.code === 0 && res.data.data) { if (res.data.code === 0 && res.data.data) {
return res.data.data; return res.data.data;
} }
return Promise.reject(new Error(res.data.message)); return Promise.reject(new Error(res.data.message));
} }
export async function listCity() { export async function listCity() {
const res = await request.post<ApiResult<Area[]>>(`${THINK_API_URL}/common/area/city-list`); const res = await request.post<ApiResult<Area[]>>(
`${THINK_API_URL}/common/area/city-list`
);
if (res.data.code === 0 && res.data.data) { if (res.data.code === 0 && res.data.data) {
return res.data.data; return res.data.data;
} }
+5 -6
View File
@@ -1,8 +1,7 @@
export interface Area { export interface Area {
id?: any, id?: any;
name?: any, name?: any;
fid?: any, fid?: any;
levelId?: any, levelId?: any;
children?: any, children?: any;
} }
+3 -1
View File
@@ -79,7 +79,9 @@ export async function removeChatConversation(id?: number) {
/** /**
* 批量删除聊天消息表 * 批量删除聊天消息表
*/ */
export async function removeBatchChatConversation(data: (number | undefined)[]) { export async function removeBatchChatConversation(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>( const res = await request.delete<ApiResult<unknown>>(
MODULES_API_URL + '/shop/chat-conversation/batch', MODULES_API_URL + '/shop/chat-conversation/batch',
{ {
-1
View File
@@ -90,7 +90,6 @@ export async function deleteParentMenu(id?: number) {
return Promise.reject(new Error(res.data.message)); return Promise.reject(new Error(res.data.message));
} }
/** /**
* 安装应用 * 安装应用
*/ */
+4 -4
View File
@@ -1,7 +1,7 @@
import type { PageParam } from "@/api"; import type { PageParam } from '@/api';
import type { Role } from "../../role/model"; import type { Role } from '../../role/model';
import type { Menu } from "../../menu/model"; import type { Menu } from '../../menu/model';
import { Company } from "@/api/system/company/model"; import { Company } from '@/api/system/company/model';
/** /**
* 用户 * 用户
+1 -1
View File
@@ -5,7 +5,7 @@ import type {
WebsiteField, WebsiteField,
WebsiteFieldParam WebsiteFieldParam
} from '@/api/cms/website/field/model'; } from '@/api/cms/website/field/model';
import { MODULES_API_URL, SERVER_API_URL } from "@/config/setting"; import { MODULES_API_URL, SERVER_API_URL } from '@/config/setting';
/** /**
* 分页查询项目参数 * 分页查询项目参数
+3 -3
View File
@@ -1,10 +1,10 @@
import type { PageParam } from '@/api'; import type { PageParam } from '@/api';
/** /**
* *
*/ */
export interface ThinkAdmin { export interface ThinkAdmin {
// //
id?: number; id?: number;
// 用户名 // 用户名
username?: string; username?: string;
@@ -28,7 +28,7 @@ export interface ThinkAdmin {
sid?: string; sid?: string;
// 用户角色id // 用户角色id
groupid?: number; groupid?: number;
// //
token?: string; token?: string;
// 过期时间 // 过期时间
expireTime?: number; expireTime?: number;
+1 -1
View File
@@ -4,7 +4,7 @@ import type { PageParam } from '@/api';
* 后台金额操作变动 * 后台金额操作变动
*/ */
export interface ThinkAdminLog { export interface ThinkAdminLog {
// //
id?: number; id?: number;
// 用户ID // 用户ID
userid?: number; userid?: number;
+7 -7
View File
@@ -1,20 +1,20 @@
import type { PageParam } from '@/api'; import type { PageParam } from '@/api';
/** /**
* *
*/ */
export interface ThinkAuthGroup { export interface ThinkAuthGroup {
// //
id?: number; id?: number;
// //
title?: string; title?: string;
// //
status?: string; status?: string;
// //
rules?: string; rules?: string;
// //
createTime?: number; createTime?: number;
// //
updateTime?: number; updateTime?: number;
} }
@@ -1,12 +1,12 @@
import type { PageParam } from '@/api'; import type { PageParam } from '@/api';
/** /**
* *
*/ */
export interface ThinkAuthGroupAccess { export interface ThinkAuthGroupAccess {
// //
uid?: number; uid?: number;
// //
groupId?: number; groupId?: number;
} }
+8 -8
View File
@@ -1,22 +1,22 @@
import type { PageParam } from '@/api'; import type { PageParam } from '@/api';
/** /**
* *
*/ */
export interface ThinkAuthRule { export interface ThinkAuthRule {
// //
id?: number; id?: number;
// //
name?: string; name?: string;
// //
title?: string; title?: string;
// //
type?: string; type?: string;
// //
status?: string; status?: string;
// 样式 // 样式
css?: string; css?: string;
// //
condition?: string; condition?: string;
// 父栏目ID // 父栏目ID
pid?: number; pid?: number;
@@ -24,7 +24,7 @@ export interface ThinkAuthRule {
sort?: number; sort?: number;
// 添加时间 // 添加时间
createTime?: number; createTime?: number;
// //
updateTime?: number; updateTime?: number;
} }
+1 -1
View File
@@ -4,7 +4,7 @@ import type { PageParam } from '@/api';
* 银行卡列表 * 银行卡列表
*/ */
export interface ThinkBankCard { export interface ThinkBankCard {
// //
id?: number; id?: number;
// 用户ID // 用户ID
uid?: number; uid?: number;
+2 -1
View File
@@ -81,7 +81,8 @@ export async function updateThinkCardRemaining(data: {
remainingMoney?: string; remainingMoney?: string;
}) { }) {
const res = await request.put<ApiResult<unknown>>( const res = await request.put<ApiResult<unknown>>(
THINK_API_URL + '/think/think-card/remaining', data THINK_API_URL + '/think/think-card/remaining',
data
); );
if (res.data.code === 0) return res.data.message; if (res.data.code === 0) return res.data.message;
return Promise.reject(new Error(res.data.message)); return Promise.reject(new Error(res.data.message));
+3 -1
View File
@@ -79,7 +79,9 @@ export async function removeThinkCardBalance(id?: number) {
/** /**
* 批量删除卡余额记录 * 批量删除卡余额记录
*/ */
export async function removeBatchThinkCardBalance(data: (number | undefined)[]) { export async function removeBatchThinkCardBalance(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>( const res = await request.delete<ApiResult<unknown>>(
MODULES_API_URL + '/think/think-card-balance/batch', MODULES_API_URL + '/think/think-card-balance/batch',
{ {
@@ -4,21 +4,21 @@ import type { PageParam } from '@/api';
* 卡余额记录 * 卡余额记录
*/ */
export interface ThinkCardBalance { export interface ThinkCardBalance {
// //
id?: number; id?: number;
// //
cid?: number; cid?: number;
// //
vid?: number; vid?: number;
// //
uid?: number; uid?: number;
// //
balance?: string; balance?: string;
// 每次减少金额 // 每次减少金额
reduceEach?: string; reduceEach?: string;
// 下单时间 // 下单时间
createTime?: number; createTime?: number;
// //
updateTime?: number; updateTime?: number;
} }
@@ -4,7 +4,7 @@ import type { PageParam } from '@/api';
* IC卡绑定微信日志表 * IC卡绑定微信日志表
*/ */
export interface ThinkCardBindLog { export interface ThinkCardBindLog {
// //
id?: number; id?: number;
// 参数 // 参数
param?: string; param?: string;
+1 -1
View File
@@ -4,7 +4,7 @@ import type { PageParam } from '@/api';
* 注销卡日志 * 注销卡日志
*/ */
export interface ThinkCardDelLog { export interface ThinkCardDelLog {
// //
id?: number; id?: number;
// 操作用户 // 操作用户
userId?: number; userId?: number;
+3 -1
View File
@@ -79,7 +79,9 @@ export async function removeThinkCardEditLog(id?: number) {
/** /**
* 批量删除IC卡编辑日志 * 批量删除IC卡编辑日志
*/ */
export async function removeBatchThinkCardEditLog(data: (number | undefined)[]) { export async function removeBatchThinkCardEditLog(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>( const res = await request.delete<ApiResult<unknown>>(
THINK_API_URL + '/think/think-card-edit-log/batch', THINK_API_URL + '/think/think-card-edit-log/batch',
{ {
@@ -4,7 +4,7 @@ import type { PageParam } from '@/api';
* IC卡编辑日志 * IC卡编辑日志
*/ */
export interface ThinkCardEditLog { export interface ThinkCardEditLog {
// //
id?: number; id?: number;
// 操作类型:price=更新价格;card_type=卡种;count=变更次数;expire=有效期; // 操作类型:price=更新价格;card_type=卡种;count=变更次数;expire=有效期;
type?: string; type?: string;
+2 -1
View File
@@ -107,7 +107,8 @@ export async function getThinkCardLog(id: number) {
export async function thinkCardLogExport(data: ThinkCardLog) { export async function thinkCardLogExport(data: ThinkCardLog) {
const res = await request.post<ApiResult<ThinkCardLog>>( const res = await request.post<ApiResult<ThinkCardLog>>(
THINK_API_URL + '/think/think-card-log/export', data THINK_API_URL + '/think/think-card-log/export',
data
); );
if (res.data.code === 0) { if (res.data.code === 0) {
return res.data; return res.data;
@@ -1,10 +1,10 @@
import type { PageParam } from '@/api'; import type { PageParam } from '@/api';
/** /**
* *
*/ */
export interface ThinkCardUserLog { export interface ThinkCardUserLog {
// //
id?: number; id?: number;
// 会员卡类型:1年卡,2次卡,3月卡,4会员VIP,VIP充值卡 // 会员卡类型:1年卡,2次卡,3月卡,4会员VIP,VIP充值卡
type?: number; type?: number;
@@ -14,7 +14,7 @@ export interface ThinkCardUserLog {
vipType?: string; vipType?: string;
// 统计金额(正是收入,负是冲抵(退卡后产生)) // 统计金额(正是收入,负是冲抵(退卡后产生))
price?: string; price?: string;
// //
createTime?: number; createTime?: number;
// 虚拟卡ID // 虚拟卡ID
usersVipId?: number; usersVipId?: number;
+5 -3
View File
@@ -1,8 +1,8 @@
import request from '@/utils/request'; import request from '@/utils/request';
import type { ApiResult, PageResult } from '@/api'; import type { ApiResult, PageResult } from '@/api';
import type { ThinkCardsBills, ThinkCardsBillsParam } from './model'; import type { ThinkCardsBills, ThinkCardsBillsParam } from './model';
import { THINK_API_URL } from "@/config/setting"; import { THINK_API_URL } from '@/config/setting';
import type { ThinkVipCardsBillsParam } from "@/api/think/thinkVipCardsBills/model"; import type { ThinkVipCardsBillsParam } from '@/api/think/thinkVipCardsBills/model';
/** /**
* 分页查询Vip卡每日账单 * 分页查询Vip卡每日账单
@@ -35,7 +35,9 @@ export async function listThinkCardsBills(params?: ThinkCardsBillsParam) {
} }
return Promise.reject(new Error(res.data.message)); return Promise.reject(new Error(res.data.message));
} }
export async function thinkCardsBillsTotalAmount(params?: ThinkVipCardsBillsParam) { export async function thinkCardsBillsTotalAmount(
params?: ThinkVipCardsBillsParam
) {
const res = await request.get<ApiResult<any>>( const res = await request.get<ApiResult<any>>(
THINK_API_URL + '/think/think-cards-bills/total-amount', THINK_API_URL + '/think/think-cards-bills/total-amount',
{ {
+4 -4
View File
@@ -1,10 +1,10 @@
import type { PageParam } from '@/api'; import type { PageParam } from '@/api';
/** /**
* *
*/ */
export interface ThinkCarousel { export interface ThinkCarousel {
// //
id?: number; id?: number;
// 轮播图标题 // 轮播图标题
title?: string; title?: string;
@@ -20,9 +20,9 @@ export interface ThinkCarousel {
status?: string; status?: string;
// 类型:1资讯,2商城,3小程序 // 类型:1资讯,2商城,3小程序
type?: string; type?: string;
// //
createTime?: number; createTime?: number;
// //
updateTime?: number; updateTime?: number;
} }
+1 -1
View File
@@ -4,7 +4,7 @@ import type { PageParam } from '@/api';
* 教练表 * 教练表
*/ */
export interface ThinkCoach { export interface ThinkCoach {
// //
id?: number; id?: number;
// 用户表ID // 用户表ID
uid?: number; uid?: number;
+1 -1
View File
@@ -4,7 +4,7 @@ import type { PageParam } from '@/api';
* 教练提现审核表 * 教练提现审核表
*/ */
export interface ThinkCoachCash { export interface ThinkCoachCash {
// //
id?: number; id?: number;
// 教练ID // 教练ID
cid?: number; cid?: number;
+1 -1
View File
@@ -4,7 +4,7 @@ import type { PageParam } from '@/api';
* 教练课程表 * 教练课程表
*/ */
export interface ThinkCoachCur { export interface ThinkCoachCur {
// //
id?: number; id?: number;
// 教练ID // 教练ID
cid?: number; cid?: number;
+1 -1
View File
@@ -4,7 +4,7 @@ import type { PageParam } from '@/api';
* 教练组相册 * 教练组相册
*/ */
export interface ThinkCoachImgs { export interface ThinkCoachImgs {
// //
id?: number; id?: number;
// 图片地址 // 图片地址
path?: string; path?: string;
+1 -1
View File
@@ -4,7 +4,7 @@ import type { PageParam } from '@/api';
* 教练组订单 * 教练组订单
*/ */
export interface ThinkCoachOrder { export interface ThinkCoachOrder {
// //
id?: number; id?: number;
// 场馆ID // 场馆ID
sid?: number; sid?: number;
+1 -1
View File
@@ -4,7 +4,7 @@ import type { PageParam } from '@/api';
* 教练组预约时间表 * 教练组预约时间表
*/ */
export interface ThinkCoachTime { export interface ThinkCoachTime {
// //
id?: number; id?: number;
// 教练ID // 教练ID
cid?: number; cid?: number;
+1 -1
View File
@@ -1,7 +1,7 @@
import type { PageParam } from '@/api'; import type { PageParam } from '@/api';
/** /**
* *
*/ */
export interface ThinkConfig { export interface ThinkConfig {
// 配置ID // 配置ID
+3 -3
View File
@@ -1,10 +1,10 @@
import type { PageParam } from '@/api'; import type { PageParam } from '@/api';
/** /**
* *
*/ */
export interface ThinkCoupon { export interface ThinkCoupon {
// //
id?: number; id?: number;
// 优惠券名称 // 优惠券名称
name?: string; name?: string;
@@ -36,7 +36,7 @@ export interface ThinkCoupon {
status?: string; status?: string;
// 创建时间 // 创建时间
createTime?: number; createTime?: number;
// //
updateTime?: number; updateTime?: number;
// 0 是通用,1是仅线下 // 0 是通用,1是仅线下
isOffline?: string; isOffline?: string;
+4 -2
View File
@@ -1,7 +1,7 @@
import request from '@/utils/request'; import request from '@/utils/request';
import type { ApiResult, PageResult } from '@/api'; import type { ApiResult, PageResult } from '@/api';
import type { ThinkDepositItem, ThinkDepositItemParam } from './model'; import type { ThinkDepositItem, ThinkDepositItemParam } from './model';
import { THINK_API_URL } from "@/config/setting"; import { THINK_API_URL } from '@/config/setting';
/** /**
* 分页查询押金物品 * 分页查询押金物品
@@ -79,7 +79,9 @@ export async function removeThinkDepositItem(id?: number) {
/** /**
* 批量删除押金物品 * 批量删除押金物品
*/ */
export async function removeBatchThinkDepositItem(data: (number | undefined)[]) { export async function removeBatchThinkDepositItem(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>( const res = await request.delete<ApiResult<unknown>>(
THINK_API_URL + '/think/think-deposit-item/batch', THINK_API_URL + '/think/think-deposit-item/batch',
{ {
+2 -2
View File
@@ -1,10 +1,10 @@
import type { PageParam } from '@/api'; import type { PageParam } from '@/api';
/** /**
* *
*/ */
export interface ThinkField { export interface ThinkField {
// //
id?: number; id?: number;
// 场地名称 // 场地名称
name?: string; name?: string;

Some files were not shown because too many files have changed in this diff Show More