v1.1 小秘书的一些简转繁
This commit is contained in:
@@ -8,7 +8,7 @@ public enum CommentStatusEnum {
|
||||
|
||||
WONDERFUL(1,"精彩"),
|
||||
|
||||
IMPEACH(2,"举报"),
|
||||
IMPEACH(2,"舉報"),
|
||||
|
||||
DELETE(3,"已下架"),
|
||||
|
||||
|
@@ -7,21 +7,21 @@ import java.util.List;
|
||||
* Created By LeeNana on 2019/11/12.
|
||||
*/
|
||||
public enum DynamicStatusEnum {
|
||||
AUDIT(0,"待审核"),
|
||||
AUDIT(0,"待審核"),
|
||||
|
||||
PASS(1,"审核通过"),
|
||||
PASS(1,"審核通過"),
|
||||
|
||||
NOT_PASS(2,"审核不通过"),
|
||||
NOT_PASS(2,"審核不通過"),
|
||||
|
||||
DELETE(3,"删除"),
|
||||
DELETE(3,"刪除"),
|
||||
|
||||
SHELVE(4, "上架"),
|
||||
|
||||
UNSHELVE(5, "下架"),
|
||||
|
||||
PASS_MACHINE(6, "机审通过"),
|
||||
PASS_MACHINE(6, "機審通過"),
|
||||
|
||||
NOT_PASS_MACHINE(7, "机审不通过"),
|
||||
NOT_PASS_MACHINE(7, "機審不通過"),
|
||||
;
|
||||
private Integer value;
|
||||
|
||||
|
@@ -4,10 +4,10 @@ package com.accompany.community.constant;
|
||||
* Created By LeeNana on 2019/11/13.
|
||||
*/
|
||||
public enum DynamicTypeEnum {
|
||||
TEXT(0,"纯文本"),
|
||||
VOICE(1, "声音"),
|
||||
PICTURE(2,"图片"),
|
||||
VIDEO(3, "视频"),
|
||||
TEXT(0,"純文本"),
|
||||
VOICE(1, "聲音"),
|
||||
PICTURE(2,"圖片"),
|
||||
VIDEO(3, "視頻"),
|
||||
;
|
||||
private Integer value;
|
||||
|
||||
|
@@ -5,8 +5,8 @@ package com.accompany.community.constant;
|
||||
* 动态类型扩展
|
||||
*/
|
||||
public enum DynamicTypeExpandEnum {
|
||||
VOICE_BOTTLE(4,"声音匹配"),
|
||||
REGISTER_TEXT(5, "注册欢迎"),
|
||||
VOICE_BOTTLE(4,"聲音匹配"),
|
||||
REGISTER_TEXT(5, "註冊歡迎"),
|
||||
;
|
||||
private Integer value;
|
||||
|
||||
|
@@ -4,8 +4,8 @@ package com.accompany.community.constant;
|
||||
* Created By LeeNana on 2019/11/22.
|
||||
*/
|
||||
public enum HotChangeTipEnum {
|
||||
UPDATE(0, "自动更新"),
|
||||
NOT_UPDATE(1, "不自动更新"),
|
||||
UPDATE(0, "自動更新"),
|
||||
NOT_UPDATE(1, "不自動更新"),
|
||||
FINISH_UPDATE(2, "完成更新"),
|
||||
;
|
||||
private Integer value;
|
||||
|
@@ -4,9 +4,9 @@ package com.accompany.community.constant;
|
||||
* Created By LeeNana on 2019/11/13.
|
||||
*/
|
||||
public enum InteractiveActionTypeEnum {
|
||||
COMMENT(1,"评论", "comment"),
|
||||
REPLY(2, "回复", "reply"),
|
||||
LIKE(3, "点赞", "like"),
|
||||
COMMENT(1,"評論", "comment"),
|
||||
REPLY(2, "回復", "reply"),
|
||||
LIKE(3, "點贊", "like"),
|
||||
SHARE(4, "分享", "share"),
|
||||
;
|
||||
|
||||
|
@@ -4,8 +4,8 @@ package com.accompany.community.constant;
|
||||
* Created By LeeNana on 2019/11/13.
|
||||
*/
|
||||
public enum InteractiveDeleteEnum {
|
||||
UNDELETE(0, "未删除"),
|
||||
DELETE(1,"删除"),
|
||||
UNDELETE(0, "未刪除"),
|
||||
DELETE(1,"刪除"),
|
||||
;
|
||||
|
||||
private Integer value;
|
||||
|
@@ -4,8 +4,8 @@ package com.accompany.community.constant;
|
||||
* Created By LeeNana on 2019/11/13.
|
||||
*/
|
||||
public enum InteractiveStatusEnum {
|
||||
UNREAD(0, "未读"),
|
||||
READ(1, "已读"),
|
||||
UNREAD(0, "未讀"),
|
||||
READ(1, "已讀"),
|
||||
;
|
||||
private Integer value;
|
||||
|
||||
|
@@ -4,8 +4,8 @@ package com.accompany.community.constant;
|
||||
* Created By LeeNana on 2019/11/13.
|
||||
*/
|
||||
public enum InteractiveTargetTypeEnum {
|
||||
dynamic(1, "动态"),
|
||||
comment(2, "评论"),
|
||||
dynamic(1, "動態"),
|
||||
comment(2, "評論"),
|
||||
;
|
||||
private Integer value;
|
||||
|
||||
|
@@ -4,8 +4,8 @@ package com.accompany.community.constant;
|
||||
* Created By LeeNana on 2019/11/12.
|
||||
*/
|
||||
public enum LikeStatusEnum {
|
||||
DISLIKE(0, -1, "取消赞"),
|
||||
LIKE(1, 1,"点赞"),
|
||||
DISLIKE(0, -1, "取消贊"),
|
||||
LIKE(1, 1,"點贊"),
|
||||
;
|
||||
|
||||
private Integer value;
|
||||
|
@@ -7,21 +7,21 @@ import java.util.List;
|
||||
* 声音秀 技能卡的状态
|
||||
*/
|
||||
public enum SkillCardAuidoStatusEnum {
|
||||
AUDIT(0,"待审核"),
|
||||
AUDIT(0,"待審核"),
|
||||
|
||||
PASS(1,"审核通过"),
|
||||
PASS(1,"審核通過"),
|
||||
|
||||
NOT_PASS(2,"审核不通过"),
|
||||
NOT_PASS(2,"審核不通過"),
|
||||
|
||||
DELETE(3,"用户已删除"),
|
||||
DELETE(3,"用戶已刪除"),
|
||||
|
||||
SHELVE(4, "上架"),
|
||||
|
||||
UNSHELVE(5, "下架"),
|
||||
|
||||
ReTranscribe(6, "用户已重录"),
|
||||
ReTranscribe(6, "用戶已重錄"),
|
||||
|
||||
/*NOT_PASS_MACHINE(7, "机审不通过"),*/
|
||||
/*NOT_PASS_MACHINE(7, "機審不通過"),*/
|
||||
;
|
||||
private Integer value;
|
||||
|
||||
|
@@ -74,7 +74,7 @@ public class DynamicCommentServiceImpl extends ServiceImpl<DynamicCommentMapper,
|
||||
@Override
|
||||
public int updateByIdAndDynamic(Long id, Long dynamicId, DynamicComment comment) {
|
||||
if(null == id) {
|
||||
throw new IllegalArgumentException("评论id不能为空");
|
||||
throw new IllegalArgumentException("評論id不能為空");
|
||||
}
|
||||
DynamicCommentCondition condition = DynamicCommentCondition.builder()
|
||||
.id(id)
|
||||
@@ -239,7 +239,7 @@ public class DynamicCommentServiceImpl extends ServiceImpl<DynamicCommentMapper,
|
||||
@Override
|
||||
public int logicDeleteById(Long commentId, Long dynamicId) {
|
||||
if(null == commentId) {
|
||||
throw new IllegalArgumentException("评论id不能为空");
|
||||
throw new IllegalArgumentException("評論id不能為空");
|
||||
}
|
||||
DynamicComment record = new DynamicComment();
|
||||
record.setStatus(CommentStatusEnum.DELETE.getValue());
|
||||
@@ -263,7 +263,7 @@ public class DynamicCommentServiceImpl extends ServiceImpl<DynamicCommentMapper,
|
||||
@Override
|
||||
public int logicDeleteByParentId(Long parentId, Long dynamicId) {
|
||||
if(null == parentId) {
|
||||
throw new IllegalArgumentException("评论id不能为空");
|
||||
throw new IllegalArgumentException("評論id不能為空");
|
||||
}
|
||||
DynamicComment record = new DynamicComment();
|
||||
record.setStatus(CommentStatusEnum.DELETE.getValue());
|
||||
|
@@ -169,11 +169,11 @@ public class BoxPrizeMessageService {
|
||||
// 发送小秘书通知
|
||||
String content;
|
||||
if (msg.getPrizeNum() > 1) {
|
||||
content = String.format("恭喜用户 ID:%s 在 %s 房间摘 %s 获得了 %s*%d 价值 %d*%d 钻石", users.getErbanNo(),
|
||||
content = String.format("恭喜用戶 ID:%s 在 %s 房間摘 %s 獲得了 %s*%d 價值 %d*%d 鑽石", users.getErbanNo(),
|
||||
room.getTitle(), msg.getBoxTypeStr(), msg.getPrizeName(), msg.getPrizeNum(),
|
||||
entity.getPlatformValue(), msg.getPrizeNum());
|
||||
} else {
|
||||
content = String.format("恭喜用户 ID:%s 在 %s 房间摘 %s 获得了 %s 价值 %d 钻石", users.getErbanNo(),
|
||||
content = String.format("恭喜用戶 ID:%s 在 %s 房間摘 %s 獲得了 %s 價值 %d 鑽石", users.getErbanNo(),
|
||||
room.getTitle(), msg.getBoxTypeStr(), msg.getPrizeName(), entity.getPlatformValue());
|
||||
}
|
||||
sendBroadMsgToAll(content, "", (byte) 0, "");
|
||||
@@ -185,11 +185,11 @@ public class BoxPrizeMessageService {
|
||||
// 发送小秘书通知
|
||||
String content;
|
||||
if (msg.getPrizeNum() > 1) {
|
||||
content = String.format("恭喜用户 ID:%s 在 %s 房间摘 %s 获得了 %s*%d 价值 %d*%d 钻石", users.getErbanNo(),
|
||||
content = String.format("恭喜用戶 ID:%s 在 %s 房間摘 %s 獲得了 %s*%d 價值 %d*%d 鑽石", users.getErbanNo(),
|
||||
room.getTitle(), msg.getBoxTypeStr(), msg.getPrizeName(), msg.getPrizeNum(),
|
||||
entity.getPlatformValue(), msg.getPrizeNum());
|
||||
} else {
|
||||
content = String.format("恭喜用户 ID:%s 在 %s 房间摘 %s 获得了 %s 价值 %d 钻石", users.getErbanNo(),
|
||||
content = String.format("恭喜用戶 ID:%s 在 %s 房間摘 %s 獲得了 %s 價值 %d 鑽石", users.getErbanNo(),
|
||||
room.getTitle(), msg.getBoxTypeStr(), msg.getPrizeName(), entity.getPlatformValue());
|
||||
}
|
||||
sendBroadMsgToAll(content, "", (byte) 0, "");
|
||||
@@ -333,7 +333,7 @@ public class BoxPrizeMessageService {
|
||||
if (boxType == BoxTypeEnum.NORMAL.getValue()) {
|
||||
msg.setBoxTypeStr("下糖果");
|
||||
} else if (boxType == BoxTypeEnum.DIAMOND.getValue()) {
|
||||
msg.setBoxTypeStr("梦幻许愿");
|
||||
msg.setBoxTypeStr("夢幻許願");
|
||||
}
|
||||
return msg;
|
||||
}
|
||||
|
@@ -12,7 +12,7 @@ import javax.validation.constraints.NotNull;
|
||||
@Data
|
||||
public class WorldGroupChatMemberSearchQuery {
|
||||
|
||||
@NotNull(message = "群聊不能为空")
|
||||
@NotNull(message = "群聊不能為空")
|
||||
private Long chatId;
|
||||
|
||||
private String searchKey;
|
||||
|
@@ -12,10 +12,10 @@ import javax.validation.constraints.NotNull;
|
||||
@Data
|
||||
public class WorldRoomCreateQuery {
|
||||
|
||||
@NotNull(message = "世界不能为空")
|
||||
@NotNull(message = "世界不能為空")
|
||||
private Long worldId;
|
||||
|
||||
@NotNull(message = "房间uid不能为空")
|
||||
@NotNull(message = "房間uid不能為空")
|
||||
private Long roomUid;
|
||||
|
||||
private Long roomId;
|
||||
|
@@ -58,7 +58,7 @@ public class WorldRoomServiceImpl extends ServiceImpl<WorldRoomMapper, WorldRoom
|
||||
List<WorldGroupChat> worldGroupChatList = iWorldGroupChatService.list(new QueryWrapper<WorldGroupChat>()
|
||||
.eq("status", WorldConstant.WorldGroupChatStatus.normal)
|
||||
.eq("world_id",query.getWorldId()));
|
||||
Assert.isTrue(!CollectionUtils.isEmpty(worldGroupChatList),"参数异常");
|
||||
Assert.isTrue(!CollectionUtils.isEmpty(worldGroupChatList),"參數異常");
|
||||
// 查询该用户的世界派对
|
||||
List<WorldRoom> userRoomList = this.list(new QueryWrapper<WorldRoom>().eq("room_uid",query.getRoomUid()));
|
||||
boolean flag = false;
|
||||
|
Reference in New Issue
Block a user