diff --git a/README.md b/README.md index 07d5338d..b0460732 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,7 @@ https://github.com/spruceid/siwe-go/blob/main/message.go /root/graph-node/docker/data/ipfs ## graph ql 集成 +"https://api.studio.thegraph.com/proxy/55957/dapp-learning-redpacket/version/latest" ## TODO 1. 头像 简历 diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 00000000..86adfcad --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,21 @@ +version: '3.2' +services: + db: + image: mysql:latest + container_name: mysql + environment: + - MYSQL_DATABASE=dl + - MYSQL_ROOT_PASSWORD=root + ports: + - "3306:3306" + volumes: + - ./mysql_volume:/var/lib/mysql + # - ./db/init.sql:/docker-entrypoint-initdb.d/init.sql + ipfs: + image: ipfs/kubo:v0.14.0 + ports: + - '5001:5001' + - "8081:8080" + - "4001:4001" + volumes: + - ./data/ipfs:/data/ipfs \ No newline at end of file diff --git a/src/main/java/com/dl/officialsite/aave/Compent.java b/src/main/java/com/dl/officialsite/aave/Constant.java similarity index 98% rename from src/main/java/com/dl/officialsite/aave/Compent.java rename to src/main/java/com/dl/officialsite/aave/Constant.java index 4893071f..c4fe03c0 100644 --- a/src/main/java/com/dl/officialsite/aave/Compent.java +++ b/src/main/java/com/dl/officialsite/aave/Constant.java @@ -19,7 +19,7 @@ * @Description TODO **/ @Component -public class Compent { +public class Constant { public static ContractGasProvider GAS_PROVIDER = new StaticGasProvider(GAS_PRICE, GAS_LIMIT); diff --git a/src/main/java/com/dl/officialsite/common/advice/GlobalExceptionHandler.java b/src/main/java/com/dl/officialsite/common/advice/GlobalExceptionHandler.java index aab56ba5..ee7ee6c5 100644 --- a/src/main/java/com/dl/officialsite/common/advice/GlobalExceptionHandler.java +++ b/src/main/java/com/dl/officialsite/common/advice/GlobalExceptionHandler.java @@ -1,18 +1,18 @@ -package com.dl.officialsite.common.advice; - -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.MethodArgumentNotValidException; -import org.springframework.web.bind.annotation.ControllerAdvice; -import org.springframework.web.context.request.WebRequest; -import org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler; - -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.stream.Collectors; - +//package com.dl.officialsite.common.advice; +// +//import org.springframework.http.HttpHeaders; +//import org.springframework.http.HttpStatus; +//import org.springframework.http.ResponseEntity; +//import org.springframework.web.bind.MethodArgumentNotValidException; +//import org.springframework.web.bind.annotation.ControllerAdvice; +//import org.springframework.web.context.request.WebRequest; +//import org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler; +// +//import java.util.HashMap; +//import java.util.List; +//import java.util.Map; +//import java.util.stream.Collectors; +// //@ControllerAdvice //public class GlobalExceptionHandler extends ResponseEntityExceptionHandler { // @Override diff --git a/src/main/java/com/dl/officialsite/redpacket/RedPacket.java b/src/main/java/com/dl/officialsite/redpacket/RedPacket.java index 37863b55..4fd16734 100644 --- a/src/main/java/com/dl/officialsite/redpacket/RedPacket.java +++ b/src/main/java/com/dl/officialsite/redpacket/RedPacket.java @@ -22,8 +22,8 @@ @Entity @DynamicUpdate @Table(name = "red_packet", schema = "dl", uniqueConstraints = { - @UniqueConstraint(name = "id", columnNames = {"id"}), - @UniqueConstraint(name = "name", columnNames = {"name"})}) + @UniqueConstraint(name = "id", columnNames = {"id"}) + }) public class RedPacket { @NotNull diff --git a/src/main/resources/DB/data-mysql.SQL b/src/main/resources/DB/data-mysql.SQL index c35ca616..595a5703 100644 --- a/src/main/resources/DB/data-mysql.SQL +++ b/src/main/resources/DB/data-mysql.SQL @@ -1,6 +1,6 @@ INSERT INTO team ( team_name, team_profile, administrator, authority) -VALUES ("Dapp-Learning DAO core founders", "Initial founding members and those who contributed significantly, Taking charge of community vault.", "0x1F7b953113f4dFcBF56a1688529CC812865840e1", 10), +VALUES ("Dapp-Learning DAO co-founders", "Initial founding members and those who contributed significantly, Taking charge of community vault.", "0x1F7b953113f4dFcBF56a1688529CC812865840e1", 10), ("Dapp-Learning DAO builders", "Those who are willing to participate in the community and make outstanding contributions to community building", "", 9), ("Dapp-Learning DAO PR reviewers", "Responsible for review PR of our repository", "", 8), ("Dapp-Learning DAO sharing group", "sharing in Dapp-Learning and earn reward", "", 7),