Merge remote-tracking branch 'origin/feature/0915_素材中心新增手动上传' into test

This commit is contained in:
rd
2025-09-19 09:43:28 +08:00
50 changed files with 1819 additions and 158 deletions

View File

@ -73,7 +73,12 @@ export const getVideoPreSignedUrl = (params = {}) => {
return Http.get('/v1/oss/video-pre-signed-url', params);
};
// 获取文件上传地址
export const getFilePreSignedUrl = (params = {}) => {
return Http.get('/v1/oss/file-pre-signed-url', params);
};
// 清除限流
export const postClearRateLimiter = (params = {}) => {
return Http.post(`/v1/rate-limiter/clear`, params);
};
};

View File

@ -170,3 +170,40 @@ export const batchDeleteRawMaterials = (params = {}) => {
export const postRawMaterialsAI = (params = {}) => {
return Http.post('/v1/raw-materials/ai', params);
};
// 原料库标签-列表
export const getRawMaterialTagsList = (params = {}) => {
return Http.get('/v1/raw-material-tags/list', params);
};
// 原料库标签-添加
export const posRawMaterialTags = (params = {}) => {
return Http.post('/v1/raw-material-tags', params);
};
// 原料库标签-修改
export const putRawMaterialTag = (params = {}) => {
const { id, ...rest } = params as { id: string; [key: string]: any };
return Http.put(`/v1/raw-material-tags/${id}`, rest);
};
// 原料库标签-删除
export const deleteRawMaterialTag = (id: string) => {
return Http.delete(`/v1/raw-material-tags/${id}`);
};
// 原料库-本地批量添加
export const postBatchRawMaterial = (params = {}) => {
return Http.post('/v1/raw-materials/batch', params);
};
// 原料库-修改
export const putRawMaterial = (params = {}) => {
const { id, ...rest } = params as { id: string; [key: string]: any };
return Http.put(`/v1/raw-materials/${id}`, rest);
};
// 原料库-详情
export const getRawMaterialDetail = (id: string) => {
return Http.get(`/v1/raw-materials/${id}`);
};

View File

@ -28,7 +28,7 @@ export const fetchLogOut = (params = {}) => {
};
// 导出一个名为fetchProfileInfo的函数用于获取用户信息
export const fetchProfileInfo = (params = {}) => {
export const fetchUserInfo = (params = {}) => {
// 使用Http.put方法向/v1/me接口发送put请求并将params作为参数传递
return Http.get('/v1/me', params);
};