import request from '../utils/request';

export type SystemConfigValueFields = {
  platformName: string;
  loginBgImg: string;
  isShowLoginBgImg: string;
  loginImg: string;
  isShowLoginImg: string;
  loginLogoImg: string;
  isShowLoginLogoImg: string;
  isShowUserInfo: string;
  casLoginUrl: string;
  casLogoutUrl: string;
  casService: string;
  casSysUuid: string;
  isCasOpen: string;
  sideHideRoute: string;
  loginBlackRoute: string;
  title: string;
  titleStatus: string;
  groupTitleStatus: string;
  logoImage: string;
  logoStatus: string;
  logoRoute: string;
  homeBtnStatus: string;
  messageBtnStatus: string;
  logoutBtnStatus: string;
  waterStatus: string;
  waterParams: string;
};
// 新增系统背景配置
export interface SystemConfigFields {
  createBy: string;
  createTime: string;
  updateTime: string;
  remark: string;
  configId: number;
  appId: string;
  appName: string;
  moduleFirst: string;
  moduleSecond: string;
  configName: string;
  configKey: string;
  configValue: string;
  configType: string;
}
export async function updateApi(data: SystemConfigFields) {
  return await request({
    url: '/config/edit',
    method: 'post',
    data,
  });
}
