| | |
| | | |
| | | import java.io.PrintWriter; |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.UUID; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import com.yeshi.fanli.entity.SystemFunction; |
| | | import com.yeshi.fanli.service.inter.user.UserFunctionsLimitService; |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.yeshi.utils.JsonUtil; |
| | |
| | | |
| | | /** |
| | | * 文案转链 |
| | | * @author Administrator |
| | | * |
| | | * @author Administrator |
| | | */ |
| | | @Controller("convertLinkControllerV2") |
| | | @RequestMapping("api/v2/convertlink") |
| | |
| | | @Resource |
| | | private ConvertLinkManager convertLinkManager; |
| | | |
| | | @Resource |
| | | private UserFunctionsLimitService userFunctionsLimitService; |
| | | |
| | | /** |
| | | * |
| | | * @Title: getCommonTextList |
| | | * @Description: 获取模板 |
| | | * @param acceptData |
| | | * @param uid |
| | | * @param callback |
| | | * @param out |
| | | * void 返回类型 |
| | | * @param out void 返回类型 |
| | | * @throws |
| | | * @Title: getCommonTextList |
| | | * @Description: 获取模板 |
| | | */ |
| | | @RequestMapping(value = "getCommonTextList") |
| | | public void getCommonTextList(AcceptData acceptData, Long uid, String callback, PrintWriter out) { |
| | |
| | | } |
| | | |
| | | /** |
| | | * |
| | | * @Title: setConvertLinkDoc |
| | | * @Description: 暂存文案 |
| | | * @param acceptData |
| | | * @param uid |
| | | * @param text |
| | | * @param callback |
| | | * @param out |
| | | * void 返回类型 |
| | | * @param out void 返回类型 |
| | | * @throws |
| | | * @Title: setConvertLinkDoc |
| | | * @Description: 暂存文案 |
| | | */ |
| | | @RequestMapping(value = "setConvertLinkDoc") |
| | | public void setConvertLinkDoc(AcceptData acceptData, Long uid, String text, String callback, PrintWriter out) { |
| | |
| | | } |
| | | |
| | | /** |
| | | * |
| | | * @Title: addCommonText |
| | | * @Description: 添加模板 |
| | | * @param acceptData |
| | | * @param uid |
| | | * @param template |
| | | * @param callback |
| | | * @param out |
| | | * void 返回类型 |
| | | * @param out void 返回类型 |
| | | * @throws |
| | | * @Title: addCommonText |
| | | * @Description: 添加模板 |
| | | */ |
| | | |
| | | @RequestMapping(value = "addCommonText") |
| | |
| | | } |
| | | |
| | | /** |
| | | * |
| | | * @Title: deleteCommonText |
| | | * @Description: 删除模板 |
| | | * @param acceptData |
| | | * @param uid |
| | | * @param id |
| | | * @param callback |
| | | * @param out |
| | | * void 返回类型 |
| | | * @param out void 返回类型 |
| | | * @throws |
| | | * @Title: deleteCommonText |
| | | * @Description: 删除模板 |
| | | */ |
| | | @RequestMapping(value = "deleteCommonText") |
| | | public void deleteCommonText(AcceptData acceptData, Long uid, String id, String callback, PrintWriter out) { |
| | |
| | | } |
| | | |
| | | /** |
| | | * |
| | | * @Title: convert |
| | | * @Description: 文案转链 |
| | | * @param acceptData |
| | | * @param uid |
| | | * @param text |
| | | * @param callback |
| | | * @param out |
| | | * void 返回类型 |
| | | * @param out void 返回类型 |
| | | * @throws |
| | | * @Title: convert |
| | | * @Description: 文案转链 |
| | | */ |
| | | @RequestMapping(value = "convert") |
| | | public void convert(AcceptData acceptData, Long uid, String text, String callback, PrintWriter out) { |
| | |
| | | return; |
| | | } |
| | | |
| | | if (userFunctionsLimitService.isLimit(uid, SystemFunction.share, new Date())) { |
| | | out.print(JsonUtil.loadFalseResult(1, "该功能限制使用")); |
| | | return; |
| | | } |
| | | |
| | | try { |
| | | String key = RedisKeyEnum.convertLinkDocResultTemp.getKey() + uid + "-" |
| | | + StringUtil.Md5(UUID.randomUUID().toString()); |