implements RoleService {
19 |
20 | }
21 |
--------------------------------------------------------------------------------
/seesee-video/ss-admin/ss-admin-web/src/main/resources/dozer/biz.dozer.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/seesee-video/ss-admin/ss-admin-web/src/main/resources/logback-spring.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/seesee-video/ss-gateway/src/main/java/com/whoiszxl/GatewayApplication.java:
--------------------------------------------------------------------------------
1 | package com.whoiszxl;
2 |
3 | import org.springframework.boot.SpringApplication;
4 | import org.springframework.boot.autoconfigure.SpringBootApplication;
5 | import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
6 |
7 | /**
8 | * 网关应用启动器
9 | *
10 | * @author whoiszxl
11 | * @date 2021/4/7
12 | */
13 | @SpringBootApplication
14 | @EnableDiscoveryClient
15 | public class GatewayApplication {
16 |
17 | public static void main(String[] args) {
18 | SpringApplication.run(GatewayApplication.class, args);
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/seesee-video/ss-member/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 | seesee-video
7 | com.whoiszxl
8 | 1.0.0
9 |
10 | 4.0.0
11 |
12 | ss-member
13 | pom
14 |
15 | ss-member-api
16 | ss-member-web
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/seesee-video/ss-member/ss-member-api/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 | ss-member
7 | com.whoiszxl
8 | 1.0.0
9 |
10 | 4.0.0
11 |
12 | ss-member-api
13 |
14 |
15 |
--------------------------------------------------------------------------------
/seesee-video/ss-member/ss-member-web/src/main/java/com/whoiszxl/MemberApplication.java:
--------------------------------------------------------------------------------
1 | package com.whoiszxl;
2 |
3 | import org.springframework.boot.SpringApplication;
4 | import org.springframework.boot.autoconfigure.SpringBootApplication;
5 |
6 | /**
7 | * TODO
8 | *
9 | * @author whoiszxl
10 | * @date 2021/11/30
11 | */
12 | @SpringBootApplication
13 | public class MemberApplication {
14 |
15 | public static void main(String[] args) {
16 | SpringApplication.run(MemberApplication.class, args);
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/seesee-video/ss-member/ss-member-web/src/main/java/com/whoiszxl/config/LogAutoConfiguration.java:
--------------------------------------------------------------------------------
1 | package com.whoiszxl.config;
2 |
3 | import com.whoiszxl.logger.event.SysLogListener;
4 | import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
5 | import org.springframework.context.annotation.Bean;
6 | import org.springframework.context.annotation.Configuration;
7 |
8 | /**
9 | * TODO
10 | *
11 | * @author whoiszxl
12 | * @date 2021/12/1
13 | */
14 | @Configuration
15 | public class LogAutoConfiguration {
16 |
17 | @Bean
18 | @ConditionalOnMissingBean
19 | public SysLogListener sysLogListener(LogService logService) {
20 | return new SysLogListener(optLogDTO -> {
21 | logService.saveLog(optLogDTO);
22 | });
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/seesee-video/ss-member/ss-member-web/src/main/java/com/whoiszxl/config/LogService.java:
--------------------------------------------------------------------------------
1 | package com.whoiszxl.config;
2 |
3 | import com.whoiszxl.logger.entity.OptLogDTO;
4 | import lombok.extern.slf4j.Slf4j;
5 | import org.springframework.stereotype.Service;
6 |
7 | /**
8 | * TODO
9 | *
10 | * @author whoiszxl
11 | * @date 2021/12/1
12 | */
13 | @Service
14 | @Slf4j
15 | public class LogService {
16 |
17 | public void saveLog(OptLogDTO optLogDTO) {
18 | log.info("日志入库:{}", optLogDTO);
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/seesee-video/ss-member/ss-member-web/src/main/java/com/whoiszxl/controller/MemberAttentionController.java:
--------------------------------------------------------------------------------
1 | package com.whoiszxl.controller;
2 |
3 |
4 | import org.springframework.web.bind.annotation.RequestMapping;
5 |
6 | import org.springframework.web.bind.annotation.RestController;
7 |
8 | /**
9 | *
10 | * 会员关注表 前端控制器
11 | *
12 | *
13 | * @author whoiszxl
14 | * @since 2021-12-08
15 | */
16 | @RestController
17 | @RequestMapping("/member-attention")
18 | public class MemberAttentionController {
19 |
20 | }
21 |
22 |
--------------------------------------------------------------------------------
/seesee-video/ss-member/ss-member-web/src/main/java/com/whoiszxl/controller/MemberController.java:
--------------------------------------------------------------------------------
1 | package com.whoiszxl.controller;
2 |
3 |
4 | import org.springframework.web.bind.annotation.RequestMapping;
5 |
6 | import org.springframework.web.bind.annotation.RestController;
7 |
8 | /**
9 | *
10 | * 会员表 前端控制器
11 | *
12 | *
13 | * @author whoiszxl
14 | * @since 2021-12-08
15 | */
16 | @RestController
17 | @RequestMapping("/member")
18 | public class MemberController {
19 |
20 | }
21 |
22 |
--------------------------------------------------------------------------------
/seesee-video/ss-member/ss-member-web/src/main/java/com/whoiszxl/controller/MemberFollowerController.java:
--------------------------------------------------------------------------------
1 | package com.whoiszxl.controller;
2 |
3 |
4 | import org.springframework.web.bind.annotation.RequestMapping;
5 |
6 | import org.springframework.web.bind.annotation.RestController;
7 |
8 | /**
9 | *
10 | * 会员粉丝表 前端控制器
11 | *
12 | *
13 | * @author whoiszxl
14 | * @since 2021-12-08
15 | */
16 | @RestController
17 | @RequestMapping("/member-follower")
18 | public class MemberFollowerController {
19 |
20 | }
21 |
22 |
--------------------------------------------------------------------------------
/seesee-video/ss-member/ss-member-web/src/main/java/com/whoiszxl/controller/MemberInfoController.java:
--------------------------------------------------------------------------------
1 | package com.whoiszxl.controller;
2 |
3 |
4 | import org.springframework.web.bind.annotation.RequestMapping;
5 |
6 | import org.springframework.web.bind.annotation.RestController;
7 |
8 | /**
9 | *
10 | * 会员详情表 前端控制器
11 | *
12 | *
13 | * @author whoiszxl
14 | * @since 2021-12-08
15 | */
16 | @RestController
17 | @RequestMapping("/member-info")
18 | public class MemberInfoController {
19 |
20 | }
21 |
22 |
--------------------------------------------------------------------------------
/seesee-video/ss-member/ss-member-web/src/main/java/com/whoiszxl/controller/MemberReportController.java:
--------------------------------------------------------------------------------
1 | package com.whoiszxl.controller;
2 |
3 |
4 | import org.springframework.web.bind.annotation.RequestMapping;
5 |
6 | import org.springframework.web.bind.annotation.RestController;
7 |
8 | /**
9 | *
10 | * 会员举报表 前端控制器
11 | *
12 | *
13 | * @author whoiszxl
14 | * @since 2021-12-08
15 | */
16 | @RestController
17 | @RequestMapping("/member-report")
18 | public class MemberReportController {
19 |
20 | }
21 |
22 |
--------------------------------------------------------------------------------
/seesee-video/ss-member/ss-member-web/src/main/java/com/whoiszxl/entity/MemberAttention.java:
--------------------------------------------------------------------------------
1 | package com.whoiszxl.entity;
2 |
3 | import com.baomidou.mybatisplus.annotation.TableName;
4 | import java.io.Serializable;
5 | import io.swagger.annotations.ApiModel;
6 | import io.swagger.annotations.ApiModelProperty;
7 | import lombok.Getter;
8 | import lombok.Setter;
9 |
10 | /**
11 | *
12 | * 会员关注表
13 | *
14 | *
15 | * @author whoiszxl
16 | * @since 2021-12-08
17 | */
18 | @Getter
19 | @Setter
20 | @TableName("ums_member_attention")
21 | @ApiModel(value = "MemberAttention对象", description = "会员关注表")
22 | public class MemberAttention implements Serializable {
23 |
24 | private static final long serialVersionUID = 1L;
25 |
26 | @ApiModelProperty("主键ID")
27 | private Long id;
28 |
29 | @ApiModelProperty("用户ID")
30 | private Long memberId;
31 |
32 | @ApiModelProperty("粉丝ID")
33 | private Long attentionId;
34 |
35 |
36 | }
37 |
--------------------------------------------------------------------------------
/seesee-video/ss-member/ss-member-web/src/main/java/com/whoiszxl/entity/MemberFollower.java:
--------------------------------------------------------------------------------
1 | package com.whoiszxl.entity;
2 |
3 | import com.baomidou.mybatisplus.annotation.TableName;
4 | import java.io.Serializable;
5 | import io.swagger.annotations.ApiModel;
6 | import io.swagger.annotations.ApiModelProperty;
7 | import lombok.Getter;
8 | import lombok.Setter;
9 |
10 | /**
11 | *
12 | * 会员粉丝表
13 | *
14 | *
15 | * @author whoiszxl
16 | * @since 2021-12-08
17 | */
18 | @Getter
19 | @Setter
20 | @TableName("ums_member_follower")
21 | @ApiModel(value = "MemberFollower对象", description = "会员粉丝表")
22 | public class MemberFollower implements Serializable {
23 |
24 | private static final long serialVersionUID = 1L;
25 |
26 | @ApiModelProperty("主键ID")
27 | private Long id;
28 |
29 | @ApiModelProperty("用户ID")
30 | private Long memberId;
31 |
32 | @ApiModelProperty("粉丝ID")
33 | private Long followerId;
34 |
35 |
36 | }
37 |
--------------------------------------------------------------------------------
/seesee-video/ss-member/ss-member-web/src/main/java/com/whoiszxl/mapper/MemberAttentionMapper.java:
--------------------------------------------------------------------------------
1 | package com.whoiszxl.mapper;
2 |
3 | import com.whoiszxl.entity.MemberAttention;
4 | import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5 |
6 | /**
7 | *
8 | * 会员关注表 Mapper 接口
9 | *
10 | *
11 | * @author whoiszxl
12 | * @since 2021-12-08
13 | */
14 | public interface MemberAttentionMapper extends BaseMapper {
15 |
16 | }
17 |
--------------------------------------------------------------------------------
/seesee-video/ss-member/ss-member-web/src/main/java/com/whoiszxl/mapper/MemberFollowerMapper.java:
--------------------------------------------------------------------------------
1 | package com.whoiszxl.mapper;
2 |
3 | import com.whoiszxl.entity.MemberFollower;
4 | import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5 |
6 | /**
7 | *
8 | * 会员粉丝表 Mapper 接口
9 | *
10 | *
11 | * @author whoiszxl
12 | * @since 2021-12-08
13 | */
14 | public interface MemberFollowerMapper extends BaseMapper {
15 |
16 | }
17 |
--------------------------------------------------------------------------------
/seesee-video/ss-member/ss-member-web/src/main/java/com/whoiszxl/mapper/MemberInfoMapper.java:
--------------------------------------------------------------------------------
1 | package com.whoiszxl.mapper;
2 |
3 | import com.whoiszxl.entity.MemberInfo;
4 | import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5 |
6 | /**
7 | *
8 | * 会员详情表 Mapper 接口
9 | *
10 | *
11 | * @author whoiszxl
12 | * @since 2021-12-08
13 | */
14 | public interface MemberInfoMapper extends BaseMapper {
15 |
16 | }
17 |
--------------------------------------------------------------------------------
/seesee-video/ss-member/ss-member-web/src/main/java/com/whoiszxl/mapper/MemberMapper.java:
--------------------------------------------------------------------------------
1 | package com.whoiszxl.mapper;
2 |
3 | import com.whoiszxl.entity.Member;
4 | import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5 |
6 | /**
7 | *
8 | * 会员表 Mapper 接口
9 | *
10 | *
11 | * @author whoiszxl
12 | * @since 2021-12-08
13 | */
14 | public interface MemberMapper extends BaseMapper {
15 |
16 | }
17 |
--------------------------------------------------------------------------------
/seesee-video/ss-member/ss-member-web/src/main/java/com/whoiszxl/mapper/MemberReportMapper.java:
--------------------------------------------------------------------------------
1 | package com.whoiszxl.mapper;
2 |
3 | import com.whoiszxl.entity.MemberReport;
4 | import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5 |
6 | /**
7 | *
8 | * 会员举报表 Mapper 接口
9 | *
10 | *
11 | * @author whoiszxl
12 | * @since 2021-12-08
13 | */
14 | public interface MemberReportMapper extends BaseMapper {
15 |
16 | }
17 |
--------------------------------------------------------------------------------
/seesee-video/ss-member/ss-member-web/src/main/java/com/whoiszxl/mapper/xml/MemberAttentionMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/seesee-video/ss-member/ss-member-web/src/main/java/com/whoiszxl/mapper/xml/MemberFollowerMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/seesee-video/ss-member/ss-member-web/src/main/java/com/whoiszxl/mapper/xml/MemberInfoMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/seesee-video/ss-member/ss-member-web/src/main/java/com/whoiszxl/mapper/xml/MemberMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/seesee-video/ss-member/ss-member-web/src/main/java/com/whoiszxl/mapper/xml/MemberReportMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/seesee-video/ss-member/ss-member-web/src/main/java/com/whoiszxl/service/IMemberAttentionService.java:
--------------------------------------------------------------------------------
1 | package com.whoiszxl.service;
2 |
3 | import com.whoiszxl.entity.MemberAttention;
4 | import com.baomidou.mybatisplus.extension.service.IService;
5 |
6 | /**
7 | *
8 | * 会员关注表 服务类
9 | *
10 | *
11 | * @author whoiszxl
12 | * @since 2021-12-08
13 | */
14 | public interface IMemberAttentionService extends IService {
15 |
16 | }
17 |
--------------------------------------------------------------------------------
/seesee-video/ss-member/ss-member-web/src/main/java/com/whoiszxl/service/IMemberFollowerService.java:
--------------------------------------------------------------------------------
1 | package com.whoiszxl.service;
2 |
3 | import com.whoiszxl.entity.MemberFollower;
4 | import com.baomidou.mybatisplus.extension.service.IService;
5 |
6 | /**
7 | *
8 | * 会员粉丝表 服务类
9 | *
10 | *
11 | * @author whoiszxl
12 | * @since 2021-12-08
13 | */
14 | public interface IMemberFollowerService extends IService {
15 |
16 | }
17 |
--------------------------------------------------------------------------------
/seesee-video/ss-member/ss-member-web/src/main/java/com/whoiszxl/service/IMemberInfoService.java:
--------------------------------------------------------------------------------
1 | package com.whoiszxl.service;
2 |
3 | import com.whoiszxl.entity.MemberInfo;
4 | import com.baomidou.mybatisplus.extension.service.IService;
5 |
6 | /**
7 | *
8 | * 会员详情表 服务类
9 | *
10 | *
11 | * @author whoiszxl
12 | * @since 2021-12-08
13 | */
14 | public interface IMemberInfoService extends IService {
15 |
16 | }
17 |
--------------------------------------------------------------------------------
/seesee-video/ss-member/ss-member-web/src/main/java/com/whoiszxl/service/IMemberReportService.java:
--------------------------------------------------------------------------------
1 | package com.whoiszxl.service;
2 |
3 | import com.whoiszxl.entity.MemberReport;
4 | import com.baomidou.mybatisplus.extension.service.IService;
5 |
6 | /**
7 | *
8 | * 会员举报表 服务类
9 | *
10 | *
11 | * @author whoiszxl
12 | * @since 2021-12-08
13 | */
14 | public interface IMemberReportService extends IService {
15 |
16 | }
17 |
--------------------------------------------------------------------------------
/seesee-video/ss-member/ss-member-web/src/main/java/com/whoiszxl/service/IMemberService.java:
--------------------------------------------------------------------------------
1 | package com.whoiszxl.service;
2 |
3 | import com.whoiszxl.entity.Member;
4 | import com.baomidou.mybatisplus.extension.service.IService;
5 |
6 | /**
7 | *
8 | * 会员表 服务类
9 | *
10 | *
11 | * @author whoiszxl
12 | * @since 2021-12-08
13 | */
14 | public interface IMemberService extends IService {
15 |
16 | }
17 |
--------------------------------------------------------------------------------
/seesee-video/ss-member/ss-member-web/src/main/java/com/whoiszxl/service/impl/MemberAttentionServiceImpl.java:
--------------------------------------------------------------------------------
1 | package com.whoiszxl.service.impl;
2 |
3 | import com.whoiszxl.entity.MemberAttention;
4 | import com.whoiszxl.mapper.MemberAttentionMapper;
5 | import com.whoiszxl.service.IMemberAttentionService;
6 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
7 | import org.springframework.stereotype.Service;
8 |
9 | /**
10 | *
11 | * 会员关注表 服务实现类
12 | *
13 | *
14 | * @author whoiszxl
15 | * @since 2021-12-08
16 | */
17 | @Service
18 | public class MemberAttentionServiceImpl extends ServiceImpl implements IMemberAttentionService {
19 |
20 | }
21 |
--------------------------------------------------------------------------------
/seesee-video/ss-member/ss-member-web/src/main/java/com/whoiszxl/service/impl/MemberFollowerServiceImpl.java:
--------------------------------------------------------------------------------
1 | package com.whoiszxl.service.impl;
2 |
3 | import com.whoiszxl.entity.MemberFollower;
4 | import com.whoiszxl.mapper.MemberFollowerMapper;
5 | import com.whoiszxl.service.IMemberFollowerService;
6 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
7 | import org.springframework.stereotype.Service;
8 |
9 | /**
10 | *
11 | * 会员粉丝表 服务实现类
12 | *
13 | *
14 | * @author whoiszxl
15 | * @since 2021-12-08
16 | */
17 | @Service
18 | public class MemberFollowerServiceImpl extends ServiceImpl implements IMemberFollowerService {
19 |
20 | }
21 |
--------------------------------------------------------------------------------
/seesee-video/ss-member/ss-member-web/src/main/java/com/whoiszxl/service/impl/MemberInfoServiceImpl.java:
--------------------------------------------------------------------------------
1 | package com.whoiszxl.service.impl;
2 |
3 | import com.whoiszxl.entity.MemberInfo;
4 | import com.whoiszxl.mapper.MemberInfoMapper;
5 | import com.whoiszxl.service.IMemberInfoService;
6 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
7 | import org.springframework.stereotype.Service;
8 |
9 | /**
10 | *
11 | * 会员详情表 服务实现类
12 | *
13 | *
14 | * @author whoiszxl
15 | * @since 2021-12-08
16 | */
17 | @Service
18 | public class MemberInfoServiceImpl extends ServiceImpl implements IMemberInfoService {
19 |
20 | }
21 |
--------------------------------------------------------------------------------
/seesee-video/ss-member/ss-member-web/src/main/java/com/whoiszxl/service/impl/MemberReportServiceImpl.java:
--------------------------------------------------------------------------------
1 | package com.whoiszxl.service.impl;
2 |
3 | import com.whoiszxl.entity.MemberReport;
4 | import com.whoiszxl.mapper.MemberReportMapper;
5 | import com.whoiszxl.service.IMemberReportService;
6 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
7 | import org.springframework.stereotype.Service;
8 |
9 | /**
10 | *
11 | * 会员举报表 服务实现类
12 | *
13 | *
14 | * @author whoiszxl
15 | * @since 2021-12-08
16 | */
17 | @Service
18 | public class MemberReportServiceImpl extends ServiceImpl implements IMemberReportService {
19 |
20 | }
21 |
--------------------------------------------------------------------------------
/seesee-video/ss-member/ss-member-web/src/main/java/com/whoiszxl/service/impl/MemberServiceImpl.java:
--------------------------------------------------------------------------------
1 | package com.whoiszxl.service.impl;
2 |
3 | import com.whoiszxl.entity.Member;
4 | import com.whoiszxl.mapper.MemberMapper;
5 | import com.whoiszxl.service.IMemberService;
6 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
7 | import org.springframework.stereotype.Service;
8 |
9 | /**
10 | *
11 | * 会员表 服务实现类
12 | *
13 | *
14 | * @author whoiszxl
15 | * @since 2021-12-08
16 | */
17 | @Service
18 | public class MemberServiceImpl extends ServiceImpl implements IMemberService {
19 |
20 | }
21 |
--------------------------------------------------------------------------------
/seesee-video/ss-member/ss-member-web/src/main/resources/banner.txt:
--------------------------------------------------------------------------------
1 | _ _
2 | ___ ___ ___ ___ ___ ___ ___ __ __ (_) __| | ___ ___
3 | (_-< / -_) / -_) (_-< / -_) / -_) |___| \ V / | | / _` | / -_) / _ \
4 | /__/_ \___| \___| /__/_ \___| \___| _____ _\_/_ _|_|_ \__,_| \___| \___/
5 | _|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_| |_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|
6 | "`-0-0-'"`-0-0-'"`-0-0-'"`-0-0-'"`-0-0-'"`-0-0-'"`-0-0-'"`-0-0-'"`-0-0-'"`-0-0-'"`-0-0-'"`-0-0-'
7 |
--------------------------------------------------------------------------------
/seesee-video/ss-member/ss-member-web/src/main/resources/dozer/biz.dozer.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
9 |
--------------------------------------------------------------------------------
/seesee-video/ss-member/ss-member-web/src/main/resources/logback-spring.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/seesee-video/ss-tools/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 | seesee-video
7 | com.whoiszxl
8 | 1.0.0
9 |
10 | 4.0.0
11 |
12 | ss-tools
13 | pom
14 |
15 | ss-tools-core
16 | ss-tools-swagger
17 | ss-tools-logger
18 | ss-tools-dozer
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/seesee-video/ss-tools/ss-tools-core/src/main/java/com/whoiszxl/base/id/IdGenerate.java:
--------------------------------------------------------------------------------
1 | package com.whoiszxl.base.id;
2 |
3 |
4 | import java.io.Serializable;
5 |
6 | /**
7 | * 主键(id)生成器,用于生成唯一id号
8 | * 1、注意:在写主键生成器时,请考虑主键不会重复。
9 | * 2、尤其需要考虑在短时间内大量调用生成器,也保证不要出现重复
10 | * 3、实现类必须是线程安全的,因为会应用在多线程环境中去
11 | *
12 | */
13 | @FunctionalInterface
14 | public interface IdGenerate {
15 | /**
16 | * id 生成器
17 | *
18 | * @return
19 | */
20 | T generate();
21 | }
22 |
--------------------------------------------------------------------------------
/seesee-video/ss-tools/ss-tools-core/src/main/java/com/whoiszxl/base/id/SnowflakeIdGenerate.java:
--------------------------------------------------------------------------------
1 | package com.whoiszxl.base.id;
2 |
3 | /**
4 | * 1bit + 41bit + 17bit + 5bit
5 | * | | | |
6 | * | | | |
7 | * 符合位 时间戳(毫秒) 序列号 机器码
8 | * 第1bit固定是0 符号位不动 。
9 | * 第2bit到第42bit使用时间蹉,精确到毫秒 41bit。 使用年限是69年
10 | * 第43bit到第59bit使用自增的序列号 17bit 可用序列号最大131071个,说明一毫秒我们可以生成131071个不同的序列号。
11 | * 第60bit到第64bit使用机器码 5bit 可以使系统可以分布式,最大分布式数量是32台机子。
12 | *
13 | */
14 | public class SnowflakeIdGenerate extends AbstractIdGenerate {
15 |
16 | public SnowflakeIdGenerate(final long machineCode) {
17 | super(machineCode);
18 | }
19 |
20 | @Override
21 | public Long generate() {
22 | return super.generateLong();
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/seesee-video/ss-tools/ss-tools-core/src/main/java/com/whoiszxl/bean/PageQuery.java:
--------------------------------------------------------------------------------
1 | package com.whoiszxl.bean;
2 |
3 | import io.swagger.annotations.ApiModel;
4 | import io.swagger.annotations.ApiModelProperty;
5 | import lombok.Data;
6 | import lombok.EqualsAndHashCode;
7 |
8 | import java.io.Serializable;
9 |
10 | /**
11 | * 分页查询对象
12 | *
13 | * @author whoiszxl
14 | * @date 2021/7/19
15 | */
16 | @Data
17 | @EqualsAndHashCode(callSuper = false)
18 | @ApiModel(value="分页查询对象", description="分页查询对象")
19 | public class PageQuery implements Serializable {
20 |
21 | @ApiModelProperty(value = "页码")
22 | private Integer page = 1;
23 |
24 | @ApiModelProperty(value = "每页数量")
25 | private Integer size = 10;
26 | }
27 |
--------------------------------------------------------------------------------
/seesee-video/ss-tools/ss-tools-core/src/main/java/com/whoiszxl/bean/StatusCode.java:
--------------------------------------------------------------------------------
1 | package com.whoiszxl.bean;
2 |
3 | /**
4 | * 常用状态码
5 | *
6 | * @author whoiszxl
7 | * @date 2021/3/17
8 | */
9 | public class StatusCode {
10 | public static final int OK = 0;//成功
11 | public static final int ERROR = 1;//失败
12 | public static final int LOGINERROR = 20002;//用户名或密码错误
13 | public static final int ACCESSERROR = 20003;//权限不足
14 | public static final int REMOTEERROR = 20004;//远程调用失败
15 | public static final int REPERROR = 20005;//重复操作
16 | }
--------------------------------------------------------------------------------
/seesee-video/ss-tools/ss-tools-core/src/main/java/com/whoiszxl/constants/RedisKeyPrefixConstants.java:
--------------------------------------------------------------------------------
1 | package com.whoiszxl.constants;
2 |
3 | /**
4 | * Redis Key 前缀常量
5 | *
6 | * @author whoiszxl
7 | * @date 2021/12/7
8 | */
9 | public class RedisKeyPrefixConstants {
10 |
11 |
12 | public static final String ADMIN_PRIVILEGE_PREFIX = "admin:privilege:";
13 |
14 | public static final String VIDEO_PREFIX = "video:";
15 |
16 | }
17 |
--------------------------------------------------------------------------------
/seesee-video/ss-tools/ss-tools-core/src/main/java/com/whoiszxl/context/BaseContextConstants.java:
--------------------------------------------------------------------------------
1 | package com.whoiszxl.context;
2 |
3 | /**
4 | * 常量工具类
5 | *
6 | */
7 | public class BaseContextConstants {
8 | /**
9 | *
10 | */
11 | public static final String TOKEN_NAME = "token";
12 | /**
13 | *
14 | */
15 | public static final String JWT_KEY_MEMBER_ID = "member_id";
16 | /**
17 | *
18 | */
19 | public static final String JWT_KEY_NAME = "name";
20 | /**
21 | *
22 | */
23 | public static final String JWT_KEY_ACCOUNT = "account";
24 | }
25 |
--------------------------------------------------------------------------------
/seesee-video/ss-tools/ss-tools-core/src/main/java/com/whoiszxl/enums/BaseEnum.java:
--------------------------------------------------------------------------------
1 | package com.whoiszxl.enums;
2 |
3 |
4 | import com.whoiszxl.utils.MapHelper;
5 |
6 | import java.util.Arrays;
7 | import java.util.Map;
8 |
9 | /**
10 | * 枚举类型基类
11 | *
12 | */
13 | public interface BaseEnum {
14 | /**
15 | * 将制定的枚举集合转成 map
16 | * key -> name
17 | * value -> desc
18 | *
19 | * @param list
20 | * @return
21 | */
22 | static Map getMap(BaseEnum[] list) {
23 | return MapHelper.uniqueIndex(Arrays.asList(list), BaseEnum::getCode, BaseEnum::getDesc);
24 | }
25 |
26 |
27 | /**
28 | * 编码重写
29 | *
30 | * @return
31 | */
32 | default String getCode() {
33 | return toString();
34 | }
35 |
36 | /**
37 | * 描述
38 | *
39 | * @return
40 | */
41 | String getDesc();
42 | }
43 |
--------------------------------------------------------------------------------
/seesee-video/ss-tools/ss-tools-core/src/main/java/com/whoiszxl/enums/StatusEnum.java:
--------------------------------------------------------------------------------
1 | package com.whoiszxl.enums;
2 |
3 | import lombok.AllArgsConstructor;
4 | import lombok.Getter;
5 |
6 | /**
7 | * 状态类型
8 | * @author whoiszxl
9 | * @date 2021/3/17
10 | */
11 | @Getter
12 | @AllArgsConstructor
13 | public enum StatusEnum {
14 |
15 | CLOSE(0, "关闭"),
16 | OPEN(1, "开启"),
17 | ;
18 | private Integer code;
19 | private String desc;
20 | }
--------------------------------------------------------------------------------
/seesee-video/ss-tools/ss-tools-core/src/main/java/com/whoiszxl/exception/custom/AssertException.java:
--------------------------------------------------------------------------------
1 | package com.whoiszxl.exception.custom;
2 |
3 | /**
4 | * 断言异常
5 | *
6 | * @author whoiszxl
7 | * @date 2021/3/17
8 | */
9 | public class AssertException extends RuntimeException{
10 |
11 | private static final long serialVersionUID = 1L;
12 |
13 | public AssertException() {
14 | super();
15 | }
16 | public AssertException(String message) {
17 | super(message);
18 | }
19 | }
--------------------------------------------------------------------------------
/seesee-video/ss-tools/ss-tools-core/src/main/java/com/whoiszxl/exception/custom/DataNullException.java:
--------------------------------------------------------------------------------
1 | package com.whoiszxl.exception.custom;
2 |
3 |
4 | import com.whoiszxl.bean.ResponseResult;
5 |
6 | /**
7 | * 校验异常
8 | *
9 | * @author whoiszxl
10 | * @date 2021/3/17
11 | */
12 | public class DataNullException extends RuntimeException {
13 |
14 | //错误代码
15 | private final ResponseResult result;
16 |
17 | public DataNullException(ResponseResult result){
18 | this.result = result;
19 | }
20 | public ResponseResult getResult(){
21 | return result;
22 | }
23 | }
--------------------------------------------------------------------------------
/seesee-video/ss-tools/ss-tools-core/src/main/java/com/whoiszxl/exception/custom/DatabaseUpdateException.java:
--------------------------------------------------------------------------------
1 | package com.whoiszxl.exception.custom;
2 |
3 |
4 | import com.whoiszxl.bean.ResponseResult;
5 |
6 | /**
7 | * 数据库更新错误
8 | *
9 | * @author whoiszxl
10 | * @date 2021/3/17
11 | */
12 | public class DatabaseUpdateException extends RuntimeException {
13 |
14 | //错误代码
15 | private final ResponseResult result;
16 |
17 | public DatabaseUpdateException(ResponseResult result){
18 | this.result = result;
19 | }
20 | public ResponseResult getResult(){
21 | return result;
22 | }
23 | }
--------------------------------------------------------------------------------
/seesee-video/ss-tools/ss-tools-core/src/main/java/com/whoiszxl/exception/custom/JwtAuthException.java:
--------------------------------------------------------------------------------
1 | package com.whoiszxl.exception.custom;
2 |
3 | /**
4 | * 自定义jwt鉴权异常
5 | *
6 | * @author whoiszxl
7 | * @date 2021/3/17
8 | */
9 | public class JwtAuthException extends RuntimeException {
10 |
11 | }
--------------------------------------------------------------------------------
/seesee-video/ss-tools/ss-tools-core/src/main/java/com/whoiszxl/exception/custom/ValidateException.java:
--------------------------------------------------------------------------------
1 | package com.whoiszxl.exception.custom;
2 |
3 | import com.whoiszxl.bean.ResponseResult;
4 |
5 | /**
6 | * 校验异常
7 | *
8 | * @author whoiszxl
9 | * @date 2021/3/17
10 | */
11 | public class ValidateException extends RuntimeException {
12 |
13 | //错误代码
14 | private final ResponseResult result;
15 |
16 | public ValidateException(ResponseResult result){
17 | this.result = result;
18 | }
19 | public ResponseResult getResult(){
20 | return result;
21 | }
22 | }
--------------------------------------------------------------------------------
/seesee-video/ss-tools/ss-tools-core/src/main/java/com/whoiszxl/permission/SaTokenConfiguration.java:
--------------------------------------------------------------------------------
1 | package com.whoiszxl.permission;
2 |
3 | import cn.dev33.satoken.interceptor.SaAnnotationInterceptor;
4 | import org.springframework.context.annotation.Configuration;
5 | import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
6 | import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
7 |
8 | /**
9 | * 打开注解鉴权功能配置
10 | *
11 | * @author whoiszxl
12 | * @date 2021/7/20
13 | */
14 | @Configuration
15 | public class SaTokenConfiguration implements WebMvcConfigurer {
16 |
17 | // 注册Sa-Token的注解拦截器,打开注解式鉴权功能
18 | @Override
19 | public void addInterceptors(InterceptorRegistry registry) {
20 | // 注册注解拦截器,并排除不需要注解鉴权的接口地址 (与登录拦截器无关)
21 | registry.addInterceptor(new SaAnnotationInterceptor()).addPathPatterns("/admin/**");
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/seesee-video/ss-tools/ss-tools-core/src/main/java/com/whoiszxl/utils/DateProvider.java:
--------------------------------------------------------------------------------
1 | package com.whoiszxl.utils;
2 |
3 | import java.time.LocalDateTime;
4 | import java.util.Date;
5 |
6 | /**
7 | * 日期服务
8 | */
9 | public interface DateProvider {
10 |
11 | /**
12 | * 获取当前时间
13 | * @return
14 | */
15 | LocalDateTime now();
16 |
17 | Date dateNow();
18 |
19 |
20 | /**
21 | * Date 转 LocalDateTime
22 | * @param date
23 | * @return
24 | */
25 | LocalDateTime dateToLocalDateTime(Date date);
26 |
27 |
28 | /**
29 | * 时间戳 转 LocalDateTime
30 | * @param timestamp
31 | * @return
32 | */
33 | LocalDateTime longToLocalDateTime(Long timestamp);
34 |
35 | }
36 |
--------------------------------------------------------------------------------
/seesee-video/ss-tools/ss-tools-core/src/main/java/com/whoiszxl/utils/JsonUtil.java:
--------------------------------------------------------------------------------
1 | package com.whoiszxl.utils;
2 |
3 | import com.google.gson.Gson;
4 | import com.google.gson.JsonSyntaxException;
5 |
6 | import java.lang.reflect.Type;
7 |
8 | /**
9 | * json解析工具
10 | */
11 | public class JsonUtil {
12 |
13 | static Gson gson = new Gson();
14 |
15 | public static T fromJson(String json, Class classOfT) {
16 | return gson.fromJson(json, classOfT);
17 | }
18 |
19 | public static T fromJsonToList(String json, Type typeOfT) throws JsonSyntaxException {
20 | return gson.fromJson(json, typeOfT);
21 | }
22 |
23 | public static String toJson(Object src) {
24 | return gson.toJson(src);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/seesee-video/ss-tools/ss-tools-dozer/src/main/java/com/whoiszxl/dozer/DozerAutoConfiguration.java:
--------------------------------------------------------------------------------
1 | package com.whoiszxl.dozer;
2 |
3 | import com.github.dozermapper.core.Mapper;
4 | import org.springframework.context.annotation.Bean;
5 |
6 | /**
7 | * dozer自動配置類
8 | *
9 | * @author whoiszxl
10 | * @date 2021/11/30
11 | */
12 | public class DozerAutoConfiguration {
13 |
14 | @Bean
15 | public DozerUtils dozerUtils(Mapper mapper) {
16 | DozerUtils dozerUtils = new DozerUtils(mapper);
17 | return dozerUtils;
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/seesee-video/ss-tools/ss-tools-dozer/src/main/resources/META-INF/spring.factories:
--------------------------------------------------------------------------------
1 | org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
2 | com.whoiszxl.dozer.DozerAutoConfiguration
--------------------------------------------------------------------------------
/seesee-video/ss-tools/ss-tools-dozer/src/main/resources/dozer/biz.dozer.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/seesee-video/ss-tools/ss-tools-dozer/src/main/resources/dozer/global.dozer.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
14 |
15 | yyyy-MM-dd HH:mm:ss
16 |
17 |
18 |
--------------------------------------------------------------------------------
/seesee-video/ss-tools/ss-tools-logger/src/main/java/com/whoiszxl/logger/annotation/SSLog.java:
--------------------------------------------------------------------------------
1 | package com.whoiszxl.logger.annotation;
2 |
3 | import java.lang.annotation.*;
4 |
5 | /**
6 | * 日志记录注解
7 | *
8 | * @author whoiszxl
9 | * @date 2021/12/1
10 | */
11 | @Target(ElementType.METHOD)
12 | @Retention(RetentionPolicy.RUNTIME)
13 | @Documented
14 | public @interface SSLog {
15 |
16 | /**
17 | * 描述
18 | * @return
19 | */
20 | String value();
21 |
22 | /**
23 | * 记录请求参数,默认记录
24 | * @return
25 | */
26 | boolean recordRequestParams() default true;
27 |
28 | /**
29 | * 记录返回参数,默认记录
30 | * @return
31 | */
32 | boolean recordResponseParams() default true;
33 | }
34 |
35 |
--------------------------------------------------------------------------------
/seesee-video/ss-tools/ss-tools-logger/src/main/java/com/whoiszxl/logger/event/SysLogEvent.java:
--------------------------------------------------------------------------------
1 | package com.whoiszxl.logger.event;
2 |
3 | import com.whoiszxl.logger.entity.OptLogDTO;
4 | import org.springframework.context.ApplicationEvent;
5 |
6 | /**
7 | * 系统日志事件
8 | *
9 | */
10 | public class SysLogEvent extends ApplicationEvent {
11 |
12 | public SysLogEvent(OptLogDTO source) {
13 | super(source);
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/seesee-video/ss-tools/ss-tools-logger/src/main/java/com/whoiszxl/logger/event/SysLogListener.java:
--------------------------------------------------------------------------------
1 | package com.whoiszxl.logger.event;
2 |
3 | import com.whoiszxl.logger.entity.OptLogDTO;
4 | import lombok.AllArgsConstructor;
5 | import lombok.extern.slf4j.Slf4j;
6 | import org.springframework.context.event.EventListener;
7 | import org.springframework.core.annotation.Order;
8 | import org.springframework.scheduling.annotation.Async;
9 |
10 | import java.util.function.Consumer;
11 |
12 | /**
13 | * 异步监听日志事件
14 | */
15 | @Slf4j
16 | @AllArgsConstructor
17 | public class SysLogListener {
18 |
19 | private Consumer consumer;
20 |
21 | @Async
22 | @Order
23 | @EventListener(SysLogEvent.class)
24 | public void saveSysLog(SysLogEvent event) {
25 | OptLogDTO optLog = (OptLogDTO) event.getSource();
26 | consumer.accept(optLog);
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/seesee-video/ss-tools/ss-tools-logger/src/main/resources/META-INF/spring.factories:
--------------------------------------------------------------------------------
1 | org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
2 | com.whoiszxl.logger.configuration.LogAutoConfiguration
3 | org.springframework.context.ApplicationContextInitializer=\
4 | com.whoiszxl.logger.init.ApplicationLoggerInitializer
5 |
--------------------------------------------------------------------------------
/seesee-video/ss-tools/ss-tools-logger/src/main/resources/ip2region/ip2region.db:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/whoiszxl/seesee_bak/e4673d4b4584f6c3d17a36144e24bff8058b6d98/seesee-video/ss-tools/ss-tools-logger/src/main/resources/ip2region/ip2region.db
--------------------------------------------------------------------------------
/seesee-video/ss-tools/ss-tools-swagger/src/main/java/com/whoiszxl/swagger/bean/Basic.java:
--------------------------------------------------------------------------------
1 | package com.whoiszxl.swagger.bean;
2 |
3 | import lombok.AllArgsConstructor;
4 | import lombok.Data;
5 | import lombok.NoArgsConstructor;
6 |
7 | /**
8 | * 用户认证类
9 | *
10 | * @author whoiszxl
11 | * @date 2021/11/30
12 | */
13 | @Data
14 | @AllArgsConstructor
15 | @NoArgsConstructor
16 | public class Basic {
17 |
18 | private Boolean enable = false;
19 | private String username = "seesee";
20 | private String password = "seesee";
21 | }
22 |
--------------------------------------------------------------------------------
/seesee-video/ss-tools/ss-tools-swagger/src/main/java/com/whoiszxl/swagger/bean/Contact.java:
--------------------------------------------------------------------------------
1 | package com.whoiszxl.swagger.bean;
2 |
3 | import lombok.Data;
4 |
5 | /**
6 | * 联系人信息
7 | *
8 | * @author whoiszxl
9 | * @date 2021/11/30
10 | */
11 | @Data
12 | public class Contact {
13 | /**
14 | * 联系人
15 | **/
16 | private String name = "whoiszxl";
17 | /**
18 | * 联系人url
19 | **/
20 | private String url = "http://whoiszxl.com";
21 | /**
22 | * 联系人email
23 | **/
24 | private String email = "whoiszxl@gmail.com";
25 | }
--------------------------------------------------------------------------------
/seesee-video/ss-tools/ss-tools-swagger/src/main/java/com/whoiszxl/swagger/bean/Markdown.java:
--------------------------------------------------------------------------------
1 | package com.whoiszxl.swagger.bean;
2 |
3 | import lombok.AllArgsConstructor;
4 | import lombok.Data;
5 | import lombok.NoArgsConstructor;
6 |
7 | /**
8 | * 离线文档配置
9 | *
10 | * @author whoiszxl
11 | * @date 2021/11/30
12 | */
13 | @Data
14 | @AllArgsConstructor
15 | @NoArgsConstructor
16 | public class Markdown {
17 | private Boolean enable = false;
18 | private String basePath = "classpath:markdown/*";
19 | }
20 |
--------------------------------------------------------------------------------
/seesee-video/ss-tools/ss-tools-swagger/src/main/resources/META-INF/spring.factories:
--------------------------------------------------------------------------------
1 | org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
2 | com.whoiszxl.swagger.SwaggerAutoConfiguration
--------------------------------------------------------------------------------
/seesee-video/ss-video/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 | seesee-video
7 | com.whoiszxl
8 | 1.0.0
9 |
10 | 4.0.0
11 |
12 | ss-video
13 | pom
14 |
15 | ss-video-api
16 | ss-video-web
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/seesee-video/ss-video/ss-video-api/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 | ss-video
7 | com.whoiszxl
8 | 1.0.0
9 |
10 | 4.0.0
11 |
12 | ss-video-api
13 |
14 |
15 |
--------------------------------------------------------------------------------
/seesee-video/ss-video/ss-video-web/src/main/java/com/whoiszxl/VideoApplication.java:
--------------------------------------------------------------------------------
1 | package com.whoiszxl;
2 |
3 | import org.springframework.boot.SpringApplication;
4 | import org.springframework.boot.autoconfigure.SpringBootApplication;
5 |
6 | /**
7 | * 视频服务启动类
8 | *
9 | * @author whoiszxl
10 | * @date 2021/11/30
11 | */
12 | @SpringBootApplication
13 | public class VideoApplication {
14 |
15 | public static void main(String[] args) {
16 | SpringApplication.run(VideoApplication.class, args);
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/seesee-video/ss-video/ss-video-web/src/main/java/com/whoiszxl/controller/VideoCommentController.java:
--------------------------------------------------------------------------------
1 | package com.whoiszxl.controller;
2 |
3 |
4 | import org.springframework.web.bind.annotation.RequestMapping;
5 |
6 | import org.springframework.web.bind.annotation.RestController;
7 |
8 | /**
9 | *
10 | * 视频评论表 前端控制器
11 | *
12 | *
13 | * @author whoiszxl
14 | * @since 2021-12-08
15 | */
16 | @RestController
17 | @RequestMapping("/video-comment")
18 | public class VideoCommentController {
19 |
20 | }
21 |
22 |
--------------------------------------------------------------------------------
/seesee-video/ss-video/ss-video-web/src/main/java/com/whoiszxl/controller/VideoWatchHistoryController.java:
--------------------------------------------------------------------------------
1 | package com.whoiszxl.controller;
2 |
3 |
4 | import org.springframework.web.bind.annotation.RequestMapping;
5 |
6 | import org.springframework.web.bind.annotation.RestController;
7 |
8 | /**
9 | *
10 | * 浏览历史表 前端控制器
11 | *
12 | *
13 | * @author whoiszxl
14 | * @since 2021-12-08
15 | */
16 | @RestController
17 | @RequestMapping("/video-watch-history")
18 | public class VideoWatchHistoryController {
19 |
20 | }
21 |
22 |
--------------------------------------------------------------------------------
/seesee-video/ss-video/ss-video-web/src/main/java/com/whoiszxl/entity/query/BgMusicQuery.java:
--------------------------------------------------------------------------------
1 | package com.whoiszxl.entity.query;
2 |
3 | import com.whoiszxl.bean.PageQuery;
4 | import io.swagger.annotations.ApiModel;
5 | import io.swagger.annotations.ApiModelProperty;
6 | import lombok.Data;
7 |
8 | @Data
9 | @ApiModel("背景音乐查询参数")
10 | public class BgMusicQuery extends PageQuery {
11 |
12 | @ApiModelProperty("搜索关键词")
13 | private String searchKey;
14 |
15 | }
16 |
--------------------------------------------------------------------------------
/seesee-video/ss-video/ss-video-web/src/main/java/com/whoiszxl/entity/vo/LikeVO.java:
--------------------------------------------------------------------------------
1 | package com.whoiszxl.entity.vo;
2 |
3 | import io.swagger.annotations.ApiModel;
4 | import io.swagger.annotations.ApiModelProperty;
5 | import lombok.Data;
6 |
7 | import java.io.Serializable;
8 |
9 | /**
10 | *
11 | * 视频计数表
12 | *
13 | *
14 | * @author whoiszxl
15 | * @since 2021-12-08
16 | */
17 | @Data
18 | @ApiModel(value = "点赞参数", description = "点赞参数")
19 | public class LikeVO implements Serializable {
20 |
21 | @ApiModelProperty("点赞id,视频id or 评论id")
22 | private Long id;
23 |
24 | @ApiModelProperty("点赞id: 1:视频点赞 2:评论点赞")
25 | private Integer likeType;
26 |
27 | @ApiModelProperty("状态:1: 增加 2: 减少")
28 | private Integer status;
29 |
30 | @ApiModelProperty("用户ID")
31 | private Long memberId;
32 | }
33 |
--------------------------------------------------------------------------------
/seesee-video/ss-video/ss-video-web/src/main/java/com/whoiszxl/entity/vo/VideoWatchHistoryVO.java:
--------------------------------------------------------------------------------
1 | package com.whoiszxl.entity.vo;
2 |
3 | import io.swagger.annotations.ApiModel;
4 | import io.swagger.annotations.ApiModelProperty;
5 | import lombok.Data;
6 |
7 | import java.io.Serializable;
8 | import java.time.LocalDateTime;
9 |
10 | /**
11 | *
12 | * 浏览历史表
13 | *
14 | *
15 | * @author whoiszxl
16 | * @since 2021-12-08
17 | */
18 | @Data
19 | @ApiModel(value = "VideoWatchHistory对象", description = "浏览历史表")
20 | public class VideoWatchHistoryVO implements Serializable {
21 |
22 | @ApiModelProperty("主键ID")
23 | private Long id;
24 |
25 | @ApiModelProperty("会员ID")
26 | private Long memberId;
27 |
28 | @ApiModelProperty("视频ID")
29 | private Long videoId;
30 |
31 | }
32 |
--------------------------------------------------------------------------------
/seesee-video/ss-video/ss-video-web/src/main/java/com/whoiszxl/enums/LikeTypeEnum.java:
--------------------------------------------------------------------------------
1 | package com.whoiszxl.enums;
2 |
3 | import lombok.AllArgsConstructor;
4 | import lombok.Getter;
5 |
6 | /**
7 | * 点赞器枚举
8 | * @author whoiszxl
9 | * @date 2021/3/17
10 | */
11 | @Getter
12 | @AllArgsConstructor
13 | public enum LikeTypeEnum {
14 |
15 | VIDEO(1, "video_like"),
16 | COMMENT(2, "comment_like"),
17 | ;
18 | private Integer code;
19 | private String typeName;
20 |
21 | public static String getTypeName(Integer type) {
22 | for (LikeTypeEnum likeTypeEnum : LikeTypeEnum.values()) {
23 | if (type.equals(likeTypeEnum.getCode())) {
24 | return likeTypeEnum.getTypeName();
25 | }
26 | }
27 | return null;
28 | }
29 | }
--------------------------------------------------------------------------------
/seesee-video/ss-video/ss-video-web/src/main/java/com/whoiszxl/enums/VideoCounterStatusEnum.java:
--------------------------------------------------------------------------------
1 | package com.whoiszxl.enums;
2 |
3 | import lombok.AllArgsConstructor;
4 | import lombok.Getter;
5 |
6 | /**
7 | * 计数器新增减少状态枚举
8 | * @author whoiszxl
9 | * @date 2021/3/17
10 | */
11 | @Getter
12 | @AllArgsConstructor
13 | public enum VideoCounterStatusEnum {
14 |
15 | INCR(1, "增加"),
16 | DECR(2, "减少"),
17 | ;
18 | private Integer code;
19 | private String desc;
20 | }
--------------------------------------------------------------------------------
/seesee-video/ss-video/ss-video-web/src/main/java/com/whoiszxl/mapper/BgmusicMapper.java:
--------------------------------------------------------------------------------
1 | package com.whoiszxl.mapper;
2 |
3 | import com.whoiszxl.entity.Bgmusic;
4 | import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5 |
6 | /**
7 | *
8 | * 背景音乐表 Mapper 接口
9 | *
10 | *
11 | * @author whoiszxl
12 | * @since 2021-12-08
13 | */
14 | public interface BgmusicMapper extends BaseMapper {
15 |
16 | }
17 |
--------------------------------------------------------------------------------
/seesee-video/ss-video/ss-video-web/src/main/java/com/whoiszxl/mapper/VideoCommentMapper.java:
--------------------------------------------------------------------------------
1 | package com.whoiszxl.mapper;
2 |
3 | import com.whoiszxl.entity.VideoComment;
4 | import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5 |
6 | /**
7 | *
8 | * 视频评论表 Mapper 接口
9 | *
10 | *
11 | * @author whoiszxl
12 | * @since 2021-12-08
13 | */
14 | public interface VideoCommentMapper extends BaseMapper {
15 |
16 | }
17 |
--------------------------------------------------------------------------------
/seesee-video/ss-video/ss-video-web/src/main/java/com/whoiszxl/mapper/VideoCounterMapper.java:
--------------------------------------------------------------------------------
1 | package com.whoiszxl.mapper;
2 |
3 | import com.whoiszxl.entity.VideoCounter;
4 | import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5 |
6 | /**
7 | *
8 | * 视频计数表 Mapper 接口
9 | *
10 | *
11 | * @author whoiszxl
12 | * @since 2021-12-08
13 | */
14 | public interface VideoCounterMapper extends BaseMapper {
15 |
16 | }
17 |
--------------------------------------------------------------------------------
/seesee-video/ss-video/ss-video-web/src/main/java/com/whoiszxl/mapper/VideoMapper.java:
--------------------------------------------------------------------------------
1 | package com.whoiszxl.mapper;
2 |
3 | import com.whoiszxl.entity.Video;
4 | import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5 |
6 | /**
7 | *
8 | * 视频表 Mapper 接口
9 | *
10 | *
11 | * @author whoiszxl
12 | * @since 2021-12-08
13 | */
14 | public interface VideoMapper extends BaseMapper