新增:批量导入商品功能
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
VITE_APP_NAME=后台管理系统
|
||||
VITE_SOCKET_URL=wss://shop-server-api.ggsxiangan.com
|
||||
VITE_THINK_URL=https://server.websoft.top/api
|
||||
#VITE_API_URL=https://shop-api.ggsxiangan.com/api
|
||||
VITE_API_URL=http://127.0.0.1:9013/api
|
||||
#VITE_API_URL=https://clinic-api.websoft.top/api
|
||||
VITE_API_URL=/api
|
||||
VITE_PROXY_TARGET=http://127.0.0.1:9013
|
||||
|
||||
VITE_SERVER_URL=https://server.websoft.top/api
|
||||
|
||||
6371
pnpm-lock.yaml
generated
Normal file
6371
pnpm-lock.yaml
generated
Normal file
File diff suppressed because it is too large
Load Diff
7
pnpm-workspace.yaml
Normal file
7
pnpm-workspace.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
ignoredBuiltDependencies:
|
||||
- core-js
|
||||
- es5-ext
|
||||
- esbuild
|
||||
- less
|
||||
- vue-demi
|
||||
- vue-echarts
|
||||
@@ -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;
|
||||
|
||||
@@ -4,9 +4,9 @@ import type { PageParam } from '@/api';
|
||||
* 病例列表
|
||||
*/
|
||||
export interface Case {
|
||||
//
|
||||
//
|
||||
id?: number;
|
||||
//
|
||||
//
|
||||
userId?: number;
|
||||
// 医生用户id
|
||||
doctorUserId?: number;
|
||||
|
||||
@@ -78,7 +78,9 @@ export async function removeClinicAppointment(id?: number) {
|
||||
/**
|
||||
* 批量删除挂号
|
||||
*/
|
||||
export async function removeBatchClinicAppointment(data: (number | undefined)[]) {
|
||||
export async function removeBatchClinicAppointment(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
'/clinic/clinic-appointment/batch',
|
||||
{
|
||||
|
||||
@@ -4,9 +4,9 @@ import type { PageParam } from '@/api';
|
||||
* 病例列表
|
||||
*/
|
||||
export interface ClinicCase {
|
||||
//
|
||||
//
|
||||
id?: number;
|
||||
//
|
||||
//
|
||||
userId?: number;
|
||||
// 医生用户id
|
||||
doctorUserId?: number;
|
||||
|
||||
@@ -78,7 +78,9 @@ export async function removeClinicDoctorApply(id?: number) {
|
||||
/**
|
||||
* 批量删除医生入驻申请
|
||||
*/
|
||||
export async function removeBatchClinicDoctorApply(data: (number | undefined)[]) {
|
||||
export async function removeBatchClinicDoctorApply(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
'/clinic/clinic-doctor-apply/batch',
|
||||
{
|
||||
|
||||
@@ -1,17 +1,21 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { ClinicDoctorMedicalRecord, ClinicDoctorMedicalRecordParam } from './model';
|
||||
import type {
|
||||
ClinicDoctorMedicalRecord,
|
||||
ClinicDoctorMedicalRecordParam
|
||||
} from './model';
|
||||
|
||||
/**
|
||||
* 分页查询医疗记录
|
||||
*/
|
||||
export async function pageClinicDoctorMedicalRecord(params: ClinicDoctorMedicalRecordParam) {
|
||||
const res = await request.get<ApiResult<PageResult<ClinicDoctorMedicalRecord>>>(
|
||||
'/clinic/clinic-doctor-medical-record/page',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
export async function pageClinicDoctorMedicalRecord(
|
||||
params: ClinicDoctorMedicalRecordParam
|
||||
) {
|
||||
const res = await request.get<
|
||||
ApiResult<PageResult<ClinicDoctorMedicalRecord>>
|
||||
>('/clinic/clinic-doctor-medical-record/page', {
|
||||
params
|
||||
});
|
||||
if (res.data.code === 0) {
|
||||
return res.data.data;
|
||||
}
|
||||
@@ -21,7 +25,9 @@ export async function pageClinicDoctorMedicalRecord(params: ClinicDoctorMedicalR
|
||||
/**
|
||||
* 查询医疗记录列表
|
||||
*/
|
||||
export async function listClinicDoctorMedicalRecord(params?: ClinicDoctorMedicalRecordParam) {
|
||||
export async function listClinicDoctorMedicalRecord(
|
||||
params?: ClinicDoctorMedicalRecordParam
|
||||
) {
|
||||
const res = await request.get<ApiResult<ClinicDoctorMedicalRecord[]>>(
|
||||
'/clinic/clinic-doctor-medical-record',
|
||||
{
|
||||
@@ -37,7 +43,9 @@ export async function listClinicDoctorMedicalRecord(params?: ClinicDoctorMedical
|
||||
/**
|
||||
* 添加医疗记录
|
||||
*/
|
||||
export async function addClinicDoctorMedicalRecord(data: ClinicDoctorMedicalRecord) {
|
||||
export async function addClinicDoctorMedicalRecord(
|
||||
data: ClinicDoctorMedicalRecord
|
||||
) {
|
||||
const res = await request.post<ApiResult<unknown>>(
|
||||
'/clinic/clinic-doctor-medical-record',
|
||||
data
|
||||
@@ -51,7 +59,9 @@ export async function addClinicDoctorMedicalRecord(data: ClinicDoctorMedicalReco
|
||||
/**
|
||||
* 修改医疗记录
|
||||
*/
|
||||
export async function updateClinicDoctorMedicalRecord(data: ClinicDoctorMedicalRecord) {
|
||||
export async function updateClinicDoctorMedicalRecord(
|
||||
data: ClinicDoctorMedicalRecord
|
||||
) {
|
||||
const res = await request.put<ApiResult<unknown>>(
|
||||
'/clinic/clinic-doctor-medical-record',
|
||||
data
|
||||
@@ -78,7 +88,9 @@ export async function removeClinicDoctorMedicalRecord(id?: number) {
|
||||
/**
|
||||
* 批量删除医疗记录
|
||||
*/
|
||||
export async function removeBatchClinicDoctorMedicalRecord(data: (number | undefined)[]) {
|
||||
export async function removeBatchClinicDoctorMedicalRecord(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
'/clinic/clinic-doctor-medical-record/batch',
|
||||
{
|
||||
|
||||
@@ -78,7 +78,9 @@ export async function removeClinicDoctorUser(id?: number) {
|
||||
/**
|
||||
* 批量删除分销商用户记录表
|
||||
*/
|
||||
export async function removeBatchClinicDoctorUser(data: (number | undefined)[]) {
|
||||
export async function removeBatchClinicDoctorUser(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
'/clinic/clinic-doctor-user/batch',
|
||||
{
|
||||
|
||||
@@ -4,7 +4,7 @@ import type { PageParam } from '@/api';
|
||||
* 诊所列表
|
||||
*/
|
||||
export interface ClinicList {
|
||||
//
|
||||
//
|
||||
id?: number;
|
||||
// 名称
|
||||
name?: string;
|
||||
@@ -38,9 +38,9 @@ export interface ClinicList {
|
||||
updateTime?: string;
|
||||
// 创建时间
|
||||
createTime?: string;
|
||||
//
|
||||
//
|
||||
lat?: string;
|
||||
//
|
||||
//
|
||||
lng?: string;
|
||||
}
|
||||
|
||||
|
||||
@@ -5,7 +5,9 @@ import type { ClinicMedicalHistory, ClinicMedicalHistoryParam } from './model';
|
||||
/**
|
||||
* 分页查询病例
|
||||
*/
|
||||
export async function pageClinicMedicalHistory(params: ClinicMedicalHistoryParam) {
|
||||
export async function pageClinicMedicalHistory(
|
||||
params: ClinicMedicalHistoryParam
|
||||
) {
|
||||
const res = await request.get<ApiResult<PageResult<ClinicMedicalHistory>>>(
|
||||
'/clinic/clinic-medical-history/page',
|
||||
{
|
||||
@@ -21,7 +23,9 @@ export async function pageClinicMedicalHistory(params: ClinicMedicalHistoryParam
|
||||
/**
|
||||
* 查询病例列表
|
||||
*/
|
||||
export async function listClinicMedicalHistory(params?: ClinicMedicalHistoryParam) {
|
||||
export async function listClinicMedicalHistory(
|
||||
params?: ClinicMedicalHistoryParam
|
||||
) {
|
||||
const res = await request.get<ApiResult<ClinicMedicalHistory[]>>(
|
||||
'/clinic/clinic-medical-history',
|
||||
{
|
||||
@@ -78,7 +82,9 @@ export async function removeClinicMedicalHistory(id?: number) {
|
||||
/**
|
||||
* 批量删除病例
|
||||
*/
|
||||
export async function removeBatchClinicMedicalHistory(data: (number | undefined)[]) {
|
||||
export async function removeBatchClinicMedicalHistory(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
'/clinic/clinic-medical-history/batch',
|
||||
{
|
||||
|
||||
@@ -5,7 +5,9 @@ import type { ClinicMedicineInout, ClinicMedicineInoutParam } from './model';
|
||||
/**
|
||||
* 分页查询出入库
|
||||
*/
|
||||
export async function pageClinicMedicineInout(params: ClinicMedicineInoutParam) {
|
||||
export async function pageClinicMedicineInout(
|
||||
params: ClinicMedicineInoutParam
|
||||
) {
|
||||
const res = await request.get<ApiResult<PageResult<ClinicMedicineInout>>>(
|
||||
'/clinic/clinic-medicine-inout/page',
|
||||
{
|
||||
@@ -21,7 +23,9 @@ export async function pageClinicMedicineInout(params: ClinicMedicineInoutParam)
|
||||
/**
|
||||
* 查询出入库列表
|
||||
*/
|
||||
export async function listClinicMedicineInout(params?: ClinicMedicineInoutParam) {
|
||||
export async function listClinicMedicineInout(
|
||||
params?: ClinicMedicineInoutParam
|
||||
) {
|
||||
const res = await request.get<ApiResult<ClinicMedicineInout[]>>(
|
||||
'/clinic/clinic-medicine-inout',
|
||||
{
|
||||
@@ -78,7 +82,9 @@ export async function removeClinicMedicineInout(id?: number) {
|
||||
/**
|
||||
* 批量删除出入库
|
||||
*/
|
||||
export async function removeBatchClinicMedicineInout(data: (number | undefined)[]) {
|
||||
export async function removeBatchClinicMedicineInout(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
'/clinic/clinic-medicine-inout/batch',
|
||||
{
|
||||
|
||||
@@ -5,7 +5,9 @@ import type { ClinicMedicineStock, ClinicMedicineStockParam } from './model';
|
||||
/**
|
||||
* 分页查询药品库存
|
||||
*/
|
||||
export async function pageClinicMedicineStock(params: ClinicMedicineStockParam) {
|
||||
export async function pageClinicMedicineStock(
|
||||
params: ClinicMedicineStockParam
|
||||
) {
|
||||
const res = await request.get<ApiResult<PageResult<ClinicMedicineStock>>>(
|
||||
'/clinic/clinic-medicine-stock/page',
|
||||
{
|
||||
@@ -21,7 +23,9 @@ export async function pageClinicMedicineStock(params: ClinicMedicineStockParam)
|
||||
/**
|
||||
* 查询药品库存列表
|
||||
*/
|
||||
export async function listClinicMedicineStock(params?: ClinicMedicineStockParam) {
|
||||
export async function listClinicMedicineStock(
|
||||
params?: ClinicMedicineStockParam
|
||||
) {
|
||||
const res = await request.get<ApiResult<ClinicMedicineStock[]>>(
|
||||
'/clinic/clinic-medicine-stock',
|
||||
{
|
||||
@@ -78,7 +82,9 @@ export async function removeClinicMedicineStock(id?: number) {
|
||||
/**
|
||||
* 批量删除药品库存
|
||||
*/
|
||||
export async function removeBatchClinicMedicineStock(data: (number | undefined)[]) {
|
||||
export async function removeBatchClinicMedicineStock(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
'/clinic/clinic-medicine-stock/batch',
|
||||
{
|
||||
|
||||
@@ -42,9 +42,9 @@ export interface ClinicOrder {
|
||||
addressId?: number;
|
||||
// 收货地址
|
||||
address?: string;
|
||||
//
|
||||
//
|
||||
addressLat?: string;
|
||||
//
|
||||
//
|
||||
addressLng?: string;
|
||||
// 买家留言
|
||||
buyerRemarks?: string;
|
||||
|
||||
@@ -78,7 +78,9 @@ export async function removeClinicPatientUser(id?: number) {
|
||||
/**
|
||||
* 批量删除患者
|
||||
*/
|
||||
export async function removeBatchClinicPatientUser(data: (number | undefined)[]) {
|
||||
export async function removeBatchClinicPatientUser(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
'/clinic/clinic-patient-user/batch',
|
||||
{
|
||||
|
||||
@@ -84,7 +84,9 @@ export async function removeClinicPrescription(id?: number) {
|
||||
* 批量删除处方主表
|
||||
|
||||
*/
|
||||
export async function removeBatchClinicPrescription(data: (number | undefined)[]) {
|
||||
export async function removeBatchClinicPrescription(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
'/clinic/clinic-prescription/batch',
|
||||
{
|
||||
|
||||
@@ -1,12 +1,17 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { ClinicPrescriptionItem, ClinicPrescriptionItemParam } from './model';
|
||||
import type {
|
||||
ClinicPrescriptionItem,
|
||||
ClinicPrescriptionItemParam
|
||||
} from './model';
|
||||
|
||||
/**
|
||||
* 分页查询处方明细表
|
||||
|
||||
*/
|
||||
export async function pageClinicPrescriptionItem(params: ClinicPrescriptionItemParam) {
|
||||
export async function pageClinicPrescriptionItem(
|
||||
params: ClinicPrescriptionItemParam
|
||||
) {
|
||||
const res = await request.get<ApiResult<PageResult<ClinicPrescriptionItem>>>(
|
||||
'/clinic/clinic-prescription-item/page',
|
||||
{
|
||||
@@ -23,7 +28,9 @@ export async function pageClinicPrescriptionItem(params: ClinicPrescriptionItemP
|
||||
* 查询处方明细表
|
||||
列表
|
||||
*/
|
||||
export async function listClinicPrescriptionItem(params?: ClinicPrescriptionItemParam) {
|
||||
export async function listClinicPrescriptionItem(
|
||||
params?: ClinicPrescriptionItemParam
|
||||
) {
|
||||
const res = await request.get<ApiResult<ClinicPrescriptionItem[]>>(
|
||||
'/clinic/clinic-prescription-item',
|
||||
{
|
||||
@@ -55,7 +62,9 @@ export async function addClinicPrescriptionItem(data: ClinicPrescriptionItem) {
|
||||
* 修改处方明细表
|
||||
|
||||
*/
|
||||
export async function updateClinicPrescriptionItem(data: ClinicPrescriptionItem) {
|
||||
export async function updateClinicPrescriptionItem(
|
||||
data: ClinicPrescriptionItem
|
||||
) {
|
||||
const res = await request.put<ApiResult<unknown>>(
|
||||
'/clinic/clinic-prescription-item',
|
||||
data
|
||||
@@ -84,7 +93,9 @@ export async function removeClinicPrescriptionItem(id?: number) {
|
||||
* 批量删除处方明细表
|
||||
|
||||
*/
|
||||
export async function removeBatchClinicPrescriptionItem(data: (number | undefined)[]) {
|
||||
export async function removeBatchClinicPrescriptionItem(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
'/clinic/clinic-prescription-item/batch',
|
||||
{
|
||||
|
||||
@@ -78,7 +78,9 @@ export async function removeClinicVisitRecord(id?: number) {
|
||||
/**
|
||||
* 批量删除病例
|
||||
*/
|
||||
export async function removeBatchClinicVisitRecord(data: (number | undefined)[]) {
|
||||
export async function removeBatchClinicVisitRecord(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
'/clinic/clinic-visit-record/batch',
|
||||
{
|
||||
|
||||
@@ -85,7 +85,9 @@ export async function removePrescriptionOrder(id?: number) {
|
||||
* 批量删除处方主表
|
||||
|
||||
*/
|
||||
export async function removeBatchPrescriptionOrder(data: (number | undefined)[]) {
|
||||
export async function removeBatchPrescriptionOrder(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/clinic/prescription-order/batch',
|
||||
{
|
||||
|
||||
@@ -7,13 +7,13 @@ import type { PageParam } from '@/api';
|
||||
export interface PrescriptionOrder {
|
||||
// 主键ID
|
||||
id?: number;
|
||||
//
|
||||
//
|
||||
clinicId?: number;
|
||||
// 患者
|
||||
userId?: number;
|
||||
// 医生
|
||||
doctorId?: number;
|
||||
//
|
||||
//
|
||||
orderId?: number;
|
||||
// 订单编号
|
||||
orderNo?: string;
|
||||
|
||||
@@ -1,13 +1,18 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { PrescriptionOrderItem, PrescriptionOrderItemParam } from './model';
|
||||
import type {
|
||||
PrescriptionOrderItem,
|
||||
PrescriptionOrderItemParam
|
||||
} from './model';
|
||||
import { MODULES_API_URL } from '@/config/setting';
|
||||
|
||||
/**
|
||||
* 分页查询处方明细表
|
||||
|
||||
*/
|
||||
export async function pagePrescriptionOrderItem(params: PrescriptionOrderItemParam) {
|
||||
export async function pagePrescriptionOrderItem(
|
||||
params: PrescriptionOrderItemParam
|
||||
) {
|
||||
const res = await request.get<ApiResult<PageResult<PrescriptionOrderItem>>>(
|
||||
MODULES_API_URL + '/clinic/prescription-order-item/page',
|
||||
{
|
||||
@@ -24,7 +29,9 @@ export async function pagePrescriptionOrderItem(params: PrescriptionOrderItemPar
|
||||
* 查询处方明细表
|
||||
列表
|
||||
*/
|
||||
export async function listPrescriptionOrderItem(params?: PrescriptionOrderItemParam) {
|
||||
export async function listPrescriptionOrderItem(
|
||||
params?: PrescriptionOrderItemParam
|
||||
) {
|
||||
const res = await request.get<ApiResult<PrescriptionOrderItem[]>>(
|
||||
MODULES_API_URL + '/clinic/prescription-order-item',
|
||||
{
|
||||
@@ -85,7 +92,9 @@ export async function removePrescriptionOrderItem(id?: number) {
|
||||
* 批量删除处方明细表
|
||||
|
||||
*/
|
||||
export async function removeBatchPrescriptionOrderItem(data: (number | undefined)[]) {
|
||||
export async function removeBatchPrescriptionOrderItem(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/clinic/prescription-order-item/batch',
|
||||
{
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
import type { PageParam } from '@/api';
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
*/
|
||||
export interface ArticleCheck {
|
||||
//
|
||||
//
|
||||
id?: number;
|
||||
// 文章ID
|
||||
articleId?: number;
|
||||
//
|
||||
//
|
||||
userId?: number;
|
||||
// 0待审核1通过2拒绝
|
||||
status?: string;
|
||||
|
||||
@@ -8,7 +8,7 @@ import { SERVER_API_URL } from '@/config/setting';
|
||||
*/
|
||||
export async function pageCmsArticleCategory(params: CmsArticleCategoryParam) {
|
||||
const res = await request.get<ApiResult<PageResult<CmsArticleCategory>>>(
|
||||
SERVER_API_URL + '/cms/cms-article-category/page',
|
||||
'/cms/cms-article-category/page',
|
||||
{
|
||||
params
|
||||
}
|
||||
@@ -24,7 +24,7 @@ export async function pageCmsArticleCategory(params: CmsArticleCategoryParam) {
|
||||
*/
|
||||
export async function listCmsArticleCategory(params?: CmsArticleCategoryParam) {
|
||||
const res = await request.get<ApiResult<CmsArticleCategory[]>>(
|
||||
SERVER_API_URL + '/cms/cms-article-category',
|
||||
'/cms/cms-article-category',
|
||||
{
|
||||
params
|
||||
}
|
||||
|
||||
@@ -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/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;
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { CmsNavigation, CmsNavigationParam } from './model';
|
||||
import { SERVER_API_URL } from '@/config/setting';
|
||||
import type { Navigation, NavigationParam } from '@/api/cms/navigation/model';
|
||||
|
||||
/**
|
||||
@@ -9,7 +8,7 @@ import type { Navigation, NavigationParam } from '@/api/cms/navigation/model';
|
||||
*/
|
||||
export async function pageCmsNavigation(params: CmsNavigationParam) {
|
||||
const res = await request.get<ApiResult<PageResult<CmsNavigation>>>(
|
||||
SERVER_API_URL + '/cms/cms-navigation/page',
|
||||
'https://cms-api.websoft.top/api/cms/cms-navigation/page',
|
||||
{
|
||||
params
|
||||
}
|
||||
@@ -25,7 +24,7 @@ export async function pageCmsNavigation(params: CmsNavigationParam) {
|
||||
*/
|
||||
export async function listCmsNavigation(params?: CmsNavigationParam) {
|
||||
const res = await request.get<ApiResult<CmsNavigation[]>>(
|
||||
SERVER_API_URL + '/cms/cms-navigation',
|
||||
'https://cms-api.websoft.top/api/cms/cms-navigation',
|
||||
{
|
||||
params
|
||||
}
|
||||
@@ -41,7 +40,7 @@ export async function listCmsNavigation(params?: CmsNavigationParam) {
|
||||
*/
|
||||
export async function treeNavigation(params?: NavigationParam) {
|
||||
const res = await request.get<ApiResult<Navigation[]>>(
|
||||
SERVER_API_URL + '/cms/cms-navigation/tree',
|
||||
'https://cms-api.websoft.top/api/cms/cms-navigation/tree',
|
||||
{
|
||||
params
|
||||
}
|
||||
@@ -56,7 +55,7 @@ export async function treeNavigation(params?: NavigationParam) {
|
||||
*/
|
||||
export async function addCmsNavigation(data: CmsNavigation) {
|
||||
const res = await request.post<ApiResult<unknown>>(
|
||||
SERVER_API_URL + '/cms/cms-navigation',
|
||||
'https://cms-api.websoft.top/api/cms/cms-navigation',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
@@ -70,7 +69,7 @@ export async function addCmsNavigation(data: CmsNavigation) {
|
||||
*/
|
||||
export async function updateCmsNavigation(data: CmsNavigation) {
|
||||
const res = await request.put<ApiResult<unknown>>(
|
||||
SERVER_API_URL + '/cms/cms-navigation',
|
||||
'https://cms-api.websoft.top/api/cms/cms-navigation',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
@@ -84,7 +83,7 @@ export async function updateCmsNavigation(data: CmsNavigation) {
|
||||
*/
|
||||
export async function removeCmsNavigation(id?: number) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
SERVER_API_URL + '/cms/cms-navigation/' + id
|
||||
'/cms/cms-navigation/' + id
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
@@ -97,7 +96,7 @@ export async function removeCmsNavigation(id?: number) {
|
||||
*/
|
||||
export async function removeBatchCmsNavigation(data: (number | undefined)[]) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
SERVER_API_URL + '/cms/cms-navigation/batch',
|
||||
'https://cms-api.websoft.top/api/cms/cms-navigation/batch',
|
||||
{
|
||||
data
|
||||
}
|
||||
@@ -113,7 +112,7 @@ export async function removeBatchCmsNavigation(data: (number | undefined)[]) {
|
||||
*/
|
||||
export async function getCmsNavigation(id: number) {
|
||||
const res = await request.get<ApiResult<CmsNavigation>>(
|
||||
SERVER_API_URL + '/cms/cms-navigation/' + id
|
||||
'https://cms-api.websoft.top/api/cms/cms-navigation/' + id
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
|
||||
@@ -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';
|
||||
|
||||
/**
|
||||
* 分页查询产品
|
||||
|
||||
@@ -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',
|
||||
{
|
||||
|
||||
@@ -4,9 +4,9 @@ import type { PageParam } from '@/api';
|
||||
* 设计征集报名分类
|
||||
*/
|
||||
export interface DesignCategory {
|
||||
//
|
||||
//
|
||||
id?: number;
|
||||
//
|
||||
//
|
||||
title?: string;
|
||||
// 用户ID
|
||||
userId?: number;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type {PageParam} from '@/api';
|
||||
import type { PageParam } from '@/api';
|
||||
|
||||
/**
|
||||
* 设计征集报名
|
||||
|
||||
@@ -4,11 +4,11 @@ import type { PageParam } from '@/api';
|
||||
* 关注
|
||||
*/
|
||||
export interface Follow {
|
||||
//
|
||||
//
|
||||
id?: number;
|
||||
//
|
||||
//
|
||||
userId?: number;
|
||||
//
|
||||
//
|
||||
followUserId?: number;
|
||||
// 排序(数字越小越靠前)
|
||||
sortNumber?: number;
|
||||
|
||||
@@ -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,15 +4,15 @@ import type { PageParam } from '@/api';
|
||||
* 分红角色
|
||||
*/
|
||||
export interface CommissionRole {
|
||||
//
|
||||
//
|
||||
id?: number;
|
||||
//
|
||||
//
|
||||
title?: string;
|
||||
//
|
||||
//
|
||||
provinceId?: number;
|
||||
//
|
||||
//
|
||||
cityId?: number;
|
||||
//
|
||||
//
|
||||
regionId?: number;
|
||||
// 状态, 0正常, 1异常
|
||||
status?: number;
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import type { PageParam } from '@/api';
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
*/
|
||||
export interface Coupon {
|
||||
//
|
||||
//
|
||||
id?: number;
|
||||
// 0满减 1折扣
|
||||
type?: number;
|
||||
|
||||
@@ -105,7 +105,6 @@ export async function getDealerWithdraw(id: number) {
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
|
||||
export async function getDealerWithdrawUnCheckNum() {
|
||||
const res = await request.get<ApiResult<number>>(
|
||||
MODULES_API_URL + '/shop/dealer-withdraw/uncheck-num'
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { PageParam } from '@/api';
|
||||
import {ExpressTemplateDetail} from "@/api/shop/expressTemplateDetail/model";
|
||||
import { ExpressTemplateDetail } from '@/api/shop/expressTemplateDetail/model';
|
||||
|
||||
/**
|
||||
* 运费模板
|
||||
@@ -24,7 +24,7 @@ export interface ExpressTemplate {
|
||||
extraAmount?: number;
|
||||
firstNum?: number;
|
||||
extraNum?: number;
|
||||
detailList?: ExpressTemplateDetail[]
|
||||
detailList?: ExpressTemplateDetail[];
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,12 +1,17 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { ExpressTemplateDetail, ExpressTemplateDetailParam } from './model';
|
||||
import type {
|
||||
ExpressTemplateDetail,
|
||||
ExpressTemplateDetailParam
|
||||
} from './model';
|
||||
import { MODULES_API_URL } from '@/config/setting';
|
||||
|
||||
/**
|
||||
* 分页查询运费模板
|
||||
*/
|
||||
export async function pageExpressTemplateDetail(params: ExpressTemplateDetailParam) {
|
||||
export async function pageExpressTemplateDetail(
|
||||
params: ExpressTemplateDetailParam
|
||||
) {
|
||||
const res = await request.get<ApiResult<PageResult<ExpressTemplateDetail>>>(
|
||||
MODULES_API_URL + '/shop/express-template-detail/page',
|
||||
{
|
||||
@@ -22,7 +27,9 @@ export async function pageExpressTemplateDetail(params: ExpressTemplateDetailPar
|
||||
/**
|
||||
* 查询运费模板列表
|
||||
*/
|
||||
export async function listExpressTemplateDetail(params?: ExpressTemplateDetailParam) {
|
||||
export async function listExpressTemplateDetail(
|
||||
params?: ExpressTemplateDetailParam
|
||||
) {
|
||||
const res = await request.get<ApiResult<ExpressTemplateDetail[]>>(
|
||||
MODULES_API_URL + '/shop/express-template-detail',
|
||||
{
|
||||
@@ -79,7 +86,9 @@ export async function removeExpressTemplateDetail(id?: number) {
|
||||
/**
|
||||
* 批量删除运费模板
|
||||
*/
|
||||
export async function removeBatchExpressTemplateDetail(data: (number | undefined)[]) {
|
||||
export async function removeBatchExpressTemplateDetail(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/shop/express-template-detail/batch',
|
||||
{
|
||||
|
||||
@@ -1,6 +1,11 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { Goods, GoodsParam } from './model';
|
||||
import type {
|
||||
Goods,
|
||||
GoodsImportExcelParam,
|
||||
GoodsImportResult,
|
||||
GoodsParam
|
||||
} from './model';
|
||||
import { MODULES_API_URL } from '@/config/setting';
|
||||
|
||||
export async function getCount(params: GoodsParam) {
|
||||
@@ -114,3 +119,46 @@ export async function getGoods(id: number) {
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量导入商品(Excel)
|
||||
*/
|
||||
export async function importGoodsExcel(params: GoodsImportExcelParam) {
|
||||
const res = await request.post<ApiResult<GoodsImportResult>>(
|
||||
MODULES_API_URL + '/shop/goods/import-excel',
|
||||
{},
|
||||
{ params }
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
const err: any = new Error(res.data.message);
|
||||
err.data = res.data.data;
|
||||
return Promise.reject(err);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量导入商品(Excel) - 直接上传文件
|
||||
*/
|
||||
export async function importGoodsExcelFile(
|
||||
file: File,
|
||||
params: GoodsImportExcelParam
|
||||
) {
|
||||
const formData = new FormData();
|
||||
formData.append('file', file);
|
||||
Object.entries(params ?? {}).forEach(([key, value]) => {
|
||||
if (value === undefined || value === null || key === 'path') return;
|
||||
formData.append(key, String(value));
|
||||
});
|
||||
const res = await request.post<ApiResult<GoodsImportResult>>(
|
||||
MODULES_API_URL + '/shop/goods/import-excel',
|
||||
formData,
|
||||
{ params }
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
const err: any = new Error(res.data.message);
|
||||
err.data = res.data.data;
|
||||
return Promise.reject(err);
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type { PageParam } from '@/api';
|
||||
import { GoodsSpec } from '@/api/shop/goodsSpec/model';
|
||||
import { GoodsSku } from '@/api/shop/goodsSku/model';
|
||||
import {GoodsRoleCommission} from "@/api/shop/goodsRoleCommission/model";
|
||||
import { GoodsRoleCommission } from '@/api/shop/goodsRoleCommission/model';
|
||||
|
||||
export interface GoodsCount {
|
||||
totalNum: number;
|
||||
@@ -144,3 +144,26 @@ export interface GoodsParam extends PageParam {
|
||||
stock?: number;
|
||||
keywords?: string;
|
||||
}
|
||||
|
||||
export interface GoodsImportResult {
|
||||
excelPath?: string;
|
||||
sheetName?: string;
|
||||
totalRows: number;
|
||||
inserted: number;
|
||||
skippedExists: number;
|
||||
goods?: Goods[];
|
||||
}
|
||||
|
||||
export interface GoodsImportExcelParam {
|
||||
path?: string;
|
||||
sheetName?: string;
|
||||
skipExisting?: boolean;
|
||||
createCategory?: boolean;
|
||||
merchantId?: number;
|
||||
defaultIsShow?: number;
|
||||
defaultStock?: number;
|
||||
/**
|
||||
* Excel 中未提供轮播图(files)时的默认值(通常为 JSON 字符串,如 "[]"/"[{...}]")
|
||||
*/
|
||||
defaultFiles?: string;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -79,7 +79,9 @@ export async function removeGoodsIncomeConfig(id?: number) {
|
||||
/**
|
||||
* 批量删除分润配置
|
||||
*/
|
||||
export async function removeBatchGoodsIncomeConfig(data: (number | undefined)[]) {
|
||||
export async function removeBatchGoodsIncomeConfig(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/shop/goods-income-config/batch',
|
||||
{
|
||||
|
||||
@@ -6,7 +6,9 @@ import { MODULES_API_URL } from '@/config/setting';
|
||||
/**
|
||||
* 分页查询商品绑定角色的分润金额
|
||||
*/
|
||||
export async function pageGoodsRoleCommission(params: GoodsRoleCommissionParam) {
|
||||
export async function pageGoodsRoleCommission(
|
||||
params: GoodsRoleCommissionParam
|
||||
) {
|
||||
const res = await request.get<ApiResult<PageResult<GoodsRoleCommission>>>(
|
||||
MODULES_API_URL + '/shop/goods-role-commission/page',
|
||||
{
|
||||
@@ -22,7 +24,9 @@ export async function pageGoodsRoleCommission(params: GoodsRoleCommissionParam)
|
||||
/**
|
||||
* 查询商品绑定角色的分润金额列表
|
||||
*/
|
||||
export async function listGoodsRoleCommission(params?: GoodsRoleCommissionParam) {
|
||||
export async function listGoodsRoleCommission(
|
||||
params?: GoodsRoleCommissionParam
|
||||
) {
|
||||
const res = await request.get<ApiResult<GoodsRoleCommission[]>>(
|
||||
MODULES_API_URL + '/shop/goods-role-commission',
|
||||
{
|
||||
@@ -79,7 +83,9 @@ export async function removeGoodsRoleCommission(id?: number) {
|
||||
/**
|
||||
* 批量删除商品绑定角色的分润金额
|
||||
*/
|
||||
export async function removeBatchGoodsRoleCommission(data: (number | undefined)[]) {
|
||||
export async function removeBatchGoodsRoleCommission(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/shop/goods-role-commission/batch',
|
||||
{
|
||||
|
||||
@@ -4,7 +4,7 @@ import type { PageParam } from '@/api';
|
||||
* 商品规则值(规格)表
|
||||
*/
|
||||
export interface GoodsRule {
|
||||
//
|
||||
//
|
||||
id?: number;
|
||||
// 规格名称
|
||||
ruleName?: string;
|
||||
|
||||
@@ -6,7 +6,9 @@ import { MODULES_API_URL } from '@/config/setting';
|
||||
/**
|
||||
* 分页查询商户商品库存
|
||||
*/
|
||||
export async function pageGoodsStockInMerchant(params: GoodsStockInMerchantParam) {
|
||||
export async function pageGoodsStockInMerchant(
|
||||
params: GoodsStockInMerchantParam
|
||||
) {
|
||||
const res = await request.get<ApiResult<PageResult<GoodsStockInMerchant>>>(
|
||||
MODULES_API_URL + '/shop/goods-stock-in-merchant/page',
|
||||
{
|
||||
@@ -22,7 +24,9 @@ export async function pageGoodsStockInMerchant(params: GoodsStockInMerchantParam
|
||||
/**
|
||||
* 查询商户商品库存列表
|
||||
*/
|
||||
export async function listGoodsStockInMerchant(params?: GoodsStockInMerchantParam) {
|
||||
export async function listGoodsStockInMerchant(
|
||||
params?: GoodsStockInMerchantParam
|
||||
) {
|
||||
const res = await request.get<ApiResult<GoodsStockInMerchant[]>>(
|
||||
MODULES_API_URL + '/shop/goods-stock-in-merchant',
|
||||
{
|
||||
@@ -79,7 +83,9 @@ export async function removeGoodsStockInMerchant(id?: number) {
|
||||
/**
|
||||
* 批量删除商户商品库存
|
||||
*/
|
||||
export async function removeBatchGoodsStockInMerchant(data: (number | undefined)[]) {
|
||||
export async function removeBatchGoodsStockInMerchant(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/shop/goods-stock-in-merchant/batch',
|
||||
{
|
||||
|
||||
@@ -4,17 +4,17 @@ import type { PageParam } from '@/api';
|
||||
* 商户商品库存
|
||||
*/
|
||||
export interface GoodsStockInMerchant {
|
||||
//
|
||||
//
|
||||
id?: number;
|
||||
//
|
||||
//
|
||||
goodsId?: number;
|
||||
//
|
||||
//
|
||||
skuId?: number;
|
||||
//
|
||||
//
|
||||
num?: number;
|
||||
//
|
||||
//
|
||||
merchantId?: number;
|
||||
//
|
||||
//
|
||||
stock?: number;
|
||||
// 状态, 0上架 1待上架 2待审核 3审核不通过
|
||||
status?: number;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import request from '@/utils/request';
|
||||
import type {ApiResult, PageResult} from '@/api';
|
||||
import type {Merchant, MerchantParam} from './model';
|
||||
import {MODULES_API_URL} from '@/config/setting';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { Merchant, MerchantParam } from './model';
|
||||
import { MODULES_API_URL } from '@/config/setting';
|
||||
|
||||
/**
|
||||
* 分页查询商户
|
||||
|
||||
@@ -79,7 +79,9 @@ export async function removeMerchantCategory(id?: number) {
|
||||
/**
|
||||
* 批量删除商家分类
|
||||
*/
|
||||
export async function removeBatchMerchantCategory(data: (number | undefined)[]) {
|
||||
export async function removeBatchMerchantCategory(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/shop/merchant-category/batch',
|
||||
{
|
||||
|
||||
@@ -34,7 +34,7 @@ export interface MerchantCategory {
|
||||
createTime?: string;
|
||||
// 修改时间
|
||||
updateTime?: string;
|
||||
children?: MerchantCategory[]
|
||||
children?: MerchantCategory[];
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,12 +1,17 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { MerchantChargePackage, MerchantChargePackageParam } from './model';
|
||||
import type {
|
||||
MerchantChargePackage,
|
||||
MerchantChargePackageParam
|
||||
} from './model';
|
||||
import { MODULES_API_URL } from '@/config/setting';
|
||||
|
||||
/**
|
||||
* 分页查询商家充值套餐
|
||||
*/
|
||||
export async function pageMerchantChargePackage(params: MerchantChargePackageParam) {
|
||||
export async function pageMerchantChargePackage(
|
||||
params: MerchantChargePackageParam
|
||||
) {
|
||||
const res = await request.get<ApiResult<PageResult<MerchantChargePackage>>>(
|
||||
MODULES_API_URL + '/shop/merchant-charge-package/page',
|
||||
{
|
||||
@@ -22,7 +27,9 @@ export async function pageMerchantChargePackage(params: MerchantChargePackagePar
|
||||
/**
|
||||
* 查询商家充值套餐列表
|
||||
*/
|
||||
export async function listMerchantChargePackage(params?: MerchantChargePackageParam) {
|
||||
export async function listMerchantChargePackage(
|
||||
params?: MerchantChargePackageParam
|
||||
) {
|
||||
const res = await request.get<ApiResult<MerchantChargePackage[]>>(
|
||||
MODULES_API_URL + '/shop/merchant-charge-package',
|
||||
{
|
||||
@@ -79,7 +86,9 @@ export async function removeMerchantChargePackage(id?: number) {
|
||||
/**
|
||||
* 批量删除商家充值套餐
|
||||
*/
|
||||
export async function removeBatchMerchantChargePackage(data: (number | undefined)[]) {
|
||||
export async function removeBatchMerchantChargePackage(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/shop/merchant-charge-package/batch',
|
||||
{
|
||||
|
||||
@@ -4,15 +4,15 @@ import type { PageParam } from '@/api';
|
||||
* 商家充值套餐
|
||||
*/
|
||||
export interface MerchantChargePackage {
|
||||
//
|
||||
//
|
||||
id?: number;
|
||||
// 金额
|
||||
amount?: string;
|
||||
// 赠送金额
|
||||
sendAmount?: string;
|
||||
//
|
||||
//
|
||||
merchantId?: number;
|
||||
//
|
||||
//
|
||||
userId?: number;
|
||||
// 0待审核1通过2拒绝
|
||||
status?: string;
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
import type { PageParam } from '@/api';
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
*/
|
||||
export interface MerchantCollect {
|
||||
//
|
||||
//
|
||||
id?: number;
|
||||
//
|
||||
//
|
||||
merchantId?: number;
|
||||
//
|
||||
//
|
||||
userId?: number;
|
||||
// 是否删除, 0否, 1是
|
||||
deleted?: number;
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user