新增:批量导入商品功能

This commit is contained in:
2025-12-30 17:18:20 +08:00
parent a6cd0c3d52
commit f4e6705f3f
791 changed files with 24581 additions and 13909 deletions

View File

@@ -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;

View File

@@ -4,7 +4,7 @@ import type { PageParam } from '@/api';
* 后台金额操作变动
*/
export interface ThinkAdminLog {
//
//
id?: number;
// 用户ID
userid?: number;

View File

@@ -1,20 +1,20 @@
import type { PageParam } from '@/api';
/**
*
*
*/
export interface ThinkAuthGroup {
//
//
id?: number;
//
//
title?: string;
//
//
status?: string;
//
//
rules?: string;
//
//
createTime?: number;
//
//
updateTime?: number;
}

View File

@@ -1,12 +1,12 @@
import type { PageParam } from '@/api';
/**
*
*
*/
export interface ThinkAuthGroupAccess {
//
//
uid?: number;
//
//
groupId?: number;
}

View File

@@ -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;
}

View File

@@ -4,7 +4,7 @@ import type { PageParam } from '@/api';
* 银行卡列表
*/
export interface ThinkBankCard {
//
//
id?: number;
// 用户ID
uid?: number;

View File

@@ -4,7 +4,7 @@ import type { PageParam } from '@/api';
* IC卡绑定微信日志表
*/
export interface ThinkCardBindLog {
//
//
id?: number;
// 参数
param?: string;

View File

@@ -4,7 +4,7 @@ import type { PageParam } from '@/api';
* 注销卡日志
*/
export interface ThinkCardDelLog {
//
//
id?: number;
// 操作用户
userId?: number;

View File

@@ -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',
{

View File

@@ -4,7 +4,7 @@ import type { PageParam } from '@/api';
* IC卡编辑日志
*/
export interface ThinkCardEditLog {
//
//
id?: number;
// 操作类型price=更新价格;card_type=卡种;count=变更次数;expire=有效期;
type?: string;

View File

@@ -1,10 +1,10 @@
import type { PageParam } from '@/api';
/**
*
*
*/
export interface ThinkCardUserLog {
//
//
id?: number;
// 会员卡类型1年卡2次卡3月卡4会员VIPVIP充值卡
type?: number;
@@ -14,7 +14,7 @@ export interface ThinkCardUserLog {
vipType?: string;
// 统计金额(正是收入,负是冲抵(退卡后产生))
price?: string;
//
//
createTime?: number;
// 虚拟卡ID
usersVipId?: number;

View File

@@ -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;
}

View File

@@ -4,7 +4,7 @@ import type { PageParam } from '@/api';
* 教练表
*/
export interface ThinkCoach {
//
//
id?: number;
// 用户表ID
uid?: number;

View File

@@ -4,7 +4,7 @@ import type { PageParam } from '@/api';
* 教练提现审核表
*/
export interface ThinkCoachCash {
//
//
id?: number;
// 教练ID
cid?: number;

View File

@@ -4,7 +4,7 @@ import type { PageParam } from '@/api';
* 教练课程表
*/
export interface ThinkCoachCur {
//
//
id?: number;
// 教练ID
cid?: number;

View File

@@ -4,7 +4,7 @@ import type { PageParam } from '@/api';
* 教练组相册
*/
export interface ThinkCoachImgs {
//
//
id?: number;
// 图片地址
path?: string;

View File

@@ -4,7 +4,7 @@ import type { PageParam } from '@/api';
* 教练组订单
*/
export interface ThinkCoachOrder {
//
//
id?: number;
// 场馆ID
sid?: number;

View File

@@ -4,7 +4,7 @@ import type { PageParam } from '@/api';
* 教练组预约时间表
*/
export interface ThinkCoachTime {
//
//
id?: number;
// 教练ID
cid?: number;

View File

@@ -1,7 +1,7 @@
import type { PageParam } from '@/api';
/**
*
*
*/
export interface ThinkConfig {
// 配置ID

View File

@@ -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;

View File

@@ -1,10 +1,10 @@
import type { PageParam } from '@/api';
/**
*
*
*/
export interface ThinkDeposit {
//
//
id?: number;
// 1收押金、2退押金
type?: string;
@@ -20,13 +20,13 @@ export interface ThinkDeposit {
money?: string;
// 1已付2已退
status?: string;
//
//
info?: string;
// 管理员id
aid?: number;
//
//
createTime?: number;
//
//
updateTime?: number;
}

View File

@@ -1,10 +1,10 @@
import type { PageParam } from '@/api';
/**
*
*
*/
export interface ThinkField {
//
//
id?: number;
// 场地名称
name?: string;

View File

@@ -1,10 +1,10 @@
import type { PageParam } from '@/api';
/**
*
*
*/
export interface ThinkGate {
//
//
id?: string;
// 闸机名称
gateName?: string;

View File

@@ -79,7 +79,9 @@ export async function removeThinkGatePassreord(id?: number) {
/**
* 批量删除
*/
export async function removeBatchThinkGatePassreord(data: (number | undefined)[]) {
export async function removeBatchThinkGatePassreord(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>(
THINK_API_URL + '/think/think-gate-passreord/batch',
{

View File

@@ -1,10 +1,10 @@
import type { PageParam } from '@/api';
/**
*
*
*/
export interface ThinkGatePassreord {
//
//
id?: string;
// 闸机id
gateId?: string;
@@ -30,10 +30,9 @@ export interface ThinkGatePassreord {
updateUser?: string;
// 数据逻辑删除状态 0:未删除 1 :已删除; 物理删除不用考虑该字段 作为系统设计预留字段
deleteStatus?: string;
//
//
siteId?: number;
@TableField("consume_Money")
// 本次消费金额
// 本次消费金额
consumeMoney?: string;
}

View File

@@ -1,10 +1,10 @@
import type { PageParam } from '@/api';
/**
*
*
*/
export interface ThinkGoods {
//
//
goodsId?: number;
// 关联商品分类id
cid?: number;
@@ -42,9 +42,9 @@ export interface ThinkGoods {
isIntegral?: string;
// 收货方式1自提2快递3自提/快递
shType?: string;
//
//
createTime?: number;
//
//
updateTime?: number;
}

View File

@@ -79,7 +79,9 @@ export async function removeThinkGoodsCategory(id?: number) {
/**
* 批量删除
*/
export async function removeBatchThinkGoodsCategory(data: (number | undefined)[]) {
export async function removeBatchThinkGoodsCategory(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>(
THINK_API_URL + '/think/think-goods-category/batch',
{

View File

@@ -1,10 +1,10 @@
import type { PageParam } from '@/api';
/**
*
*
*/
export interface ThinkGoodsCategory {
//
//
id?: number;
// 上级id
pid?: number;
@@ -14,9 +14,9 @@ export interface ThinkGoodsCategory {
image?: string;
// 排序
sort?: number;
//
//
createTime?: number;
//
//
updateTime?: number;
}

View File

@@ -1,10 +1,10 @@
import type { PageParam } from '@/api';
/**
*
*
*/
export interface ThinkGoodsImage {
//
//
id?: number;
// 图片地址
path?: string;

View File

@@ -1,10 +1,10 @@
import type { PageParam } from '@/api';
/**
*
*
*/
export interface ThinkGoodsOrder {
//
//
id?: number;
// 订单号
orderNum?: string;
@@ -36,7 +36,7 @@ export interface ThinkGoodsOrder {
deliveryTime?: number;
// 下单时间
createTime?: number;
//
//
updateTime?: number;
// 支付时间
payTime?: number;

View File

@@ -6,7 +6,9 @@ import { THINK_API_URL } from '@/config/setting';
/**
* 分页查询
*/
export async function pageThinkGoodsOrderInfo(params: ThinkGoodsOrderInfoParam) {
export async function pageThinkGoodsOrderInfo(
params: ThinkGoodsOrderInfoParam
) {
const res = await request.get<ApiResult<PageResult<ThinkGoodsOrderInfo>>>(
THINK_API_URL + '/think/think-goods-order-info/page',
{
@@ -22,7 +24,9 @@ export async function pageThinkGoodsOrderInfo(params: ThinkGoodsOrderInfoParam)
/**
* 查询列表
*/
export async function listThinkGoodsOrderInfo(params?: ThinkGoodsOrderInfoParam) {
export async function listThinkGoodsOrderInfo(
params?: ThinkGoodsOrderInfoParam
) {
const res = await request.get<ApiResult<ThinkGoodsOrderInfo[]>>(
THINK_API_URL + '/think/think-goods-order-info',
{
@@ -79,7 +83,9 @@ export async function removeThinkGoodsOrderInfo(id?: number) {
/**
* 批量删除
*/
export async function removeBatchThinkGoodsOrderInfo(data: (number | undefined)[]) {
export async function removeBatchThinkGoodsOrderInfo(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>(
THINK_API_URL + '/think/think-goods-order-info/batch',
{

View File

@@ -1,10 +1,10 @@
import type { PageParam } from '@/api';
/**
*
*
*/
export interface ThinkGoodsOrderInfo {
//
//
id?: number;
// 商品id
goodsId?: number;
@@ -22,7 +22,7 @@ export interface ThinkGoodsOrderInfo {
integral?: string;
// 商品sku记录索引 (由规格id组成)
goodsSkuId?: string;
//
//
goodsAttr?: string;
}

View File

@@ -79,7 +79,9 @@ export async function removeThinkGoodsSpecRel(id?: number) {
/**
* 批量删除商品与规格值关系记录表
*/
export async function removeBatchThinkGoodsSpecRel(data: (number | undefined)[]) {
export async function removeBatchThinkGoodsSpecRel(
data: (number | undefined)[]
) {
const res = await request.delete<ApiResult<unknown>>(
THINK_API_URL + '/think/think-goods-spec-rel/batch',
{

View File

@@ -1,10 +1,10 @@
import type { PageParam } from '@/api';
/**
*
*
*/
export interface ThinkIntegral {
//
//
id?: number;
// 用户id
uid?: number;

View File

@@ -1,10 +1,10 @@
import type { PageParam } from '@/api';
/**
*
*
*/
export interface ThinkIntegralLog {
//
//
id?: number;
// 场馆订单号
orderNum?: string;

View File

@@ -1,10 +1,10 @@
import type { PageParam } from '@/api';
/**
*
*
*/
export interface ThinkInvoiceRequestLog {
//
//
id?: number;
// 类型order=订场开票VIP=VIP购卡开票IC=IC卡购卡开票
type?: string;

View File

@@ -1,10 +1,10 @@
import type { PageParam } from '@/api';
/**
*
*
*/
export interface ThinkLog {
//
//
logId?: number;
// 用户ID
adminId?: number;
@@ -18,13 +18,13 @@ export interface ThinkLog {
status?: string;
// 添加时间
addTime?: number;
// 0:操作日志;1:登录日志;2:定时任务
// 0:操作日志;1:登录日志;2:定时任务
logType?: string;
// 事务类型 0查询2添加4修改8删除 16 导入 32 导出 当方法中存在 多种类型时候使用 或(|)操作
// 事务类型 0查询2添加4修改8删除 16 导入 32 导出 当方法中存在 多种类型时候使用 或(|)操作
operateType?: string;
// 执行事务的方法名称
// 执行事务的方法名称
method?: string;
// 执行事务的方法的参数
// 执行事务的方法的参数
params?: string;
}

View File

@@ -4,7 +4,7 @@ import type { PageParam } from '@/api';
* 消息表
*/
export interface ThinkMessage {
//
//
id?: number;
// 消息类型
t?: string;

View File

@@ -1,10 +1,10 @@
import type { PageParam } from '@/api';
/**
*
*
*/
export interface ThinkMoneyLog {
//
//
id?: number;
// 场馆订单号
orderNum?: string;

View File

@@ -1,10 +1,10 @@
import type { PageParam } from '@/api';
/**
*
*
*/
export interface ThinkNews {
//
//
id?: number;
// 关联分类id
cid?: number;
@@ -24,9 +24,9 @@ export interface ThinkNews {
isAlert?: string;
// 失效时间
expireTime?: string;
//
//
createTime?: number;
//
//
updateTime?: number;
// 状态1正常,2下架
status?: string;

View File

@@ -1,10 +1,10 @@
import type { PageParam } from '@/api';
/**
*
*
*/
export interface ThinkNewsCategory {
//
//
id?: number;
// 上级id
pid?: number;
@@ -14,9 +14,9 @@ export interface ThinkNewsCategory {
image?: string;
// 排序
sort?: number;
//
//
createTime?: number;
//
//
updateTime?: number;
}

View File

@@ -4,7 +4,7 @@ import type { PageParam } from '@/api';
* 旧运动时卡
*/
export interface ThinkOldCard {
//
//
id?: number;
// 卡类型
cardType?: string;

View File

@@ -1,10 +1,10 @@
import type { PageParam } from '@/api';
/**
*
*
*/
export interface ThinkOrderInfo {
//
//
id?: number;
// 关联订单表id
oid?: number;

View File

@@ -1,10 +1,10 @@
import type { PageParam } from '@/api';
/**
*
*
*/
export interface ThinkOrderInfoLog {
//
//
id?: number;
// 关联订单表id
oid?: number;

View File

@@ -1,10 +1,10 @@
import type { PageParam } from '@/api';
/**
*
*
*/
export interface ThinkOrderLog {
//
//
id?: number;
// 参数
json?: string;

View File

@@ -4,7 +4,7 @@ import type { PageParam } from '@/api';
* 微信退款记录
*/
export interface ThinkOrderRefundLog {
//
//
int?: number;
// 用户ID
uid?: number;

View File

@@ -4,7 +4,7 @@ import type { PageParam } from '@/api';
* 支付日志
*/
export interface ThinkPayLog {
//
//
id?: number;
// 类型
type?: string;

View File

@@ -1,14 +1,14 @@
import type { PageParam } from '@/api';
/**
*
*
*/
export interface ThinkQrcode {
// 主键
id?: string;
// 二维码本身的值,大小不确定。可能为json链接文本
// 二维码本身的值,大小不确定。可能为json链接文本
codeValue?: string;
// 关联的用户id默认用户为uuid 即使为数字 转为字符保存
// 关联的用户id默认用户为uuid 即使为数字 转为字符保存
codeRelUser?: string;
// 关联的用户类型 wechat: 微信用户 ,sys:系统用户other:其他
userType?: string;
@@ -22,7 +22,7 @@ export interface ThinkQrcode {
codeUsabaleNumber?: number;
// 二维码已经使用次数,可以超过可使用次数,不想建立一个记录表,用这个字段进行统计
codeUsNumber?: number;
// 二维码类型 valve:阀门;other:其他 ,后期继续添加
// 二维码类型 valve:阀门;other:其他 ,后期继续添加
codeType?: string;
// 二维码实际转发地址 预留字段 可能该系统不一定用到
codeForward?: string;

View File

@@ -1,10 +1,10 @@
import type { PageParam } from '@/api';
/**
*
*
*/
export interface ThinkRechargeLog {
//
//
id?: number;
// 关联users表id
uid?: number;
@@ -16,11 +16,11 @@ export interface ThinkRechargeLog {
money?: string;
// 1已支付2未支付
status?: string;
//
//
createTime?: number;
//
//
vid?: number;
//
//
isInvoice?: number;
// 对账情况1=已对账2=未对账3=已对账金额对不上4=未查询到该订单
checkBill?: number;

View File

@@ -1,10 +1,10 @@
import type { PageParam } from '@/api';
/**
*
*
*/
export interface ThinkSignup {
//
//
id?: number;
// 关联分类id
cid?: number;
@@ -32,9 +32,9 @@ export interface ThinkSignup {
views?: number;
// 是否显示1显示2不显示
isShow?: string;
//
//
createTime?: number;
//
//
updateTime?: number;
}

View File

@@ -1,10 +1,10 @@
import type { PageParam } from '@/api';
/**
*
*
*/
export interface ThinkSignupCategory {
//
//
id?: number;
// 上级id
pid?: number;
@@ -14,9 +14,9 @@ export interface ThinkSignupCategory {
image?: string;
// 排序
sort?: number;
//
//
createTime?: number;
//
//
updateTime?: number;
}

View File

@@ -1,10 +1,10 @@
import type { PageParam } from '@/api';
/**
*
*
*/
export interface ThinkSignupLists {
//
//
id?: number;
// 微信订单号
wechatOrder?: string;
@@ -20,11 +20,11 @@ export interface ThinkSignupLists {
price?: string;
// 是否已付款1已付款2未付款3无需付款
status?: string;
//
//
createTime?: number;
//
//
age?: number;
//
//
mun?: number;
}

View File

@@ -1,10 +1,10 @@
import type { PageParam } from '@/api';
/**
*
*
*/
export interface ThinkSiteImgs {
//
//
id?: number;
// 图片地址
path?: string;

View File

@@ -1,10 +1,10 @@
import type { PageParam } from '@/api';
/**
*
*
*/
export interface ThinkUserBind {
//
//
id?: number;
// 旧用户id
oldUserId?: number;

View File

@@ -1,10 +1,10 @@
import type { PageParam } from '@/api';
/**
*
*
*/
export interface ThinkUsers {
//
//
id?: number;
// 用户唯一小程序id
openId?: string;
@@ -30,9 +30,9 @@ export interface ThinkUsers {
money?: string;
// 注册时间
createTime?: number;
//
//
idcard?: string;
//
//
truename?: string;
// 是否管理员1是2否
isAdmin?: string;

View File

@@ -1,10 +1,10 @@
import type { PageParam } from '@/api';
/**
*
*
*/
export interface ThinkUsersAddress {
//
//
id?: number;
// 姓名
name?: string;
@@ -18,9 +18,9 @@ export interface ThinkUsersAddress {
uid?: number;
// 1默认地址2不是默认地址
isDefault?: string;
//
//
createTime?: number;
//
//
updateTime?: number;
}

View File

@@ -1,10 +1,10 @@
import type { PageParam } from '@/api';
/**
*
*
*/
export interface ThinkUsersCoupon {
//
//
id?: number;
// 微信订单号
wechatOrder?: string;

View File

@@ -4,7 +4,7 @@ import type { PageParam } from '@/api';
* 紧急联系人表
*/
export interface ThinkUsersEmergency {
//
//
id?: number;
// 用户id
uid?: number;

View File

@@ -1,10 +1,10 @@
import type { PageParam } from '@/api';
/**
*
*
*/
export interface ThinkUsersLog {
//
//
id?: number;
// 用户ID
uid?: number;

View File

@@ -4,7 +4,7 @@ import type { PageParam } from '@/api';
* VIP卡退卡日志
*/
export interface ThinkUsersVipCancleLog {
//
//
id?: number;
// vip卡id
dataId?: number;

View File

@@ -4,7 +4,7 @@ import type { PageParam } from '@/api';
* 微信订单表-对账用
*/
export interface ThinkWechatBill {
//
//
id?: number;
// 订单时间
orderTime?: string;

View File

@@ -4,7 +4,7 @@ import type { PageParam } from '@/api';
* 微信订单对账日志
*/
export interface ThinkWechatBillLog {
//
//
id?: number;
// 表id
tableId?: number;

View File

@@ -1,10 +1,10 @@
import type { PageParam } from '@/api';
/**
*
*
*/
export interface ThinkWechatDeposit {
//
//
id?: number;
// 订单id
oid?: number;
@@ -14,7 +14,7 @@ export interface ThinkWechatDeposit {
orderNum?: string;
// 付款订单号
wechatOrder?: string;
// 退款订单号
// 退款订单号
wechatReturn?: string;
// 场馆名称
siteName?: string;
@@ -28,7 +28,7 @@ export interface ThinkWechatDeposit {
price?: string;
// 押金状态1已付款2未付款已退押金
status?: string;
//
//
createTime?: number;
}