mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-25 01:49:19 +08:00
完成订单批量导入功能
This commit is contained in:
@@ -35,6 +35,19 @@ export async function deleteCompanyApi(id: number) {
|
||||
return requestClient.delete<void>(`/company/delete/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 上传公司Logo
|
||||
*/
|
||||
export async function uploadCompanyLogoApi(file: File) {
|
||||
const formData = new FormData();
|
||||
formData.append('file', file);
|
||||
return requestClient.post<CompanyVO.CompanyInfoVO>('/company/upload-logo', formData, {
|
||||
headers: {
|
||||
'Content-Type': 'multipart/form-data',
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 部门管理API
|
||||
*/
|
||||
|
||||
@@ -15,9 +15,9 @@ export namespace CompanyDTO {
|
||||
contactPhone?: string;
|
||||
/** 邮箱 */
|
||||
email?: string;
|
||||
/** Logo */
|
||||
logo?: string;
|
||||
/** 状态 */
|
||||
/** logo图片ID */
|
||||
logoImageId?: number;
|
||||
/** 状态 (0-禁用 1-正常) */
|
||||
status?: number;
|
||||
/** 订阅到期时间 */
|
||||
expireTime?: string;
|
||||
@@ -35,9 +35,9 @@ export namespace CompanyDTO {
|
||||
contactPhone?: string;
|
||||
/** 邮箱 */
|
||||
email?: string;
|
||||
/** Logo */
|
||||
logo?: string;
|
||||
/** 状态 */
|
||||
/** logo图片ID */
|
||||
logoImageId?: number;
|
||||
/** 状态 (0-禁用 1-正常) */
|
||||
status?: number;
|
||||
/** 订阅到期时间 */
|
||||
expireTime?: string;
|
||||
@@ -47,8 +47,16 @@ export namespace CompanyDTO {
|
||||
export interface CompanyFiltersDTO {
|
||||
/** 公司名称(模糊查询) */
|
||||
name?: string;
|
||||
/** 联系人(模糊查询) */
|
||||
contactPerson?: string;
|
||||
/** 联系电话(精确查询) */
|
||||
contactPhone?: string;
|
||||
/** 邮箱(精确查询) */
|
||||
email?: string;
|
||||
/** 状态 */
|
||||
status?: number;
|
||||
/** 过期状态查询 */
|
||||
expired?: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -81,8 +89,8 @@ export namespace DepartmentDTO {
|
||||
export interface DepartmentFiltersDTO {
|
||||
/** 部门名称(模糊查询) */
|
||||
name?: string;
|
||||
/** 公司ID */
|
||||
companyId?: number;
|
||||
/** 父级部门ID */
|
||||
parentId?: number;
|
||||
/** 状态 */
|
||||
status?: number;
|
||||
}
|
||||
@@ -121,10 +129,6 @@ export namespace PositionDTO {
|
||||
export interface PositionFiltersDTO {
|
||||
/** 岗位名称(模糊查询) */
|
||||
name?: string;
|
||||
/** 公司ID */
|
||||
companyId?: number;
|
||||
/** 部门ID */
|
||||
departmentId?: number;
|
||||
/** 状态 */
|
||||
status?: number;
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ export namespace CompanyVO {
|
||||
id: number;
|
||||
/** 公司名称 */
|
||||
name: string;
|
||||
/** 过期时间 */
|
||||
/** 订阅到期时间 */
|
||||
expiration?: string;
|
||||
/** 公司地址 */
|
||||
address?: string;
|
||||
@@ -19,9 +19,9 @@ export namespace CompanyVO {
|
||||
contactPhone?: string;
|
||||
/** 邮箱 */
|
||||
email?: string;
|
||||
/** Logo */
|
||||
/** logo */
|
||||
logo?: string;
|
||||
/** 状态 */
|
||||
/** 状态 (0-禁用 1-正常) */
|
||||
status: number;
|
||||
/** 订阅到期时间 */
|
||||
expireTime?: string;
|
||||
|
||||
Reference in New Issue
Block a user