code
stringlengths
1
1.05M
repo_name
stringlengths
6
83
path
stringlengths
3
242
language
stringclasses
222 values
license
stringclasses
20 values
size
int64
1
1.05M
package cn.itedus.lottery.domain.strategy.service.draw; import cn.itedus.lottery.domain.strategy.model.aggregates.StrategyRich; import cn.itedus.lottery.domain.strategy.model.vo.AwardBriefVO; import cn.itedus.lottery.domain.strategy.repository.IStrategyRepository; import javax.annotation.Resource; /** * @descriptio...
2302_77879529/lottery
lottery-domain/src/main/java/cn/itedus/lottery/domain/strategy/service/draw/DrawStrategySupport.java
Java
apache-2.0
1,222
package cn.itedus.lottery.domain.strategy.service.draw; import cn.itedus.lottery.domain.strategy.model.req.DrawReq; import cn.itedus.lottery.domain.strategy.model.res.DrawResult; /** * @description: 抽奖执行接口 * @author:小傅哥,微信:fustack * @date: 2021/8/28 * @Copyright:公众号:bugstack虫洞栈 | 博客:https://bugstack.cn - 沉淀、分享、成长...
2302_77879529/lottery
lottery-domain/src/main/java/cn/itedus/lottery/domain/strategy/service/draw/IDrawExec.java
Java
apache-2.0
626
package cn.itedus.lottery.domain.strategy.service.draw.impl; import cn.itedus.lottery.domain.strategy.service.algorithm.IDrawAlgorithm; import cn.itedus.lottery.domain.strategy.service.draw.AbstractDrawBase; import com.alibaba.fastjson.JSON; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springfra...
2302_77879529/lottery
lottery-domain/src/main/java/cn/itedus/lottery/domain/strategy/service/draw/impl/DrawExecImpl.java
Java
apache-2.0
2,256
package cn.itedus.lottery.domain.support.ids; /** * @description: 生成ID接口 * @author: 小傅哥,微信:fustack * @date: 2021/9/20 * @github: https://github.com/fuzhengwei * @Copyright: 公众号:bugstack虫洞栈 | 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获! */ public interface IIdGenerator { /** * 获取ID,目前有两种实现方式 * 1...
2302_77879529/lottery
lottery-domain/src/main/java/cn/itedus/lottery/domain/support/ids/IIdGenerator.java
Java
apache-2.0
692
package cn.itedus.lottery.domain.support.ids; import cn.itedus.lottery.common.Constants; import cn.itedus.lottery.domain.support.ids.policy.RandomNumeric; import cn.itedus.lottery.domain.support.ids.policy.ShortCode; import cn.itedus.lottery.domain.support.ids.policy.SnowFlake; import org.springframework.context.annot...
2302_77879529/lottery
lottery-domain/src/main/java/cn/itedus/lottery/domain/support/ids/IdContext.java
Java
apache-2.0
1,750
package cn.itedus.lottery.domain.support.ids.policy; import cn.itedus.lottery.domain.support.ids.IIdGenerator; import org.apache.commons.lang3.RandomStringUtils; import org.springframework.stereotype.Component; /** * @description: 工具类生成 org.apache.commons.lang3.RandomStringUtils * @author: 小傅哥,微信:fustack * @date: ...
2302_77879529/lottery
lottery-domain/src/main/java/cn/itedus/lottery/domain/support/ids/policy/RandomNumeric.java
Java
apache-2.0
728
package cn.itedus.lottery.domain.support.ids.policy; import cn.itedus.lottery.domain.support.ids.IIdGenerator; import org.springframework.stereotype.Component; import java.util.Calendar; import java.util.Random; /** * @description: 短码生成策略,仅支持很小的调用量,用于生成活动配置类编号,保证全局唯一 * @author: 小傅哥,微信:fustack * @date: 2021/9/20 ...
2302_77879529/lottery
lottery-domain/src/main/java/cn/itedus/lottery/domain/support/ids/policy/ShortCode.java
Java
apache-2.0
1,381
package cn.itedus.lottery.domain.support.ids.policy; import cn.hutool.core.lang.Snowflake; import cn.hutool.core.net.NetUtil; import cn.hutool.core.util.IdUtil; import cn.itedus.lottery.domain.support.ids.IIdGenerator; import org.springframework.stereotype.Component; import javax.annotation.PostConstruct; /** * @de...
2302_77879529/lottery
lottery-domain/src/main/java/cn/itedus/lottery/domain/support/ids/policy/SnowFlake.java
Java
apache-2.0
1,417
package cn.itedus.lottery.domain.support.redis; import com.fasterxml.jackson.annotation.JsonAutoDetect; import com.fasterxml.jackson.annotation.PropertyAccessor; import com.fasterxml.jackson.databind.ObjectMapper; import org.springframework.cache.annotation.CachingConfigurerSupport; import org.springframework.cache.an...
2302_77879529/lottery
lottery-domain/src/main/java/cn/itedus/lottery/domain/support/redis/RedisConfig.java
Java
apache-2.0
4,182
package cn.itedus.lottery.infrastructure.dao; import cn.itedus.lottery.domain.activity.model.req.ActivityInfoLimitPageReq; import cn.itedus.lottery.domain.activity.model.req.PartakeReq; import cn.itedus.lottery.domain.activity.model.vo.AlterStateVO; import cn.itedus.lottery.infrastructure.po.Activity; import org.apach...
2302_77879529/lottery
lottery-infrastructure/src/main/java/cn/itedus/lottery/infrastructure/dao/IActivityDao.java
Java
apache-2.0
2,090
package cn.itedus.lottery.infrastructure.dao; import cn.itedus.lottery.infrastructure.po.Award; import org.apache.ibatis.annotations.Mapper; import java.util.List; /** * @description: 奖品信息表DAO * @author: 小傅哥,微信:fustack * @date: 2021/9/4 * @github: https://github.com/fuzhengwei * @Copyright: 公众号:bugstack虫洞栈 | 博客...
2302_77879529/lottery
lottery-infrastructure/src/main/java/cn/itedus/lottery/infrastructure/dao/IAwardDao.java
Java
apache-2.0
777
package cn.itedus.lottery.infrastructure.dao; import cn.itedus.lottery.infrastructure.po.Strategy; import org.apache.ibatis.annotations.Mapper; /** * @description: 策略表DAO * @author: 小傅哥,微信:fustack * @date: 2021/9/4 * @github: https://github.com/fuzhengwei * @Copyright: 公众号:bugstack虫洞栈 | 博客:https://bugstack.cn - ...
2302_77879529/lottery
lottery-infrastructure/src/main/java/cn/itedus/lottery/infrastructure/dao/IStrategyDao.java
Java
apache-2.0
759
package cn.itedus.lottery.infrastructure.dao; import cn.itedus.lottery.infrastructure.po.StrategyDetail; import org.apache.ibatis.annotations.Mapper; import java.util.List; /** * @description: 策略明细表DAO * @author: 小傅哥,微信:fustack * @date: 2021/9/4 * @github: https://github.com/fuzhengwei * @Copyright: 公众号:bugstac...
2302_77879529/lottery
lottery-infrastructure/src/main/java/cn/itedus/lottery/infrastructure/dao/IStrategyDetailDao.java
Java
apache-2.0
1,223
package cn.itedus.lottery.infrastructure.dao; import cn.bugstack.middleware.db.router.annotation.DBRouter; import cn.bugstack.middleware.db.router.annotation.DBRouterStrategy; import cn.itedus.lottery.infrastructure.po.UserStrategyExport; import org.apache.ibatis.annotations.Mapper; import java.util.List; /** * @de...
2302_77879529/lottery
lottery-infrastructure/src/main/java/cn/itedus/lottery/infrastructure/dao/IUserStrategyExportDao.java
Java
apache-2.0
1,574
package cn.itedus.lottery.infrastructure.dao; import cn.bugstack.middleware.db.router.annotation.DBRouter; import cn.itedus.lottery.infrastructure.po.UserTakeActivityCount; import org.apache.ibatis.annotations.Mapper; /** * @description: 用户活动参与次数表Dao * @author: 小傅哥,微信:fustack * @date: 2021/10/1 * @github: https:/...
2302_77879529/lottery
lottery-infrastructure/src/main/java/cn/itedus/lottery/infrastructure/dao/IUserTakeActivityCountDao.java
Java
apache-2.0
1,234
package cn.itedus.lottery.infrastructure.dao; import cn.bugstack.middleware.db.router.annotation.DBRouter; import cn.itedus.lottery.infrastructure.po.UserTakeActivity; import org.apache.ibatis.annotations.Mapper; /** * @description: 用户领取活动表DAO * @author: 小傅哥,微信:fustack * @date: 2021/9/22 * @github: https://github...
2302_77879529/lottery
lottery-infrastructure/src/main/java/cn/itedus/lottery/infrastructure/dao/IUserTakeActivityDao.java
Java
apache-2.0
1,528
package cn.itedus.lottery.infrastructure.dao; import cn.itedus.lottery.infrastructure.po.RuleTree; import org.apache.ibatis.annotations.Mapper; /** * @description: 规则树配置DAO * @author: 小傅哥,微信:fustack * @date: 2021/9/22 * @github: https://github.com/fuzhengwei * @Copyright: 公众号:bugstack虫洞栈 | 博客:https://bugstack.cn...
2302_77879529/lottery
lottery-infrastructure/src/main/java/cn/itedus/lottery/infrastructure/dao/RuleTreeDao.java
Java
apache-2.0
776
package cn.itedus.lottery.infrastructure.dao; import cn.itedus.lottery.infrastructure.po.RuleTreeNode; import org.apache.ibatis.annotations.Mapper; import java.util.List; /** * @description: 规则树节点DAO * @author: 小傅哥,微信:fustack * @date: 2021/9/22 * @github: https://github.com/fuzhengwei * @Copyright: 公众号:bugstack...
2302_77879529/lottery
lottery-infrastructure/src/main/java/cn/itedus/lottery/infrastructure/dao/RuleTreeNodeDao.java
Java
apache-2.0
1,047
package cn.itedus.lottery.infrastructure.dao; import cn.itedus.lottery.infrastructure.po.RuleTreeNodeLine; import org.apache.ibatis.annotations.Mapper; import java.util.List; /** * @description: 规则树节点连线DAO * @author: 小傅哥,微信:fustack * @date: 2021/9/22 * @github: https://github.com/fuzhengwei * @Copyright: 公众号:bu...
2302_77879529/lottery
lottery-infrastructure/src/main/java/cn/itedus/lottery/infrastructure/dao/RuleTreeNodeLineDao.java
Java
apache-2.0
921
package cn.itedus.lottery.infrastructure.po; import java.util.Date; /** * @description: 活动基础信息表 * @author: 小傅哥,微信:fustack * @date: 2021/9/4 * @github: https://github.com/fuzhengwei * @Copyright: 公众号:bugstack虫洞栈 | 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获! */ public class Activity { /** * 自增ID ...
2302_77879529/lottery
lottery-infrastructure/src/main/java/cn/itedus/lottery/infrastructure/po/Activity.java
Java
apache-2.0
3,725
package cn.itedus.lottery.infrastructure.po; import java.util.Date; /** * @description: 奖品表 * @author: 小傅哥,微信:fustack * @date: 2021/9/4 * @github: https://github.com/fuzhengwei * @Copyright: 公众号:bugstack虫洞栈 | 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获! */ public class Award { /** 自增ID */ private Lo...
2302_77879529/lottery
lottery-infrastructure/src/main/java/cn/itedus/lottery/infrastructure/po/Award.java
Java
apache-2.0
1,924
package cn.itedus.lottery.infrastructure.po; import java.util.Date; /** * @description: 规则树 * @author: 小傅哥,微信:fustack * @date: 2021/9/22 * @github: https://github.com/fuzhengwei * @Copyright: 公众号:bugstack虫洞栈 | 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获! */ public class RuleTree { /** 主键ID */ privat...
2302_77879529/lottery
lottery-infrastructure/src/main/java/cn/itedus/lottery/infrastructure/po/RuleTree.java
Java
apache-2.0
1,630
package cn.itedus.lottery.infrastructure.po; /** * @description: 规则树节点 * @author: 小傅哥,微信:fustack * @date: 2021/9/22 * @github: https://github.com/fuzhengwei * @Copyright: 公众号:bugstack虫洞栈 | 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获! */ public class RuleTreeNode { /** 主键ID */ private Long id; /**...
2302_77879529/lottery
lottery-infrastructure/src/main/java/cn/itedus/lottery/infrastructure/po/RuleTreeNode.java
Java
apache-2.0
1,576
package cn.itedus.lottery.infrastructure.po; /** * @description: 规则树节点连线 * @author: 小傅哥,微信:fustack * @date: 2021/9/22 * @github: https://github.com/fuzhengwei * @Copyright: 公众号:bugstack虫洞栈 | 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获! */ public class RuleTreeNodeLine { /** 主键ID */ private Long id; ...
2302_77879529/lottery
lottery-infrastructure/src/main/java/cn/itedus/lottery/infrastructure/po/RuleTreeNodeLine.java
Java
apache-2.0
1,662
package cn.itedus.lottery.infrastructure.po; import java.util.Date; /** * @description: 策略配置 * @author: 小傅哥,微信:fustack * @date: 2021/9/4 * @github: https://github.com/fuzhengwei * @Copyright: 公众号:bugstack虫洞栈 | 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获! */ public class Strategy { /** * 自增ID *...
2302_77879529/lottery
lottery-infrastructure/src/main/java/cn/itedus/lottery/infrastructure/po/Strategy.java
Java
apache-2.0
2,494
package cn.itedus.lottery.infrastructure.po; import java.math.BigDecimal; import java.util.Date; /** * @description: 策略明细 * @author: 小傅哥,微信:fustack * @date: 2021/9/25 * @github: https://github.com/fuzhengwei * @Copyright: 公众号:bugstack虫洞栈 | 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获! */ public class Strategy...
2302_77879529/lottery
lottery-infrastructure/src/main/java/cn/itedus/lottery/infrastructure/po/StrategyDetail.java
Java
apache-2.0
2,469
package cn.itedus.lottery.infrastructure.po; import java.util.Date; /** * @description: 用户策略计算结果表 * @author: 小傅哥,微信:fustack * @date: 2021/9/30 * @github: https://github.com/fuzhengwei * @Copyright: 公众号:bugstack虫洞栈 | 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获! */ public class UserStrategyExport { /** 自增...
2302_77879529/lottery
lottery-infrastructure/src/main/java/cn/itedus/lottery/infrastructure/po/UserStrategyExport.java
Java
apache-2.0
4,140
package cn.itedus.lottery.infrastructure.po; import java.util.Date; /** * @description: 用户领取活动表 * @author: 小傅哥,微信:fustack * @date: 2021/9/22 * @github: https://github.com/fuzhengwei * @Copyright: 公众号:bugstack虫洞栈 | 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获! */ public class UserTakeActivity { /** *...
2302_77879529/lottery
lottery-infrastructure/src/main/java/cn/itedus/lottery/infrastructure/po/UserTakeActivity.java
Java
apache-2.0
2,995
package cn.itedus.lottery.infrastructure.po; import java.util.Date; /** * @description: 用户活动参与次数表 * @author: 小傅哥,微信:fustack * @date: 2021/10/1 * @github: https://github.com/fuzhengwei * @Copyright: 公众号:bugstack虫洞栈 | 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获! */ public class UserTakeActivityCount { /**...
2302_77879529/lottery
lottery-infrastructure/src/main/java/cn/itedus/lottery/infrastructure/po/UserTakeActivityCount.java
Java
apache-2.0
1,912
package cn.itedus.lottery.infrastructure.repository; import cn.itedus.lottery.common.Constants; import cn.itedus.lottery.domain.activity.model.aggregates.ActivityInfoLimitPageRich; import cn.itedus.lottery.domain.activity.model.req.ActivityInfoLimitPageReq; import cn.itedus.lottery.domain.activity.model.req.PartakeReq...
2302_77879529/lottery
lottery-infrastructure/src/main/java/cn/itedus/lottery/infrastructure/repository/ActivityRepository.java
Java
apache-2.0
11,214
package cn.itedus.lottery.infrastructure.repository; import cn.itedus.lottery.domain.award.repository.IOrderRepository; import cn.itedus.lottery.infrastructure.dao.IUserStrategyExportDao; import cn.itedus.lottery.infrastructure.po.UserStrategyExport; import org.springframework.stereotype.Component; import org.springfr...
2302_77879529/lottery
lottery-infrastructure/src/main/java/cn/itedus/lottery/infrastructure/repository/OrderRepository.java
Java
apache-2.0
1,308
package cn.itedus.lottery.infrastructure.repository; import cn.itedus.lottery.common.Constants; import cn.itedus.lottery.domain.rule.model.aggregates.TreeRuleRich; import cn.itedus.lottery.domain.rule.model.vo.TreeNodeVO; import cn.itedus.lottery.domain.rule.model.vo.TreeNodeLineVO; import cn.itedus.lottery.domain.rul...
2302_77879529/lottery
lottery-infrastructure/src/main/java/cn/itedus/lottery/infrastructure/repository/RuleRepository.java
Java
apache-2.0
3,923
package cn.itedus.lottery.infrastructure.repository; import cn.itedus.lottery.domain.strategy.model.aggregates.StrategyRich; import cn.itedus.lottery.domain.strategy.model.vo.AwardBriefVO; import cn.itedus.lottery.domain.strategy.model.vo.StrategyBriefVO; import cn.itedus.lottery.domain.strategy.model.vo.StrategyDetai...
2302_77879529/lottery
lottery-infrastructure/src/main/java/cn/itedus/lottery/infrastructure/repository/StrategyRepository.java
Java
apache-2.0
4,300
package cn.itedus.lottery.infrastructure.repository; import cn.itedus.lottery.common.Constants; import cn.itedus.lottery.domain.activity.model.vo.ActivityPartakeRecordVO; import cn.itedus.lottery.domain.activity.model.vo.DrawOrderVO; import cn.itedus.lottery.domain.activity.model.vo.InvoiceVO; import cn.itedus.lottery...
2302_77879529/lottery
lottery-infrastructure/src/main/java/cn/itedus/lottery/infrastructure/repository/UserTakeActivityRepository.java
Java
apache-2.0
7,996
package cn.itedus.lottery.infrastructure.util; import org.springframework.data.redis.core.BoundListOperations; import org.springframework.data.redis.core.RedisCallback; import org.springframework.data.redis.core.RedisTemplate; import org.springframework.stereotype.Component; import org.springframework.util.CollectionU...
2302_77879529/lottery
lottery-infrastructure/src/main/java/cn/itedus/lottery/infrastructure/util/RedisUtil.java
Java
apache-2.0
17,100
package cn.itedus.lottery; import org.apache.dubbo.config.spring.context.annotation.EnableDubbo; import org.springframework.beans.factory.annotation.Configurable; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; /** * @description: LotteryApplica...
2302_77879529/lottery
lottery-interfaces/src/main/java/cn/itedus/lottery/LotteryApplication.java
Java
apache-2.0
739
package cn.itedus.lottery.interfaces.assembler; import cn.itedus.lottery.domain.activity.model.vo.ActivityVO; import cn.itedus.lottery.domain.strategy.model.vo.DrawAwardVO; import cn.itedus.lottery.rpc.activity.booth.dto.AwardDTO; import cn.itedus.lottery.rpc.activity.deploy.dto.ActivityDTO; import org.mapstruct.Mappe...
2302_77879529/lottery
lottery-interfaces/src/main/java/cn/itedus/lottery/interfaces/assembler/ActivityMapping.java
Java
apache-2.0
969
package cn.itedus.lottery.interfaces.assembler; import cn.itedus.lottery.domain.strategy.model.vo.DrawAwardVO; import cn.itedus.lottery.rpc.activity.booth.dto.AwardDTO; import org.mapstruct.Mapper; import org.mapstruct.Mapping; import org.mapstruct.ReportingPolicy; /** * @description: 对象转换配置 * @author: 小傅哥,微信:fusta...
2302_77879529/lottery
lottery-interfaces/src/main/java/cn/itedus/lottery/interfaces/assembler/AwardMapping.java
Java
apache-2.0
937
package cn.itedus.lottery.interfaces.assembler; import org.mapstruct.InheritConfiguration; import org.mapstruct.InheritInverseConfiguration; import org.mapstruct.MapperConfig; import org.mapstruct.Mapping; import java.util.List; import java.util.stream.Stream; /** * @description: MapStruct 对象映射接口 * @author: 小傅哥,微信...
2302_77879529/lottery
lottery-interfaces/src/main/java/cn/itedus/lottery/interfaces/assembler/IMapping.java
Java
apache-2.0
1,809
package cn.itedus.lottery.interfaces.facade; import cn.itedus.lottery.application.process.draw.IActivityDrawProcess; import cn.itedus.lottery.application.process.draw.req.DrawProcessReq; import cn.itedus.lottery.application.process.draw.res.DrawProcessResult; import cn.itedus.lottery.application.process.draw.res.RuleQ...
2302_77879529/lottery
lottery-interfaces/src/main/java/cn/itedus/lottery/interfaces/facade/LotteryActivityBooth.java
Java
apache-2.0
5,946
package cn.itedus.lottery.interfaces.facade; import cn.itedus.lottery.application.process.deploy.IActivityDeployProcess; import cn.itedus.lottery.common.Result; import cn.itedus.lottery.domain.activity.model.aggregates.ActivityInfoLimitPageRich; import cn.itedus.lottery.domain.activity.model.req.ActivityInfoLimitPageR...
2302_77879529/lottery
lottery-interfaces/src/main/java/cn/itedus/lottery/interfaces/facade/LotteryActivityDeploy.java
Java
apache-2.0
3,087
package cn.itedus.lottery.test.model; public class User { }
2302_77879529/lottery
lottery-interfaces/src/test/java/cn/itedus/lottery/test/model/User.java
Java
apache-2.0
61
package cn.itedus.lottery.test.vo2dto; import cn.itedus.lottery.test.vo2dto.bbb.User; import org.springframework.beans.BeanUtils; import java.util.List; /** * @description: 普通对象转换 * @author: 小傅哥,微信:fustack * @date: 2022/1/16 * @github: https://github.com/fuzhengwei * @Copyright: 公众号:bugstack虫洞栈 | 博客:https://bug...
2302_77879529/lottery
lottery-interfaces/src/test/java/cn/itedus/lottery/test/vo2dto/ApiTest01.java
Java
apache-2.0
957
package cn.itedus.lottery.test.vo2dto; import cn.itedus.lottery.test.vo2dto.aaa.User; /** * @description: lombok 对象转换, * @author: 小傅哥,微信:fustack * @date: 2022/1/16 * @github: https://github.com/fuzhengwei * @Copyright: 公众号:bugstack虫洞栈 | 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获! */ public class ApiTest02 {...
2302_77879529/lottery
lottery-interfaces/src/test/java/cn/itedus/lottery/test/vo2dto/ApiTest02.java
Java
apache-2.0
504
package cn.itedus.lottery.test.vo2dto; import cn.itedus.lottery.test.vo2dto . bbb. User ; /** * @description: import * 引入转换 * @author: 小傅哥,微信:fustack * @date: 2022/1/16 * @github: https://github.com/fuzhengwei * @Copyright: 公众号:bugstack虫洞栈 | 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获! */ public cla...
2302_77879529/lottery
lottery-interfaces/src/test/java/cn/itedus/lottery/test/vo2dto/ApiTest03.java
Java
apache-2.0
517
package cn.itedus.lottery.test.vo2dto; import cn.itedus.lottery.test.vo2dto.ccc.User; /** * @description: 继承对象转换 * @author: 小傅哥,微信:fustack * @date: 2022/1/16 * @github: https://github.com/fuzhengwei * @Copyright: 公众号:bugstack虫洞栈 | 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获! */ public class ApiTest04 { ...
2302_77879529/lottery
lottery-interfaces/src/test/java/cn/itedus/lottery/test/vo2dto/ApiTest04.java
Java
apache-2.0
733
package cn.itedus.lottery.test.vo2dto; /** * @description: 同包下对象转换 * @author: 小傅哥,微信:fustack * @date: 2022/1/16 * @github: https://github.com/fuzhengwei * @Copyright: 公众号:bugstack虫洞栈 | 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获! */ public class ApiTest05 { public void test_vo2dto(User user) { U...
2302_77879529/lottery
lottery-interfaces/src/test/java/cn/itedus/lottery/test/vo2dto/ApiTest05.java
Java
apache-2.0
606
package cn.itedus.lottery.test.vo2dto; /** * @description: 引入包名转换 * @author: 小傅哥,微信:fustack * @date: 2022/1/16 * @github: https://github.com/fuzhengwei * @Copyright: 公众号:bugstack虫洞栈 | 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获! */ public class ApiTest06 { public void test_vo2dto(cn.itedus.lottery.test.v...
2302_77879529/lottery
lottery-interfaces/src/test/java/cn/itedus/lottery/test/vo2dto/ApiTest06.java
Java
apache-2.0
638
package cn.itedus.lottery.test.vo2dto; import javax.xml.crypto.Data; public class User { private Long id; private String userId; private String userNickName; private String userHead; private String userPassword; private Data createTime; private Data updateTime; public Long getId() { ...
2302_77879529/lottery
lottery-interfaces/src/test/java/cn/itedus/lottery/test/vo2dto/User.java
Java
apache-2.0
1,385
package cn.itedus.lottery.test.vo2dto; public class UserDTO { private String userId; private String userNickName; private String userHead; private int page; private int rows; public String getUserId() { return userId; } public void setUserId(String userId) { this.user...
2302_77879529/lottery
lottery-interfaces/src/test/java/cn/itedus/lottery/test/vo2dto/UserDTO.java
Java
apache-2.0
921
package cn.itedus.lottery.test.vo2dto.aaa; import javax.xml.crypto.Data; @lombok.Data public class User { private Long id; private String userId; private String userNickName; private String userHead; private String userPassword; private Data createTime; private Data updateTime; }
2302_77879529/lottery
lottery-interfaces/src/test/java/cn/itedus/lottery/test/vo2dto/aaa/User.java
Java
apache-2.0
313
package cn.itedus.lottery.test.vo2dto.bbb; import lombok.Data; @Data public class User { private static final long serialVersionUID = 1L; private String userId; private String userNickName; private String userHead; private String userPassword; private Data createTime; private Data updat...
2302_77879529/lottery
lottery-interfaces/src/test/java/cn/itedus/lottery/test/vo2dto/bbb/User.java
Java
apache-2.0
1,305
package cn.itedus.lottery.test.vo2dto.ccc; public class Page { /** * 开始 limit 第1个入参 */ private int pageBegin = 0; /** * 开始 limit 第2个入参 */ private int pageEnd = 0; /** * 页数 */ private int page; /** * 行数 */ private int rows; public Page() {...
2302_77879529/lottery
lottery-interfaces/src/test/java/cn/itedus/lottery/test/vo2dto/ccc/Page.java
Java
apache-2.0
1,672
package cn.itedus.lottery.test.vo2dto.ccc; import javax.xml.crypto.Data; public class User extends Page { private Long id; private String userId; private String userNickName; private String userHead; private String userPassword; private Data createTime; private Data updateTime; publi...
2302_77879529/lottery
lottery-interfaces/src/test/java/cn/itedus/lottery/test/vo2dto/ccc/User.java
Java
apache-2.0
1,402
package cn.itedus.lottery.rpc.activity.booth; import cn.itedus.lottery.rpc.activity.booth.req.DrawReq; import cn.itedus.lottery.rpc.activity.booth.req.QuantificationDrawReq; import cn.itedus.lottery.rpc.activity.booth.res.DrawRes; /** * @description: 抽奖活动展台接口 * @author: 小傅哥,微信:fustack * @date: 2021/10/16 * @githu...
2302_77879529/lottery
lottery-rpc/src/main/java/cn/itedus/lottery/rpc/activity/booth/ILotteryActivityBooth.java
Java
apache-2.0
946
package cn.itedus.lottery.rpc.activity.booth.dto; import java.io.Serializable; import java.util.Date; /** * @description: 奖品信息 * @author: 小傅哥,微信:fustack * @date: 2021/10/16 * @github: https://github.com/fuzhengwei * @Copyright: 公众号:bugstack虫洞栈 | 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获! */ public class Aw...
2302_77879529/lottery
lottery-rpc/src/main/java/cn/itedus/lottery/rpc/activity/booth/dto/AwardDTO.java
Java
apache-2.0
3,320
package cn.itedus.lottery.rpc.activity.booth.req; import java.io.Serializable; /** * @description: 抽奖请求 * @author: 小傅哥,微信:fustack * @date: 2021/10/16 * @github: https://github.com/fuzhengwei * @Copyright: 公众号:bugstack虫洞栈 | 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获! */ public class DrawReq implements Serial...
2302_77879529/lottery
lottery-rpc/src/main/java/cn/itedus/lottery/rpc/activity/booth/req/DrawReq.java
Java
apache-2.0
946
package cn.itedus.lottery.rpc.activity.booth.req; import java.util.Map; /** * @description: 量化人群抽奖请求参数 * @author: 小傅哥,微信:fustack * @date: 2021/10/16 * @github: https://github.com/fuzhengwei * @Copyright: 公众号:bugstack虫洞栈 | 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获! */ public class QuantificationDrawReq { ...
2302_77879529/lottery
lottery-rpc/src/main/java/cn/itedus/lottery/rpc/activity/booth/req/QuantificationDrawReq.java
Java
apache-2.0
1,003
package cn.itedus.lottery.rpc.activity.booth.res; import cn.itedus.lottery.common.Result; import cn.itedus.lottery.rpc.activity.booth.dto.AwardDTO; import java.io.Serializable; /** * @description: 抽奖结果 * @author: 小傅哥,微信:fustack * @date: 2021/10/16 * @github: https://github.com/fuzhengwei * @Copyright: 公众号:bugst...
2302_77879529/lottery
lottery-rpc/src/main/java/cn/itedus/lottery/rpc/activity/booth/res/DrawRes.java
Java
apache-2.0
803
package cn.itedus.lottery.rpc.activity.deploy; import cn.itedus.lottery.rpc.activity.deploy.req.ActivityPageReq; import cn.itedus.lottery.rpc.activity.deploy.res.ActivityRes; /** * @description: 抽奖活动部署服务接口 * @author: 小傅哥,微信:fustack * @date: 2021/12/11 * @github: https://github.com/fuzhengwei * @Copyright: 公众号:bu...
2302_77879529/lottery
lottery-rpc/src/main/java/cn/itedus/lottery/rpc/activity/deploy/ILotteryActivityDeploy.java
Java
apache-2.0
750
package cn.itedus.lottery.rpc.activity.deploy.dto; import java.io.Serializable; import java.util.Date; /** * @description: 活动信息 * @author: 小傅哥,微信:fustack * @date: 2021/12/11 * @github: https://github.com/fuzhengwei * @Copyright: 公众号:bugstack虫洞栈 | 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获! */ public class A...
2302_77879529/lottery
lottery-rpc/src/main/java/cn/itedus/lottery/rpc/activity/deploy/dto/ActivityDTO.java
Java
apache-2.0
4,561
package cn.itedus.lottery.rpc.activity.deploy.req; import cn.itedus.lottery.common.PageRequest; import java.io.Serializable; /** * @description: 分页查询活动 * @author: 小傅哥,微信:fustack * @date: 2021/12/11 * @github: https://github.com/fuzhengwei * @Copyright: 公众号:bugstack虫洞栈 | 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都...
2302_77879529/lottery
lottery-rpc/src/main/java/cn/itedus/lottery/rpc/activity/deploy/req/ActivityPageReq.java
Java
apache-2.0
1,357
package cn.itedus.lottery.rpc.activity.deploy.res; import cn.itedus.lottery.common.Result; import cn.itedus.lottery.rpc.activity.deploy.dto.ActivityDTO; import java.io.Serializable; import java.util.List; /** * @description: 活动查询结果 * @author: 小傅哥,微信:fustack * @date: 2021/12/11 * @github: https://github.com/fuzhe...
2302_77879529/lottery
lottery-rpc/src/main/java/cn/itedus/lottery/rpc/activity/deploy/res/ActivityRes.java
Java
apache-2.0
1,457
import 'package:flutter/material.dart'; import 'package:shared_preferences/shared_preferences.dart'; import 'dart:convert'; void main() { runApp(const TodoApp()); } class TodoApp extends StatelessWidget { const TodoApp({super.key}); @override Widget build(BuildContext context) { return MaterialApp( ...
2302_80329073/Flutter_Small_Project
lib/main.dart
Dart
unknown
9,838
class Todo { String title; bool isDone; Todo({ required this.title, this.isDone = false, }); }
2302_80329073/Flutter_Small_Project
lib/models/todo.dart
Dart
unknown
112
import 'package:flutter/material.dart'; import '../models/todo.dart'; import '../widgets/todo_list.dart'; class HomeScreen extends StatefulWidget { @override _HomeScreenState createState() => _HomeScreenState(); } class _HomeScreenState extends State<HomeScreen> { final List<Todo> _todos = [ Todo(title: '示例...
2302_80329073/Flutter_Small_Project
lib/screens/home_screen.dart
Dart
unknown
1,825
import 'package:flutter/material.dart'; import '../models/todo.dart'; class TodoItem extends StatelessWidget { final Todo todo; final Function toggleStatus; TodoItem({required this.todo, required this.toggleStatus}); @override Widget build(BuildContext context) { return ListTile( title: Text(todo...
2302_80329073/Flutter_Small_Project
lib/widgets/todo_item.dart
Dart
unknown
615
import 'package:flutter/material.dart'; import '../models/todo.dart'; import 'todo_item.dart'; class TodoList extends StatelessWidget { final List<Todo> todos; final Function(int) toggleStatus; TodoList({required this.todos, required this.toggleStatus}); @override Widget build(BuildContext context) { r...
2302_80329073/Flutter_Small_Project
lib/widgets/todo_list.dart
Dart
unknown
551
// Script for compiling build behavior. It is built in the build plug-in and cannot be modified currently. import { hapTasks } from '@ohos/hvigor-ohos-plugin'; export default { system: hapTasks, /* Built-in plugin of Hvigor. It cannot be modified. */ plugins: [] /* Custom plugin to extend the functiona...
2302_80329073/Flutter_Small_Project
ohos/entry/hvigorfile.ts
TypeScript
unknown
341
import hilog from '@ohos.hilog'; import TestRunner from '@ohos.application.testRunner'; import AbilityDelegatorRegistry from '@ohos.app.ability.abilityDelegatorRegistry'; var abilityDelegator = undefined var abilityDelegatorArguments = undefined async function onAbilityCreateCallback() { hilog.info(0x0000, 'test...
2302_80329073/Flutter_Small_Project
ohos/entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts
TypeScript
unknown
2,120
import path from 'path' import { injectNativeModules } from 'flutter-hvigor-plugin'; injectNativeModules(__dirname, path.dirname(__dirname))
2302_80329073/Flutter_Small_Project
ohos/hvigorconfig.ts
TypeScript
unknown
141
import path from 'path' import { appTasks } from '@ohos/hvigor-ohos-plugin'; import { flutterHvigorPlugin } from 'flutter-hvigor-plugin'; export default { system: appTasks, /* Built-in plugin of Hvigor. It cannot be modified. */ plugins:[flutterHvigorPlugin(path.dirname(__dirname))] /* Custom plugin t...
2302_80329073/Flutter_Small_Project
ohos/hvigorfile.ts
TypeScript
unknown
362
#!bin/bash if [ -d "/home/frappe/frappe-bench/apps/frappe" ]; then echo "Bench already exists, skipping init" cd frappe-bench bench start else echo "Creating new bench..." fi bench init --skip-redis-config-generation frappe-bench --version version-15 cd frappe-bench # Use containers instead of local...
2302_79757062/insights
docker/init.sh
Shell
agpl-3.0
984
<!DOCTYPE html> <html lang="en" class="h-full bg-gray-100"> <head> <meta charset="UTF-8" /> <link rel="icon" href="/favicon.png" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Frappe Insights</title> </head> <body class="h-full"> <div id="app" class="h-full"></div> <di...
2302_79757062/insights
frontend/index.html
HTML
agpl-3.0
608
<!DOCTYPE html> <html lang="en" class="h-full bg-gray-100"> <head> <meta charset="UTF-8" /> <link rel="icon" href="/favicon.png" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Frappe Insights</title> </head> <body class="h-full"> <div id="app" class="h-full"></div> <di...
2302_79757062/insights
frontend/index_v2.html
HTML
agpl-3.0
545
// @ts-check import { defineConfig, devices } from '@playwright/test' /** * Read environment variables from file. * https://github.com/motdotla/dotenv */ // require('dotenv').config(); /** * @see https://playwright.dev/docs/test-configuration */ export default defineConfig({ testDir: './tests', /* Run tests in...
2302_79757062/insights
frontend/playwright.config.js
JavaScript
agpl-3.0
2,001
module.exports = { plugins: { tailwindcss: { config: './tailwind.config.js' }, autoprefixer: {}, }, }
2302_79757062/insights
frontend/postcss.config.js
JavaScript
agpl-3.0
108
<template> <div class="flex h-screen w-screen bg-white antialiased"> <RouterView v-if="isGuestView" /> <Suspense v-else> <AppShell /> </Suspense> <Toaster :visible-toasts="2" position="bottom-right" /> </div> </template> <script setup> import AppShell from '@/components/AppShell.vue' import sessionStore f...
2302_79757062/insights
frontend/src/App.vue
Vue
agpl-3.0
998
import { call, createDocumentResource, createListResource, createResource } from 'frappe-ui' import getWhitelistedMethods from './whitelistedMethods' export const login = (email: string, password: string): Promise<SessionUser> => { return call('login', { usr: email, pwd: password }) } export const logout = (): Promis...
2302_79757062/insights
frontend/src/api/index.ts
TypeScript
agpl-3.0
1,935
const whitelistedMethods = { 'Insights Settings': { update_settings: 'update_settings', }, 'Insights Data Source': { enqueue_sync_tables: 'enqueue_sync_tables', get_tables: 'get_tables', get_queries: 'get_queries', update_table_link: 'update_table_link', delete_table_link: 'delete_table_link', }, 'Insi...
2302_79757062/insights
frontend/src/api/whitelistedMethods.ts
TypeScript
agpl-3.0
626
@font-face { font-family: 'Fira Code'; src: url('FiraCode-Light.woff2') format('woff2'), url("FiraCode-Light.woff") format("woff"); font-weight: 300; font-style: normal; } @font-face { font-family: 'Fira Code'; src: url('FiraCode-Regular.woff2') format('woff2'), url("FiraCode-Regular.woff") format(...
2302_79757062/insights
frontend/src/assets/FiraCode/fira_code.css
CSS
agpl-3.0
1,302
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100; font-display: swap; src: url("Inter-Thin.woff2?v=3.12") format("woff2"), url("Inter-Thin.woff?v=3.12") format("woff"); } @font-face { font-family: 'Inter'; font-style: italic; font-weight: 100; font-display: swap; src:...
2302_79757062/insights
frontend/src/assets/Inter/inter.css
CSS
agpl-3.0
4,006
<script setup> import Code from '@/components/Controls/Code.vue' import useQuery from '@/query/resources/useQuery' import { createResource } from 'frappe-ui' import { TextEditor } from 'frappe-ui' import { computed, reactive, inject } from 'vue' const emit = defineEmits(['update:show']) const props = defineProps({ sh...
2302_79757062/insights
frontend/src/components/AlertDialog.vue
Vue
agpl-3.0
6,286
<template> <div class="flex flex-1 overflow-hidden text-base"> <Sidebar v-if="!hideSidebar" /> <RouterView v-slot="{ Component }"> <Suspense> <div class="flex flex-1 flex-col overflow-hidden"> <component :is="Component" :key="$route.fullPath" /> </div> <template #fallback> <SuspenseFallbac...
2302_79757062/insights
frontend/src/components/AppShell.vue
Vue
agpl-3.0
980
<template> <div class="flex flex-1 flex-col overflow-hidden bg-white p-5"> <Breadcrumbs /> <header class="flex h-10 flex-shrink-0 overflow-visible"> <slot name="header" /> </header> <main class="flex flex-1 overflow-hidden"> <slot name="main" /> </main> </div> </template> <script setup> import Breadc...
2302_79757062/insights
frontend/src/components/BasePage.vue
Vue
agpl-3.0
372
<template> <nav> <ol role="list" class="flex h-5 flex-shrink-0 items-center space-x-1 font-light text-gray-800" > <li class="flex items-center"> <router-link to="/" class="mr-1"> <HomeIcon class="h-4 w-4" /> </router-link> <FeatherIcon name="chevron-right" class="h-4 w-4 flex-sh...
2302_79757062/insights
frontend/src/components/Breadcrumbs.vue
Vue
agpl-3.0
1,039
<script setup> import { areDeeplyEqual } from '@/utils' import * as echarts from 'echarts' import { onBeforeUnmount, onMounted, ref, watch } from 'vue' import ChartTitle from './ChartTitle.vue' const props = defineProps({ title: { type: String, required: false }, subtitle: { type: String, required: false }, options...
2302_79757062/insights
frontend/src/components/Charts/BaseChart.vue
Vue
agpl-3.0
1,622
<script setup> const props = defineProps({ title: { type: String, required: false }, }) </script> <template> <div class="px-4 py-2 text-lg font-medium leading-6 text-gray-800"> {{ title }} </div> </template>
2302_79757062/insights
frontend/src/components/Charts/ChartTitle.vue
Vue
agpl-3.0
214
<template> <transition name="fade"> <div v-show="show" class="absolute z-10 flex h-full w-full justify-center bg-gray-50/60 pt-20 text-base backdrop-blur-sm backdrop-grayscale" > <div class="max-h-[28rem] w-[38rem] rounded border bg-white shadow-md"> <div class="flex items-center border-b px-3"> ...
2302_79757062/insights
frontend/src/components/CommandPalette.vue
Vue
agpl-3.0
2,971
<template> <component :is="tag" class="contenteditable align-middle outline-none transition-all before:text-gray-500" :contenteditable="disabled ? false : contenteditable" :placeholder="placeholder" @input="update" @blur="update('blur')" @paste="onPaste" @keypress="onKeypress" ref="element" spellch...
2302_79757062/insights
frontend/src/components/ContentEditable.vue
Vue
agpl-3.0
2,591
<template> <div class="flex flex-col overflow-hidden text-base"> <span class="mb-2 block text-sm leading-4 text-gray-700"> {{ label || 'Attach File' }} </span> <input ref="fileInput" id="attachment" type="file" :accept="fileType" class="hidden" :disabled="!!file" @input="selectFile" /> ...
2302_79757062/insights
frontend/src/components/Controls/Attachment.vue
Vue
agpl-3.0
1,627
<template> <Combobox v-model="selectedValue" :multiple="multiple" nullable v-slot="{ open: isComboboxOpen }" > <Popover class="w-full" v-model:show="showOptions" :placement="placement"> <template #target="{ open: openPopover, togglePopover, close: closePopover }"> <slot name="target" v-bind...
2302_79757062/insights
frontend/src/components/Controls/Autocomplete.vue
Vue
agpl-3.0
9,956
<template> <SwitchGroup v-bind="$attrs"> <div class="flex items-center justify-between text-sm"> <SwitchLabel class="mr-4 select-none text-base font-medium text-gray-800"> {{ $props.label }} </SwitchLabel> <Switch v-model="enabled" class="relative inline-flex items-center rounded-full transition...
2302_79757062/insights
frontend/src/components/Controls/Checkbox.vue
Vue
agpl-3.0
986
<template> <codemirror :tab-size="2" :disabled="readOnly" v-model="code" class="font-[400]" :autofocus="autofocus" :indent-with-tab="true" :extensions="extensions" :placeholder="placeholder" @update="onUpdate" @focus="emit('focus')" @blur="emit('blur')" @ready="codeMirror = $event" /> </templa...
2302_79757062/insights
frontend/src/components/Controls/Code.vue
Vue
agpl-3.0
4,723
<template> <ColorPicker :modelValue="value" @update:modelValue="handleColorChange" :placement="placement"> <template #target="{ togglePopover }"> <div class="relative flex items-center justify-between"> <div class="absolute left-2 top-[6px] z-10 h-4 w-4 rounded shadow-sm" @click="togglePopover" ...
2302_79757062/insights
frontend/src/components/Controls/ColorInput.vue
Vue
agpl-3.0
2,013
<template> <div> <label class="mb-1.5 block text-xs text-gray-600">Color Palette</label> <Autocomplete v-model="selectedPalette" :options="colorPaletteOptions" placeholder="Color palette" > </Autocomplete> <div class="mt-1.5 flex flex-wrap gap-1 px-1"> <template v-for="(color, index) in getPa...
2302_79757062/insights
frontend/src/components/Controls/ColorPalette.vue
Vue
agpl-3.0
3,682
<template> <Popover transition="default" :placement="placement" class="!block w-full" popoverClass="!min-w-fit" > <template #target="{ togglePopover, isOpen }"> <slot name="target" :togglePopover=" () => { togglePopover() setSelectorPosition(modelColor) } " :isOpen="...
2302_79757062/insights
frontend/src/components/Controls/ColorPicker.vue
Vue
agpl-3.0
8,705
<template> <Popover @open="selectCurrentMonthYear" class="flex w-full [&>div:first-child]:w-full"> <template #target="{ togglePopover }"> <input readonly type="text" :placeholder="placeholder" :value="value && formatter ? formatter(value) : value" @focus="!readonly ? togglePopover() : null" ...
2302_79757062/insights
frontend/src/components/Controls/DatePicker.vue
Vue
agpl-3.0
6,647
<template> <div class="w-fit select-none space-y-3 bg-white p-1 text-base"> <div class="flex items-center text-gray-700"> <div class="flex h-6 w-6 cursor-pointer items-center justify-center rounded hover:bg-gray-100" > <FeatherIcon @click="prevMonth" name="chevron-left" class="h-5 w-5" /> </div> ...
2302_79757062/insights
frontend/src/components/Controls/DatePickerFlat.vue
Vue
agpl-3.0
5,696
<template> <Popover @open="selectCurrentMonthYear" class="flex w-full [&>div:first-child]:w-full"> <template #target="{ togglePopover }"> <input readonly type="text" :placeholder="placeholder" :value="formatter ? formatDates(value) : value" @focus="!readonly ? togglePopover() : null" :clas...
2302_79757062/insights
frontend/src/components/Controls/DateRangePicker.vue
Vue
agpl-3.0
8,007