1
This commit is contained in:
@@ -155,5 +155,26 @@ public class SocialMediaController extends BaseController
|
||||
return AjaxResult.error("删除失败: " + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 闲鱼文案(手动):根据标题+可选型号生成代下单、教你下单文案,不依赖JD接口
|
||||
*/
|
||||
@Log(title = "闲鱼文案(手动)生成", businessType = BusinessType.OTHER)
|
||||
@PostMapping("/xianyu-wenan/generate")
|
||||
public AjaxResult generateXianyuWenan(@RequestBody Map<String, Object> request)
|
||||
{
|
||||
try {
|
||||
String title = (String) request.get("title");
|
||||
String remark = (String) request.get("remark");
|
||||
Map<String, Object> result = socialMediaService.generateXianyuWenan(title, remark);
|
||||
if (Boolean.TRUE.equals(result.get("success"))) {
|
||||
return AjaxResult.success(result);
|
||||
}
|
||||
return AjaxResult.error((String) result.get("error"));
|
||||
} catch (Exception e) {
|
||||
logger.error("闲鱼文案生成失败", e);
|
||||
return AjaxResult.error("生成失败: " + e.getMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user