├── src ├── main │ ├── resources │ │ ├── static │ │ │ ├── mine │ │ │ │ └── 这里放的是用户主页.txt │ │ │ └── video │ │ │ │ └── 这里放的是视频页面.txt │ │ ├── mybatis │ │ │ ├── mybatis-config.xml │ │ │ └── mappers │ │ │ │ ├── web │ │ │ │ ├── WordsMapper.xml │ │ │ │ └── InfoMapper.xml │ │ │ │ └── video │ │ │ │ ├── CommentMapper.xml │ │ │ │ ├── CollectionMapper.xml │ │ │ │ ├── AccountMapper.xml │ │ │ │ └── VideoMapper.xml │ │ ├── application.yml │ │ └── logback.xml │ └── java │ │ └── com │ │ └── lingyi │ │ └── RootGet │ │ ├── mapper │ │ ├── web │ │ │ ├── InfoMapper.java │ │ │ └── WordsMapper.java │ │ └── video │ │ │ ├── CommentMapper.java │ │ │ ├── AccountMapper.java │ │ │ ├── CollectionMapper.java │ │ │ └── VideoMapper.java │ │ ├── RootGetApplication.java │ │ ├── config │ │ ├── ObjectMapperConfig.java │ │ ├── InterceptorConfig.java │ │ └── ScheduleConfig.java │ │ ├── entry │ │ ├── Danmaku.java │ │ ├── Collection.java │ │ ├── Words.java │ │ ├── Info.java │ │ ├── Account.java │ │ ├── Comment.java │ │ └── Video.java │ │ ├── tools │ │ ├── MD5Transfer.java │ │ ├── SnowFlake.java │ │ ├── Constant.java │ │ └── RedisTools.java │ │ ├── controller │ │ ├── GlobalExceptionHandler.java │ │ ├── ImageController.java │ │ ├── Viewer.java │ │ ├── CollectionController.java │ │ ├── CommentController.java │ │ ├── Administrator.java │ │ ├── AccountController.java │ │ └── VideoController.java │ │ ├── filter │ │ ├── AddHeader.java │ │ └── Interceptor.java │ │ └── datasource │ │ ├── web │ │ └── DataSourceConfigWeb.java │ │ └── video │ │ └── DataSourceConfigVideo.java └── test │ └── java │ └── com │ └── lingyi │ └── RootGet │ └── RootGetApplicationTests.java ├── .mvn └── wrapper │ ├── maven-wrapper.jar │ └── maven-wrapper.properties ├── .gitignore ├── LICENSE ├── pom.xml ├── mvnw.cmd └── mvnw /src/main/resources/static/mine/这里放的是用户主页.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/main/resources/static/video/这里放的是视频页面.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KotokawaAkira/VideoStationServer/HEAD/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.5/apache-maven-3.8.5-bin.zip 2 | wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar 3 | -------------------------------------------------------------------------------- /src/main/java/com/lingyi/RootGet/mapper/web/InfoMapper.java: -------------------------------------------------------------------------------- 1 | package com.lingyi.RootGet.mapper.web; 2 | 3 | import com.lingyi.RootGet.entry.Info; 4 | import org.apache.ibatis.annotations.Mapper; 5 | 6 | import java.util.List; 7 | 8 | @Mapper 9 | public interface InfoMapper { 10 | List getInfo(); 11 | } 12 | -------------------------------------------------------------------------------- /src/main/java/com/lingyi/RootGet/mapper/web/WordsMapper.java: -------------------------------------------------------------------------------- 1 | package com.lingyi.RootGet.mapper.web; 2 | 3 | import com.lingyi.RootGet.entry.Words; 4 | import org.apache.ibatis.annotations.Mapper; 5 | 6 | import java.util.List; 7 | 8 | @Mapper 9 | public interface WordsMapper { 10 | List getWords(); 11 | } 12 | -------------------------------------------------------------------------------- /src/main/resources/mybatis/mybatis-config.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /src/main/java/com/lingyi/RootGet/RootGetApplication.java: -------------------------------------------------------------------------------- 1 | package com.lingyi.RootGet; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class RootGetApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(RootGetApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /src/main/resources/mybatis/mappers/web/WordsMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 9 | -------------------------------------------------------------------------------- /src/main/resources/mybatis/mappers/web/InfoMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 9 | -------------------------------------------------------------------------------- /src/main/java/com/lingyi/RootGet/config/ObjectMapperConfig.java: -------------------------------------------------------------------------------- 1 | package com.lingyi.RootGet.config; 2 | 3 | import com.fasterxml.jackson.databind.ObjectMapper; 4 | import org.springframework.context.annotation.Bean; 5 | import org.springframework.context.annotation.Configuration; 6 | 7 | @Configuration 8 | public class ObjectMapperConfig { 9 | @Bean 10 | public ObjectMapper objectMapper(){ 11 | return new ObjectMapper(); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/**/target/ 5 | !**/src/test/**/target/ 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | !**/src/main/**/build/ 30 | !**/src/test/**/build/ 31 | 32 | ### VS Code ### 33 | .vscode/ 34 | -------------------------------------------------------------------------------- /src/main/java/com/lingyi/RootGet/entry/Danmaku.java: -------------------------------------------------------------------------------- 1 | package com.lingyi.RootGet.entry; 2 | 3 | import java.util.List; 4 | 5 | public class Danmaku { 6 | private int code; 7 | private List> data; 8 | 9 | public int getCode() { 10 | return code; 11 | } 12 | 13 | public void setCode(int code) { 14 | this.code = code; 15 | } 16 | 17 | public List> getData() { 18 | return data; 19 | } 20 | 21 | public void setData(List> data) { 22 | this.data = data; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | servlet: 3 | context-path: 4 | port: 5 | 6 | spring: 7 | servlet: 8 | multipart: 9 | max-file-size: 500MB 10 | max-request-size: -1 11 | datasource: 12 | web: 13 | url: 14 | username: 15 | password: 16 | driver-class-name: 17 | video: 18 | url: 19 | username: 20 | password: 21 | driver-class-name: 22 | 23 | redis: 24 | host: 25 | port: 26 | password: 27 | 28 | mybatis: 29 | config-location: classpath:mybatis/mybatis-config.xml 30 | 31 | -------------------------------------------------------------------------------- /src/main/java/com/lingyi/RootGet/mapper/video/CommentMapper.java: -------------------------------------------------------------------------------- 1 | package com.lingyi.RootGet.mapper.video; 2 | 3 | import com.lingyi.RootGet.entry.Comment; 4 | import org.apache.ibatis.annotations.Mapper; 5 | import org.springframework.transaction.annotation.Transactional; 6 | 7 | import java.util.List; 8 | 9 | @Mapper 10 | public interface CommentMapper { 11 | Comment getCommentsById(long id); 12 | List getCommentsByForId(long forId); 13 | int addComment(Comment comment); 14 | int deleteComment(Comment comment); 15 | void updateName(String oldName,String newName); 16 | } 17 | -------------------------------------------------------------------------------- /src/main/java/com/lingyi/RootGet/mapper/video/AccountMapper.java: -------------------------------------------------------------------------------- 1 | package com.lingyi.RootGet.mapper.video; 2 | 3 | import com.lingyi.RootGet.entry.Account; 4 | import org.apache.ibatis.annotations.Mapper; 5 | import org.springframework.transaction.annotation.Transactional; 6 | import reactor.util.annotation.NonNull; 7 | 8 | import java.util.List; 9 | 10 | 11 | @Mapper 12 | public interface AccountMapper { 13 | Account selectOneById(@NonNull long id); 14 | List selectByKeywords(String keywords); 15 | void addOne(@NonNull Account account); 16 | void updateOne(@NonNull Account account); 17 | } 18 | -------------------------------------------------------------------------------- /src/main/java/com/lingyi/RootGet/mapper/video/CollectionMapper.java: -------------------------------------------------------------------------------- 1 | package com.lingyi.RootGet.mapper.video; 2 | 3 | import org.apache.ibatis.annotations.MapKey; 4 | import org.apache.ibatis.annotations.Mapper; 5 | import org.apache.ibatis.annotations.Param; 6 | 7 | import java.util.List; 8 | import java.util.Map; 9 | 10 | @Mapper 11 | public interface CollectionMapper { 12 | @MapKey("name") 13 | Map selectAll(); 14 | boolean isExists(String name); 15 | void addCollections(@Param("list") Map map); 16 | void updateCollections(@Param("list") Map map); 17 | void delete(List collectionKeys); 18 | } 19 | -------------------------------------------------------------------------------- /src/main/java/com/lingyi/RootGet/entry/Collection.java: -------------------------------------------------------------------------------- 1 | package com.lingyi.RootGet.entry; 2 | 3 | import java.util.Set; 4 | 5 | public class Collection { 6 | private String name; 7 | private Set