import axiosInstance from '../utils/axios';

// 系统属性 VO 类型
export interface SystemAttributeVO {
  sysAttrId?: number;
  sysAttrName?: string;
  sysAttrKey?: string;
  sysAttrType?: string;
  sysAttrValue?: string;
  remark?: string;
  createTime?: Date | string;
}

// 系统属性 API
export const systemAttributeApi = {
  // 根据键名查询配置
  getIsSystemAttributeByKey: (sysAttrKey: string): Promise<SystemAttributeVO> => {
    return axiosInstance.get('/iscs/attribute/getSystemAttributeByKey', {
      params: { sysAttrKey }
    });
  },
};

