feat: 提交其余本地改动
This commit is contained in:
@@ -1,5 +1,18 @@
|
||||
import type {
|
||||
ContractStatus,
|
||||
MerchantDocumentStatus,
|
||||
MerchantDocumentType,
|
||||
MerchantStatus,
|
||||
OperatingMode,
|
||||
StaffRoleType,
|
||||
StaffStatus,
|
||||
StoreStatus,
|
||||
} from '#/enums/merchantEnum';
|
||||
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
export * from '#/enums/merchantEnum';
|
||||
|
||||
/**
|
||||
* 商户门店信息
|
||||
*/
|
||||
@@ -15,7 +28,7 @@ export interface MerchantStoreDto {
|
||||
/** 门店地址 */
|
||||
address: string;
|
||||
/** 门店状态 */
|
||||
status: number;
|
||||
status: StoreStatus;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -31,7 +44,7 @@ export interface MerchantDetailDto {
|
||||
/** 商户名称 */
|
||||
name: string;
|
||||
/** 经营模式 */
|
||||
operatingMode?: number;
|
||||
operatingMode?: OperatingMode;
|
||||
/** 营业执照号 */
|
||||
licenseNumber?: string;
|
||||
/** 法人/负责人 */
|
||||
@@ -43,7 +56,7 @@ export interface MerchantDetailDto {
|
||||
/** 联系邮箱 */
|
||||
contactEmail?: string;
|
||||
/** 商户状态 */
|
||||
status: number;
|
||||
status: MerchantStatus;
|
||||
/** 是否冻结 */
|
||||
isFrozen: boolean;
|
||||
/** 冻结原因 */
|
||||
@@ -74,8 +87,8 @@ export interface MerchantDetailDto {
|
||||
export interface MerchantDocumentDto {
|
||||
id: string;
|
||||
merchantId: string;
|
||||
documentType: number;
|
||||
status: number;
|
||||
documentType: MerchantDocumentType;
|
||||
status: MerchantDocumentStatus;
|
||||
fileUrl: string;
|
||||
documentNumber?: string;
|
||||
issuedAt?: null | string;
|
||||
@@ -91,7 +104,7 @@ export interface MerchantContractDto {
|
||||
id: string;
|
||||
merchantId: string;
|
||||
contractNumber: string;
|
||||
status: number;
|
||||
status: ContractStatus;
|
||||
startDate: string;
|
||||
endDate: string;
|
||||
fileUrl: string;
|
||||
@@ -111,8 +124,8 @@ export interface MerchantStaffDto {
|
||||
name: string;
|
||||
phone: string;
|
||||
email?: string;
|
||||
roleType: number;
|
||||
status: number;
|
||||
roleType: StaffRoleType;
|
||||
status: StaffStatus;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -121,7 +134,7 @@ export interface MerchantStaffDto {
|
||||
export interface MerchantAuditLogDto {
|
||||
id: string;
|
||||
merchantId: string;
|
||||
action: number;
|
||||
action: number; // MerchantAuditAction (need to define)
|
||||
operatorId?: string;
|
||||
title: string;
|
||||
description?: string;
|
||||
@@ -163,9 +176,23 @@ export async function getMerchantInfoApi() {
|
||||
return requestClient.get<CurrentMerchantCenterDto>('/merchant/info');
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新商户信息参数
|
||||
*/
|
||||
export interface UpdateMerchantDto {
|
||||
id: string;
|
||||
name: string;
|
||||
operatingMode?: OperatingMode;
|
||||
licenseNumber?: string;
|
||||
legalRepresentative?: string;
|
||||
contactPhone?: string;
|
||||
contactEmail?: string;
|
||||
registeredAddress?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新商户信息
|
||||
*/
|
||||
export async function updateMerchantInfoApi(data: any) {
|
||||
export async function updateMerchantInfoApi(data: UpdateMerchantDto) {
|
||||
return requestClient.post('/merchant/update', data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user