getData() {
11 | return CommonResult.success("Hello");
12 | }
13 |
14 | }
15 |
--------------------------------------------------------------------------------
/memo-parent/memo-common/common-domain/src/main/java/vip/yeee/memo/common/domain/mapper/api/ApiUserIdentityMapper.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.common.domain.mapper.api;
2 |
3 | import com.baomidou.mybatisplus.core.mapper.BaseMapper;
4 | import vip.yeee.memo.common.domain.entity.api.ApiUserIdentity;
5 |
6 | /**
7 | *
8 | * 三方开放平台用户 Mapper 接口
9 | *
10 | *
11 | * @author https://www.yeee.vip
12 | * @since 2022-02-22
13 | */
14 | public interface ApiUserIdentityMapper extends BaseMapper {
15 |
16 | }
17 |
--------------------------------------------------------------------------------
/memo-parent/memo-common/common-springcloud/common-springcloud-openfeign/src/main/java/vip/yeee/memo/common/scloud/openfeign/CommonSpringCloudOpenfeignAutoConfigure.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.common.scloud.openfeign;
2 |
3 | import org.springframework.context.annotation.ComponentScan;
4 |
5 | /**
6 | * description......
7 | *
8 | * @author https://www.yeee.vip
9 | * @since 2023/2/20 17:44
10 | */
11 | @ComponentScan("vip.yeee.memo.common.scloud.openfeign")
12 | public class CommonSpringCloudOpenfeignAutoConfigure {
13 | }
14 |
--------------------------------------------------------------------------------
/middle-ware/elasticsearch/src/main/java/vip/yeee/memo/demo/elasticsearch/domain/mysql/mapper/TProjectMapper.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.demo.elasticsearch.domain.mysql.mapper;
2 |
3 | import com.baomidou.mybatisplus.core.mapper.BaseMapper;
4 | import vip.yeee.memo.demo.elasticsearch.domain.mysql.entity.TProject;
5 |
6 | /**
7 | *
8 | * 众筹项目表 Mapper 接口
9 | *
10 | *
11 | * @author https://www.yeee.vip
12 | * @since 2022-05-17
13 | */
14 | public interface TProjectMapper extends BaseMapper {
15 |
16 | }
17 |
--------------------------------------------------------------------------------
/spring-cloud/rpc/openfeign/feign-client-02/src/main/java/vip/yeee/memo/demo/scloud/rpc/feign02/controller/Feign02Controller.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.demo.scloud.rpc.feign02.controller;
2 |
3 | import org.springframework.web.bind.annotation.*;
4 | import vip.yeee.memo.base.model.rest.CommonResult;
5 |
6 | @RestController
7 | public class Feign02Controller {
8 |
9 | @GetMapping("call/get-data")
10 | public CommonResult getData() {
11 | return CommonResult.success(" Yeee !!!");
12 | }
13 |
14 | }
15 |
--------------------------------------------------------------------------------
/third-sdk/blockchain/hyperchain/hc-call-smart-contract-demo/src/main/java/vip/yeee/memo/demo/blockchain/hyperchain/biz/bo/BlockchainAccountBO.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.demo.blockchain.hyperchain.biz.bo;
2 |
3 | import lombok.Data;
4 | import lombok.experimental.Accessors;
5 |
6 | @Data
7 | @Accessors(chain = true)
8 | public class BlockchainAccountBO {
9 | private String address;
10 | private String publicKey;
11 | private String privateKey;
12 | private String version;
13 | private String algo;
14 | }
15 |
--------------------------------------------------------------------------------
/learn-example/design-pattern/src/main/java/vip/yeee/memo/demo/design/practice/statics/vo/TCmsSite.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.demo.design.practice.statics.vo;
2 |
3 | /**
4 | * description......
5 | *
6 | * @author https://www.yeee.vip
7 | * @since 2023/1/29 11:47
8 | */
9 | public class TCmsSite {
10 | public Object getId() {
11 | return null;
12 | }
13 |
14 | public String getName() {
15 | return null;
16 | }
17 |
18 | public Object getPath() {
19 | return null;
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/learn-example/spring-boot-example/src/main/java/vip/yeee/memo/demo/springboot/domain/sqlserver/mapper/SqlServerTestAMapper.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.demo.springboot.domain.sqlserver.mapper;
2 |
3 | import tk.mybatis.mapper.common.BaseMapper;
4 | import vip.yeee.memo.demo.springboot.domain.sqlserver.entity.SqlServerTestA;
5 |
6 | /**
7 | * description......
8 | *
9 | * @author https://www.yeee.vip
10 | * @since 2024/1/2 14:38
11 | */
12 | public interface SqlServerTestAMapper extends BaseMapper {
13 |
14 | }
15 |
--------------------------------------------------------------------------------
/memo-parent/memo-base/base-jdbc/base-mybatis-plus/src/main/java/vip/yeee/memo/base/mybatisplus/warpper/OrderClause.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.base.mybatisplus.warpper;
2 |
3 | import lombok.Data;
4 |
5 | import java.io.Serializable;
6 |
7 | /**
8 | * @author yeee丶一页 (https://www.yeee.vip)
9 | */
10 | @Data
11 | public class OrderClause implements Serializable {
12 | private static final long serialVersionUID = -7864088519623641693L;
13 |
14 | private String k; //key
15 | private String t; //type
16 |
17 | }
18 |
--------------------------------------------------------------------------------
/memo-parent/memo-common/common-springcloud/common-springcloud-openfeign/src/main/resources/application.yml:
--------------------------------------------------------------------------------
1 | #feign:
2 | # sentinel:
3 | # enabled: true
4 | # okhttp:
5 | # enabled: true
6 | # httpclient:
7 | # enabled: false
8 | # client:
9 | # config:
10 | # default:
11 | # ## 针对每个服务设置超时时间,这个配置可以覆盖掉ribbon的超时时间
12 | # connect-timeout: 2000
13 | # read-timeout: 60000
14 | # compression:
15 | # request:
16 | # enabled: true
17 | # response:
18 | # enabled: true
--------------------------------------------------------------------------------
/memo-parent/memo-common/common-mybatis-encrypt/src/main/java/vip/yeee/memo/common/encrypt/mybatis/CommonMybatisEncryptAutoConfigure.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.common.encrypt.mybatis;
2 |
3 | import lombok.extern.slf4j.Slf4j;
4 | import org.springframework.context.annotation.ComponentScan;
5 |
6 | /**
7 | * description......
8 | *
9 | * @author https://www.yeee.vip
10 | * @since 2022/12/6 15:04
11 | */
12 | @Slf4j
13 | @ComponentScan("vip.yeee.memo.common.encrypt.mybatis")
14 | public class CommonMybatisEncryptAutoConfigure {
15 | }
16 |
--------------------------------------------------------------------------------
/third-sdk/third-pay/src/main/java/vip/yeee/memo/demo/thirdsdk/pay/model/bo/WxAppUnifiedOrderRespBO.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.demo.thirdsdk.pay.model.bo;
2 |
3 | import lombok.Data;
4 | import lombok.EqualsAndHashCode;
5 |
6 | /**
7 | * description......
8 | *
9 | * @author https://www.yeee.vip
10 | * @since 2022/8/26 11:25
11 | */
12 | @EqualsAndHashCode(callSuper = true)
13 | @Data
14 | public class WxAppUnifiedOrderRespBO extends UnifiedOrderRespBO {
15 |
16 | /** 预支付数据包 **/
17 | private String payInfo;
18 |
19 | }
20 |
--------------------------------------------------------------------------------
/third-sdk/third-pay/src/main/java/vip/yeee/memo/demo/thirdsdk/pay/model/bo/WxJsapiUnifiedOrderRespBO.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.demo.thirdsdk.pay.model.bo;
2 |
3 | import lombok.Data;
4 | import lombok.EqualsAndHashCode;
5 |
6 | /**
7 | * description......
8 | *
9 | * @author https://www.yeee.vip
10 | * @since 2022/8/26 11:25
11 | */
12 | @EqualsAndHashCode(callSuper = true)
13 | @Data
14 | public class WxJsapiUnifiedOrderRespBO extends UnifiedOrderRespBO {
15 |
16 | /** 预支付数据包 **/
17 | private String payInfo;
18 |
19 | }
20 |
--------------------------------------------------------------------------------
/memo-parent/memo-base/base-security-oauth2/src/main/java/vip/yeee/memo/base/websecurityoauth2/model/UserInfo.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.base.websecurityoauth2.model;
2 |
3 | import lombok.Data;
4 |
5 | /**
6 | * description......
7 | *
8 | * @author https://www.yeee.vip
9 | * @since 2023/10/12 17:29
10 | */
11 | @Data
12 | public class UserInfo {
13 |
14 | /**
15 | * ID
16 | */
17 | private String id;
18 | private String userType;
19 | /**
20 | * 用户名
21 | */
22 | private String username;
23 | }
24 |
--------------------------------------------------------------------------------
/spring-cloud/auth-sso/web-auth-server/src/main/java/vip/yeee/memo/demo/springcloud/webauth/server/model/bo/FrontUserBo.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.demo.springcloud.webauth.server.model.bo;
2 |
3 | import lombok.Data;
4 | import lombok.EqualsAndHashCode;
5 | import vip.yeee.memo.base.websecurityoauth2.model.AuthUser;
6 |
7 | /**
8 | * description......
9 | *
10 | * @author https://www.yeee.vip
11 | * @since 2022/11/16 17:37
12 | */
13 | @EqualsAndHashCode(callSuper = true)
14 | @Data
15 | public class FrontUserBo extends AuthUser {
16 | }
17 |
--------------------------------------------------------------------------------
/learn-example/algorithm/coding/TwoPointersExample/problem-2.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | *基础排序III:归并排序
3 | *
4 | * 题目描述
5 | 归并排序是一个时间复杂度为O(nlogn)的算法,对于大量数据远远优于冒泡排序与插入排序。
6 |
7 | 这是一道排序练习题,数据量较大,请使用归并排序完成。
8 |
9 |
10 | 输入
11 | 第一行一个数字n,代表输入的组数
12 |
13 | 其后每组第一行输入一个数字m,代表待排序数字的个数
14 |
15 | 其后m行每行一个数据,大小在1~100000之间,互不相等,最多有10万个数据。
16 |
17 | 输出
18 | 升序输出排好序的数据,每行一个数字
19 | 样例输入
20 | 1
21 | 10
22 | 10
23 | 9
24 | 8
25 | 7
26 | 6
27 | 5
28 | 4
29 | 3
30 | 2
31 | 1
32 | 样例输出
33 | 1
34 | 2
35 | 3
36 | 4
37 | 5
38 | 6
39 | 7
40 | 8
41 | 9
42 | 10
43 | *
44 | *
45 | * */
--------------------------------------------------------------------------------
/learn-example/spring-boot-example/src/main/java/vip/yeee/memo/demo/springboot/domain/sqlserver/entity/SqlServerTestA.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.demo.springboot.domain.sqlserver.entity;
2 |
3 | import lombok.Data;
4 |
5 | import javax.persistence.Table;
6 |
7 | /**
8 | * description......
9 | *
10 | * @author https://www.yeee.vip
11 | * @since 2024/1/2 14:37
12 | */
13 | @Data
14 | @Table(name = "t_test_a")
15 | public class SqlServerTestA {
16 |
17 | private String id;
18 | private String name;
19 | private String value;
20 | }
21 |
--------------------------------------------------------------------------------
/memo-parent/memo-common/common-domain/src/main/java/vip/yeee/memo/common/domain/CommonServiceAutoConfigure.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.common.domain;
2 |
3 | import org.mybatis.spring.annotation.MapperScan;
4 | import org.springframework.context.annotation.ComponentScan;
5 |
6 | /**
7 | * description......
8 | *
9 | * @author https://www.yeee.vip
10 | * @since 2022/7/12 11:49
11 | */
12 | @ComponentScan("vip.yeee.memo.common.domain")
13 | @MapperScan("vip.yeee.memo.common.domain.mapper")
14 | public class CommonServiceAutoConfigure {
15 | }
16 |
--------------------------------------------------------------------------------
/memo-parent/memo-common/common-websocket/common-netty-websocket/src/main/java/vip/yeee/memo/common/websocket/netty/exception/DeploymentException.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.common.websocket.netty.exception;
2 |
3 | public class DeploymentException extends Exception {
4 |
5 | private static final long serialVersionUID = 1L;
6 |
7 | public DeploymentException(String message) {
8 | super(message);
9 | }
10 |
11 | public DeploymentException(String message, Throwable cause) {
12 | super(message, cause);
13 | }
14 | }
--------------------------------------------------------------------------------
/spring-cloud/auth-sso/web-auth-server/src/main/java/vip/yeee/memo/demo/springcloud/webauth/server/model/bo/SystemUserBo.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.demo.springcloud.webauth.server.model.bo;
2 |
3 | import lombok.Data;
4 | import lombok.EqualsAndHashCode;
5 | import vip.yeee.memo.base.websecurityoauth2.model.AuthUser;
6 |
7 | /**
8 | * description......
9 | *
10 | * @author https://www.yeee.vip
11 | * @since 2022/11/16 17:37
12 | */
13 | @EqualsAndHashCode(callSuper = true)
14 | @Data
15 | public class SystemUserBo extends AuthUser {
16 | }
17 |
--------------------------------------------------------------------------------
/spring-cloud/transaction/seata/seata-client-01/src/main/java/vip/yeee/memo/demo/scloud/tac/seata01/domain/mysql/mapper/TestEntityMapper.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.demo.scloud.tac.seata01.domain.mysql.mapper;
2 |
3 | import com.baomidou.mybatisplus.core.mapper.BaseMapper;
4 | import vip.yeee.memo.demo.scloud.tac.seata01.domain.mysql.entity.TestEntity;
5 |
6 | /**
7 | * description......
8 | *
9 | * @author https://www.yeee.vip
10 | * @since 2022/8/18 17:26
11 | */
12 | public interface TestEntityMapper extends BaseMapper {
13 | }
14 |
--------------------------------------------------------------------------------
/spring-cloud/transaction/seata/seata-client-02/src/main/java/vip/yeee/memo/demo/scloud/tac/seata02/domain/mysql/mapper/TestEntityMapper.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.demo.scloud.tac.seata02.domain.mysql.mapper;
2 |
3 | import com.baomidou.mybatisplus.core.mapper.BaseMapper;
4 | import vip.yeee.memo.demo.scloud.tac.seata02.domain.mysql.entity.TestEntity;
5 |
6 | /**
7 | * description......
8 | *
9 | * @author https://www.yeee.vip
10 | * @since 2022/8/18 17:26
11 | */
12 | public interface TestEntityMapper extends BaseMapper {
13 | }
14 |
--------------------------------------------------------------------------------
/spring-cloud/transaction/seata/seata-client-postgresql/src/main/java/vip/yeee/memo/demo/scloud/tac/seatapgsql/domain/pgsql/mapper/Test1Mapper.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.demo.scloud.tac.seatapgsql.domain.pgsql.mapper;
2 |
3 | import com.baomidou.mybatisplus.core.mapper.BaseMapper;
4 | import vip.yeee.memo.demo.scloud.tac.seatapgsql.domain.pgsql.entity.Test1;
5 |
6 | /**
7 | * description......
8 | *
9 | * @author https://www.yeee.vip
10 | * @since 2022/8/18 17:26
11 | */
12 | public interface Test1Mapper extends BaseMapper {
13 | }
14 |
--------------------------------------------------------------------------------
/third-sdk/blockchain/hyperchain/hc-call-smart-contract-demo/src/main/resources/application.yml:
--------------------------------------------------------------------------------
1 | yeeee:
2 | chain:
3 | default-url: 192.168.23.111:8081
4 | contract-address: 0x2b4f4f88ac518e964d2e880147c3e27a2axxxxxx
5 | deploy-account-json: string:{"address":"3c219494caf1cad1f50f6fca592e29edc416cxxx","publicKey":"xxxx79d9a01311ae4fb59abf6a29575386ccb308f2a2edca9d58deaa77f8b3fd1f4090a3c4614dea29290943b153d27cc9e58d509826c936c574b58daf21ddxxxx","privateKey":"xxxxx735251405b7ddcd98b03af415cc45129ddec00bfb41434f289e282xxxxx","version":"V4","algo":"0x13"}
--------------------------------------------------------------------------------
/memo-parent/memo-common/common-springcloud/common-springcloud-gray/common-springcloud-gray-gateway/src/main/resources/example.yml:
--------------------------------------------------------------------------------
1 | spring:
2 | cloud:
3 | gateway:
4 | discovery:
5 | locator:
6 | enabled: true
7 | lowerCaseServiceId: true
8 | routes:
9 | - id: cloud-web-auth-server-2.0
10 | uri: lb://cloud-web-auth-server
11 | predicates:
12 | - Path=/v20/auth-server/**
13 | filters:
14 | - StripPrefix=1
15 | - AddRequestHeader=api-version,2.0
--------------------------------------------------------------------------------
/memo-parent/memo-common/common-tokenizing/common-jcseg/src/main/java/vip/yeee/memo/common/tokenizing/jcseg/CommonTokenizingJcsegAutoConfigure.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.common.tokenizing.jcseg;
2 |
3 | import lombok.extern.slf4j.Slf4j;
4 | import org.springframework.context.annotation.ComponentScan;
5 |
6 | /**
7 | * description......
8 | *
9 | * @author https://www.yeee.vip
10 | * @since 2024/01/06 15:04
11 | */
12 | @Slf4j
13 | @ComponentScan("vip.yeee.memo.common.tokenizing.jcseg")
14 | public class CommonTokenizingJcsegAutoConfigure {
15 | }
16 |
--------------------------------------------------------------------------------
/solution-problem/netty/webserver/src/test/resources/logback.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 | ${format}
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/third-sdk/third-pay/src/main/java/vip/yeee/memo/demo/thirdsdk/pay/model/bo/WxpayUnifiedOrderRespBO.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.demo.thirdsdk.pay.model.bo;
2 |
3 | import lombok.Data;
4 | import lombok.EqualsAndHashCode;
5 |
6 | /**
7 | * description......
8 | *
9 | * @author https://www.yeee.vip
10 | * @since 2022/8/26 11:25
11 | */
12 | @EqualsAndHashCode(callSuper = true)
13 | @Data
14 | public class WxpayUnifiedOrderRespBO extends UnifiedOrderRespBO {
15 |
16 | private String tradeType;
17 |
18 | private String prepayId;
19 |
20 | }
21 |
--------------------------------------------------------------------------------
/learn-example/algorithm/coding/RecursionExample/day0720-1.cpp:
--------------------------------------------------------------------------------
1 | //
2 | // Created by 13000 on 2018/7/20.
3 | //
4 |
5 | /*
6 | * (典型递归问题)汉诺塔问题
7 | * */
8 |
9 | #include
10 | void move(char getone,char putone){
11 | printf("%c-->%c\n",getone,putone);
12 | }
13 | void hanoit(int n,char a,char b, char c){
14 | if(n==1){
15 | move(a,c);
16 | }else{
17 | hanoit(n-1,a,c,b);
18 | move(a,c);
19 | hanoit(n-1,b,a,c);
20 | }
21 | }
22 |
23 | int main(){
24 |
25 | hanoit(3,'A','B','C');
26 | return 0;
27 | }
--------------------------------------------------------------------------------
/learn-example/algorithm/coding/SortExample/day0615-1.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | 题目描述
3 | 输入一个字符串,长度小于等于200,然后将输出按字符顺序升序排序后的字符串。
4 |
5 | 输入
6 | 测试数据有多组,输入字符串。
7 |
8 | 输出
9 | 对于每组输入,输出处理后的结果。
10 |
11 | 样例输入
12 | tianqin
13 | 样例输出
14 | aiinnqt
15 | 提示
16 | 注意输入的字符串中可能有空格。
17 | */
18 |
19 | #include
20 | #include
21 | #include
22 | using namespace std;
23 | const int maxn=210;
24 | int main(){
25 | char s[maxn];
26 | int len = -1;
27 | gets(s);
28 | len = strlen(s);
29 | sort(s,s+len);
30 | puts(s);
31 | return 0;
32 | }
--------------------------------------------------------------------------------
/memo-parent/memo-common/common-springcloud/common-springcloud-gray/common-springcloud-gray-inner/src/main/java/vip/yeee/memo/common/scloud/gray/inner/CommonSpringCloudGrayInnerAutoConfigure.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.common.scloud.gray.inner;
2 |
3 | import org.springframework.context.annotation.ComponentScan;
4 |
5 | /**
6 | * description......
7 | *
8 | * @author https://www.yeee.vip
9 | * @since 2022/12/6 15:04
10 | */
11 | @ComponentScan("vip.yeee.memo.common.scloud.gray.inner")
12 | public class CommonSpringCloudGrayInnerAutoConfigure {
13 | }
14 |
--------------------------------------------------------------------------------
/spring-cloud/transaction/seata/seata-client-02/src/main/java/vip/yeee/memo/demo/scloud/tac/seata02/domain/mysql/entity/TestEntity.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.demo.scloud.tac.seata02.domain.mysql.entity;
2 |
3 | import com.baomidou.mybatisplus.annotation.TableName;
4 | import lombok.Data;
5 |
6 | /**
7 | * description......
8 | *
9 | * @author https://www.yeee.vip
10 | * @since 2022/8/18 17:23
11 | */
12 | @Data
13 | @TableName("t_test_0")
14 | public class TestEntity {
15 |
16 | private Long id;
17 |
18 | private String field1;
19 |
20 | }
21 |
--------------------------------------------------------------------------------
/third-sdk/third-pay/README.md:
--------------------------------------------------------------------------------
1 |
2 |
3 | # 微信支付
4 |
5 | 官网:https://pay.weixin.qq.com/
6 |
7 | ## V3
8 |
9 | https://blog.csdn.net/guochunyun/article/details/130217954
10 |
11 | ### 所需参数
12 |
13 | - mchId(商户号):
14 | > 账户中心 - 商户信息 - 商户号
15 |
16 | - 商户类型:
17 | > 账户中心 - 商户信息 - 商户类型
18 |
19 | - appId(绑定的公众号appId):
20 | > 产品中心 - AppID账号管理 - appId
21 |
22 | - apiV3Key(APIv3秘钥):
23 | > 账户中心 - API安全 - 设置APIv3秘钥
24 |
25 | - API证书(apiclient_key.pem):
26 | > 账户中心 - API安全 - 申请API证书
27 |
28 | - certSerialNo(API证书序列号):
29 | > 账户中心 - API安全 - 申请API证书 - API证书管理 -证书序列号
--------------------------------------------------------------------------------
/learn-example/algorithm/coding/树/哈夫曼树/1.cpp:
--------------------------------------------------------------------------------
1 | #include
2 | #include
3 | using namespace std;
4 |
5 | //代表小顶堆的优先队列
6 | priority_queue,greater > q;
7 |
8 | int main(){
9 | int n;
10 | long long temp,x,y,ans=0;
11 | scanf("%d",&n);
12 | for(int i=0;i1){//只要优先队列中至少有两个元素
17 | x=q.top();
18 | q.pop();
19 | y=q.top();
20 | q.pop();
21 | q.push(x+y);
22 | ans+=x+y;
23 | }
24 | printf("%lld\n",ans);
25 | return 0;
26 | }
--------------------------------------------------------------------------------
/memo-parent/memo-common/common-httpclient/common-httpclient-okhttp/src/main/java/vip/yeee/memo/common/httpclient/okhttp/CommonOkhttpClientAutoConfigure.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.common.httpclient.okhttp;
2 |
3 | import lombok.extern.slf4j.Slf4j;
4 | import org.springframework.context.annotation.ComponentScan;
5 |
6 | /**
7 | * description......
8 | *
9 | * @author https://www.yeee.vip
10 | * @since 2022/12/6 15:04
11 | */
12 | @Slf4j
13 | @ComponentScan("vip.yeee.memo.common.httpclient.okhttp")
14 | public class CommonOkhttpClientAutoConfigure {
15 | }
16 |
--------------------------------------------------------------------------------
/memo-parent/memo-base/base-jdbc/base-mybatis-plus/src/main/java/vip/yeee/memo/base/mybatisplus/warpper/WhereClause.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.base.mybatisplus.warpper;
2 |
3 | import lombok.Data;
4 |
5 | import java.io.Serializable;
6 |
7 | /**
8 | * @author yeee丶一页 (https://www.yeee.vip)
9 | */
10 | @Data
11 | public class WhereClause implements Serializable {
12 | private static final long serialVersionUID = 5312268117297358992L;
13 |
14 | private String k; //key
15 | private Object v; //val
16 | private String m; //model
17 |
18 | }
19 |
--------------------------------------------------------------------------------
/simple-tools/generator/generate-custom/src/main/java/vip/yeee/memo/demo/custom/generate/core/formatter/TemplateFormatter.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.demo.custom.generate.core.formatter;
2 |
3 | import vip.yeee.memo.demo.custom.generate.core.model.TableClass;
4 |
5 | import java.util.Properties;
6 |
7 | /**
8 | * @since 3.4.5
9 | */
10 | public interface TemplateFormatter {
11 |
12 | /**
13 | * 获取根据模板生成的数据
14 | */
15 | String getFormattedContent(TableClass tableClass, Properties properties, String targetPackage, String templateContent);
16 | }
17 |
--------------------------------------------------------------------------------
/third-sdk/weixin-sdk/wx-ma/src/main/resources/application.yml:
--------------------------------------------------------------------------------
1 | spring:
2 | redis:
3 | host: 127.0.0.1
4 | port: 6379
5 | password: yeah
6 | database: 6
7 | wx:
8 | ma:
9 | use-redis: true
10 | redis-config:
11 | host: ${spring.redis.host}
12 | port: ${spring.redis.port}
13 | password: ${spring.redis.password}
14 | timeout: 10000
15 | configs:
16 | - appId: wxc84b896c35f157b1
17 | secret: c93ddae2c45d3d5a6a514c03e1dfd73f
18 | token: yeeee-token
19 | lessee-id: 1111
20 | app-type: 10
--------------------------------------------------------------------------------
/memo-parent/memo-common/common-mybatis-encrypt/src/main/java/vip/yeee/memo/common/encrypt/mybatis/annotation/SensitiveEncryptEnabled.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.common.encrypt.mybatis.annotation;
2 |
3 | import java.lang.annotation.*;
4 |
5 | /**
6 | * 标记在DTO类上,用于说明是否支持加解密
7 | */
8 | @Target({ElementType.TYPE})
9 | @Retention(RetentionPolicy.RUNTIME)
10 | @Inherited
11 | @Documented
12 | public @interface SensitiveEncryptEnabled {
13 | /**
14 | * 是否开启加解密和脱敏模式
15 | * @return SensitiveEncryptEnabled
16 | */
17 | boolean value() default true;
18 | }
19 |
--------------------------------------------------------------------------------
/memo-parent/memo-common/common-mybatis-encrypt/src/main/java/vip/yeee/memo/common/encrypt/mybatis/annotation/SensitiveJSONField.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.common.encrypt.mybatis.annotation;
2 |
3 | import java.lang.annotation.*;
4 |
5 | /**
6 | * 对json内的key_value进行脱敏
7 | */
8 | @Target({ElementType.FIELD,ElementType.METHOD})
9 | @Retention(RetentionPolicy.RUNTIME)
10 | @Inherited
11 | @Documented
12 | public @interface SensitiveJSONField {
13 | /**
14 | * 需要脱敏的字段的数组
15 | * @return 返回结果
16 | */
17 | SensitiveJSONFieldKey[] fieldKeyList();
18 | }
19 |
--------------------------------------------------------------------------------
/middle-ware/mongodb/src/main/java/vip/yeee/memo/demo/mongodb/domain/entity/YeeeTestDoc.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.demo.mongodb.domain.entity;
2 |
3 | import lombok.Data;
4 | import org.springframework.data.annotation.Id;
5 | import org.springframework.data.mongodb.core.mapping.Document;
6 |
7 | import java.util.Date;
8 |
9 | @Document("yeee_test_doc")
10 | @Data
11 | public class YeeeTestDoc {
12 |
13 | @Id
14 | private String id;
15 |
16 | private String content;
17 |
18 | private Date createTime;
19 |
20 | private Date updateTime;
21 |
22 | }
23 |
--------------------------------------------------------------------------------
/solution-problem/netty/webserver/src/main/java/vip/yeee/memo/demo/netty/webserver/annotation/Route.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.demo.netty.webserver.annotation;
2 |
3 | import java.lang.annotation.Inherited;
4 | import java.lang.annotation.Retention;
5 | import java.lang.annotation.RetentionPolicy;
6 |
7 | /**
8 | * 注解,用于自定义访问的URL路径
9 | * 值可以是一个请求路径,如果需要指定HTTP方法,在前面加方法名用":"分隔既可
10 | * @author loolly
11 | *
12 | */
13 | @Retention(RetentionPolicy.RUNTIME)/*保留的时间长短*/
14 | @Inherited/*只用于class,可被子类继承*/
15 | public @interface Route {
16 | String value();
17 | }
18 |
--------------------------------------------------------------------------------
/test-tool/jMeter/example/note.txt:
--------------------------------------------------------------------------------
1 |
2 |
3 | 一、jMeter 操作
4 |
5 | 1.File -> new
6 | 2.Add -> Threads -> Thread Group /* 线程组 */
7 | 2.1.Add -> Config Elements -> User defined Variables /* 用户定义的变量 */
8 | 2.1.Add -> PreProcessor -> JSR223 PreProcessor /* 脚本 */
9 | 2.2.Add -> Config Elements -> HTTP Header Manager /* 配置请求头 */
10 | 2.3.Add -> Config Elements -> HTTP Request Defaults /* 配置请求参数 */
11 | 2.4.Add -> Listener -> View Results Tree /* 看接口请求 */
12 | 2.5.Add -> Listener -> Summary Report /* 分析 */
13 |
14 |
15 |
16 | example: mytools/yeah-toolkit/jMeter/ibd-channel
--------------------------------------------------------------------------------
/middle-ware/flink/src/main/java/vip/yeee/memo/demo/flink/constant/OperateEventEnum.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.demo.flink.constant;
2 |
3 | import lombok.Getter;
4 |
5 | /**
6 | * description......
7 | *
8 | * @author https://www.yeee.vip
9 | * @since 2022/8/6 16:16
10 | */
11 | @Getter
12 | public enum OperateEventEnum {
13 |
14 | VIEW_INDEX("访问首页"),
15 | VIEW_LIST("访问列表"),
16 | VIEW_DETAIL("访问详情"),
17 |
18 | ;
19 |
20 | private final String evnet;
21 |
22 | OperateEventEnum(String evnet) {
23 | this.evnet = evnet;
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/middle-ware/mongodb/src/main/java/vip/yeee/memo/demo/mongodb/MongodbApplication.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.demo.mongodb;
2 |
3 | import org.springframework.boot.SpringApplication;
4 | import org.springframework.boot.autoconfigure.SpringBootApplication;
5 |
6 | /**
7 | * description......
8 | *
9 | * @author https://www.yeee.vip
10 | * @since 2023/10/16 15:01
11 | */
12 | @SpringBootApplication
13 | public class MongodbApplication {
14 |
15 | public static void main(String[] args) {
16 | SpringApplication.run(MongodbApplication.class, args);
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/simple-tools/jasypt/src/main/java/vip/yeee/memo/demo/jasypt/JasyptApplication.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.demo.jasypt;
2 |
3 | import org.springframework.boot.SpringApplication;
4 | import org.springframework.boot.autoconfigure.SpringBootApplication;
5 |
6 | /**
7 | * description......
8 | *
9 | * @author https://www.yeee.vip
10 | * @since 2022/8/30 9:48
11 | */
12 | @SpringBootApplication
13 | public class JasyptApplication {
14 |
15 | public static void main(String[] args) {
16 | SpringApplication.run(JasyptApplication.class, args);
17 | }
18 |
19 | }
20 |
--------------------------------------------------------------------------------
/spring-cloud/rpc/openfeign/feign-client-02/src/main/java/vip/yeee/memo/demo/scloud/rpc/feign02/model/Book.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.demo.scloud.rpc.feign02.model;
2 |
3 | import com.fasterxml.jackson.annotation.JsonIgnore;
4 | import lombok.Data;
5 |
6 | import java.math.BigDecimal;
7 | import java.time.LocalDate;
8 |
9 | @Data
10 | public class Book implements Response {
11 | private String isbn;
12 | private String title;
13 | private LocalDate dateOfPublish;
14 | private BigDecimal price;
15 |
16 | @JsonIgnore
17 | private Error error;
18 | }
19 |
--------------------------------------------------------------------------------
/test-tool/jMeter/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | 4.0.0
6 |
7 |
8 | test-tool
9 | vip.yeee.memo
10 | 3.2.2-SNAPSHOT
11 |
12 |
13 | jMeter
14 |
15 |
--------------------------------------------------------------------------------
/learn-example/algorithm/src/main/java/vip/yeee/memo/demo/algorithm/AlgorithmApplication.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.demo.algorithm;
2 |
3 | import org.springframework.boot.SpringApplication;
4 | import org.springframework.boot.autoconfigure.SpringBootApplication;
5 |
6 | /**
7 | * description......
8 | *
9 | * @author https://www.yeee.vip
10 | * @since 2023/6/1 17:21
11 | */
12 | @SpringBootApplication
13 | public class AlgorithmApplication {
14 | public static void main(String[] args) {
15 | SpringApplication.run(AlgorithmApplication.class, args);
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/middle-ware/mq/kafka/src/main/java/vip/yeee/memo/demo/kafka/KafkaDemoApplication.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.demo.kafka;
2 |
3 | import org.springframework.boot.SpringApplication;
4 | import org.springframework.boot.autoconfigure.SpringBootApplication;
5 |
6 | /**
7 | * description......
8 | *
9 | * @author https://www.yeee.vip
10 | * @since 2022/8/13 15:08
11 | */
12 | @SpringBootApplication
13 | public class KafkaDemoApplication {
14 |
15 | public static void main(String[] args) {
16 | SpringApplication.run(KafkaDemoApplication.class, args);
17 | }
18 |
19 | }
20 |
--------------------------------------------------------------------------------
/solution-problem/netty/webserver/src/main/java/vip/yeee/memo/demo/netty/webserver/filter/Filter.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.demo.netty.webserver.filter;
2 |
3 | import vip.yeee.memo.demo.netty.webserver.handler.Request;
4 | import vip.yeee.memo.demo.netty.webserver.handler.Response;
5 |
6 | /**
7 | * 过滤器接口
8 | * @author Looly
9 | *
10 | */
11 | public interface Filter {
12 |
13 | /**
14 | * 执行过滤
15 | * @param request 请求对象
16 | * @param response 响应对象
17 | * @return 如果返回true,则继续执行下一步内容,否则中断
18 | */
19 | public boolean doFilter(Request request, Response response);
20 | }
21 |
--------------------------------------------------------------------------------
/spring-cloud/reactive-programming/src/main/java/vip/yeee/memo/demo/reactive/prog/domain/BookQuery.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.demo.reactive.prog.domain;
2 |
3 | import lombok.Data;
4 |
5 | import javax.validation.constraints.Max;
6 | import javax.validation.constraints.Min;
7 | import java.math.BigDecimal;
8 |
9 | @Data
10 | public class BookQuery {
11 | private String title;
12 | private BigDecimal minPrice;
13 | private BigDecimal maxPrice;
14 |
15 | @Min(1)
16 | private int page = 1;
17 |
18 | @Min(0)
19 | @Max(500)
20 | private int size = 10;
21 | }
22 |
--------------------------------------------------------------------------------
/learn-example/algorithm/coding/动态规划/最长不下降子序列(LIS).cpp:
--------------------------------------------------------------------------------
1 | #include
2 | #include
3 | using namespace std;
4 | const int N=100;
5 | int A[N],dp[N];
6 | int main(){
7 | int n;
8 | scanf("%d",&n);
9 | for(int i=1;i<=n;i++){
10 | scanf("%d",&A[i]);
11 | }
12 | int ans=-1;//记录最大的dp[i]
13 | for(int i=1;i<=n;i++){//按顺序计算出dp[i]的值
14 | dp[i]=1;//边界初始条件(先假定每个元素自成一个子序列)
15 | for(int j=1;j=A[j]&&(dp[j]+1>dp[i])){
17 | dp[i]=dp[j]+1;//状态转移方程,用以更新dp[i]
18 | }
19 | }
20 | ans=max(ans,dp[i]);
21 | }
22 | printf("%d\n",ans);
23 |
24 | return 0;
25 | }
--------------------------------------------------------------------------------
/middle-ware/flink/src/main/java/vip/yeee/memo/demo/flink/model/NginxAccessLog.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.demo.flink.model;
2 |
3 | import lombok.Data;
4 |
5 | @Data
6 | public class NginxAccessLog {
7 |
8 | private String timestamp;
9 | private String clientIp;
10 | private String requestMethod;
11 | private String domain;
12 | private String referer;
13 | private String requestUrl;
14 | private String requestArgs;
15 | private String status;
16 | private String responseTime;
17 | private String userAgent;
18 | private String httpCookie;
19 |
20 | }
21 |
--------------------------------------------------------------------------------
/simple-tools/simple-kit/src/main/java/vip/yeee/memo/demo/stools/kit/SimpleKitsApplication.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.demo.stools.kit;
2 |
3 | import org.springframework.boot.SpringApplication;
4 | import org.springframework.boot.autoconfigure.SpringBootApplication;
5 |
6 | /**
7 | * description......
8 | *
9 | * @author https://www.yeee.vip
10 | * @since 2022/12/6 11:08
11 | */
12 | @SpringBootApplication
13 | public class SimpleKitsApplication {
14 |
15 | public static void main(String[] args) {
16 | SpringApplication.run(SimpleKitsApplication.class);
17 | }
18 |
19 | }
20 |
--------------------------------------------------------------------------------
/simple-tools/simple-tools-execLinuxSSH/src/main/java/vip/yeee/memo/demo/simpletool/execlinux/SpringbootApp.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.demo.simpletool.execlinux;
2 |
3 | import org.springframework.boot.SpringApplication;
4 | import org.springframework.boot.autoconfigure.SpringBootApplication;
5 |
6 | /**
7 | * description ...
8 | *
9 | * @author https://www.yeee.vip
10 | * @since 2021/12/27 14:19
11 | */
12 | @SpringBootApplication
13 | public class SpringbootApp {
14 | public static void main(String[] args) {
15 | SpringApplication.run(SpringbootApp.class);
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/solution-problem/netty/webserver/src/main/java/vip/yeee/memo/demo/netty/webserver/action/DefaultIndexAction.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.demo.netty.webserver.action;
2 |
3 | import vip.yeee.memo.demo.netty.webserver.handler.Request;
4 | import vip.yeee.memo.demo.netty.webserver.handler.Response;
5 |
6 | /**
7 | * 默认的主页Action,当访问主页且没有定义主页Action时,调用此Action
8 | * @author Looly
9 | *
10 | */
11 | public class DefaultIndexAction implements Action{
12 |
13 | @Override
14 | public void doAction(Request request, Response response) {
15 | response.setContent("Welcome to LoServer.");
16 | }
17 |
18 | }
--------------------------------------------------------------------------------
/solution-problem/websocket-example/src/main/java/vip/yeee/memo/demo/websocket/WebsocketDemoApplication.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.demo.websocket;
2 |
3 | import org.mybatis.spring.annotation.MapperScan;
4 | import org.springframework.boot.SpringApplication;
5 | import org.springframework.boot.autoconfigure.SpringBootApplication;
6 |
7 | @MapperScan("vip.yeee.memo.demo.websocket.mapper")
8 | @SpringBootApplication
9 | public class WebsocketDemoApplication {
10 |
11 | public static void main(String[] args) {
12 | SpringApplication.run(WebsocketDemoApplication.class, args);
13 | }
14 |
15 | }
16 |
--------------------------------------------------------------------------------
/spring-cloud/transaction/seata/seata-client-01/src/main/java/vip/yeee/memo/demo/scloud/tac/seata01/domain/mysql/entity/TestEntity.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.demo.scloud.tac.seata01.domain.mysql.entity;
2 |
3 | import com.baomidou.mybatisplus.annotation.TableName;
4 | import lombok.Data;
5 |
6 | /**
7 | * description......
8 | *
9 | * @author https://www.yeee.vip
10 | * @since 2022/8/18 17:23
11 | */
12 | @Data
13 | @TableName("t_test_0")
14 | public class TestEntity {
15 |
16 | private Long id;
17 |
18 | private String field1;
19 |
20 | private String field2;
21 |
22 | }
23 |
--------------------------------------------------------------------------------
/memo-parent/memo-base/base-jdbc/base-mybatis-plus/src/main/java/vip/yeee/memo/base/mybatisplus/warpper/QueryClause.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.base.mybatisplus.warpper;
2 |
3 | import lombok.Data;
4 |
5 | import java.io.Serializable;
6 | import java.util.List;
7 |
8 | /**
9 | * @author yeee丶一页 (https://www.yeee.vip)
10 | */
11 | @Data
12 | public class QueryClause implements Serializable {
13 | private static final long serialVersionUID = -6014076206210293128L;
14 |
15 | private List w;
16 | private List o;
17 | private PageClause p;
18 |
19 | }
20 |
--------------------------------------------------------------------------------
/memo-parent/memo-common/common-web/src/main/java/vip/yeee/memo/common/web/CommonWebApplication.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.common.web;
2 |
3 | import org.springframework.boot.SpringApplication;
4 | import org.springframework.boot.autoconfigure.SpringBootApplication;
5 |
6 | /**
7 | * description......
8 | *
9 | * @author https://www.yeee.vip
10 | * @since 2022/7/12 14:13
11 | */
12 | @SpringBootApplication
13 | public class CommonWebApplication {
14 |
15 | public static void main(String[] args) {
16 | SpringApplication.run(CommonWebApplication.class, args);
17 | }
18 |
19 | }
20 |
--------------------------------------------------------------------------------
/spring-cloud/rpc/openfeign/feign-client-02/src/main/java/vip/yeee/memo/demo/scloud/rpc/feign02/model/Error.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.demo.scloud.rpc.feign02.model;
2 |
3 | import lombok.Data;
4 | import lombok.RequiredArgsConstructor;
5 |
6 | import java.util.List;
7 |
8 | @Data
9 | public class Error {
10 | private final List invalidFields;
11 | private final List errors;
12 |
13 | @RequiredArgsConstructor
14 | @Data
15 | public static class InvalidField {
16 | private final String name;
17 | private final String message;
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/third-sdk/weixin-sdk/wx-ma/src/main/java/vip/yeee/memo/demo/thirdsdk/weixin/ma/WeiXinMaApplication.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.demo.thirdsdk.weixin.ma;
2 |
3 | import org.springframework.boot.SpringApplication;
4 | import org.springframework.boot.autoconfigure.SpringBootApplication;
5 |
6 | /**
7 | * description......
8 | *
9 | * @author https://www.yeee.vip
10 | * @since 2023/4/8 13:39
11 | */
12 | @SpringBootApplication
13 | public class WeiXinMaApplication {
14 |
15 | public static void main(String[] args) {
16 | SpringApplication.run(WeiXinMaApplication.class);
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/learn-example/design-pattern/src/main/java/vip/yeee/memo/demo/design/DesignPatternApplication.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.demo.design;
2 |
3 | import org.springframework.boot.SpringApplication;
4 | import org.springframework.boot.autoconfigure.SpringBootApplication;
5 |
6 | /**
7 | * description......
8 | *
9 | * @author https://www.yeee.vip
10 | * @since 2022/7/21 10:39
11 | */
12 | @SpringBootApplication
13 | public class DesignPatternApplication {
14 |
15 | public static void main(String[] args) {
16 | SpringApplication.run(DesignPatternApplication.class, args);
17 | }
18 |
19 | }
20 |
--------------------------------------------------------------------------------
/learn-example/spring-boot-example/src/main/java/vip/yeee/memo/demo/springboot/domain/mysql/entity/TempTest1.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.demo.springboot.domain.mysql.entity;
2 |
3 | import lombok.AllArgsConstructor;
4 | import lombok.Data;
5 |
6 | import javax.persistence.Table;
7 |
8 | /**
9 | * description......
10 | *
11 | * @author https://www.yeee.vip
12 | * @since 2024/2/22 17:27
13 | */
14 | @AllArgsConstructor
15 | @Data
16 | @Table(name = "t_temp_test1")
17 | public class TempTest1 {
18 |
19 | private String id;
20 | private Integer count;
21 | private String parentId;
22 | }
23 |
--------------------------------------------------------------------------------
/memo-parent/memo-common/common-auth/common-platform-auth-client/src/main/resources/example.yml:
--------------------------------------------------------------------------------
1 | security:
2 | oauth2:
3 | resource:
4 | token-info-uri: http://cloud-web-auth-server/auth-server/oauth/check_token
5 | client:
6 | client-id: ${spring.application.name}
7 | client-secret: 123456
8 | # access-token-uri: http://cloud-web-auth-server/auth-server/oauth/token
9 | yeee:
10 | webauth:
11 | resource:
12 | exclude:
13 | - /front/register
14 | - /system/register
15 | - /front/login
16 | - /system/login
17 | - /anonymous/limit/api
--------------------------------------------------------------------------------
/memo-parent/memo-common/common-mybatis-encrypt/src/main/java/vip/yeee/memo/common/encrypt/mybatis/Encrypt.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.common.encrypt.mybatis;
2 |
3 | /**
4 | * 加解密接口
5 | */
6 | public interface Encrypt {
7 | /**
8 | * 对字符串进行加密存储
9 | * @param src 源
10 | * @return 返回加密后的密文
11 | * @throws RuntimeException 算法异常
12 | */
13 | String encrypt(String src);
14 |
15 | /**
16 | * 对加密后的字符串进行解密
17 | * @param encrypt 加密后的字符串
18 | * @return 返回解密后的原文
19 | * @throws RuntimeException 算法异常
20 | */
21 | String decrypt(String encrypt);
22 | }
23 |
--------------------------------------------------------------------------------
/middle-ware/mq/rocketmq/consumer-demo/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | 4.0.0
6 |
7 |
8 | rocketmq
9 | vip.yeee.memo
10 | 3.2.2-SNAPSHOT
11 |
12 |
13 | consumer-demo
14 |
15 |
--------------------------------------------------------------------------------
/middle-ware/mq/rocketmq/producer-demo/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | 4.0.0
6 |
7 |
8 | rocketmq
9 | vip.yeee.memo
10 | 3.2.2-SNAPSHOT
11 |
12 |
13 | producer-demo
14 |
15 |
--------------------------------------------------------------------------------
/spring-cloud/rpc/openfeign/feign-client-02/src/main/resources/application.yml:
--------------------------------------------------------------------------------
1 | feign:
2 | # compression:
3 | # response:
4 | # enabled: true
5 | # useGzipDecoder: true
6 | circuitbreaker:
7 | enabled: true
8 | client:
9 | config:
10 | default:
11 | decode404: true
12 | logger-level: full
13 | logging:
14 | level:
15 | max:
16 | lab: DEBUG
17 | #management:
18 | # endpoints:
19 | # web:
20 | # exposure:
21 | # include: *
22 |
23 | circuitBreaker:
24 | default:
25 | minimumNumberOfCalls: 10
26 | waitDurationInOpenState: 15m
27 |
--------------------------------------------------------------------------------
/third-sdk/aliyun-sdk/ali-nls/src/main/java/vip/yeee/memo/demo/thirdsdk/aliyun/AliNlsApplication.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.demo.thirdsdk.aliyun;
2 |
3 | import org.springframework.boot.SpringApplication;
4 | import org.springframework.boot.autoconfigure.SpringBootApplication;
5 |
6 | /**
7 | * description......
8 | *
9 | * @author https://www.yeee.vip
10 | * @since 2022/7/11 19:02
11 | */
12 | @SpringBootApplication
13 | public class AliNlsApplication {
14 |
15 | public static void main(String[] args) {
16 | SpringApplication.run(AliNlsApplication.class, args);
17 | }
18 |
19 | }
20 |
--------------------------------------------------------------------------------
/third-sdk/aliyun-sdk/ali-sms/src/main/java/vip/yeee/memo/demo/thirdsdk/aliyun/AliSmsApplication.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.demo.thirdsdk.aliyun;
2 |
3 | import org.springframework.boot.SpringApplication;
4 | import org.springframework.boot.autoconfigure.SpringBootApplication;
5 |
6 | /**
7 | * description......
8 | *
9 | * @author https://www.yeee.vip
10 | * @since 2022/7/11 19:02
11 | */
12 | @SpringBootApplication
13 | public class AliSmsApplication {
14 |
15 | public static void main(String[] args) {
16 | SpringApplication.run(AliSmsApplication.class, args);
17 | }
18 |
19 | }
20 |
--------------------------------------------------------------------------------
/learn-example/algorithm/coding/动态规划/最大连续子序列和.cpp:
--------------------------------------------------------------------------------
1 | #include
2 | #include
3 | using namespace std;
4 | const int maxn=10000;
5 | int A[maxn],dp[maxn];//A[i]序列,dp[i是存放以A[i]结尾的连续序列的最大和
6 | int main(){
7 | int n;
8 | scanf("%d",&n);
9 | for(int i=0;idp[k]){
22 | k=i;
23 | }
24 | }
25 | printf("%d\n",dp[k]);
26 | return 0;
27 | }
--------------------------------------------------------------------------------
/learn-example/spring-boot-example/src/main/java/vip/yeee/memo/demo/springboot/extpoint/bean/TestBean01.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.demo.springboot.extpoint.bean;
2 |
3 | import lombok.Data;
4 | import lombok.extern.slf4j.Slf4j;
5 | import org.springframework.beans.factory.annotation.Autowired;
6 | import org.springframework.stereotype.Component;
7 |
8 | /**
9 | * description......
10 | *
11 | * @author https://www.yeee.vip
12 | * @since 2023/8/14 9:51
13 | */
14 | @Slf4j
15 | @Component
16 | @Data
17 | public class TestBean01 {
18 |
19 | @Autowired
20 | private TestBean03 testBean03;
21 |
22 | }
23 |
--------------------------------------------------------------------------------
/memo-parent/memo-base/base-redis/src/main/resources/example.yml:
--------------------------------------------------------------------------------
1 | yeee:
2 | custom:
3 | redis:
4 | enabled: true
5 | instance:
6 | - beanName: customeRedisTemplate01
7 | host: 127.0.0.1
8 | port: 6379
9 | password: yeah
10 | database: 1
11 | - beanName: customeRedisTemplate02
12 | host: 127.0.0.1
13 | port: 6379
14 | password: yeah
15 | database: 2
16 | - beanName: customeRedisTemplate03
17 | host: 127.0.0.1
18 | port: 6379
19 | password: yeah
20 | database: 3
--------------------------------------------------------------------------------
/middle-ware/mq/rabbitmq/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 | mq
7 | vip.yeee.memo
8 | 3.2.2-SNAPSHOT
9 |
10 | 4.0.0
11 |
12 | rabbitmq
13 | pom
14 |
15 |
--------------------------------------------------------------------------------
/third-sdk/blockchain/antchain/ac-call-smart-contract-demo/README.md:
--------------------------------------------------------------------------------
1 |
2 |
3 | //安装 SDK 到本地仓库
4 | mvn install:install-file -Dfile=mychainx-sdk-0.10.2.12.jar -DgroupId=com.alipay.mychainx -DartifactId=mychainx-sdk -Dversion=0.10.2.12 -Dpackaging=jar
5 |
6 | //安装 Netty 依赖到本地仓库,注意选择对应平台 netty-tcnative-openssl-static 版本,注意修改 classifier,macOS :osx-x86_64、linux:linux-x86_64、windows:windows-x86_64
7 | mvn install:install-file -Dfile=netty-tcnative-openssl-static-2.0.17-Final-mychain-osx-x86_64.jar -DgroupId=io.netty -DartifactId=netty-tcnative-openssl-static -Dversion=2.0.17-Final-mychain -Dpackaging=jar -Dclassifier=osx-x86_64
8 |
--------------------------------------------------------------------------------
/third-sdk/blockchain/hyperchain/hc-call-smart-contract-demo/src/main/java/vip/yeee/memo/demo/blockchain/hyperchain/biz/bo/NFTPropertyMetaDataBO.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.demo.blockchain.hyperchain.biz.bo;
2 |
3 | import lombok.Data;
4 |
5 | @Data
6 | public class NFTPropertyMetaDataBO {
7 |
8 | /**
9 | * ID
10 | */
11 | private String id;
12 |
13 | /**
14 | * 名称
15 | */
16 | private String name;
17 |
18 | /**
19 | * 藏品HASH
20 | */
21 | private String entityHash;
22 |
23 | /**
24 | * oss地址
25 | */
26 | private String uri;
27 |
28 | }
29 |
--------------------------------------------------------------------------------
/simple-tools/generator/generate-custom/src/main/java/vip/yeee/memo/demo/custom/generate/core/formatter/ListTemplateFormatter.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.demo.custom.generate.core.formatter;
2 |
3 |
4 | import vip.yeee.memo.demo.custom.generate.core.model.TableClass;
5 |
6 | import java.util.Properties;
7 | import java.util.Set;
8 |
9 | /**
10 | * @since 3.4.5
11 | */
12 | public interface ListTemplateFormatter {
13 |
14 | /**
15 | * 获取根据模板生成的数据
16 | */
17 | String getFormattedContent(Set tableClassSet, Properties properties, String targetPackage, String templateContent);
18 | }
19 |
--------------------------------------------------------------------------------
/spring-cloud/auth-sso/api-auth-server/src/main/java/vip/yeee/memo/demo/springcloud/apiauth/server/model/request/UserLoginRequest.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.demo.springcloud.apiauth.server.model.request;
2 |
3 | import lombok.Data;
4 |
5 | import javax.validation.constraints.NotBlank;
6 |
7 | /**
8 | * description......
9 | *
10 | * @author https://www.yeee.vip
11 | * @since 2022/11/28 16:34
12 | */
13 | @Data
14 | public class UserLoginRequest {
15 |
16 | @NotBlank(message = "用户名不能空")
17 | private String username;
18 | @NotBlank(message = "密码不能空")
19 | private String password;
20 |
21 | }
22 |
--------------------------------------------------------------------------------
/third-sdk/weixin-sdk/wx-mp/src/main/java/vip/yeee/memo/demo/thirdsdk/weixin/mp/WeiXinMpApplication.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.demo.thirdsdk.weixin.mp;
2 |
3 | import org.springframework.boot.SpringApplication;
4 | import org.springframework.boot.autoconfigure.SpringBootApplication;
5 |
6 | /**
7 | * description......
8 | *
9 | * @author https://www.yeee.vip
10 | * @since 2022/7/12 11:45
11 | */
12 | @SpringBootApplication
13 | public class WeiXinMpApplication {
14 |
15 | public static void main(String[] args) {
16 | SpringApplication.run(WeiXinMpApplication.class, args);
17 | }
18 |
19 | }
20 |
--------------------------------------------------------------------------------
/learn-example/algorithm/coding/动态规划/数塔问题.cpp:
--------------------------------------------------------------------------------
1 | #include
2 | #include
3 | using namespace std;
4 | const int maxn=1000;
5 | int f[maxn][maxn],dp[maxn][maxn];
6 | int main(){
7 | int n;
8 | scanf("%d",&n);
9 | for(int i=1;i<=n;i++){
10 | for(int j=1;j<=i;j++){
11 | scanf("%d",&f[i][j]);
12 | }
13 | }
14 | //边界
15 | for(int j=1;j<=n;j++){
16 | dp[n][j]=f[n][j];
17 | }
18 | //从第n-1层不断往上计算出dp[i][j]
19 | for(int i=n-1;i>=1;i--){
20 | for(int j=1;j<=i;j++){
21 | //状态转移方程
22 | dp[i][j]=max(dp[i+1][j],dp[i+1][j+1])+f[i][j];
23 | }
24 | }
25 | printf("%d\n",dp[1][1]);
26 | return 0;
27 | }
--------------------------------------------------------------------------------
/memo-parent/memo-common/common-workflow/common-activiti7/src/main/java/vip/yeee/memo/common/activiti7/model/vo/DefinitionVo.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.common.activiti7.model.vo;
2 |
3 | import lombok.Data;
4 |
5 | /**
6 | * description......
7 | *
8 | * @author https://www.yeee.vip
9 | * @since 2023/12/15 17:45
10 | */
11 | @Data
12 | public class DefinitionVo {
13 |
14 | private String processDefinitionID;
15 |
16 | private String name;
17 |
18 | private String key;
19 |
20 | private String resourceName;
21 |
22 | private String deploymentID;
23 |
24 | private Integer version;
25 | }
26 |
--------------------------------------------------------------------------------
/middle-ware/flink/src/main/java/vip/yeee/memo/demo/flink/model/AccessLogBO.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.demo.flink.model;
2 |
3 | import lombok.Data;
4 | import vip.yeee.memo.demo.flink.constant.OperateEventEnum;
5 |
6 | import java.util.Date;
7 |
8 | @Data
9 | public class AccessLogBO {
10 |
11 | /**
12 | * @see OperateEventEnum
13 | */
14 | private String event;
15 | private Long subjectId;
16 | private Date timestamp;
17 | private String ip;
18 | private String domain;
19 | private Integer status;
20 | private Float responseTime;
21 | private String device;
22 |
23 | }
24 |
--------------------------------------------------------------------------------
/solution-problem/sub-database-table/apache-shardingsphere/sharding-tables/src/main/java/vip/yeee/memo/demo/subdt/apachesharding/entity/Test.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.demo.subdt.apachesharding.entity;
2 |
3 | import com.baomidou.mybatisplus.annotation.TableName;
4 | import lombok.Data;
5 |
6 | /**
7 | * description......
8 | *
9 | * @author https://www.yeee.vip
10 | * @since 2022/6/22 17:20
11 | */
12 | @TableName("t_test")
13 | @Data
14 | public class Test {
15 |
16 | private Long id;
17 |
18 | private Integer type;
19 |
20 | private String field1;
21 |
22 | private String field2;
23 |
24 | }
25 |
--------------------------------------------------------------------------------
/spring-cloud/rpc/openfeign/feign-client-01/src/main/java/vip/yeee/memo/demo/scloud/rpc/feign01/FeignClient01Application.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.demo.scloud.rpc.feign01;
2 |
3 | import org.springframework.boot.SpringApplication;
4 | import org.springframework.boot.autoconfigure.SpringBootApplication;
5 | import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
6 |
7 | @SpringBootApplication
8 | @EnableDiscoveryClient
9 | public class FeignClient01Application {
10 |
11 | public static void main(String[] args) {
12 | SpringApplication.run(FeignClient01Application.class, args);
13 | }
14 |
15 | }
16 |
--------------------------------------------------------------------------------
/third-sdk/aliyun-sdk/ali-oss/src/main/java/vip/yeee/memo/demo/thirdsdk/aliyun/oss/AliyunOssApplication.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.demo.thirdsdk.aliyun.oss;
2 |
3 | import org.springframework.boot.SpringApplication;
4 | import org.springframework.boot.autoconfigure.SpringBootApplication;
5 |
6 | /**
7 | * description......
8 | *
9 | * @author https://www.yeee.vip
10 | * @since 2022/7/12 17:02
11 | */
12 | @SpringBootApplication
13 | public class AliyunOssApplication {
14 |
15 | public static void main(String[] args) {
16 | SpringApplication.run(AliyunOssApplication.class, args);
17 | }
18 |
19 | }
20 |
--------------------------------------------------------------------------------
/learn-example/algorithm/coding/树/并查集/basicOpera.cpp:
--------------------------------------------------------------------------------
1 | #include
2 | using namespace std;
3 | const int N=100;
4 |
5 | int father[N];
6 |
7 | void init(){
8 | for(int i=1;i<=N;i++){
9 | father[i]=i;
10 | }
11 | }
12 |
13 | int findFather(int x){
14 | int a=x;
15 | while(x!=father[x]){
16 | x=father[x];
17 | }
18 | while(a!=father[a]){
19 | int z=a;
20 | a=father[a];
21 | father[z]=x;
22 | }
23 | return x;
24 | }
25 |
26 | void Union(int a,int b){
27 | int faA=findFather(a);
28 | int faB=findFather(b);
29 | if(faA!=faB){
30 | father[faA]=faB;
31 | }
32 | }
33 |
34 | int main(){
35 | return 0;
36 | }
--------------------------------------------------------------------------------
/memo-parent/memo-common/common-workflow/common-activiti7/src/main/resources/example.yml:
--------------------------------------------------------------------------------
1 | spring:
2 | datasource:
3 | driver-class-name: com.mysql.cj.jdbc.Driver
4 | # Table 'ACT_GE_PROPERTY' doesn't exist -> &nullCatalogMeansCurrent=true
5 | url: jdbc:mysql://127.0.0.1:3306/yeee_activity7?characterEncoding=UTF-8&useUnicode=true&useSSL=false&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true
6 | username: root
7 | password: root
8 | # spring-activity
9 | activiti:
10 | history-level: full
11 | db-history-used: true
12 | # 自动部署验证设置:true-开启(默认)、false-关闭
13 | check-process-definitions: false
--------------------------------------------------------------------------------
/solution-problem/mybatis-encrypt/src/main/java/vip/yeee/memo/demo/mybatisencrypt/MybatisEncryptApplication.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.demo.mybatisencrypt;
2 |
3 | import org.springframework.boot.SpringApplication;
4 | import org.springframework.boot.autoconfigure.SpringBootApplication;
5 |
6 | /**
7 | * description......
8 | *
9 | * @author https://www.yeee.vip
10 | * @since 2023/10/24 10:13
11 | */
12 | @SpringBootApplication
13 | public class MybatisEncryptApplication {
14 |
15 | public static void main(String[] args) {
16 | SpringApplication.run(MybatisEncryptApplication.class, args);
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/third-sdk/aliyun-sdk/ali-nls/src/main/java/vip/yeee/memo/demo/thirdsdk/aliyun/nls/properties/AliyunNlsProperties.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.demo.thirdsdk.aliyun.nls.properties;
2 |
3 | import lombok.Getter;
4 | import lombok.Setter;
5 | import org.springframework.boot.context.properties.ConfigurationProperties;
6 | import org.springframework.stereotype.Component;
7 |
8 | @Getter
9 | @Setter
10 | @Component
11 | @ConfigurationProperties(prefix = "yeee.aliyun.nls")
12 | public class AliyunNlsProperties {
13 |
14 | private String accessKeyId;
15 | private String accessKeySecret;
16 | private String appKey;
17 |
18 | }
--------------------------------------------------------------------------------
/learn-example/algorithm/coding/MathProblemExample/SimpleMathProblem/problem-13.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | *鸡兔同笼
3 | *
4 | *题目描述
5 | 一个笼子里面关了鸡和兔子(鸡有2只脚,兔子有4只脚,没有例外)。已经知道了笼子里面脚的总数a,问笼子里面至少有多少只动物,至多有多少只动物。
6 |
7 | 输入
8 | 第1行是测试数据的组数n,后面跟着n行输入。每组测试数据占1行,每行一个正整数a (a < 32768)
9 |
10 | 输出
11 | 输出包含n行,每行对应一个输入,包含两个正整数,第一个是最少的动物数,第二个是最多的动物数,两个正整数用一个空格分开
12 | 如果没有满足要求的答案,则输出两个0。
13 |
14 | 样例输入
15 | 2
16 | 18
17 | 5
18 | 样例输出
19 | 5 9
20 | 0 0
21 | 提示
22 | 这个问题可以描述成任给一个整数 N,如果N 是奇数,输出0 0,否则如果N 是4 的倍数,
23 |
24 | 输出N / 4 N / 2,如果N 不是4 的倍数,输出N/4+1 N/2。这是一个一般的计算题,
25 |
26 | 只要实现相应的判断和输出代码就可以了。题目中说明了输入整数在一个比较小的范围内,
27 |
28 | 所以只需要考虑整数运算就可以了。
29 | *
30 | * */
--------------------------------------------------------------------------------
/learn-example/spring-boot-example/src/main/java/vip/yeee/memo/demo/springboot/extpoint/bean/TestConfigBean.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.demo.springboot.extpoint.bean;
2 |
3 | import lombok.Data;
4 | import org.springframework.context.annotation.Bean;
5 | import org.springframework.context.annotation.Configuration;
6 |
7 | /**
8 | * description......
9 | *
10 | * @author https://www.yeee.vip
11 | * @since 2023/8/14 9:51
12 | */
13 | @Configuration
14 | @Data
15 | public class TestConfigBean {
16 |
17 | @Bean(initMethod = "init")
18 | public TestBean03 testBean03() {
19 | return new TestBean03();
20 | }
21 | }
--------------------------------------------------------------------------------
/middle-ware/canal/canal-server/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | 4.0.0
6 |
7 |
8 | canal
9 | vip.yeee.memo
10 | 3.2.2-SNAPSHOT
11 |
12 |
13 | canal-server
14 | pom
15 |
16 |
--------------------------------------------------------------------------------
/third-sdk/third-pay/src/main/java/vip/yeee/memo/demo/thirdsdk/pay/model/vo/req/SubmitOrderReqVO.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.demo.thirdsdk.pay.model.vo.req;
2 |
3 | import lombok.Data;
4 |
5 | import javax.validation.constraints.NotNull;
6 | import java.math.BigDecimal;
7 |
8 | /**
9 | * description......
10 | *
11 | * @author https://www.yeee.vip
12 | * @since 2022/8/26 14:45
13 | */
14 | @Data
15 | public class SubmitOrderReqVO {
16 |
17 | @NotNull(message = "商品ID不能为空")
18 | private Long subjectId;
19 |
20 | // 订单金额,单位-分
21 | @NotNull(message = "订单金额不能为空")
22 | private BigDecimal amount;
23 |
24 | }
25 |
--------------------------------------------------------------------------------
/learn-example/spring-boot-example/src/main/java/vip/yeee/memo/demo/springboot/extpoint/bean/TestBean04.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.demo.springboot.extpoint.bean;
2 |
3 | import lombok.Data;
4 | import org.springframework.beans.factory.annotation.Autowired;
5 | import org.springframework.stereotype.Component;
6 |
7 | /**
8 | * description......
9 | *
10 | * @author https://www.yeee.vip
11 | * @since 2023/8/14 9:51
12 | */
13 | @Component
14 | @Data
15 | public class TestBean04 {
16 |
17 | private String field1;
18 |
19 | private String field2;
20 |
21 | // @Autowired
22 | // private TestBean03 testBean03;
23 | }
24 |
--------------------------------------------------------------------------------
/memo-parent/memo-base/base-config/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 | memo-base
7 | vip.yeee.memo
8 | 3.2.2-SNAPSHOT
9 |
10 |
11 | 4.0.0
12 |
13 | base-config
14 |
15 |
--------------------------------------------------------------------------------
/memo-parent/memo-common/common-auth/common-app-auth-client/src/main/java/vip/yeee/memo/common/appauth/client/model/ApiAuthedUser.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.common.appauth.client.model;
2 |
3 | import lombok.Data;
4 |
5 | /**
6 | * description......
7 | *
8 | * @author https://www.yeee.vip
9 | * @since 2022/11/28 15:34
10 | */
11 | @Data
12 | public class ApiAuthedUser {
13 | /**
14 | * ID
15 | */
16 | private String id;
17 |
18 | private String uid;
19 |
20 | private String openid;
21 | /**
22 | * 用户名
23 | */
24 | private String username;
25 |
26 | private String source;
27 | }
28 |
--------------------------------------------------------------------------------
/memo-parent/memo-common/common-workflow/common-flowable/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 | common-workflow
7 | vip.yeee.memo
8 | 3.2.2-SNAPSHOT
9 |
10 | 4.0.0
11 |
12 | common-flowable
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/simple-tools/generator/generate-custom/src/main/resources/template/common/model/ListRequest.ftl:
--------------------------------------------------------------------------------
1 | package ${package};
2 |
3 | import io.swagger.annotations.ApiModelProperty;
4 | import lombok.Data;
5 |
6 | import javax.validation.constraints.NotNull;
7 |
8 | /**
9 | * Generated by Yeeee.一页
10 | * @since ${generateDate}
11 | */
12 | @Data
13 | public class ${tableClass.shortClassName}ListRequest {
14 |
15 | @ApiModelProperty("当前页码")
16 | @NotNull(message = "当前页码不能为空")
17 | private Integer pageNum;
18 |
19 | @ApiModelProperty("分页大小")
20 | @NotNull(message = "分页大小不能为空")
21 | private Integer pageSize;
22 |
23 | }
--------------------------------------------------------------------------------
/solution-problem/tokenizing/ik-analyzer/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 | tokenizing
7 | vip.yeee.memo
8 | 3.2.2-SNAPSHOT
9 |
10 | 4.0.0
11 |
12 | ik-analyzer
13 | pom
14 |
15 |
--------------------------------------------------------------------------------
/learn-example/algorithm/coding/STLApplyExample/Algorithm/problem-1.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * 全排列
3 | *
4 | * 题目描述
5 | 给定一个由不同的小写字母组成的字符串,输出这个字符串的所有全排列。
6 | 我们假设对于小写字母有'a' < 'b' < ... < 'y' < 'z',而且给定的字符串中的字母已经按照从小到大的顺序排列。
7 |
8 | 输入
9 | 输入只有一行,是一个由不同的小写字母组成的字符串,已知字符串的长度在1到6之间。
10 |
11 | 输出
12 | 输出这个字符串的所有排列方式,每行一个排列。要求字母序比较小的排列在前面。字母序如下定义:
13 | 已知S = s1s2...sk , T = t1t2...tk,则S < T 等价于,存在p (1 <= p <= k),使得
14 | s1 = t1, s2 = t2, ..., sp - 1 = tp - 1, sp < tp成立。
15 |
16 | 注意每组样例输出结束后接一个空行。
17 |
18 | 样例输入
19 | xyz
20 | 样例输出
21 | xyz
22 | xzy
23 | yxz
24 | yzx
25 | zxy
26 | zyx
27 | 提示
28 | 用STL中的next_permutation会非常简洁。
29 | *
30 | *
31 | * */
32 |
--------------------------------------------------------------------------------
/memo-parent/memo-base/base-model/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | 4.0.0
6 |
7 |
8 | memo-base
9 | vip.yeee.memo
10 | 3.2.2-SNAPSHOT
11 |
12 |
13 |
14 | base-model
15 |
16 |
--------------------------------------------------------------------------------
/memo-parent/memo-common/common-sso/common-sso-third-app/src/main/java/vip/yeee/memo/common/sso/thirdapp/ThirdAppSsoApplication.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.common.sso.thirdapp;
2 |
3 | import org.springframework.boot.SpringApplication;
4 | import org.springframework.boot.autoconfigure.SpringBootApplication;
5 |
6 | /**
7 | * description......
8 | *
9 | * @author https://www.yeee.vip
10 | * @since 2023/3/20 18:42
11 | */
12 | @SpringBootApplication
13 | public class ThirdAppSsoApplication {
14 |
15 | public static void main(String[] args) {
16 | SpringApplication.run(ThirdAppSsoApplication.class, args);
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/solution-problem/tokenizing/lionsoul-jcseg/src/main/java/vip/yeee/memo/demo/tokenizing/jcseg/LionsoulJcsegApplication.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.demo.tokenizing.jcseg;
2 |
3 | import org.springframework.boot.SpringApplication;
4 | import org.springframework.boot.autoconfigure.SpringBootApplication;
5 |
6 | /**
7 | * description......
8 | *
9 | * @author https://www.yeee.vip
10 | * @since 2023/4/25 16:28
11 | */
12 | @SpringBootApplication
13 | public class LionsoulJcsegApplication {
14 |
15 | public static void main(String[] args) {
16 | SpringApplication.run(LionsoulJcsegApplication.class, args);
17 | }
18 |
19 | }
20 |
--------------------------------------------------------------------------------
/test-tool/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | 4.0.0
6 |
7 | vip.yeee.memo
8 | 3.2.2-SNAPSHOT
9 | test-tool
10 | pom
11 |
12 |
13 | gatling-scripts
14 | jMeter
15 |
16 |
17 |
--------------------------------------------------------------------------------
/memo-parent/memo-base/base-config/src/main/java/vip/yeee/memo/base/config/properties/YeeeCommonProperties.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.base.config.properties;
2 |
3 | import lombok.Data;
4 | import org.springframework.boot.context.properties.ConfigurationProperties;
5 | import org.springframework.stereotype.Component;
6 |
7 | /**
8 | * description......
9 | *
10 | * @author https://www.yeee.vip
11 | * @since 2022/7/14 15:47
12 | */
13 | @Data
14 | @Component
15 | @ConfigurationProperties(prefix = "yeee.common")
16 | public class YeeeCommonProperties {
17 |
18 | private String name;
19 |
20 | private String version;
21 |
22 | }
23 |
--------------------------------------------------------------------------------
/memo-parent/memo-base/base-security-oauth2/src/main/java/vip/yeee/memo/base/websecurityoauth2/model/SysRole.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.base.websecurityoauth2.model;
2 |
3 | import lombok.Data;
4 | import org.springframework.security.core.GrantedAuthority;
5 |
6 | /**
7 | * description......
8 | *
9 | * @author https://www.yeee.vip
10 | * @since 2022/4/28 16:02
11 | */
12 | @Data
13 | public class SysRole implements GrantedAuthority {
14 |
15 | private Integer id;
16 | private String code;
17 | private String name;
18 |
19 | @Override
20 | public String getAuthority() {
21 | return code;
22 | }
23 | }
24 |
25 |
--------------------------------------------------------------------------------
/middle-ware/mq/rocketmq/consumer-demo/src/main/java/vip/yeee/memo/demo/mq/rocketmq/consumer/ConsumerDemoApplication.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.demo.mq.rocketmq.consumer;
2 |
3 | import org.springframework.boot.SpringApplication;
4 | import org.springframework.boot.autoconfigure.SpringBootApplication;
5 |
6 | /**
7 | * description......
8 | *
9 | * @author https://www.yeee.vip
10 | * @since 2022/4/25 15:17
11 | */
12 | @SpringBootApplication
13 | public class ConsumerDemoApplication {
14 |
15 | public static void main(String[] args) {
16 | new SpringApplication(ConsumerDemoApplication.class).run(args);
17 | }
18 |
19 | }
20 |
--------------------------------------------------------------------------------
/middle-ware/mq/rocketmq/producer-demo/src/main/java/vip/yeee/memo/demo/mq/rocketmq/producer/ProducerDemoApplication.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.demo.mq.rocketmq.producer;
2 |
3 | import org.springframework.boot.SpringApplication;
4 | import org.springframework.boot.autoconfigure.SpringBootApplication;
5 |
6 | /**
7 | * description......
8 | *
9 | * @author https://www.yeee.vip
10 | * @since 2022/4/25 15:23
11 | */
12 | @SpringBootApplication
13 | public class ProducerDemoApplication {
14 |
15 | public static void main(String[] args) {
16 | new SpringApplication(ProducerDemoApplication.class).run(args);
17 | }
18 |
19 | }
20 |
--------------------------------------------------------------------------------
/solution-problem/distribute-lock/distribute-lock-jedis/src/main/resources/script/lock.lua:
--------------------------------------------------------------------------------
1 | --- -1 failed
2 | --- 1 success
3 | ---
4 | local key = KEYS[1]
5 | local requestId = KEYS[2]
6 | local ttl = tonumber(KEYS[3])
7 | local result = redis.call('setnx', key, requestId)
8 | if result == 1 then
9 | -- PEXPIRE:以毫秒的形式指定过期时间
10 | redis.call('pexpire', key, ttl)
11 | else
12 | result = -1
13 | -- 如果value相同,则认为是同一个线程的请求,则认为重入锁
14 | local value = redis.call('get', key)
15 | if (value == requestId) then
16 | result = 1
17 | redis.call('pexpire', key, ttl)
18 | end
19 | end
20 | -- 如果获取锁成功,则返回1
21 | return result
--------------------------------------------------------------------------------
/memo-parent/memo-common/common-mybatis-encrypt/src/main/java/vip/yeee/memo/common/encrypt/mybatis/properties/MybatisEncryptProperty.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.common.encrypt.mybatis.properties;
2 |
3 | import lombok.Data;
4 | import org.springframework.boot.context.properties.ConfigurationProperties;
5 | import org.springframework.stereotype.Component;
6 |
7 | /**
8 | * description......
9 | *
10 | * @author https://www.yeee.vip
11 | * @since 2023/10/24 10:25
12 | */
13 | @Data
14 | @Component
15 | @ConfigurationProperties(prefix = "yeee.mybatis.encrypt")
16 | public class MybatisEncryptProperty {
17 |
18 | private String password;
19 | }
20 |
--------------------------------------------------------------------------------
/spring-cloud/rpc/thrift/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | 4.0.0
6 |
7 |
8 | memo-parent
9 | vip.yeee.memo
10 | 3.2.2-SNAPSHOT
11 |
12 |
13 |
14 | thrift
15 | pom
16 |
17 |
--------------------------------------------------------------------------------
/learn-example/algorithm/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | 4.0.0
6 |
7 |
8 | memo-parent
9 | vip.yeee.memo
10 | 3.2.2-SNAPSHOT
11 |
12 |
13 |
14 | algorithm
15 | pom
16 |
17 |
--------------------------------------------------------------------------------
/learn-example/some-note/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | 4.0.0
6 |
7 |
8 | memo-parent
9 | vip.yeee.memo
10 | 3.2.2-SNAPSHOT
11 |
12 |
13 |
14 | some-note
15 | pom
16 |
17 |
--------------------------------------------------------------------------------
/spring-cloud/config/nacos2/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | 4.0.0
6 |
7 |
8 | memo-parent
9 | vip.yeee.memo
10 | 3.2.2-SNAPSHOT
11 |
12 |
13 |
14 | nacos2
15 | pom
16 |
17 |
--------------------------------------------------------------------------------
/memo-parent/memo-common/common-sso/common-sso-inner-app/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 | common-sso
7 | vip.yeee.memo
8 | 3.2.2-SNAPSHOT
9 |
10 | 4.0.0
11 |
12 | common-sso-inner-app
13 | pom
14 |
15 |
--------------------------------------------------------------------------------
/memo-parent/memo-common/common-sso/common-sso-third-app/src/main/java/vip/yeee/memo/common/sso/thirdapp/model/request/ThirdAppSsoRequest.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.common.sso.thirdapp.model.request;
2 |
3 | import lombok.Data;
4 |
5 | /**
6 | * description......
7 | *
8 | * @author https://www.yeee.vip
9 | * @since 2023/3/20 18:49
10 | */
11 | @Data
12 | public class ThirdAppSsoRequest {
13 |
14 | // 三方应用
15 | private String appKey;
16 | // 三方当前登录用户标识
17 | private String ticket;
18 | private String timestamp;
19 | private String authFailUrl;
20 | private String authSuccessUrl;
21 | private String signature;
22 |
23 | }
24 |
--------------------------------------------------------------------------------
/solution-problem/sub-database-table/apache-shardingsphere/sharding-database/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | 4.0.0
6 |
7 |
8 | apache-shardingsphere
9 | vip.yeee.memo
10 | 3.2.2-SNAPSHOT
11 |
12 |
13 | sharding-database
14 |
15 |
--------------------------------------------------------------------------------
/solution-problem/websocket-example/src/main/java/vip/yeee/memo/demo/websocket/po/User.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.demo.websocket.po;
2 |
3 | public class User {
4 | Long uid;
5 |
6 | String name;
7 |
8 | public User() {
9 | super();
10 | }
11 |
12 | public User(Long uid, String name) {
13 | super();
14 | this.uid = uid;
15 | this.name = name;
16 | }
17 |
18 | public Long getUid() {
19 | return uid;
20 | }
21 |
22 | public void setUid(Long uid) {
23 | this.uid = uid;
24 | }
25 |
26 | public String getName() {
27 | return name;
28 | }
29 |
30 | public void setName(String name) {
31 | this.name = name;
32 | }
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/spring-cloud/protect/sentinel/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | 4.0.0
6 |
7 |
8 | memo-parent
9 | vip.yeee.memo
10 | 3.2.2-SNAPSHOT
11 |
12 |
13 |
14 | sentinel
15 | pom
16 |
17 |
--------------------------------------------------------------------------------
/simple-tools/generator/generate-custom/src/main/resources/template/common/model/IdRequest.ftl:
--------------------------------------------------------------------------------
1 | package ${package};
2 |
3 | import io.swagger.annotations.ApiModelProperty;
4 | import lombok.Data;
5 |
6 | import javax.validation.constraints.NotEmpty;
7 | import javax.validation.constraints.NotNull;
8 | import java.util.List;
9 |
10 | /**
11 | * Generated by Yeeee.一页
12 | * @since ${generateDate}
13 | */
14 | @Data
15 | public class IdRequest {
16 |
17 | @ApiModelProperty("ID")
18 | @NotNull(message = "ID不能为空")
19 | private Long id;
20 |
21 | @ApiModelProperty("IDS")
22 | @NotEmpty(message = "IDS不能为空")
23 | private List ids;
24 |
25 | }
--------------------------------------------------------------------------------
/solution-problem/netty/simple-example/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | 4.0.0
6 |
7 |
8 | netty
9 | vip.yeee.memo
10 | 3.2.2-SNAPSHOT
11 |
12 |
13 | simple-example
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/solution-problem/distribute-lock/distribute-lock-redisson/src/main/java/vip/yeee/memo/demo/distribute/lock/redisson/TestRedissonApplication.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.demo.distribute.lock.redisson;
2 |
3 | import org.springframework.boot.SpringApplication;
4 | import org.springframework.boot.autoconfigure.SpringBootApplication;
5 |
6 | /**
7 | * description......
8 | *
9 | * @author https://www.yeee.vip
10 | * @since 2022/7/15 10:37
11 | */
12 | @SpringBootApplication
13 | public class TestRedissonApplication {
14 |
15 | public static void main(String[] args) {
16 | SpringApplication.run(TestRedissonApplication.class, args);
17 | }
18 |
19 | }
20 |
--------------------------------------------------------------------------------
/spring-cloud/auth-sso/api-auth-server/src/main/java/vip/yeee/memo/demo/springcloud/apiauth/server/CloudApiAuthServerApplication.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.demo.springcloud.apiauth.server;
2 |
3 | import org.springframework.boot.SpringApplication;
4 | import org.springframework.boot.autoconfigure.SpringBootApplication;
5 |
6 | /**
7 | * description......
8 | *
9 | * @author https://www.yeee.vip
10 | * @since 2022/11/21 11:33
11 | */
12 | @SpringBootApplication
13 | public class CloudApiAuthServerApplication {
14 |
15 | public static void main(String[] args) {
16 | SpringApplication.run(CloudApiAuthServerApplication.class, args);
17 | }
18 |
19 | }
20 |
--------------------------------------------------------------------------------
/spring-cloud/auth-sso/web-auth-server/src/main/java/vip/yeee/memo/demo/springcloud/webauth/server/CloudWebauthServerApplication.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.demo.springcloud.webauth.server;
2 |
3 | import org.springframework.boot.SpringApplication;
4 | import org.springframework.boot.autoconfigure.SpringBootApplication;
5 |
6 | /**
7 | * description......
8 | *
9 | * @author https://www.yeee.vip
10 | * @since 2022/11/16 17:29
11 | */
12 | @SpringBootApplication
13 | public class CloudWebauthServerApplication {
14 |
15 | public static void main(String[] args) {
16 | SpringApplication.run(CloudWebauthServerApplication.class, args);
17 | }
18 |
19 | }
20 |
--------------------------------------------------------------------------------
/spring-cloud/register/eureka/eureka-client-app1/src/main/java/vip/yeee/memo/demo/springcloud/register/eureka/client/DemoClientApplication.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.demo.springcloud.register.eureka.client;
2 |
3 | import org.springframework.boot.SpringApplication;
4 | import org.springframework.boot.autoconfigure.SpringBootApplication;
5 |
6 | /**
7 | *
8 | * @author https://www.yeee.vip
9 | * @since 2021/12/3 18:24
10 | */
11 | @SpringBootApplication
12 | //@EnableDiscoveryClient
13 | public class DemoClientApplication {
14 |
15 | public static void main(String[] args) {
16 | SpringApplication.run(DemoClientApplication.class);
17 | }
18 |
19 | }
20 |
--------------------------------------------------------------------------------
/memo-parent/memo-base/base-security-oauth2/src/main/java/vip/yeee/memo/base/websecurityoauth2/model/AuthUser.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.base.websecurityoauth2.model;
2 |
3 | import lombok.AllArgsConstructor;
4 | import lombok.Data;
5 | import lombok.NoArgsConstructor;
6 |
7 | import java.util.Set;
8 |
9 | @Data
10 | @NoArgsConstructor
11 | @AllArgsConstructor
12 | public class AuthUser {
13 | private String userId;
14 | private String username;
15 | private String password;
16 | private Integer state;
17 | private Set permissions;
18 | private Set roles;
19 | private Set groups;
20 | private Integer superAdmin;
21 | }
22 |
--------------------------------------------------------------------------------
/memo-parent/memo-common/common-dingtalk/src/main/java/vip/yeee/memo/common/dingtalk/properties/DingtalkProperty.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.common.dingtalk.properties;
2 |
3 | import lombok.Data;
4 | import org.springframework.boot.context.properties.ConfigurationProperties;
5 | import org.springframework.context.annotation.Configuration;
6 |
7 | import java.util.Map;
8 |
9 | /**
10 | * description......
11 | *
12 | * @author https://www.yeee.vip
13 | * @since 2023/6/20 17:33
14 | */
15 | @ConfigurationProperties(prefix = "yeee.dingtalk")
16 | @Configuration
17 | @Data
18 | public class DingtalkProperty {
19 |
20 | private Map chatGroup;
21 | }
22 |
--------------------------------------------------------------------------------
/spring-cloud/rpc/openfeign/feign-client-03/src/main/java/vip/yeee/memo/demo/scloud/rpc/feign03/feign/Feign01FeignClient.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.demo.scloud.rpc.feign03.feign;
2 |
3 | import org.springframework.cloud.openfeign.FeignClient;
4 | import org.springframework.web.bind.annotation.GetMapping;
5 | import vip.yeee.memo.base.model.rest.CommonResult;
6 |
7 | /**
8 | * description......
9 | *
10 | * @author https://www.yeee.vip
11 | * @since 2023/2/21 14:03
12 | */
13 | @FeignClient(name = "feign-client-01", path = "/feign01")
14 | public interface Feign01FeignClient {
15 |
16 | @GetMapping("call/get-data")
17 | CommonResult getData();
18 | }
19 |
--------------------------------------------------------------------------------
/spring-cloud/rpc/openfeign/feign-client-03/src/main/java/vip/yeee/memo/demo/scloud/rpc/feign03/feign/Feign02FeignClient.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.demo.scloud.rpc.feign03.feign;
2 |
3 | import org.springframework.cloud.openfeign.FeignClient;
4 | import org.springframework.web.bind.annotation.GetMapping;
5 | import vip.yeee.memo.base.model.rest.CommonResult;
6 |
7 | /**
8 | * description......
9 | *
10 | * @author https://www.yeee.vip
11 | * @since 2023/2/21 14:03
12 | */
13 | @FeignClient(name = "feign-client-02", path = "/feign02")
14 | public interface Feign02FeignClient {
15 |
16 | @GetMapping("call/get-data")
17 | CommonResult getData();
18 | }
19 |
--------------------------------------------------------------------------------
/spring-cloud/transaction/seata/seata-server/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | 4.0.0
6 |
7 |
8 | memo-parent
9 | vip.yeee.memo
10 | 3.2.2-SNAPSHOT
11 |
12 |
13 |
14 | seata-server
15 | pom
16 |
17 |
--------------------------------------------------------------------------------
/memo-parent/memo-common/common-sso/common-sso-third-app/src/main/java/vip/yeee/memo/common/sso/thirdapp/model/dto/ThirdAppDto.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.common.sso.thirdapp.model.dto;
2 |
3 | import lombok.Data;
4 |
5 | /**
6 | * description......
7 | *
8 | * @author https://www.yeee.vip
9 | * @since 2023/3/20 18:49
10 | */
11 | @Data
12 | public class ThirdAppDto {
13 |
14 | private String id;
15 |
16 | private String appKey;
17 |
18 | private String appSecret;
19 |
20 | //合作方名称
21 | private String appName;
22 |
23 | // 获取ticket用户信息url
24 | private String ticketUrl;
25 |
26 | //启用状态 0启用 1关闭
27 | private Integer status;
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/spring-cloud/rpc/grpc/src/main/proto/helloword.proto:
--------------------------------------------------------------------------------
1 | syntax = "proto3";
2 |
3 | option java_multiple_files = true;
4 | option java_package = "io.grpc.examples.helloworld";
5 | option java_outer_classname = "HelloWorldProto";
6 | option objc_class_prefix = "HLW";
7 |
8 | package helloworld;
9 |
10 | // The greeting service definition.
11 | service Greeter {
12 | // Sends a greeting
13 | rpc SayHello (HelloRequest) returns (HelloReply) {}
14 | }
15 |
16 | // The request message containing the user's name.
17 | message HelloRequest {
18 | string name = 1;
19 | }
20 |
21 | // The response message containing the greetings
22 | message HelloReply {
23 | string message = 1;
24 | }
--------------------------------------------------------------------------------
/spring-cloud/rpc/openfeign/feign-client-03/src/main/java/vip/yeee/memo/demo/scloud/rpc/feign03/feign/fallback/TestFeignFallback.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.demo.scloud.rpc.feign03.feign.fallback;
2 |
3 | import lombok.extern.slf4j.Slf4j;
4 | import org.springframework.stereotype.Component;
5 | import vip.yeee.memo.demo.scloud.rpc.feign03.feign.TestFeignService;
6 |
7 | /**
8 | * description......
9 | *
10 | * @author https://www.yeee.vip
11 | * @since 2022/8/3 15:15
12 | */
13 | @Slf4j
14 | @Component
15 | public class TestFeignFallback implements TestFeignService {
16 | @Override
17 | public String getData() {
18 | return "发生了熔断:系统默认返回!!!";
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/third-sdk/third-pay/src/main/java/vip/yeee/memo/demo/thirdsdk/pay/model/bo/WxV3PayUnifiedOrderRespBO.java:
--------------------------------------------------------------------------------
1 | package vip.yeee.memo.demo.thirdsdk.pay.model.bo;
2 |
3 | import lombok.Data;
4 | import lombok.EqualsAndHashCode;
5 |
6 | /**
7 | * description......
8 | *
9 | * @author https://www.yeee.vip
10 | * @since 2022/8/26 11:25
11 | */
12 | @EqualsAndHashCode(callSuper = true)
13 | @Data
14 | public class WxV3PayUnifiedOrderRespBO extends UnifiedOrderRespBO {
15 |
16 | private String appId;
17 | private String timeStamp;
18 | private String nonceStr;
19 | private String packageValue;
20 | private String signType;
21 | private String paySign;
22 |
23 | }
24 |
--------------------------------------------------------------------------------