liu
3 天以前 0127fd119fe2a349fbfee92b375a5680e10d3275
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import { requestClient } from '#/api/request';
 
export namespace SystemCompanyConfigApi {
  /** 公司品牌信息 */
  export interface CompanyConfig {
    id?: number;
    companyName?: string;
    logoUrl?: string;
    logoBlobId?: number;
    loginTitle?: string;
    loginDescription?: string;
  }
}
 
/** 获得公司品牌信息(免登录公开,登录页 / 应用启动时使用) */
export async function getCompanyConfig() {
  return requestClient.get<SystemCompanyConfigApi.CompanyConfig | null>(
    '/system/company-config/get',
  );
}
 
/** 保存公司品牌信息 */
export async function saveCompanyConfig(
  data: SystemCompanyConfigApi.CompanyConfig,
) {
  return requestClient.post<number>('/system/company-config/save', data);
}