parent
22bc097515
commit
91bce32f56
23 changed files with 1394 additions and 54 deletions
@ -0,0 +1,181 @@ |
||||
package org.springblade.common.utils; /** |
||||
* 敏感词过滤工具类 |
||||
* |
||||
* @author lsj |
||||
*/ |
||||
|
||||
import java.io.FileInputStream; |
||||
import java.util.ArrayList; |
||||
import java.util.HashMap; |
||||
import java.util.HashSet; |
||||
import java.util.List; |
||||
import java.util.Map; |
||||
import java.util.Set; |
||||
|
||||
import org.apache.poi.ss.usermodel.Row; |
||||
import org.apache.poi.ss.usermodel.Sheet; |
||||
import org.apache.poi.ss.usermodel.Workbook; |
||||
import org.apache.poi.xssf.usermodel.XSSFWorkbook; |
||||
|
||||
@SuppressWarnings({"unchecked", "rawtypes"}) |
||||
public class SensitiveFilterUtil { |
||||
/** |
||||
* 敏感词集合 |
||||
*/ |
||||
public static HashMap sensitiveWordMap; |
||||
|
||||
/** |
||||
* 初始化敏感词库,构建DFA算法模型 |
||||
*/ |
||||
public static void initContext() { |
||||
HashSet<String> set = new HashSet<String>(); |
||||
try { |
||||
//获取敏感词文件
|
||||
Workbook workbook = new XSSFWorkbook(new FileInputStream("D:\\ty-logistics\\敏感词库表统计.xlsx")); |
||||
// 获取第一个张表
|
||||
Sheet sheet = workbook.getSheetAt(0); |
||||
// 获取每行中的字段
|
||||
for (int j = 1; j <= sheet.getLastRowNum(); j++) { |
||||
Row row = sheet.getRow(j); // 获取行
|
||||
if (row == null) {// 略过空行
|
||||
continue; |
||||
} else { |
||||
if (row.getCell(2) != null) set.add(row.getCell(2).getStringCellValue()); |
||||
} |
||||
} |
||||
initSensitiveWordMap(set); |
||||
} catch (Exception e) { |
||||
System.out.println("<<<<<<解析敏感词文件报错!"); |
||||
e.printStackTrace(); |
||||
} |
||||
} |
||||
|
||||
/** |
||||
* 初始化敏感词库,构建DFA算法模型 |
||||
* |
||||
* @param sensitiveWordSet 敏感词库 |
||||
*/ |
||||
private static void initSensitiveWordMap(Set<String> sensitiveWordSet) { |
||||
//初始化敏感词容器,减少扩容操作
|
||||
sensitiveWordMap = new HashMap<String, String>(sensitiveWordSet.size()); |
||||
Map<Object, Object> temp; |
||||
Map<Object, Object> newWorMap; |
||||
//遍历sensitiveWordSet
|
||||
for (String key : sensitiveWordSet) { |
||||
temp = sensitiveWordMap; |
||||
for (int i = 0; i < key.length(); i++) { |
||||
//转换成char型
|
||||
char keyChar = key.charAt(i); |
||||
//库中获取关键字
|
||||
Object wordMap = temp.get(keyChar); |
||||
//如果存在该key,直接赋值,用于下一个循环获取
|
||||
if (wordMap != null) { |
||||
temp = (Map) wordMap; |
||||
} else { |
||||
//不存在则,则构建一个map,同时将isEnd设置为0,因为他不是最后一个
|
||||
newWorMap = new HashMap<>(); |
||||
//不是最后一个
|
||||
newWorMap.put("isEnd", "0"); |
||||
temp.put(keyChar, newWorMap); |
||||
temp = newWorMap; |
||||
} |
||||
//最后一个
|
||||
if (i == key.length() - 1) temp.put("isEnd", "1"); |
||||
} |
||||
} |
||||
} |
||||
|
||||
/** |
||||
* 判断文字是否包含敏感字符 |
||||
* <p> |
||||
* 文本 |
||||
* <p> |
||||
* 若包含返回true,否则返回false |
||||
*/ |
||||
public static boolean contains(String txt) { |
||||
boolean flag = false; |
||||
for (int i = 0; i < txt.length(); i++) { |
||||
int matchFlag = checkSensitiveWord(txt, i); //判断是否包含敏感字符
|
||||
if (matchFlag > 0) {//大于0存在,返回true
|
||||
flag = true; |
||||
} |
||||
} |
||||
return flag; |
||||
} |
||||
|
||||
/** |
||||
* 检查文字中是否包含敏感字符,检查规则如下: |
||||
* |
||||
* @param txt |
||||
* @param beginIndex |
||||
* @param matchType |
||||
* @return 如果存在, 则返回敏感词字符的长度, 不存在返回0 |
||||
*/ |
||||
private static int checkSensitiveWord(String txt, int beginIndex) { |
||||
//敏感词结束标识位:用于敏感词只有1位的情况
|
||||
boolean flag = false; |
||||
//匹配标识数默认为0
|
||||
int matchFlag = 0; |
||||
char word; |
||||
Map nowMap = sensitiveWordMap; |
||||
for (int i = beginIndex; i < txt.length(); i++) { |
||||
word = txt.charAt(i); |
||||
//获取指定key
|
||||
nowMap = (Map) nowMap.get(word); |
||||
if (nowMap != null) {//存在,则判断是否为最后一个
|
||||
//找到相应key,匹配标识+1
|
||||
matchFlag++; |
||||
//如果为最后一个匹配规则,结束循环,返回匹配标识数
|
||||
if ("1".equals(nowMap.get("isEnd"))) { |
||||
//结束标志位为true
|
||||
flag = true; |
||||
} |
||||
} else {//不存在,直接返回
|
||||
break; |
||||
} |
||||
} |
||||
if (matchFlag < 2 || !flag) {//长度必须大于等于1,为词
|
||||
matchFlag = 0; |
||||
} |
||||
return matchFlag; |
||||
} |
||||
|
||||
/** |
||||
* 获取文字中的敏感词 |
||||
* <p> |
||||
* txt文字 |
||||
*/ |
||||
public static List getSensitiveWord(String txt) { |
||||
List sensitiveWordList = new ArrayList(); |
||||
for (int i = 0; i < txt.length(); i++) { |
||||
//判断是否包含敏感字符
|
||||
int length = checkSensitiveWord(txt, i); |
||||
if (length > 0) {//存在,加入list中
|
||||
sensitiveWordList.add(txt.substring(i, i + length)); |
||||
i = i + length - 1;//减1的原因,是因为for会自增
|
||||
} |
||||
} |
||||
return sensitiveWordList; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* context是要校验的内容。返回结果是list,为空说明没有敏感词 |
||||
* |
||||
* @param context |
||||
* @return |
||||
*/ |
||||
public static List checkTxt(String context) { |
||||
Set<String> set = new HashSet<>(); |
||||
set.add("卖淫"); |
||||
set.add("嫖娼"); |
||||
initSensitiveWordMap(set); |
||||
//包含敏感词返回所有敏感词数据
|
||||
return getSensitiveWord(context); |
||||
} |
||||
|
||||
public static void main(String[] args) { |
||||
System.out.println(checkTxt("卖淫嫖娼杀人犯法")); |
||||
} |
||||
|
||||
} |
||||
@ -0,0 +1,59 @@ |
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package org.springblade.modules.baotou.entity; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import io.swagger.annotations.ApiModel; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
import org.springblade.core.mp.base.BaseEntity; |
||||
|
||||
/** |
||||
* 实体类-banner图片 |
||||
*/ |
||||
@Data |
||||
@TableName("data_banner_picture") |
||||
@EqualsAndHashCode(callSuper = true) |
||||
@ApiModel(value = "BannerPicture对象", description = "BannerPicture对象") |
||||
public class BannerPicture extends BaseEntity { |
||||
|
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
/** |
||||
* 所属模块(字典值) |
||||
*/ |
||||
@ApiModelProperty(value = "所属模块(字典值)") |
||||
private String module; |
||||
/** |
||||
* 文件路径 |
||||
*/ |
||||
@ApiModelProperty(value = "文件路径") |
||||
private String url; |
||||
/** |
||||
* 是否展示 |
||||
*/ |
||||
@ApiModelProperty(value = "是否展示") |
||||
private Integer isShow; |
||||
/** |
||||
* 备注 |
||||
*/ |
||||
@ApiModelProperty(value = "备注") |
||||
private String remark; |
||||
|
||||
|
||||
} |
||||
@ -0,0 +1,64 @@ |
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package org.springblade.modules.baotou.entity; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import io.swagger.annotations.ApiModel; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
import org.springblade.core.mp.base.BaseEntity; |
||||
|
||||
/** |
||||
* 实体类-公司概况表 |
||||
*/ |
||||
@Data |
||||
@TableName("data_company_overview") |
||||
@EqualsAndHashCode(callSuper = true) |
||||
@ApiModel(value = "CompanyOverview对象", description = "CompanyOverview对象") |
||||
public class CompanyOverview extends BaseEntity { |
||||
|
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
/** |
||||
* 标题 |
||||
*/ |
||||
@ApiModelProperty(value = "标题") |
||||
private String title; |
||||
/** |
||||
* 内容 |
||||
*/ |
||||
@ApiModelProperty(value = "内容") |
||||
private String content; |
||||
/** |
||||
* 文件路径 |
||||
*/ |
||||
@ApiModelProperty(value = "文件路径") |
||||
private String url; |
||||
/** |
||||
* 是否展示 |
||||
*/ |
||||
@ApiModelProperty(value = "是否展示") |
||||
private Integer isShow; |
||||
/** |
||||
* 备注 |
||||
*/ |
||||
@ApiModelProperty(value = "备注") |
||||
private String remark; |
||||
|
||||
|
||||
} |
||||
@ -0,0 +1,63 @@ |
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package org.springblade.modules.baotou.entity; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import io.swagger.annotations.ApiModel; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
import org.springblade.core.mp.base.BaseEntity; |
||||
|
||||
/** |
||||
* 实体类-首页-平台介绍表 |
||||
*/ |
||||
@Data |
||||
@TableName("data_home_platform") |
||||
@EqualsAndHashCode(callSuper = true) |
||||
@ApiModel(value = "HomePlatform对象", description = "HomePlatform对象") |
||||
public class HomePlatform extends BaseEntity { |
||||
|
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
/** |
||||
* 标题 |
||||
*/ |
||||
@ApiModelProperty(value = "标题") |
||||
private String title; |
||||
/** |
||||
* 内容 |
||||
*/ |
||||
@ApiModelProperty(value = "内容") |
||||
private String content; |
||||
/** |
||||
* 文件路径 |
||||
*/ |
||||
@ApiModelProperty(value = "文件路径") |
||||
private String url; |
||||
/** |
||||
* 是否展示 |
||||
*/ |
||||
@ApiModelProperty(value = "是否展示") |
||||
private Integer isShow; |
||||
/** |
||||
* 备注 |
||||
*/ |
||||
@ApiModelProperty(value = "备注") |
||||
private String remark; |
||||
|
||||
} |
||||
@ -0,0 +1,59 @@ |
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package org.springblade.modules.baotou.entity; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import io.swagger.annotations.ApiModel; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
import org.springblade.core.mp.base.BaseEntity; |
||||
|
||||
/** |
||||
* 实体类-首页-热门表 |
||||
*/ |
||||
@Data |
||||
@TableName("data_home_popular") |
||||
@EqualsAndHashCode(callSuper = true) |
||||
@ApiModel(value = "HomePopular对象", description = "HomePopular对象") |
||||
public class HomePopular extends BaseEntity { |
||||
|
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
/** |
||||
* 标题 |
||||
*/ |
||||
@ApiModelProperty(value = "标题") |
||||
private String title; |
||||
/** |
||||
* 内容 |
||||
*/ |
||||
@ApiModelProperty(value = "内容") |
||||
private String content; |
||||
/** |
||||
* 是否展示 |
||||
*/ |
||||
@ApiModelProperty(value = "是否展示") |
||||
private Integer isShow; |
||||
/** |
||||
* 备注 |
||||
*/ |
||||
@ApiModelProperty(value = "备注") |
||||
private String remark; |
||||
|
||||
|
||||
} |
||||
@ -0,0 +1,59 @@ |
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package org.springblade.modules.baotou.entity; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import io.swagger.annotations.ApiModel; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
import org.springblade.core.mp.base.BaseEntity; |
||||
|
||||
/** |
||||
* 实体类-首页-产品推介表 |
||||
*/ |
||||
@Data |
||||
@TableName("data_home_product") |
||||
@EqualsAndHashCode(callSuper = true) |
||||
@ApiModel(value = "HomeProduct对象", description = "HomeProduct对象") |
||||
public class HomeProduct extends BaseEntity { |
||||
|
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
/** |
||||
* 标题 |
||||
*/ |
||||
@ApiModelProperty(value = "标题") |
||||
private String title; |
||||
/** |
||||
* 文件路径 |
||||
*/ |
||||
@ApiModelProperty(value = "文件路径") |
||||
private String url; |
||||
/** |
||||
* 是否展示 |
||||
*/ |
||||
@ApiModelProperty(value = "是否展示") |
||||
private Integer isShow; |
||||
/** |
||||
* 备注 |
||||
*/ |
||||
@ApiModelProperty(value = "备注") |
||||
private String remark; |
||||
|
||||
|
||||
} |
||||
@ -0,0 +1,64 @@ |
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package org.springblade.modules.baotou.entity; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import io.swagger.annotations.ApiModel; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
import org.springblade.core.mp.base.BaseEntity; |
||||
|
||||
/** |
||||
* 实体类-首页-统计表 |
||||
*/ |
||||
@Data |
||||
@TableName("data_home_stat") |
||||
@EqualsAndHashCode(callSuper = true) |
||||
@ApiModel(value = "HomeStat对象", description = "HomeStat对象") |
||||
public class HomeStat extends BaseEntity { |
||||
|
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
/** |
||||
* 标题 |
||||
*/ |
||||
@ApiModelProperty(value = "标题") |
||||
private String title; |
||||
/** |
||||
* 单位 |
||||
*/ |
||||
@ApiModelProperty(value = "单位") |
||||
private String unit; |
||||
/** |
||||
* 数量 |
||||
*/ |
||||
@ApiModelProperty(value = "数量") |
||||
private Integer count; |
||||
/** |
||||
* 是否展示 |
||||
*/ |
||||
@ApiModelProperty(value = "是否展示") |
||||
private Integer isShow; |
||||
/** |
||||
* 备注 |
||||
*/ |
||||
@ApiModelProperty(value = "备注") |
||||
private String remark; |
||||
|
||||
|
||||
} |
||||
@ -0,0 +1,93 @@ |
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package org.springblade.modules.baotou.entity; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import io.swagger.annotations.ApiModel; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
import org.springblade.core.mp.base.BaseEntity; |
||||
|
||||
/** |
||||
* 实体类-数据大厅表 |
||||
*/ |
||||
@Data |
||||
@TableName("data_information") |
||||
@EqualsAndHashCode(callSuper = true) |
||||
@ApiModel(value = "Information对象", description = "Information对象") |
||||
public class Information extends BaseEntity { |
||||
|
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
/** |
||||
* 支付方式(产品广场) |
||||
*/ |
||||
@ApiModelProperty(value = "支付方式(产品广场)") |
||||
private String payMethod; |
||||
/** |
||||
* 数据产品(产品广场) |
||||
*/ |
||||
@ApiModelProperty(value = "数据产品(产品广场)") |
||||
private String dataProduct; |
||||
/** |
||||
* 产品分类(产品广场) |
||||
*/ |
||||
@ApiModelProperty(value = "产品分类(产品广场)") |
||||
private String productType; |
||||
/** |
||||
* 产品名称 |
||||
*/ |
||||
@ApiModelProperty(value = "产品名称") |
||||
private String name; |
||||
/** |
||||
* 产品信息 |
||||
*/ |
||||
@ApiModelProperty(value = "产品信息") |
||||
private String information; |
||||
/** |
||||
* 产品价格 |
||||
*/ |
||||
@ApiModelProperty(value = "产品价格") |
||||
private Integer price; |
||||
/** |
||||
* 产品标签 |
||||
*/ |
||||
@ApiModelProperty(value = "产品标签") |
||||
private String label; |
||||
/** |
||||
* 浏览量 |
||||
*/ |
||||
@ApiModelProperty(value = "浏览量") |
||||
private Integer pageNum; |
||||
/** |
||||
* 收藏量 |
||||
*/ |
||||
@ApiModelProperty(value = "收藏量") |
||||
private Integer collectNum; |
||||
/** |
||||
* 文件路径 |
||||
*/ |
||||
@ApiModelProperty(value = "文件路径") |
||||
private String url; |
||||
/** |
||||
* 备注 |
||||
*/ |
||||
@ApiModelProperty(value = "备注") |
||||
private String remark; |
||||
|
||||
} |
||||
@ -0,0 +1,71 @@ |
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package org.springblade.modules.baotou.entity; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import io.swagger.annotations.ApiModel; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
import org.springblade.core.mp.base.BaseEntity; |
||||
|
||||
import java.util.Date; |
||||
|
||||
/** |
||||
* 实体类-新闻资讯表 |
||||
*/ |
||||
@Data |
||||
@TableName("data_news") |
||||
@EqualsAndHashCode(callSuper = true) |
||||
@ApiModel(value = "News对象", description = "News对象") |
||||
public class News extends BaseEntity { |
||||
|
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
/** |
||||
* 标题 |
||||
*/ |
||||
@ApiModelProperty(value = "标题") |
||||
private String title; |
||||
/** |
||||
* 内容 |
||||
*/ |
||||
@ApiModelProperty(value = "内容") |
||||
private String introduce; |
||||
/** |
||||
* 发布时间 |
||||
*/ |
||||
@ApiModelProperty(value = "发布时间") |
||||
private Date releaseTime; |
||||
/** |
||||
* 文件路径 |
||||
*/ |
||||
@ApiModelProperty(value = "文件路径") |
||||
private String url; |
||||
/** |
||||
* 分类(字典值) |
||||
*/ |
||||
@ApiModelProperty(value = "分类(字典值)") |
||||
private Integer type; |
||||
/** |
||||
* 备注 |
||||
*/ |
||||
@ApiModelProperty(value = "备注") |
||||
private String remark; |
||||
|
||||
|
||||
} |
||||
@ -0,0 +1,54 @@ |
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package org.springblade.modules.baotou.entity; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import io.swagger.annotations.ApiModel; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
import org.springblade.core.mp.base.BaseEntity; |
||||
|
||||
/** |
||||
* 实体类-公告表 |
||||
*/ |
||||
@Data |
||||
@TableName("data_notice") |
||||
@EqualsAndHashCode(callSuper = true) |
||||
@ApiModel(value = "Notice对象", description = "Notice对象") |
||||
public class Notice extends BaseEntity { |
||||
|
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
/** |
||||
* 内容 |
||||
*/ |
||||
@ApiModelProperty(value = "内容") |
||||
private String content; |
||||
/** |
||||
* 是否展示 |
||||
*/ |
||||
@ApiModelProperty(value = "是否展示") |
||||
private Integer isShow; |
||||
/** |
||||
* 备注 |
||||
*/ |
||||
@ApiModelProperty(value = "备注") |
||||
private String remark; |
||||
|
||||
|
||||
} |
||||
@ -0,0 +1,84 @@ |
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package org.springblade.modules.baotou.entity; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import io.swagger.annotations.ApiModel; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
import org.springblade.core.mp.base.BaseEntity; |
||||
|
||||
/** |
||||
* 实体类-产品表 |
||||
*/ |
||||
@Data |
||||
@TableName("data_product") |
||||
@EqualsAndHashCode(callSuper = true) |
||||
@ApiModel(value = "Product对象", description = "Product对象") |
||||
public class Product extends BaseEntity { |
||||
|
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
/** |
||||
* 场景分类(数据大厅) |
||||
*/ |
||||
@ApiModelProperty(value = "场景分类(数据大厅)") |
||||
private String sceneType; |
||||
/** |
||||
* 产品名称 |
||||
*/ |
||||
@ApiModelProperty(value = "产品名称") |
||||
private String name; |
||||
/** |
||||
* 产品信息 |
||||
*/ |
||||
@ApiModelProperty(value = "产品信息") |
||||
private String information; |
||||
/** |
||||
* 产品价格 |
||||
*/ |
||||
@ApiModelProperty(value = "产品价格") |
||||
private Integer price; |
||||
/** |
||||
* 产品标签 |
||||
*/ |
||||
@ApiModelProperty(value = "产品标签") |
||||
private String label; |
||||
/** |
||||
* 浏览量 |
||||
*/ |
||||
@ApiModelProperty(value = "浏览量") |
||||
private Integer pageNum; |
||||
/** |
||||
* 收藏量 |
||||
*/ |
||||
@ApiModelProperty(value = "收藏量") |
||||
private Integer collectNum; |
||||
/** |
||||
* 文件路径 |
||||
*/ |
||||
@ApiModelProperty(value = "文件路径") |
||||
private String url; |
||||
/** |
||||
* 备注 |
||||
*/ |
||||
@ApiModelProperty(value = "备注") |
||||
private String remark; |
||||
|
||||
|
||||
} |
||||
@ -0,0 +1,69 @@ |
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package org.springblade.modules.baotou.entity; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import io.swagger.annotations.ApiModel; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
import org.springblade.core.mp.base.BaseEntity; |
||||
|
||||
/** |
||||
* 实体类-服务指南表 |
||||
*/ |
||||
@Data |
||||
@TableName("data_service_guide") |
||||
@EqualsAndHashCode(callSuper = true) |
||||
@ApiModel(value = "ServiceGuide对象", description = "ServiceGuide对象") |
||||
public class ServiceGuide extends BaseEntity { |
||||
|
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
/** |
||||
* 所属模块(字典值) |
||||
*/ |
||||
@ApiModelProperty(value = "所属模块(字典值)") |
||||
private String module; |
||||
/** |
||||
* 标题 |
||||
*/ |
||||
@ApiModelProperty(value = "标题") |
||||
private String title; |
||||
/** |
||||
* 内容 |
||||
*/ |
||||
@ApiModelProperty(value = "内容") |
||||
private String content; |
||||
/** |
||||
* 文件路径 |
||||
*/ |
||||
@ApiModelProperty(value = "文件路径") |
||||
private String url; |
||||
/** |
||||
* 是否展示 |
||||
*/ |
||||
@ApiModelProperty(value = "是否展示") |
||||
private Integer isShow; |
||||
/** |
||||
* 备注 |
||||
*/ |
||||
@ApiModelProperty(value = "备注") |
||||
private String remark; |
||||
|
||||
|
||||
} |
||||
@ -0,0 +1,59 @@ |
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package org.springblade.modules.baotou.entity; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import io.swagger.annotations.ApiModel; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
import org.springblade.core.mp.base.BaseEntity; |
||||
|
||||
/** |
||||
* 实体类-医疗专区-流程图表 |
||||
*/ |
||||
@Data |
||||
@TableName("data_zone_flow") |
||||
@EqualsAndHashCode(callSuper = true) |
||||
@ApiModel(value = "ZoneFlow对象", description = "ZoneFlow对象") |
||||
public class ZoneFlow extends BaseEntity { |
||||
|
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
/** |
||||
* 标题 |
||||
*/ |
||||
@ApiModelProperty(value = "标题") |
||||
private String title; |
||||
/** |
||||
* 文件路径 |
||||
*/ |
||||
@ApiModelProperty(value = "文件路径") |
||||
private String url; |
||||
/** |
||||
* 是否展示 |
||||
*/ |
||||
@ApiModelProperty(value = "是否展示") |
||||
private Integer isShow; |
||||
/** |
||||
* 备注 |
||||
*/ |
||||
@ApiModelProperty(value = "备注") |
||||
private String remark; |
||||
|
||||
|
||||
} |
||||
@ -0,0 +1,64 @@ |
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package org.springblade.modules.baotou.entity; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import io.swagger.annotations.ApiModel; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
import org.springblade.core.mp.base.BaseEntity; |
||||
|
||||
/** |
||||
* 实体类-医疗专区-专区介绍表 |
||||
*/ |
||||
@Data |
||||
@TableName("data_zone_introduce") |
||||
@EqualsAndHashCode(callSuper = true) |
||||
@ApiModel(value = "ZoneIntroduce对象", description = "ZoneIntroduce对象") |
||||
public class ZoneIntroduce extends BaseEntity { |
||||
|
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
/** |
||||
* 标题 |
||||
*/ |
||||
@ApiModelProperty(value = "标题") |
||||
private String title; |
||||
/** |
||||
* 内容 |
||||
*/ |
||||
@ApiModelProperty(value = "内容") |
||||
private String content; |
||||
/** |
||||
* 文件路径 |
||||
*/ |
||||
@ApiModelProperty(value = "文件路径") |
||||
private String url; |
||||
/** |
||||
* 是否展示 |
||||
*/ |
||||
@ApiModelProperty(value = "是否展示") |
||||
private Integer isShow; |
||||
/** |
||||
* 备注 |
||||
*/ |
||||
@ApiModelProperty(value = "备注") |
||||
private String remark; |
||||
|
||||
|
||||
} |
||||
@ -0,0 +1,59 @@ |
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package org.springblade.modules.baotou.entity; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import io.swagger.annotations.ApiModel; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
import org.springblade.core.mp.base.BaseEntity; |
||||
|
||||
/** |
||||
* 实体类-医疗专区-产品介绍表 |
||||
*/ |
||||
@Data |
||||
@TableName("data_zone_product_introduce") |
||||
@EqualsAndHashCode(callSuper = true) |
||||
@ApiModel(value = "ZoneProductIntroduce对象", description = "ZoneProductIntroduce对象") |
||||
public class ZoneProductIntroduce extends BaseEntity { |
||||
|
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
/** |
||||
* 标题 |
||||
*/ |
||||
@ApiModelProperty(value = "标题") |
||||
private String title; |
||||
/** |
||||
* 文件路径 |
||||
*/ |
||||
@ApiModelProperty(value = "文件路径") |
||||
private String url; |
||||
/** |
||||
* 是否展示 |
||||
*/ |
||||
@ApiModelProperty(value = "是否展示") |
||||
private Integer isShow; |
||||
/** |
||||
* 备注 |
||||
*/ |
||||
@ApiModelProperty(value = "备注") |
||||
private String remark; |
||||
|
||||
|
||||
} |
||||
@ -0,0 +1,69 @@ |
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package org.springblade.modules.baotou.entity; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import io.swagger.annotations.ApiModel; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
import org.springblade.core.mp.base.BaseEntity; |
||||
|
||||
/** |
||||
* 实体类-医疗专区-应用场景表 |
||||
*/ |
||||
@Data |
||||
@TableName("data_zone_scene") |
||||
@EqualsAndHashCode(callSuper = true) |
||||
@ApiModel(value = "ZoneScene对象", description = "ZoneScene对象") |
||||
public class ZoneScene extends BaseEntity { |
||||
|
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
/** |
||||
* 所属模块(字典值) |
||||
*/ |
||||
@ApiModelProperty(value = "所属模块(字典值)") |
||||
private String module; |
||||
/** |
||||
* 标题 |
||||
*/ |
||||
@ApiModelProperty(value = "标题") |
||||
private String title; |
||||
/** |
||||
* 内容 |
||||
*/ |
||||
@ApiModelProperty(value = "内容") |
||||
private String content; |
||||
/** |
||||
* 文件路径 |
||||
*/ |
||||
@ApiModelProperty(value = "文件路径") |
||||
private String url; |
||||
/** |
||||
* 是否展示 |
||||
*/ |
||||
@ApiModelProperty(value = "是否展示") |
||||
private Integer isShow; |
||||
/** |
||||
* 备注 |
||||
*/ |
||||
@ApiModelProperty(value = "备注") |
||||
private String remark; |
||||
|
||||
|
||||
} |
||||
@ -0,0 +1,64 @@ |
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package org.springblade.modules.baotou.entity; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import io.swagger.annotations.ApiModel; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
import org.springblade.core.mp.base.BaseEntity; |
||||
|
||||
/** |
||||
* 实体类-医疗专区-统计表 |
||||
*/ |
||||
@Data |
||||
@TableName("data_zone_stat") |
||||
@EqualsAndHashCode(callSuper = true) |
||||
@ApiModel(value = "ZoneStat对象", description = "ZoneStat对象") |
||||
public class ZoneStat extends BaseEntity { |
||||
|
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
/** |
||||
* 标题 |
||||
*/ |
||||
@ApiModelProperty(value = "标题") |
||||
private String title; |
||||
/** |
||||
* 单位 |
||||
*/ |
||||
@ApiModelProperty(value = "单位") |
||||
private String unit; |
||||
/** |
||||
* 数量 |
||||
*/ |
||||
@ApiModelProperty(value = "数量") |
||||
private Integer count; |
||||
/** |
||||
* 是否展示 |
||||
*/ |
||||
@ApiModelProperty(value = "是否展示") |
||||
private Integer isShow; |
||||
/** |
||||
* 备注 |
||||
*/ |
||||
@ApiModelProperty(value = "备注") |
||||
private String remark; |
||||
|
||||
|
||||
} |
||||
@ -0,0 +1,59 @@ |
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package org.springblade.modules.baotou.entity; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import io.swagger.annotations.ApiModel; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
import org.springblade.core.mp.base.BaseEntity; |
||||
|
||||
/** |
||||
* 实体类-医疗专区-共建单位表 |
||||
*/ |
||||
@Data |
||||
@TableName("data_zone_unit") |
||||
@EqualsAndHashCode(callSuper = true) |
||||
@ApiModel(value = "ZoneUnit对象", description = "ZoneUnit对象") |
||||
public class ZoneUnit extends BaseEntity { |
||||
|
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
/** |
||||
* 标题 |
||||
*/ |
||||
@ApiModelProperty(value = "标题") |
||||
private String title; |
||||
/** |
||||
* 文件路径 |
||||
*/ |
||||
@ApiModelProperty(value = "文件路径") |
||||
private String url; |
||||
/** |
||||
* 是否展示 |
||||
*/ |
||||
@ApiModelProperty(value = "是否展示") |
||||
private Integer isShow; |
||||
/** |
||||
* 备注 |
||||
*/ |
||||
@ApiModelProperty(value = "备注") |
||||
private String remark; |
||||
|
||||
|
||||
} |
||||
Loading…
Reference in new issue