修改代码

This commit is contained in:
linfeng 2022-08-17 12:55:43 +08:00
parent 1edb546740
commit a53aeed91a
175 changed files with 1959 additions and 397 deletions

View File

@ -1,4 +1,15 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服
* QQ: 3582996245
* 可正常分享和学习源码不得转卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng;
import org.springframework.boot.SpringApplication;

View File

@ -1,4 +1,14 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服QQ: 3582996245
* 可正常分享和学习源码不得转卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.common.annotation;
import java.lang.annotation.Documented;

View File

@ -1,4 +1,14 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服QQ: 3582996245
* 可正常分享和学习源码不得转卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.common.aspect;
import io.linfeng.common.exception.LinfengException;

View File

@ -1,4 +1,14 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服 QQ: 3582996245
* 可正常分享和学习源码不得转卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.common.aspect;
import com.google.gson.Gson;

View File

@ -1,4 +1,14 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服 QQ: 3582996245
* 可正常分享和学习源码不得转卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.common.exception;
/**

View File

@ -1,4 +1,14 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服 QQ: 3582996245
* 可正常分享和学习源码不得转卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.common.exception;
import io.linfeng.common.utils.R;

View File

@ -1,3 +1,14 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服 QQ: 3582996245
* 可正常分享和学习源码不得转卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.common.response;
import com.baomidou.mybatisplus.annotation.TableId;

View File

@ -1,3 +1,14 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服 QQ: 3582996245
* 可正常分享和学习源码不得转卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.common.response;
import com.baomidou.mybatisplus.annotation.TableId;

View File

@ -1,3 +1,14 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服 QQ: 3582996245
* 可正常分享和学习源码不得转卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.common.response;
import lombok.Data;

View File

@ -1,3 +1,14 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服 QQ: 3582996245
* 可正常分享和学习源码不得转卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.common.response;
import lombok.Data;

View File

@ -1,3 +1,14 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服 QQ: 3582996245
* 可正常分享和学习源码不得转卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.common.response;
import io.linfeng.modules.admin.entity.AppUserEntity;

View File

@ -1,3 +1,14 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服 QQ: 3582996245
* 可正常分享和学习源码不得转卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.common.response;
import lombok.Data;

View File

@ -1,3 +1,14 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服 QQ: 3582996245
* 可正常分享和学习源码不得转卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.common.response;
import io.linfeng.modules.admin.entity.AppUserEntity;

View File

@ -1,3 +1,14 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服 QQ: 3582996245
* 可正常分享和学习源码不得转卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.common.response;
import io.swagger.annotations.ApiModel;

View File

@ -1,3 +1,14 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服 QQ: 3582996245
* 可正常分享和学习源码不得转卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.common.response;
import io.linfeng.modules.admin.entity.AppUserEntity;

View File

@ -1,3 +1,14 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服 QQ: 3582996245
* 可正常分享和学习源码不得转卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.common.response;
import io.linfeng.modules.admin.entity.AppUserEntity;

View File

@ -1,3 +1,14 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服 QQ: 3582996245
* 可正常分享和学习源码不得转卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.common.response;
import lombok.Data;

View File

@ -1,3 +1,14 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服 QQ: 3582996245
* 可正常分享和学习源码不得转卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.common.response;
import io.linfeng.modules.admin.entity.AppUserEntity;

View File

@ -1,3 +1,14 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服 QQ: 3582996245
* 可正常分享和学习源码不得转卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.common.response;
import io.linfeng.modules.admin.entity.AppUserEntity;

View File

@ -1,3 +1,14 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服 QQ: 3582996245
* 可正常分享和学习源码不得转卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.common.response;
import com.baomidou.mybatisplus.annotation.IdType;

View File

@ -1,3 +1,14 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服 QQ: 3582996245
* 可正常分享和学习源码不得转卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.common.response;
import com.baomidou.mybatisplus.annotation.IdType;

View File

@ -1,3 +1,14 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服 QQ: 3582996245
* 可正常分享和学习源码不得转卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.common.response;
import com.baomidou.mybatisplus.annotation.TableId;

View File

@ -1,3 +1,14 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服 QQ: 3582996245
* 可正常分享和学习源码不得转卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.common.thread;
import lombok.extern.slf4j.Slf4j;

View File

@ -1,3 +1,14 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服 QQ: 3582996245
* 可正常分享和学习源码不得转卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.common.thread;
import lombok.Data;

View File

@ -1,4 +1,15 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服
* QQ: 3582996245
* 可正常分享和学习源码不得转卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.config;
import org.springframework.context.annotation.Configuration;

View File

@ -1,4 +1,15 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服
* QQ: 3582996245
* 可正常分享和学习源码不得转卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.config;
import io.linfeng.common.xss.XssFilter;

View File

@ -1,4 +1,15 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服
* QQ: 3582996245
* 可正常分享和学习源码不得转卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.config;
import com.google.code.kaptcha.impl.DefaultKaptcha;

View File

@ -1,4 +1,15 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服
* QQ: 3582996245
* 可正常分享和学习源码不得转卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.config;
import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;

View File

@ -1,4 +1,15 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服
* QQ: 3582996245
* 可正常分享和学习源码不得转卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.config;
import org.springframework.beans.factory.annotation.Autowired;

View File

@ -1,4 +1,14 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服QQ: 3582996245
* 可正常分享和学习源码不得转卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.config;
import io.linfeng.modules.sys.oauth2.OAuth2Filter;

View File

@ -1,4 +1,14 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服QQ: 3582996245
* 可正常分享和学习源码不得转卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.config;
import org.springframework.context.annotation.Bean;
@ -27,7 +37,6 @@ public class SwaggerConfig implements WebMvcConfigurer {
.apiInfo(apiInfo())
.select()
.apis(RequestHandlerSelectors.basePackage("io.linfeng"))
// .apis(RequestHandlerSelectors.withMethodAnnotation(ApiOperation.class))
.paths(PathSelectors.any())
.build()
.securityContexts(securityContexts())
@ -37,7 +46,7 @@ public class SwaggerConfig implements WebMvcConfigurer {
private ApiInfo apiInfo(){
return new ApiInfoBuilder()
.title("林风社交论坛项目接口文档")
.description("林风社交论坛项目接口文档")
.description("林风社交论坛项目开源版接口文档 演示地址 https://www.linfeng.tech")
.contact(new Contact("linfeng","http:localhost:8080/doc.html","3582996245@qq.com"))
.version("1.0")
.build();

View File

@ -1,4 +1,14 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服QQ: 3582996245
* 可正常分享和学习源码不得转卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.datasource.annotation;

View File

@ -1,4 +1,14 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服QQ: 3582996245
* 可正常分享和学习源码不得转卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.datasource.aspect;

View File

@ -1,4 +1,14 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服QQ: 3582996245
* 可正常分享和学习源码不得转卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.datasource.config;

View File

@ -1,4 +1,14 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服QQ: 3582996245
* 可正常分享和学习源码不得转卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.datasource.config;

View File

@ -1,4 +1,14 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服QQ: 3582996245
* 可正常分享和学习源码不得转卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.datasource.config;

View File

@ -1,4 +1,14 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服QQ: 3582996245
* 可正常分享和学习源码不得转卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.datasource.config;

View File

@ -1,4 +1,14 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服QQ: 3582996245
* 可正常分享和学习源码不得转卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.datasource.properties;

View File

@ -1,4 +1,14 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服QQ: 3582996245
* 可正常分享和学习源码不得转卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.datasource.properties;

View File

@ -1,4 +1,14 @@
package io.linfeng.modules.admin.controller;
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 演示站点: https://www.linfeng.tech
* 可正常分享和学习源码不得专卖或非法牟利
* 商业版购买联系技术客服 QQ: 3582996245
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/package io.linfeng.modules.admin.controller;
import java.util.Arrays;
import java.util.Map;

View File

@ -1,3 +1,14 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 演示站点: https://www.linfeng.tech
* 可正常分享和学习源码不得专卖或非法牟利
* 商业版购买联系技术客服 QQ: 3582996245
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.modules.admin.controller;
import java.util.Arrays;

View File

@ -1,3 +1,15 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服
* QQ: 3582996245
* 可正常分享和学习源码不得专卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.modules.admin.controller;
import java.util.Arrays;

View File

@ -1,3 +1,15 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服
* QQ: 3582996245
* 可正常分享和学习源码不得专卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.modules.admin.controller;
import java.util.Arrays;

View File

@ -1,3 +1,15 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服
* QQ: 3582996245
* 可正常分享和学习源码不得专卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.modules.admin.controller;
import java.util.Arrays;

View File

@ -1,3 +1,15 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服
* QQ: 3582996245
* 可正常分享和学习源码不得专卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.modules.admin.controller;
import java.util.Arrays;

View File

@ -1,3 +1,15 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服
* QQ: 3582996245
* 可正常分享和学习源码不得专卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.modules.admin.controller;
import java.util.Arrays;

View File

@ -1,3 +1,15 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服
* QQ: 3582996245
* 可正常分享和学习源码不得专卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.modules.admin.controller;
import java.util.Arrays;

View File

@ -1,3 +1,15 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服
* QQ: 3582996245
* 可正常分享和学习源码不得专卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.modules.admin.controller;
import io.linfeng.common.utils.R;

View File

@ -1,3 +1,15 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服
* QQ: 3582996245
* 可正常分享和学习源码不得专卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.modules.admin.controller;
import java.util.Arrays;

View File

@ -1,3 +1,15 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服
* QQ: 3582996245
* 可正常分享和学习源码不得专卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.modules.admin.controller;
import java.util.Arrays;

View File

@ -1,3 +1,15 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服
* QQ: 3582996245
* 可正常分享和学习源码不得专卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.modules.admin.dao;
import io.linfeng.modules.admin.entity.AppUserEntity;

View File

@ -1,3 +1,15 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服
* QQ: 3582996245
* 可正常分享和学习源码不得专卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.modules.admin.dao;
import io.linfeng.modules.admin.entity.CategoryEntity;

View File

@ -1,3 +1,15 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服
* QQ: 3582996245
* 可正常分享和学习源码不得转卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.modules.admin.dao;
import io.linfeng.modules.admin.entity.CommentEntity;

View File

@ -1,3 +1,15 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服
* QQ: 3582996245
* 可正常分享和学习源码不得专卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.modules.admin.dao;
import io.linfeng.modules.admin.entity.DiscussEntity;

View File

@ -1,3 +1,15 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服
* QQ: 3582996245
* 可正常分享和学习源码不得转卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.modules.admin.dao;
import io.linfeng.modules.admin.entity.LinkEntity;

View File

@ -1,3 +1,15 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服
* QQ: 3582996245
* 可正常分享和学习源码不得转卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.modules.admin.dao;
import io.linfeng.modules.admin.entity.MessageEntity;

View File

@ -1,3 +1,15 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服
* QQ: 3582996245
* 可正常分享和学习源码不得转卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.modules.admin.dao;
import io.linfeng.modules.admin.entity.PostEntity;

View File

@ -1,3 +1,15 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服
* QQ: 3582996245
* 可正常分享和学习源码不得转卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.modules.admin.dao;
import io.linfeng.modules.admin.entity.SensitiveEntity;

View File

@ -1,3 +1,15 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服
* QQ: 3582996245
* 可正常分享和学习源码不得转卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.modules.admin.dao;
import io.linfeng.modules.admin.entity.SystemEntity;

View File

@ -1,3 +1,15 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服
* QQ: 3582996245
* 可正常分享和学习源码不得转卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.modules.admin.dao;
import io.linfeng.modules.admin.entity.TopicEntity;

View File

@ -1,3 +1,15 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服
* QQ: 3582996245
* 可正常分享和学习源码不得专卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.modules.admin.entity;
import com.baomidou.mybatisplus.annotation.IdType;

View File

@ -1,3 +1,15 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服
* QQ: 3582996245
* 可正常分享和学习源码不得专卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.modules.admin.entity;
import com.baomidou.mybatisplus.annotation.TableId;

View File

@ -1,3 +1,15 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服
* QQ: 3582996245
* 可正常分享和学习源码不得专卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.modules.admin.entity;
import com.baomidou.mybatisplus.annotation.TableId;

View File

@ -1,3 +1,15 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服
* QQ: 3582996245
* 可正常分享和学习源码不得专卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.modules.admin.entity;
import com.baomidou.mybatisplus.annotation.TableId;

View File

@ -1,3 +1,15 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服
* QQ: 3582996245
* 可正常分享和学习源码不得专卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.modules.admin.entity;
import com.baomidou.mybatisplus.annotation.TableId;

View File

@ -1,3 +1,15 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服
* QQ: 3582996245
* 可正常分享和学习源码不得专卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.modules.admin.entity;
import com.baomidou.mybatisplus.annotation.TableId;

View File

@ -1,3 +1,15 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服
* QQ: 3582996245
* 可正常分享和学习源码不得专卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.modules.admin.entity;
import com.baomidou.mybatisplus.annotation.IdType;

View File

@ -1,3 +1,15 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服
* QQ: 3582996245
* 可正常分享和学习源码不得专卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.modules.admin.entity;
import com.baomidou.mybatisplus.annotation.TableId;

View File

@ -1,3 +1,15 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服
* QQ: 3582996245
* 可正常分享和学习源码不得专卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.modules.admin.entity;
import com.baomidou.mybatisplus.annotation.TableId;

View File

@ -1,3 +1,15 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服
* QQ: 3582996245
* 可正常分享和学习源码不得专卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.modules.admin.entity;
import com.baomidou.mybatisplus.annotation.IdType;

View File

@ -1,3 +1,15 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服
* QQ: 3582996245
* 可正常分享和学习源码不得专卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.modules.admin.service;
import com.baomidou.mybatisplus.extension.service.IService;

View File

@ -1,3 +1,15 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服
* QQ: 3582996245
* 可正常分享和学习源码不得专卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.modules.admin.service;
import com.baomidou.mybatisplus.extension.service.IService;

View File

@ -1,3 +1,15 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服
* QQ: 3582996245
* 可正常分享和学习源码不得专卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.modules.admin.service;
import com.baomidou.mybatisplus.extension.service.IService;

View File

@ -1,3 +1,15 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服
* QQ: 3582996245
* 可正常分享和学习源码不得专卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.modules.admin.service;
import com.baomidou.mybatisplus.extension.service.IService;
@ -24,7 +36,6 @@ public interface DiscussService extends IService<DiscussEntity> {
PageUtils queryPage(Map<String, Object> params);
List<DiscussEntity> getListByTopicId(Integer topicId);
}

View File

@ -1,3 +1,15 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服
* QQ: 3582996245
* 可正常分享和学习源码不得专卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.modules.admin.service;
import com.baomidou.mybatisplus.extension.service.IService;

View File

@ -1,3 +1,15 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服
* QQ: 3582996245
* 可正常分享和学习源码不得专卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.modules.admin.service;
import com.baomidou.mybatisplus.extension.service.IService;
@ -24,13 +36,6 @@ public interface MessageService extends IService<MessageEntity> {
PageUtils queryPage(Map<String, Object> params);
@Async
void sendMessage(Integer fromUid,Integer toUid,Integer postId,Integer type,String content,String title);
void sendMessageNotAsync(Integer fromUid,Integer toUid,Integer postId,Integer type,String content,String title);
Boolean status(Integer type, Integer uid);
void deleteMessageByMonth(Integer integer);
}

View File

@ -1,3 +1,15 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服
* QQ: 3582996245
* 可正常分享和学习源码不得专卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.modules.admin.service;
import com.baomidou.mybatisplus.extension.service.IService;

View File

@ -1,3 +1,15 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服
* QQ: 3582996245
* 可正常分享和学习源码不得专卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.modules.admin.service;
import com.baomidou.mybatisplus.extension.service.IService;
@ -16,9 +28,5 @@ import java.util.Map;
public interface SensitiveService extends IService<SensitiveEntity> {
PageUtils queryPage(Map<String, Object> params);
Boolean checkContent(String content);
void checkPostContent(String content);
}

View File

@ -1,3 +1,15 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服
* QQ: 3582996245
* 可正常分享和学习源码不得专卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.modules.admin.service;
import com.baomidou.mybatisplus.extension.service.IService;

View File

@ -1,16 +1,21 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服
* QQ: 3582996245
* 可正常分享和学习源码不得专卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.modules.admin.service;
import com.baomidou.mybatisplus.extension.service.IService;
import io.linfeng.common.response.TopicDetailResponse;
import io.linfeng.common.utils.AppPageUtils;
import io.linfeng.common.utils.PageUtils;
import io.linfeng.modules.admin.entity.AppUserEntity;
import io.linfeng.modules.admin.entity.TopicEntity;
import io.linfeng.modules.app.form.TopicAddForm;
import io.linfeng.modules.app.form.TopicUpdateForm;
import io.linfeng.modules.app.form.UserJoinTopicForm;
import java.util.List;
import java.util.Map;
/**
@ -24,7 +29,6 @@ public interface TopicService extends IService<TopicEntity> {
PageUtils queryPage(Map<String, Object> params);
AppPageUtils queryByPage(Map<String, Object> params);
}

View File

@ -1,3 +1,15 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服
* QQ: 3582996245
* 可正常分享和学习源码不得专卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.modules.admin.service.impl;
import cn.hutool.core.util.ObjectUtil;

View File

@ -1,3 +1,15 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服
* QQ: 3582996245
* 可正常分享和学习源码不得专卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.modules.admin.service.impl;
import io.linfeng.common.exception.LinfengException;

View File

@ -1,3 +1,15 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服
* QQ: 3582996245
* 可正常分享和学习源码不得专卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.modules.admin.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;

View File

@ -1,3 +1,15 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服
* QQ: 3582996245
* 可正常分享和学习源码不得专卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.modules.admin.service.impl;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
@ -31,14 +43,6 @@ public class DiscussServiceImpl extends ServiceImpl<DiscussDao, DiscussEntity> i
return new PageUtils(page);
}
@Override
public List<DiscussEntity> getListByTopicId(Integer topicId) {
QueryWrapper<DiscussEntity> wrapper = new QueryWrapper<>();
wrapper.lambda().eq(DiscussEntity::getTopicId, topicId);
Page<DiscussEntity> pageModel = new Page<>(1, 5);
IPage<DiscussEntity> pageList = this.baseMapper.selectPage(pageModel, wrapper);
return pageList.getRecords();
}

View File

@ -1,8 +1,17 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服
* QQ: 3582996245
* 可正常分享和学习源码不得专卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.modules.admin.service.impl;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.linfeng.common.utils.AppPageUtils;
import io.linfeng.modules.app.form.LinkListForm;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;

View File

@ -1,15 +1,20 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服
* QQ: 3582996245
* 可正常分享和学习源码不得专卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.modules.admin.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import io.linfeng.common.utils.*;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
@ -17,7 +22,6 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.linfeng.modules.admin.dao.MessageDao;
import io.linfeng.modules.admin.entity.MessageEntity;
import io.linfeng.modules.admin.service.MessageService;
import org.springframework.transaction.annotation.Transactional;
@Service("messageService")
@ -34,85 +38,6 @@ public class MessageServiceImpl extends ServiceImpl<MessageDao, MessageEntity> i
return new PageUtils(page);
}
/**
* 消息异步发送
* @param fromUid 发送者uid
* @param toUid 接收者uid
* @param postId 帖子id
* @param type 1为点赞2为评论 3为收藏 4为关注 5为推送文章 6私聊
* @param content 发送内容
* @param title 发送标题
*/
public void sendMessage(Integer fromUid,Integer toUid,Integer postId,Integer type,String content,String title){
if(fromUid.equals(toUid)){
return;
}
MessageEntity message=new MessageEntity();
message.setContent(content);
message.setPostId(postId);
message.setFromUid(fromUid);
message.setTitle(title);
message.setCreateTime(DateUtil.nowDateTime());
message.setToUid(toUid);
message.setType(type);
this.save(message);
}
/**
* 消息同步发送 用于用户消息私聊
* @param fromUid 发送者uid
* @param toUid 接收者uid
* @param postId 帖子id
* @param type 1为点赞2为评论 3为收藏 4为关注 5为推送文章 6私聊
* @param content 发送内容
* @param title 发送标题
*/
@Transactional(rollbackFor = Exception.class)
public void sendMessageNotAsync(Integer fromUid,Integer toUid,Integer postId,Integer type,String content,String title){
if(fromUid.equals(toUid)){
return;
}
MessageEntity message=new MessageEntity();
message.setContent(content);
message.setPostId(postId);
message.setFromUid(fromUid);
message.setTitle(title);
message.setCreateTime(DateUtil.nowDateTime());
message.setToUid(toUid);
message.setType(type);
this.save(message);
}
@Override
public Boolean status(Integer type, Integer uid) {
UpdateWrapper<MessageEntity> updateWrapper = new UpdateWrapper<>();
updateWrapper.set("status",1);
updateWrapper.eq("to_uid",uid);
if(type==1){
updateWrapper.and(wrapper->wrapper.eq("type",Constant.STAR).or().eq("type",Constant.COLLECT));
}else if(type==2){
updateWrapper.eq("type",Constant.WATCH);
}else if(type==3){
updateWrapper.eq("type",Constant.COMMENT);
}else if(type==5){
updateWrapper.eq("type",Constant.PUSHARTICLE);
}else if(type==6){
updateWrapper.eq("type",Constant.CHAT);
}
return update(updateWrapper);
}
/**
* 清除几个月前的消息数据
* @param month
*/
@Override
public void deleteMessageByMonth(Integer month) {
String s = DateUtils.addDateMonths(new Date(),-month);
LambdaQueryWrapper<MessageEntity> wrapper=new LambdaQueryWrapper<>();
wrapper.le(MessageEntity::getCreateTime,s);
this.remove(wrapper);
}
}

View File

@ -1,3 +1,15 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服
* QQ: 3582996245
* 可正常分享和学习源码不得专卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.modules.admin.service.impl;
import cn.hutool.core.util.ObjectUtil;
@ -45,8 +57,6 @@ public class PostServiceImpl extends ServiceImpl<PostDao, PostEntity> implements
@Autowired
private AppUserService appUserService;
@Autowired
private TopicService topicService;
@Autowired
private PostCollectionService postCollectionService;
@Autowired
private CommentService commentService;
@ -108,12 +118,7 @@ public class PostServiceImpl extends ServiceImpl<PostDao, PostEntity> implements
@Override
@Transactional
public void deleteByAdmin(List<Integer> ids) {
//通知用户消息违规被删除了
ids.forEach(postId -> {
PostEntity post = this.getById(postId);
String content = StrUtil.format(Constant.ADMIN_POST_DOWN, post.getTitle());
messageService.sendMessage(0, post.getUid(), postId, Constant.PUSHARTICLE, content, Constant.TITLE_VIOLATION);
});
boolean remove = this.removeByIds(ids);
if (!remove) {
throw new LinfengException("批量删除失败");

View File

@ -1,7 +1,17 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服
* QQ: 3582996245
* 可正常分享和学习源码不得专卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.modules.admin.service.impl;
import io.linfeng.common.exception.LinfengException;
import io.linfeng.common.utils.Constant;
import org.springframework.stereotype.Service;
import java.util.Map;
@ -30,48 +40,6 @@ public class SensitiveServiceImpl extends ServiceImpl<SensitiveDao, SensitiveEnt
return new PageUtils(page);
}
@Override
public Boolean checkContent(String content) {
SensitiveEntity sensitive = this.getById(1);
if (sensitive == null || sensitive.getSensitiveWord().isEmpty()) {
return false;
}
if (sensitive.getState().equals(Constant.SENSITIVE_CLOSE)) {
return false;
}
//校验是否存在敏感词
String[] split = sensitive.getSensitiveWord().split(",");
for (String word : split) {
if (content.contains(word)) {
//如果存在敏感词
if (Constant.DEAL_BANNER.equals(sensitive.getHandleMeasures())) {
throw new LinfengException("内容违规禁止发布");
} else {
//设置评论敏感词状态为需审核
return true;
}
}
}
return false;
}
@Override
public void checkPostContent(String content) {
SensitiveEntity sensitive = this.getById(1);
if (sensitive == null || sensitive.getSensitiveWord().isEmpty()) {
return;
}
if (sensitive.getState().equals(Constant.SENSITIVE_CLOSE)) {
return;
}
//校验是否存在敏感词
String[] split = sensitive.getSensitiveWord().split(",");
for (String word : split) {
if (content.contains(word)) {
//如果存在敏感词 直接打回
throw new LinfengException("内容含敏感词禁止发布");
}
}
}
}

View File

@ -1,3 +1,15 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服
* QQ: 3582996245
* 可正常分享和学习源码不得专卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.modules.admin.service.impl;
import org.springframework.stereotype.Service;

View File

@ -1,3 +1,15 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 商业版演示站点: https://www.linfeng.tech
* 商业版购买联系技术客服
* QQ: 3582996245
* 可正常分享和学习源码不得专卖或非法牟利
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.modules.admin.service.impl;
import io.linfeng.common.utils.*;
@ -29,18 +41,6 @@ public class TopicServiceImpl extends ServiceImpl<TopicDao, TopicEntity> impleme
}
@Override
public AppPageUtils queryByPage(Map<String, Object> params) {
Integer classId = Integer.valueOf((String) params.get(Constant.CLASSID));
QueryWrapper<TopicEntity> queryWrapper = new QueryWrapper<>();
queryWrapper.lambda().eq(TopicEntity::getCateId, classId);
IPage<TopicEntity> page = this.page(
new Query<TopicEntity>().getPage(params),
queryWrapper
);
return new AppPageUtils(page);
}
}

View File

@ -1,4 +1,14 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 演示站点: https://www.linfeng.tech
* 可正常分享和学习源码不得专卖或非法牟利
* 商业版购买联系技术客服 QQ: 3582996245
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.modules.app.annotation;
import java.lang.annotation.*;

View File

@ -1,4 +1,14 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 演示站点: https://www.linfeng.tech
* 可正常分享和学习源码不得专卖或非法牟利
* 商业版购买联系技术客服 QQ: 3582996245
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.modules.app.annotation;
import java.lang.annotation.ElementType;

View File

@ -1,4 +1,14 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 演示站点: https://www.linfeng.tech
* 可正常分享和学习源码不得专卖或非法牟利
* 商业版购买联系技术客服 QQ: 3582996245
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.modules.app.config;
import io.linfeng.modules.app.interceptor.AuthorizationInterceptor;

View File

@ -1,3 +1,14 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 可正常分享和学习源码不得用于非法牟利
* 商业版购买联系技术客服 QQ: 3582996245
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 演示站点:https://www.linfeng.tech
* 版权所有侵权必究
* -----------------------------------
*/
package io.linfeng.modules.app.controller;
@ -13,16 +24,20 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
/**
*
* @author linfeng
* @date 2022/7/27 15:35
*
*/
@RestController
@RequestMapping("app/comment")
public class AppCommentController {
@Autowired
private CommentService commentService;
@Autowired
private CommentThumbsService commentThumbsService;
/**
* 评论列表
*/

View File

@ -1,3 +1,14 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 可正常分享和学习源码不得用于非法牟利
* 商业版购买联系技术客服 QQ: 3582996245
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 演示站点:https://www.linfeng.tech
* 版权所有侵权必究
* -----------------------------------
*/
package io.linfeng.modules.app.controller;
import io.linfeng.common.response.AppUserInfoResponse;

View File

@ -1,4 +1,14 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 可正常分享和学习源码不得用于非法牟利
* 商业版购买联系技术客服 QQ: 3582996245
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 演示站点:https://www.linfeng.tech
* 版权所有侵权必究
* -----------------------------------
*/
package io.linfeng.modules.app.controller;
import io.linfeng.common.exception.LinfengException;

View File

@ -1,3 +1,14 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 可正常分享和学习源码不得用于非法牟利
* 商业版购买联系技术客服 QQ: 3582996245
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 演示站点:https://www.linfeng.tech
* 版权所有侵权必究
* -----------------------------------
*/
package io.linfeng.modules.app.controller;
import cn.hutool.core.util.ObjectUtil;

View File

@ -0,0 +1,35 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 可正常分享和学习源码不得用于非法牟利
* 商业版购买联系技术客服 QQ: 3582996245
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 演示站点:https://www.linfeng.tech
* 版权所有侵权必究
* -----------------------------------
*/
package io.linfeng.modules.app.controller;
import io.linfeng.common.utils.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* @author linfeng
* @date 2022/8/17 12:07
*/
@RestController
@RequestMapping("app/system")
public class AppSystemController {
@GetMapping("/miniConfig")
public R miniConfig(){
String value="";
return R.ok().put("intro",value);
}
}

View File

@ -1,3 +1,14 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 演示站点: https://www.linfeng.tech
* 可正常分享和学习源码不得用于非法牟利
* 商业版购买联系技术客服 QQ: 3582996245
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.modules.app.dao;
import io.linfeng.modules.app.entity.CommentThumbsEntity;

View File

@ -1,3 +1,14 @@
/**
* -----------------------------------
* 林风社交论坛开源版本请务必保留此注释头信息
* 开源地址: https://gitee.com/virus010101/linfeng-community
* 演示站点: https://www.linfeng.tech
* 可正常分享和学习源码不得用于非法牟利
* 商业版购买联系技术客服 QQ: 3582996245
* Copyright (c) 2021-2023 linfeng all rights reserved.
* 版权所有 侵权必究
* -----------------------------------
*/
package io.linfeng.modules.app.dao;
import io.linfeng.modules.app.entity.FollowEntity;

Some files were not shown because too many files have changed in this diff Show More