diff --git a/src/api/modelConfiguration/ModelUserPromptssetting/index.ts b/src/api/modelConfiguration/ModelUserPromptssetting/index.ts new file mode 100644 index 0000000..070358e --- /dev/null +++ b/src/api/modelConfiguration/ModelUserPromptssetting/index.ts @@ -0,0 +1,65 @@ +import { defHttp } from '@/utils/http/axios'; +import { ID, IDS, commonExport } from '@/api/base'; +import { ModelUserPromptssettingVO, ModelUserPromptssettingForm, ModelUserPromptssettingQuery } from './model'; + +/** + * 查询模型提示词用户配置列表 + * @param params + * @returns + */ +export function ModelUserPromptssettingList(params?: ModelUserPromptssettingQuery) { + return defHttp.get({ url: '/productManagement/ModelUserPromptssetting/list', params }); +} + +/** + * 导出模型提示词用户配置列表 + * @param params + * @returns + */ +export function ModelUserPromptssettingExport(params?: ModelUserPromptssettingQuery) { + return commonExport('/productManagement/ModelUserPromptssetting/export', params ?? {}); +} + +/** + * 查询模型提示词用户配置详细 + * @param id id + * @returns + */ +export function ModelUserPromptssettingInfo(id: ID) { + return defHttp.get({ url: '/productManagement/ModelUserPromptssetting/' + id }); +} + +/** + * 新增模型提示词用户配置 + * @param data + * @returns + */ +export function ModelUserPromptssettingAdd(data: ModelUserPromptssettingForm) { + return defHttp.postWithMsg({ url: '/productManagement/ModelUserPromptssetting', data }); +} + +/** + * 更新模型提示词用户配置 + * @param data + * @returns + */ +export function ModelUserPromptssettingUpdate(data: ModelUserPromptssettingForm) { + return defHttp.putWithMsg({ url: '/productManagement/ModelUserPromptssetting', data }); +} + +/** + * 删除模型提示词用户配置 + * @param id id + * @returns + */ +export function ModelUserPromptssettingRemove(id: ID | IDS) { + return defHttp.deleteWithMsg({ url: '/productManagement/ModelUserPromptssetting/' + id },); +} +/** + * 查询模型提示词用户配置详细根据用户id + * @param userId userId + * @returns + */ +export function ModelUserPromptssettingInfoByUserId() { + return defHttp.get({ url: '/productManagement/ModelUserPromptssetting/getInfoByuserId'}); +} \ No newline at end of file diff --git a/src/api/modelConfiguration/ModelUserPromptssetting/model.ts b/src/api/modelConfiguration/ModelUserPromptssetting/model.ts new file mode 100644 index 0000000..5b7bff9 --- /dev/null +++ b/src/api/modelConfiguration/ModelUserPromptssetting/model.ts @@ -0,0 +1,85 @@ +import { BaseEntity, PageQuery } from '@/api/base'; + +export interface ModelUserPromptssettingVO { + /** + * id + */ + id: string | number; + + /** + * 模型所属行业 + */ + taskIndustry: string; + + /** + * 模型所属区域 + */ + taskRegion: string; + + /** + * 任务类型(名称) + */ + taskName: string; + + /** + * 用户id + */ + userId: string | number; + +} + +export interface ModelUserPromptssettingForm extends BaseEntity { + /** + * id + */ + id?: string | number; + + /** + * 模型所属行业 + */ + taskIndustry?: string; + + /** + * 模型所属区域 + */ + taskRegion?: string; + + /** + * 任务类型(名称) + */ + taskName?: string; + + /** + * 用户id + */ + userId?: string | number; + +} + +export interface ModelUserPromptssettingQuery extends PageQuery { + + /** + * 模型所属行业 + */ + taskIndustry?: string; + + /** + * 模型所属区域 + */ + taskRegion?: string; + + /** + * 任务类型(名称) + */ + taskName?: string; + + /** + * 用户id + */ + userId?: string | number; + + /** + * 日期范围参数 + */ + params?: any; +}