v1.1 小秘书的一些简转繁

This commit is contained in:
2022-10-19 16:20:13 +08:00
parent cffb2178b2
commit b52beb2c11
16 changed files with 44 additions and 44 deletions

View File

@@ -8,7 +8,7 @@ public enum CommentStatusEnum {
WONDERFUL(1,"精彩"),
IMPEACH(2,"举报"),
IMPEACH(2,"舉報"),
DELETE(3,"已下架"),

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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"),
;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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());

View File

@@ -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;
}

View File

@@ -12,7 +12,7 @@ import javax.validation.constraints.NotNull;
@Data
public class WorldGroupChatMemberSearchQuery {
@NotNull(message = "群聊不能")
@NotNull(message = "群聊不能")
private Long chatId;
private String searchKey;

View File

@@ -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;

View File

@@ -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;