feat: 流程类型筛选改从后端字典接口加载(保留静态兜底)
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
import request from '@/utils/request';
|
||||
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';
|
||||
|
||||
/**
|
||||
@@ -32,3 +36,16 @@ export async function searchApprovalUsers(params?: {
|
||||
}
|
||||
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));
|
||||
}
|
||||
|
||||
@@ -168,6 +168,14 @@ export interface ApprovalInstance {
|
||||
permissions?: ApprovalPermissions;
|
||||
}
|
||||
|
||||
/**
|
||||
* 流程类型选项
|
||||
*/
|
||||
export interface ApprovalFlowOption {
|
||||
flowCode?: string;
|
||||
flowName?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 审批目录组织
|
||||
*/
|
||||
|
||||
@@ -2,7 +2,7 @@ import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { BookingCashier, BookingCashierParam } from './model';
|
||||
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';
|
||||
|
||||
/**
|
||||
* 分页查询收银
|
||||
|
||||
@@ -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>>(
|
||||
MODULES_API_URL + '/booking/booking-cooperate/batch',
|
||||
{
|
||||
|
||||
@@ -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>>>(
|
||||
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[]>>(
|
||||
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>>(
|
||||
MODULES_API_URL + '/booking/booking-cooperate-log/batch',
|
||||
{
|
||||
|
||||
@@ -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>>(
|
||||
MODULES_API_URL + '/booking/booking-emergency/batch',
|
||||
{
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import type { PageParam } from '@/api';
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
*/
|
||||
export interface BookingField {
|
||||
//
|
||||
//
|
||||
id?: number;
|
||||
// 场地名称
|
||||
name?: string;
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import type { PageParam } from '@/api';
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
*/
|
||||
export interface BookingIntegral {
|
||||
//
|
||||
//
|
||||
id?: number;
|
||||
// 用户id
|
||||
uid?: number;
|
||||
|
||||
@@ -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>>(
|
||||
MODULES_API_URL + '/booking/booking-integral-log/batch',
|
||||
{
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import type { PageParam } from '@/api';
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
*/
|
||||
export interface BookingIntegralLog {
|
||||
//
|
||||
//
|
||||
id?: number;
|
||||
// 场馆订单号
|
||||
orderNum?: string;
|
||||
|
||||
@@ -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>>(
|
||||
MODULES_API_URL + '/booking/booking-order-info/batch',
|
||||
{
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import type { PageParam } from '@/api';
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
*/
|
||||
export interface BookingPeriod {
|
||||
//
|
||||
//
|
||||
id?: number;
|
||||
// 时段
|
||||
timePeriod?: string;
|
||||
@@ -32,7 +32,7 @@ export interface BookingPeriod {
|
||||
startTime?: string;
|
||||
// 儿童价
|
||||
createTime?: number;
|
||||
//
|
||||
//
|
||||
updateTime?: number;
|
||||
// 租户id
|
||||
tenantId?: number;
|
||||
|
||||
@@ -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>>(
|
||||
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>>>(
|
||||
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[]>>(
|
||||
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>>(
|
||||
MODULES_API_URL + '/booking/booking-user-emergency/batch',
|
||||
{
|
||||
|
||||
@@ -4,7 +4,7 @@ import type { PageParam } from '@/api';
|
||||
* 紧急联系人表
|
||||
*/
|
||||
export interface BookingUserEmergency {
|
||||
//
|
||||
//
|
||||
id?: number;
|
||||
// 用户id
|
||||
uid?: number;
|
||||
|
||||
@@ -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>>(
|
||||
MODULES_API_URL + '/booking/booking-user-invoice/batch',
|
||||
{
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import type { PageParam } from '@/api';
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
*/
|
||||
export interface BookingVip {
|
||||
//
|
||||
//
|
||||
id?: number;
|
||||
// sid场馆id集合,适用的场馆
|
||||
sid?: string;
|
||||
@@ -42,9 +42,9 @@ export interface BookingVip {
|
||||
prices?: string;
|
||||
// 是否赠送积分:1赠送,2不赠送
|
||||
isIntegral?: string;
|
||||
//
|
||||
//
|
||||
createTime?: number;
|
||||
//
|
||||
//
|
||||
updateTime?: number;
|
||||
// 是否有效:1是,0否
|
||||
isUse?: string;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { PageParam } from '@/api';
|
||||
import { OrderInfo } from "@/api/shop/orderInfo/model";
|
||||
import { OrderInfo } from '@/api/shop/orderInfo/model';
|
||||
|
||||
/**
|
||||
* 场馆场地
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import type { PageParam } from '@/api';
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
*/
|
||||
export interface Order {
|
||||
//
|
||||
//
|
||||
orderId?: number;
|
||||
// 订单类型,0商城订单 1预定订单 2会员卡
|
||||
type?: number;
|
||||
@@ -76,7 +76,7 @@ export interface Order {
|
||||
isInvoice?: string;
|
||||
// 下单时间
|
||||
createTime?: number;
|
||||
//
|
||||
//
|
||||
updateTime?: number;
|
||||
// 付款时间
|
||||
payTime?: number;
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import type { PageParam } from '@/api';
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
*/
|
||||
export interface OrderInfo {
|
||||
//
|
||||
//
|
||||
id?: number;
|
||||
// 关联订单表id
|
||||
oid?: number;
|
||||
|
||||
@@ -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>>(
|
||||
MODULES_API_URL + '/cms/cms-article-comment/batch',
|
||||
{
|
||||
|
||||
@@ -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>>(
|
||||
MODULES_API_URL + '/cms/cms-article-content/batch',
|
||||
{
|
||||
|
||||
@@ -4,7 +4,7 @@ import type { PageParam } from '@/api';
|
||||
* 文章记录表
|
||||
*/
|
||||
export interface CmsArticleContent {
|
||||
//
|
||||
//
|
||||
id?: number;
|
||||
// 文章ID
|
||||
articleId?: number;
|
||||
|
||||
@@ -6,7 +6,7 @@ import type { PageParam } from '@/api';
|
||||
export interface CmsDomain {
|
||||
// ID
|
||||
id?: number;
|
||||
// 类型 0赠送域名 1绑定域名
|
||||
// 类型 0赠送域名 1绑定域名
|
||||
type?: number;
|
||||
// 域名
|
||||
domain?: string;
|
||||
|
||||
@@ -2,7 +2,7 @@ import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { CmsProduct, CmsProductParam } from './model';
|
||||
import { SERVER_API_URL } from '@/config/setting';
|
||||
import type { ArticleParam } from "@/api/cms/article/model";
|
||||
import type { ArticleParam } from '@/api/cms/article/model';
|
||||
|
||||
/**
|
||||
* 分页查询产品
|
||||
|
||||
@@ -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>>(
|
||||
MODULES_API_URL + '/cms/cms-product-comment/batch',
|
||||
{
|
||||
|
||||
@@ -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>>(
|
||||
MODULES_API_URL + '/cms/cms-product-record/batch',
|
||||
{
|
||||
|
||||
@@ -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>>>(
|
||||
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[]>>(
|
||||
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>>(
|
||||
MODULES_API_URL + '/cms/cms-product-spec-value/batch',
|
||||
{
|
||||
|
||||
@@ -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>>(
|
||||
MODULES_API_URL + '/cms/navigation/status',
|
||||
{
|
||||
|
||||
@@ -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>>(
|
||||
MODULES_API_URL + '/mall/shop-dealer-capital/batch',
|
||||
{
|
||||
|
||||
@@ -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>>(
|
||||
MODULES_API_URL + '/mall/shop-dealer-referee/batch',
|
||||
{
|
||||
|
||||
@@ -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>>(
|
||||
MODULES_API_URL + '/mall/shop-dealer-setting/batch',
|
||||
{
|
||||
|
||||
@@ -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>>(
|
||||
MODULES_API_URL + '/mall/shop-dealer-withdraw/batch',
|
||||
{
|
||||
|
||||
@@ -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>>(
|
||||
MODULES_API_URL + '/mall/shop-goods-category/batch',
|
||||
{
|
||||
|
||||
@@ -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>>(
|
||||
MODULES_API_URL + '/mall/shop-goods-comment/batch',
|
||||
{
|
||||
|
||||
@@ -4,7 +4,7 @@ import type { PageParam } from '@/api';
|
||||
* 商品优惠券表
|
||||
*/
|
||||
export interface ShopGoodsCoupon {
|
||||
//
|
||||
//
|
||||
id?: number;
|
||||
// 商品id
|
||||
goodsId?: number;
|
||||
|
||||
@@ -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>>(
|
||||
MODULES_API_URL + '/mall/shop-goods-relation/batch',
|
||||
{
|
||||
|
||||
@@ -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>>>(
|
||||
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[]>>(
|
||||
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>>(
|
||||
MODULES_API_URL + '/mall/shop-merchant-account/batch',
|
||||
{
|
||||
|
||||
@@ -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>>(
|
||||
MODULES_API_URL + '/mall/shop-merchant-apply/batch',
|
||||
{
|
||||
|
||||
@@ -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>>(
|
||||
MODULES_API_URL + '/mall/shop-merchant-count/batch',
|
||||
{
|
||||
|
||||
@@ -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>>(
|
||||
MODULES_API_URL + '/mall/shop-merchant-type/batch',
|
||||
{
|
||||
|
||||
@@ -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>>(
|
||||
MODULES_API_URL + '/mall/shop-order-cart-info/batch',
|
||||
{
|
||||
|
||||
@@ -4,7 +4,7 @@ import type { PageParam } from '@/api';
|
||||
* 订单购物详情表
|
||||
*/
|
||||
export interface ShopOrderCartInfo {
|
||||
//
|
||||
//
|
||||
id?: string;
|
||||
// 订单id
|
||||
oid?: string;
|
||||
|
||||
@@ -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>>(
|
||||
MODULES_API_URL + '/mall/shop-order-info-log/batch',
|
||||
{
|
||||
|
||||
@@ -4,7 +4,7 @@ import type { PageParam } from '@/api';
|
||||
* 订单核销
|
||||
*/
|
||||
export interface ShopOrderInfoLog {
|
||||
//
|
||||
//
|
||||
id?: number;
|
||||
// 关联订单表id
|
||||
orderId?: number;
|
||||
|
||||
@@ -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>>(
|
||||
MODULES_API_URL + '/mall/shop-user-collection/batch',
|
||||
{
|
||||
|
||||
@@ -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>>(
|
||||
MODULES_API_URL + '/mall/shop-wechat-deposit/batch',
|
||||
{
|
||||
|
||||
@@ -4,7 +4,7 @@ import type { PageParam } from '@/api';
|
||||
* 押金
|
||||
*/
|
||||
export interface ShopWechatDeposit {
|
||||
//
|
||||
//
|
||||
id?: number;
|
||||
// 订单id
|
||||
oid?: number;
|
||||
@@ -14,7 +14,7 @@ export interface ShopWechatDeposit {
|
||||
orderNum?: string;
|
||||
// 付款订单号
|
||||
wechatOrder?: string;
|
||||
// 退款订单号
|
||||
// 退款订单号
|
||||
wechatReturn?: string;
|
||||
// 场馆名称
|
||||
siteName?: string;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { PageParam } from '@/api';
|
||||
import type { User } from '@/api/system/user/model';
|
||||
import {AssetsUser} from "@/api/oa/assets/user/model";
|
||||
import { AssetsUser } from '@/api/oa/assets/user/model';
|
||||
|
||||
/**
|
||||
* 资产
|
||||
|
||||
@@ -1,13 +1,16 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult } from '@/api';
|
||||
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) {
|
||||
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) {
|
||||
return res.data.data;
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ import type { PageParam } from '@/api';
|
||||
export interface OaAppUser {
|
||||
// 自增ID
|
||||
appUserId?: number;
|
||||
// 角色,10体验成员 20开发者成员 30管理员
|
||||
// 角色,10体验成员 20开发者成员 30管理员
|
||||
role?: number;
|
||||
// 用户ID
|
||||
userId?: number;
|
||||
|
||||
@@ -6,7 +6,7 @@ import type { PageParam } from '@/api';
|
||||
export interface OaAssetsUser {
|
||||
// 自增ID
|
||||
id?: number;
|
||||
// 角色,10体验成员 20开发者成员 30管理员
|
||||
// 角色,10体验成员 20开发者成员 30管理员
|
||||
role?: number;
|
||||
// 用户ID
|
||||
userId?: number;
|
||||
|
||||
@@ -18,7 +18,7 @@ export interface OaTask {
|
||||
promoter?: number;
|
||||
// 受理人
|
||||
commander?: number;
|
||||
// 工单状态, 0未开始 1已指派
|
||||
// 工单状态, 0未开始 1已指派
|
||||
progress?: number;
|
||||
// 优先级
|
||||
priority?: string;
|
||||
|
||||
@@ -6,7 +6,7 @@ import type { PageParam } from '@/api';
|
||||
export interface OaTaskUser {
|
||||
// 自增ID
|
||||
taskUserId?: number;
|
||||
// 角色,10体验成员 20开发者成员 30管理员
|
||||
// 角色,10体验成员 20开发者成员 30管理员
|
||||
role?: number;
|
||||
// 用户ID
|
||||
userId?: number;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { PageParam } from '@/api';
|
||||
import {Company} from "@/api/system/company/model";
|
||||
import { Company } from '@/api/system/company/model';
|
||||
|
||||
/**
|
||||
* 产品
|
||||
|
||||
@@ -179,7 +179,6 @@ export async function getByGroup(groupId: number) {
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 删除整单
|
||||
*/
|
||||
|
||||
@@ -4,7 +4,7 @@ import type { PageParam } from '@/api';
|
||||
* 商品优惠券表
|
||||
*/
|
||||
export interface GoodsCoupon {
|
||||
//
|
||||
//
|
||||
id?: number;
|
||||
// 商品id
|
||||
goodsId?: number;
|
||||
|
||||
@@ -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>>(
|
||||
MODULES_API_URL + '/shop/goods-description/batch',
|
||||
{
|
||||
|
||||
@@ -4,7 +4,7 @@ import type { PageParam } from '@/api';
|
||||
* 商品描述表
|
||||
*/
|
||||
export interface GoodsDescription {
|
||||
//
|
||||
//
|
||||
id?: number;
|
||||
// 商品ID
|
||||
goodsId?: number;
|
||||
|
||||
@@ -4,7 +4,7 @@ import type { PageParam } from '@/api';
|
||||
* 商品规则值(规格)表
|
||||
*/
|
||||
export interface GoodsRule {
|
||||
//
|
||||
//
|
||||
id?: number;
|
||||
// 规格名称
|
||||
ruleName?: string;
|
||||
|
||||
@@ -30,9 +30,9 @@ export interface ShopMerchant {
|
||||
merchantCategoryTitle?: string;
|
||||
// 经纬度
|
||||
lngAndLat?: string;
|
||||
//
|
||||
//
|
||||
lng?: string;
|
||||
//
|
||||
//
|
||||
lat?: string;
|
||||
// 所在省份
|
||||
province?: string;
|
||||
|
||||
@@ -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>>>(
|
||||
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[]>>(
|
||||
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>>(
|
||||
MODULES_API_URL + '/shop/shop-merchant-account/batch',
|
||||
{
|
||||
|
||||
@@ -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>>(
|
||||
MODULES_API_URL + '/shop/shop-merchant-apply/batch',
|
||||
{
|
||||
|
||||
@@ -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>>(
|
||||
MODULES_API_URL + '/shop/shop-merchant-count/batch',
|
||||
{
|
||||
|
||||
@@ -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>>(
|
||||
MODULES_API_URL + '/shop/shop-merchant-type/batch',
|
||||
{
|
||||
|
||||
@@ -16,7 +16,7 @@ export interface UserBalanceLog {
|
||||
balance?: string;
|
||||
// 管理员备注
|
||||
remark?: string;
|
||||
//
|
||||
//
|
||||
orderId?: number;
|
||||
// 操作人ID
|
||||
adminId?: number;
|
||||
|
||||
@@ -4,7 +4,7 @@ import type { PageParam } from '@/api';
|
||||
* 押金
|
||||
*/
|
||||
export interface WechatDeposit {
|
||||
//
|
||||
//
|
||||
id?: number;
|
||||
// 订单id
|
||||
oid?: number;
|
||||
@@ -14,7 +14,7 @@ export interface WechatDeposit {
|
||||
orderNum?: string;
|
||||
// 付款订单号
|
||||
wechatOrder?: string;
|
||||
// 退款订单号
|
||||
// 退款订单号
|
||||
wechatReturn?: string;
|
||||
// 场馆名称
|
||||
siteName?: string;
|
||||
@@ -28,7 +28,7 @@ export interface WechatDeposit {
|
||||
price?: string;
|
||||
// 押金状态,1已付款,2未付款,已退押金
|
||||
status?: string;
|
||||
//
|
||||
//
|
||||
createTime?: number;
|
||||
// 租户id
|
||||
tenantId?: number;
|
||||
|
||||
@@ -1,20 +1,23 @@
|
||||
import request from '@/utils/request';
|
||||
import type {ApiResult} from '@/api';
|
||||
import {Area} from "@/api/system/area/model";
|
||||
import { THINK_API_URL } from "@/config/setting";
|
||||
|
||||
import type { ApiResult } from '@/api';
|
||||
import { Area } from '@/api/system/area/model';
|
||||
import { THINK_API_URL } from '@/config/setting';
|
||||
|
||||
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) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
|
||||
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) {
|
||||
return res.data.data;
|
||||
}
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
|
||||
export interface Area {
|
||||
id?: any,
|
||||
name?: any,
|
||||
fid?: any,
|
||||
levelId?: any,
|
||||
children?: any,
|
||||
id?: any;
|
||||
name?: any;
|
||||
fid?: any;
|
||||
levelId?: any;
|
||||
children?: any;
|
||||
}
|
||||
|
||||
@@ -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>>(
|
||||
MODULES_API_URL + '/shop/chat-conversation/batch',
|
||||
{
|
||||
|
||||
@@ -90,7 +90,6 @@ export async function deleteParentMenu(id?: number) {
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 安装应用
|
||||
*/
|
||||
|
||||
@@ -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';
|
||||
|
||||
/**
|
||||
* 用户
|
||||
|
||||
@@ -5,7 +5,7 @@ import type {
|
||||
WebsiteField,
|
||||
WebsiteFieldParam
|
||||
} 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';
|
||||
|
||||
/**
|
||||
* 分页查询项目参数
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import type { PageParam } from '@/api';
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
*/
|
||||
export interface ThinkAdmin {
|
||||
//
|
||||
//
|
||||
id?: number;
|
||||
// 用户名
|
||||
username?: string;
|
||||
@@ -28,7 +28,7 @@ export interface ThinkAdmin {
|
||||
sid?: string;
|
||||
// 用户角色id
|
||||
groupid?: number;
|
||||
//
|
||||
//
|
||||
token?: string;
|
||||
// 过期时间
|
||||
expireTime?: number;
|
||||
|
||||
@@ -4,7 +4,7 @@ import type { PageParam } from '@/api';
|
||||
* 后台金额操作变动
|
||||
*/
|
||||
export interface ThinkAdminLog {
|
||||
//
|
||||
//
|
||||
id?: number;
|
||||
// 用户ID
|
||||
userid?: number;
|
||||
|
||||
@@ -1,20 +1,20 @@
|
||||
import type { PageParam } from '@/api';
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
*/
|
||||
export interface ThinkAuthGroup {
|
||||
//
|
||||
//
|
||||
id?: number;
|
||||
//
|
||||
//
|
||||
title?: string;
|
||||
//
|
||||
//
|
||||
status?: string;
|
||||
//
|
||||
//
|
||||
rules?: string;
|
||||
//
|
||||
//
|
||||
createTime?: number;
|
||||
//
|
||||
//
|
||||
updateTime?: number;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import type { PageParam } from '@/api';
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
*/
|
||||
export interface ThinkAuthGroupAccess {
|
||||
//
|
||||
//
|
||||
uid?: number;
|
||||
//
|
||||
//
|
||||
groupId?: number;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,22 +1,22 @@
|
||||
import type { PageParam } from '@/api';
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
*/
|
||||
export interface ThinkAuthRule {
|
||||
//
|
||||
//
|
||||
id?: number;
|
||||
//
|
||||
//
|
||||
name?: string;
|
||||
//
|
||||
//
|
||||
title?: string;
|
||||
//
|
||||
//
|
||||
type?: string;
|
||||
//
|
||||
//
|
||||
status?: string;
|
||||
// 样式
|
||||
css?: string;
|
||||
//
|
||||
//
|
||||
condition?: string;
|
||||
// 父栏目ID
|
||||
pid?: number;
|
||||
@@ -24,7 +24,7 @@ export interface ThinkAuthRule {
|
||||
sort?: number;
|
||||
// 添加时间
|
||||
createTime?: number;
|
||||
//
|
||||
//
|
||||
updateTime?: number;
|
||||
}
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ import type { PageParam } from '@/api';
|
||||
* 银行卡列表
|
||||
*/
|
||||
export interface ThinkBankCard {
|
||||
//
|
||||
//
|
||||
id?: number;
|
||||
// 用户ID
|
||||
uid?: number;
|
||||
|
||||
@@ -81,7 +81,8 @@ export async function updateThinkCardRemaining(data: {
|
||||
remainingMoney?: string;
|
||||
}) {
|
||||
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;
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
|
||||
@@ -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>>(
|
||||
MODULES_API_URL + '/think/think-card-balance/batch',
|
||||
{
|
||||
|
||||
@@ -4,21 +4,21 @@ import type { PageParam } from '@/api';
|
||||
* 卡余额记录
|
||||
*/
|
||||
export interface ThinkCardBalance {
|
||||
//
|
||||
//
|
||||
id?: number;
|
||||
//
|
||||
//
|
||||
cid?: number;
|
||||
//
|
||||
//
|
||||
vid?: number;
|
||||
//
|
||||
//
|
||||
uid?: number;
|
||||
//
|
||||
//
|
||||
balance?: string;
|
||||
// 每次减少金额
|
||||
reduceEach?: string;
|
||||
// 下单时间
|
||||
createTime?: number;
|
||||
//
|
||||
//
|
||||
updateTime?: number;
|
||||
}
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ import type { PageParam } from '@/api';
|
||||
* IC卡绑定微信日志表
|
||||
*/
|
||||
export interface ThinkCardBindLog {
|
||||
//
|
||||
//
|
||||
id?: number;
|
||||
// 参数
|
||||
param?: string;
|
||||
|
||||
@@ -4,7 +4,7 @@ import type { PageParam } from '@/api';
|
||||
* 注销卡日志
|
||||
*/
|
||||
export interface ThinkCardDelLog {
|
||||
//
|
||||
//
|
||||
id?: number;
|
||||
// 操作用户
|
||||
userId?: number;
|
||||
|
||||
@@ -79,7 +79,9 @@ export async function removeThinkCardEditLog(id?: number) {
|
||||
/**
|
||||
* 批量删除IC卡编辑日志
|
||||
*/
|
||||
export async function removeBatchThinkCardEditLog(data: (number | undefined)[]) {
|
||||
export async function removeBatchThinkCardEditLog(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
THINK_API_URL + '/think/think-card-edit-log/batch',
|
||||
{
|
||||
|
||||
@@ -4,7 +4,7 @@ import type { PageParam } from '@/api';
|
||||
* IC卡编辑日志
|
||||
*/
|
||||
export interface ThinkCardEditLog {
|
||||
//
|
||||
//
|
||||
id?: number;
|
||||
// 操作类型:price=更新价格;card_type=卡种;count=变更次数;expire=有效期;
|
||||
type?: string;
|
||||
|
||||
@@ -107,7 +107,8 @@ export async function getThinkCardLog(id: number) {
|
||||
|
||||
export async function thinkCardLogExport(data: 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) {
|
||||
return res.data;
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import type { PageParam } from '@/api';
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
*/
|
||||
export interface ThinkCardUserLog {
|
||||
//
|
||||
//
|
||||
id?: number;
|
||||
// 会员卡类型:1年卡,2次卡,3月卡,4会员VIP,VIP充值卡
|
||||
type?: number;
|
||||
@@ -14,7 +14,7 @@ export interface ThinkCardUserLog {
|
||||
vipType?: string;
|
||||
// 统计金额(正是收入,负是冲抵(退卡后产生))
|
||||
price?: string;
|
||||
//
|
||||
//
|
||||
createTime?: number;
|
||||
// 虚拟卡ID
|
||||
usersVipId?: number;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { ThinkCardsBills, ThinkCardsBillsParam } from './model';
|
||||
import { THINK_API_URL } from "@/config/setting";
|
||||
import type { ThinkVipCardsBillsParam } from "@/api/think/thinkVipCardsBills/model";
|
||||
import { THINK_API_URL } from '@/config/setting';
|
||||
import type { ThinkVipCardsBillsParam } from '@/api/think/thinkVipCardsBills/model';
|
||||
|
||||
/**
|
||||
* 分页查询Vip卡每日账单
|
||||
@@ -35,7 +35,9 @@ export async function listThinkCardsBills(params?: ThinkCardsBillsParam) {
|
||||
}
|
||||
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>>(
|
||||
THINK_API_URL + '/think/think-cards-bills/total-amount',
|
||||
{
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import type { PageParam } from '@/api';
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
*/
|
||||
export interface ThinkCarousel {
|
||||
//
|
||||
//
|
||||
id?: number;
|
||||
// 轮播图标题
|
||||
title?: string;
|
||||
@@ -20,9 +20,9 @@ export interface ThinkCarousel {
|
||||
status?: string;
|
||||
// 类型:1资讯,2商城,3小程序
|
||||
type?: string;
|
||||
//
|
||||
//
|
||||
createTime?: number;
|
||||
//
|
||||
//
|
||||
updateTime?: number;
|
||||
}
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ import type { PageParam } from '@/api';
|
||||
* 教练表
|
||||
*/
|
||||
export interface ThinkCoach {
|
||||
//
|
||||
//
|
||||
id?: number;
|
||||
// 用户表ID
|
||||
uid?: number;
|
||||
|
||||
@@ -4,7 +4,7 @@ import type { PageParam } from '@/api';
|
||||
* 教练提现审核表
|
||||
*/
|
||||
export interface ThinkCoachCash {
|
||||
//
|
||||
//
|
||||
id?: number;
|
||||
// 教练ID
|
||||
cid?: number;
|
||||
|
||||
@@ -4,7 +4,7 @@ import type { PageParam } from '@/api';
|
||||
* 教练课程表
|
||||
*/
|
||||
export interface ThinkCoachCur {
|
||||
//
|
||||
//
|
||||
id?: number;
|
||||
// 教练ID
|
||||
cid?: number;
|
||||
|
||||
@@ -4,7 +4,7 @@ import type { PageParam } from '@/api';
|
||||
* 教练组相册
|
||||
*/
|
||||
export interface ThinkCoachImgs {
|
||||
//
|
||||
//
|
||||
id?: number;
|
||||
// 图片地址
|
||||
path?: string;
|
||||
|
||||
@@ -4,7 +4,7 @@ import type { PageParam } from '@/api';
|
||||
* 教练组订单
|
||||
*/
|
||||
export interface ThinkCoachOrder {
|
||||
//
|
||||
//
|
||||
id?: number;
|
||||
// 场馆ID
|
||||
sid?: number;
|
||||
|
||||
@@ -4,7 +4,7 @@ import type { PageParam } from '@/api';
|
||||
* 教练组预约时间表
|
||||
*/
|
||||
export interface ThinkCoachTime {
|
||||
//
|
||||
//
|
||||
id?: number;
|
||||
// 教练ID
|
||||
cid?: number;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type { PageParam } from '@/api';
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
*/
|
||||
export interface ThinkConfig {
|
||||
// 配置ID
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import type { PageParam } from '@/api';
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
*/
|
||||
export interface ThinkCoupon {
|
||||
//
|
||||
//
|
||||
id?: number;
|
||||
// 优惠券名称
|
||||
name?: string;
|
||||
@@ -36,7 +36,7 @@ export interface ThinkCoupon {
|
||||
status?: string;
|
||||
// 创建时间
|
||||
createTime?: number;
|
||||
//
|
||||
//
|
||||
updateTime?: number;
|
||||
// 0 是通用,1是仅线下
|
||||
isOffline?: string;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
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>>(
|
||||
THINK_API_URL + '/think/think-deposit-item/batch',
|
||||
{
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import type { PageParam } from '@/api';
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
*/
|
||||
export interface ThinkField {
|
||||
//
|
||||
//
|
||||
id?: number;
|
||||
// 场地名称
|
||||
name?: string;
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user