This commit is contained in:
van
2026-11-05 15:30:55 +08:00
parent 51461b2834
commit 630be449fd
4 changed files with 267 additions and 0 deletions
@@ -156,6 +156,50 @@ public class SocialMediaController extends BaseController
}
}
/**
* 闲鱼品类模板:发货说明、六个品类装箱清单、型号覆盖清单
*/
@GetMapping("/xianyu-template")
public AjaxResult listXianyuCopyTemplates()
{
try {
return socialMediaService.listXianyuCopyTemplates();
} catch (Exception e) {
logger.error("获取闲鱼品类模板失败", e);
return AjaxResult.error("获取失败: " + e.getMessage());
}
}
/**
* 保存闲鱼品类模板
*/
@Log(title = "保存闲鱼品类模板", businessType = BusinessType.UPDATE)
@PostMapping("/xianyu-template/save")
public AjaxResult saveXianyuCopyTemplate(@RequestBody Map<String, Object> request)
{
try {
return socialMediaService.saveXianyuCopyTemplate(request);
} catch (Exception e) {
logger.error("保存闲鱼品类模板失败", e);
return AjaxResult.error("保存失败: " + e.getMessage());
}
}
/**
* 删除闲鱼品类模板
*/
@Log(title = "删除闲鱼品类模板", businessType = BusinessType.DELETE)
@PostMapping("/xianyu-template/delete")
public AjaxResult deleteXianyuCopyTemplate(@RequestBody Map<String, Object> request)
{
try {
return socialMediaService.deleteXianyuCopyTemplate(request);
} catch (Exception e) {
logger.error("删除闲鱼品类模板失败", e);
return AjaxResult.error("删除失败: " + e.getMessage());
}
}
/**
* 列出多套大模型接入配置及当前激活 id
*/