diff --git a/rc-service/rc-service-other/other-start/src/test/java/ApiTest.java b/rc-service/rc-service-other/other-start/src/test/java/ApiTest.java index 4800e32e..6a4302e1 100644 --- a/rc-service/rc-service-other/other-start/src/test/java/ApiTest.java +++ b/rc-service/rc-service-other/other-start/src/test/java/ApiTest.java @@ -12,6 +12,11 @@ import static com.red.circle.other.infra.database.mongo.service.team.TeamBillCyc public class ApiTest { + @Test + public void testPassword() { + System.out.println(new BCryptPasswordEncoder().encode("aa1234567890")); + } + @Test public void test() { String[] strings = TeamBillCycleUtils.parseBillBelongToDateRange(20251001); diff --git a/rc-service/rc-service-other/other-start/src/test/java/SpringTest.java b/rc-service/rc-service-other/other-start/src/test/java/SpringTest.java index 70f18a4a..8c15eb65 100644 --- a/rc-service/rc-service-other/other-start/src/test/java/SpringTest.java +++ b/rc-service/rc-service-other/other-start/src/test/java/SpringTest.java @@ -1,5 +1,6 @@ import com.red.circle.OtherServiceApplication; import com.red.circle.common.business.core.enums.SysOriginPlatformEnum; +import com.red.circle.common.business.enums.ConsoleAccountStatusEnum; import com.red.circle.external.inner.endpoint.message.ImGroupClient; import com.red.circle.external.inner.endpoint.message.OfficialNoticeClient; import com.red.circle.external.inner.model.cmd.message.BroadcastGroupMsgBodyCmd; @@ -7,6 +8,7 @@ import com.red.circle.external.inner.model.cmd.message.notice.official.NoticeExt import com.red.circle.external.inner.model.enums.message.GroupMessageTypeEnum; import com.red.circle.external.inner.model.enums.message.OfficialNoticeTypeEnum; import com.red.circle.other.app.convertor.user.UserProfileAppConvertor; +import com.red.circle.other.app.service.user.user.AppUserDataViolationService; import com.red.circle.other.app.util.OfficialNoticeUtils; import com.red.circle.other.domain.gateway.PropCouponGateway; import com.red.circle.other.domain.gateway.user.UserProfileGateway; @@ -15,6 +17,7 @@ import com.red.circle.other.domain.propcoupon.PropCoupon; import com.red.circle.other.infra.database.cache.service.other.EnumConfigCacheService; import com.red.circle.other.infra.database.rds.entity.sys.GameListConfig; import com.red.circle.other.infra.database.rds.service.sys.GameListConfigService; +import com.red.circle.other.inner.model.cmd.user.ApprovalAccountCmd; import com.red.circle.other.inner.model.dto.user.UserProfileDTO; import com.red.circle.tool.core.parse.DataTypeUtils; import org.junit.Test; @@ -48,6 +51,8 @@ public class SpringTest { private ImGroupClient imGroupClient; @Autowired private PropCouponGateway propCouponGateway; + @Autowired + private AppUserDataViolationService userDataViolationService; @Test public void test() { @@ -56,6 +61,18 @@ public class SpringTest { propCouponGateway.expireOverdueCoupons(); } + @Test + public void testApproval() { + Long userId = 1963789902071508993L; + + ApprovalAccountCmd cmd = new ApprovalAccountCmd(); + cmd.setAccountStatusEnum(ConsoleAccountStatusEnum.ARCHIVE_DEVICE); + cmd.setDescription("lottery dollar"); + cmd.setBeApprovalUserId(userId); + userDataViolationService.updateAccountStatus(cmd); + + } + @Test public void execute() { Long userId = 1954021558348390402L;