1
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user