|
@@ -21,7 +21,7 @@ import java.util.List;
|
|
|
* @Exegesis:
|
|
|
*/
|
|
|
@RestController
|
|
|
-@RequestMapping("/system/publisher")
|
|
|
+@RequestMapping("/post/publisher")
|
|
|
public class PostPublisherController extends BaseController
|
|
|
{
|
|
|
@Autowired
|
|
@@ -72,11 +72,11 @@ public class PostPublisherController extends BaseController
|
|
|
{
|
|
|
if(UserConstants.NOT_UNIQUE.equals(postPublisherService.checkPublisherName(postPublisher)))
|
|
|
{
|
|
|
- return AjaxResult.error("新增发行方"+postPublisher.getPublisherName()+"失败,发行方标题已经存在");
|
|
|
+ return AjaxResult.error("新增发行方"+postPublisher.getPublisherName()+"失败,发行方名称已经存在");
|
|
|
}
|
|
|
else if(UserConstants.NOT_UNIQUE.equals(postPublisherService.checkImage(postPublisher)))
|
|
|
{
|
|
|
- return AjaxResult.error("新增发行方"+postPublisher.getPublisherImage()+"失败,发行方内容已经存在");
|
|
|
+ return AjaxResult.error("新增发行方"+postPublisher.getPublisherImage()+"失败,发行方头像已经存在");
|
|
|
}
|
|
|
postPublisher.setCreateBy(getUsername());
|
|
|
return toAjax(postPublisherService.insertPostPublisher(postPublisher));
|
|
@@ -92,11 +92,11 @@ public class PostPublisherController extends BaseController
|
|
|
{
|
|
|
if(UserConstants.NOT_UNIQUE.equals(postPublisherService.checkPublisherName(postPublisher)))
|
|
|
{
|
|
|
- return AjaxResult.error("新增发行方"+postPublisher.getPublisherName()+"失败,发行方标题已经存在");
|
|
|
+ return AjaxResult.error("新增发行方"+postPublisher.getPublisherName()+"失败,发行方名称已经存在");
|
|
|
}
|
|
|
else if(UserConstants.NOT_UNIQUE.equals(postPublisherService.checkImage(postPublisher)))
|
|
|
{
|
|
|
- return AjaxResult.error("新增发行方"+postPublisher.getPublisherImage()+"失败,发行方内容已经存在");
|
|
|
+ return AjaxResult.error("新增发行方"+postPublisher.getPublisherImage()+"失败,发行方头像已经存在");
|
|
|
}
|
|
|
postPublisher.setCreateBy(getUsername());
|
|
|
return toAjax(postPublisherService.updatePostPublisher(postPublisher));
|