|
@@ -289,6 +289,7 @@ public class FamilyController {
|
|
|
* 新家族圈消息提示.
|
|
* 新家族圈消息提示.
|
|
|
* @return true / false
|
|
* @return true / false
|
|
|
*/
|
|
*/
|
|
|
|
|
+ // TODO 新回复、新点赞
|
|
|
@Auth(value = AuthType.COOKIES)
|
|
@Auth(value = AuthType.COOKIES)
|
|
|
@RequestMapping(value = "/member/newsRedDot", method = RequestMethod.GET)
|
|
@RequestMapping(value = "/member/newsRedDot", method = RequestMethod.GET)
|
|
|
public Object newsRedDot(){
|
|
public Object newsRedDot(){
|
|
@@ -350,7 +351,7 @@ public class FamilyController {
|
|
|
* @return
|
|
* @return
|
|
|
*/
|
|
*/
|
|
|
@Auth(value = AuthType.COOKIES)
|
|
@Auth(value = AuthType.COOKIES)
|
|
|
- @RequestMapping(value = "/member/moment/comment", method = RequestMethod.POST)
|
|
|
|
|
|
|
+ @RequestMapping(value = "/member/moment/delete", method = RequestMethod.POST)
|
|
|
public Object deleteComment(@RequestBody MomentsLikeAndCommentRequest momentsRequest){
|
|
public Object deleteComment(@RequestBody MomentsLikeAndCommentRequest momentsRequest){
|
|
|
if(null == momentsRequest
|
|
if(null == momentsRequest
|
|
|
|| null == momentsRequest.getCommentId()){
|
|
|| null == momentsRequest.getCommentId()){
|
|
@@ -393,17 +394,17 @@ public class FamilyController {
|
|
|
// 可见范围:0:全员 1:支系堂派 2:聚落 3:家族内男性 4:出生地
|
|
// 可见范围:0:全员 1:支系堂派 2:聚落 3:家族内男性 4:出生地
|
|
|
if(Objects.equals(momentsRequest.getVisibleType(), MomentsVisibleTypeEnum.SPECIAL_BRANCH_HALL.getType())
|
|
if(Objects.equals(momentsRequest.getVisibleType(), MomentsVisibleTypeEnum.SPECIAL_BRANCH_HALL.getType())
|
|
|
&& StringUtils.isBlank(memberInfo.getBranchFamilyHall())){
|
|
&& StringUtils.isBlank(memberInfo.getBranchFamilyHall())){
|
|
|
- throw new AppRuntimeException("仅支持发布到自己设置的支系堂派!");
|
|
|
|
|
|
|
+ throw new AppRuntimeException("信息发布支系堂派请先设置自己的支系堂派!");
|
|
|
} else if (Objects.equals(momentsRequest.getVisibleType(), MomentsVisibleTypeEnum.SPECIAL_CLUSTER_PLACE.getType())
|
|
} else if (Objects.equals(momentsRequest.getVisibleType(), MomentsVisibleTypeEnum.SPECIAL_CLUSTER_PLACE.getType())
|
|
|
&& StringUtils.isBlank(memberInfo.getClusterPlace())) {
|
|
&& StringUtils.isBlank(memberInfo.getClusterPlace())) {
|
|
|
- throw new AppRuntimeException("仅支持发布到自己设置的聚落!");
|
|
|
|
|
|
|
+ throw new AppRuntimeException("信息发布聚落请先设置自己的聚落!");
|
|
|
} else if (Objects.equals(momentsRequest.getVisibleType(), MomentsVisibleTypeEnum.SPECIAL_SEX.getType())
|
|
} else if (Objects.equals(momentsRequest.getVisibleType(), MomentsVisibleTypeEnum.SPECIAL_SEX.getType())
|
|
|
&& (StringUtils.isBlank(momentsRequest.getVisibleValue())
|
|
&& (StringUtils.isBlank(momentsRequest.getVisibleValue())
|
|
|
|| (!"1".equals(momentsRequest.getVisibleValue()) && !"2".equals(momentsRequest.getVisibleValue())))) {
|
|
|| (!"1".equals(momentsRequest.getVisibleValue()) && !"2".equals(momentsRequest.getVisibleValue())))) {
|
|
|
throw new AppRuntimeException("性别可见设置错误!");
|
|
throw new AppRuntimeException("性别可见设置错误!");
|
|
|
} else if (Objects.equals(momentsRequest.getVisibleType(), MomentsVisibleTypeEnum.SPECIAL_BIRTH_PLACE.getType())
|
|
} else if (Objects.equals(momentsRequest.getVisibleType(), MomentsVisibleTypeEnum.SPECIAL_BIRTH_PLACE.getType())
|
|
|
&& StringUtils.isBlank(memberInfo.getBirthPlace())) {
|
|
&& StringUtils.isBlank(memberInfo.getBirthPlace())) {
|
|
|
- throw new AppRuntimeException("仅支持发布到自己设置的出生第!");
|
|
|
|
|
|
|
+ throw new AppRuntimeException("信息发布出生地先设置自己的出生地!");
|
|
|
}
|
|
}
|
|
|
return true;
|
|
return true;
|
|
|
}
|
|
}
|