├── .gitignore ├── LICENSE ├── README.en.md ├── README.md ├── pick.iml ├── pom.xml └── src └── main ├── java └── com │ └── xiaojian │ └── pick │ ├── PickApplication.java │ ├── controller │ ├── CategoryController.java │ ├── CommodityController.java │ ├── InformController.java │ ├── LoginController.java │ ├── SeekController.java │ ├── TaskController.java │ ├── TopicController.java │ └── UserController.java │ ├── entity │ ├── Attention.java │ ├── Category.java │ ├── Collect.java │ ├── Comment.java │ ├── Commodity.java │ ├── CommodityImg.java │ ├── Inform.java │ ├── Message.java │ ├── Seek.java │ ├── SysAdmin.java │ ├── Topic.java │ ├── TopicImg.java │ ├── User.java │ └── WxAccessToken.java │ ├── mapper │ ├── AttentionMapper.java │ ├── CategoryMapper.java │ ├── CollectMapper.java │ ├── CommentMapper.java │ ├── CommodityImgMapper.java │ ├── CommodityMapper.java │ ├── InformMapper.java │ ├── MessageMapper.java │ ├── SeekMapper.java │ ├── SysAdminMapper.java │ ├── TopicImgMapper.java │ ├── TopicMapper.java │ ├── UserMapper.java │ └── WxAccessTokenMapper.java │ ├── page │ ├── AjaxResult.java │ ├── CommodityCustom.java │ ├── ReturnData.java │ ├── SeekCustom.java │ └── TopicCustom.java │ ├── service │ ├── AttentionService.java │ ├── CategoryService.java │ ├── CollectService.java │ ├── CommentService.java │ ├── CommodityImgService.java │ ├── CommodityService.java │ ├── InformService.java │ ├── MessageService.java │ ├── SeekService.java │ ├── SysAdminService.java │ ├── TimedTaskService.java │ ├── TopicImgService.java │ ├── TopicService.java │ ├── UserService.java │ └── impl │ │ ├── AttentionServiceImpl.java │ │ ├── CategroyServiceImpl.java │ │ ├── CollectServiceImpl.java │ │ ├── CommentServiceImpl.java │ │ ├── CommodityImgServiceImpl.java │ │ ├── CommodityServiceImpl.java │ │ ├── InfromServiceImpl.java │ │ ├── MessageServiceImpl.java │ │ ├── SeekServiceImpl.java │ │ ├── SysAdminServiceImpl.java │ │ ├── TimedTaskServiceImpl.java │ │ ├── TopicImgServiceImpl.java │ │ ├── TopicServiceImpl.java │ │ └── UserServiceImpl.java │ ├── shiro │ ├── MyRealm.java │ └── ShiroConfig.java │ ├── task │ └── TimedTask.java │ └── util │ ├── Consts.java │ ├── CryptographyUtil.java │ ├── HttpRequest.java │ ├── JwtUtil.java │ ├── OSSClientUtil.java │ ├── StringUtil.java │ ├── UUIDSerial.java │ └── wechat │ ├── WxConsts.java │ └── WxLoginUtil.java └── resources ├── application-dev.yml ├── application-prod.yml ├── application.properties ├── application.yml ├── generatorConfig.xml ├── mapper ├── AttentionMapper.xml ├── CategoryMapper.xml ├── CollectMapper.xml ├── CommentMapper.xml ├── CommodityImgMapper.xml ├── CommodityMapper.xml ├── InformMapper.xml ├── MessageMapper.xml ├── SeekMapper.xml ├── SysAdminMapper.xml ├── TopicImgMapper.xml ├── TopicMapper.xml ├── UserMapper.xml └── WxAccessTokenMapper.xml ├── static ├── css │ ├── login.css │ └── topic.css ├── favicon.ico ├── fonts │ └── iconfonts.css ├── images │ ├── aiwrap.png │ ├── bg.png │ ├── jiahao.png │ └── raining.jpg ├── js │ ├── category.js │ ├── commodity.js │ ├── index.js │ ├── inform.js │ ├── jquery.cookie.js │ ├── jquery.min.js │ ├── seek.js │ ├── topic.js │ ├── user.js │ └── xcity.js ├── layui │ ├── css │ │ ├── layui.css │ │ ├── layui.mobile.css │ │ └── modules │ │ │ ├── code.css │ │ │ ├── laydate │ │ │ └── default │ │ │ │ └── laydate.css │ │ │ └── layer │ │ │ └── default │ │ │ ├── icon-ext.png │ │ │ ├── icon.png │ │ │ ├── layer.css │ │ │ ├── loading-0.gif │ │ │ ├── loading-1.gif │ │ │ └── loading-2.gif │ ├── font │ │ ├── iconfont.eot │ │ ├── iconfont.svg │ │ ├── iconfont.ttf │ │ └── iconfont.woff │ ├── images │ │ └── face │ │ │ ├── 0.gif │ │ │ ├── 1.gif │ │ │ ├── 10.gif │ │ │ ├── 11.gif │ │ │ ├── 12.gif │ │ │ ├── 13.gif │ │ │ ├── 14.gif │ │ │ ├── 15.gif │ │ │ ├── 16.gif │ │ │ ├── 17.gif │ │ │ ├── 18.gif │ │ │ ├── 19.gif │ │ │ ├── 2.gif │ │ │ ├── 20.gif │ │ │ ├── 21.gif │ │ │ ├── 22.gif │ │ │ ├── 23.gif │ │ │ ├── 24.gif │ │ │ ├── 25.gif │ │ │ ├── 26.gif │ │ │ ├── 27.gif │ │ │ ├── 28.gif │ │ │ ├── 29.gif │ │ │ ├── 3.gif │ │ │ ├── 30.gif │ │ │ ├── 31.gif │ │ │ ├── 32.gif │ │ │ ├── 33.gif │ │ │ ├── 34.gif │ │ │ ├── 35.gif │ │ │ ├── 36.gif │ │ │ ├── 37.gif │ │ │ ├── 38.gif │ │ │ ├── 39.gif │ │ │ ├── 4.gif │ │ │ ├── 40.gif │ │ │ ├── 41.gif │ │ │ ├── 42.gif │ │ │ ├── 43.gif │ │ │ ├── 44.gif │ │ │ ├── 45.gif │ │ │ ├── 46.gif │ │ │ ├── 47.gif │ │ │ ├── 48.gif │ │ │ ├── 49.gif │ │ │ ├── 5.gif │ │ │ ├── 50.gif │ │ │ ├── 51.gif │ │ │ ├── 52.gif │ │ │ ├── 53.gif │ │ │ ├── 54.gif │ │ │ ├── 55.gif │ │ │ ├── 56.gif │ │ │ ├── 57.gif │ │ │ ├── 58.gif │ │ │ ├── 59.gif │ │ │ ├── 6.gif │ │ │ ├── 60.gif │ │ │ ├── 61.gif │ │ │ ├── 62.gif │ │ │ ├── 63.gif │ │ │ ├── 64.gif │ │ │ ├── 65.gif │ │ │ ├── 66.gif │ │ │ ├── 67.gif │ │ │ ├── 68.gif │ │ │ ├── 69.gif │ │ │ ├── 7.gif │ │ │ ├── 70.gif │ │ │ ├── 71.gif │ │ │ ├── 8.gif │ │ │ └── 9.gif │ ├── lay │ │ └── modules │ │ │ ├── carousel.js │ │ │ ├── code.js │ │ │ ├── colorpicker.js │ │ │ ├── element.js │ │ │ ├── flow.js │ │ │ ├── form.js │ │ │ ├── jquery.js │ │ │ ├── laydate.js │ │ │ ├── layedit.js │ │ │ ├── layer.js │ │ │ ├── laypage.js │ │ │ ├── laytpl.js │ │ │ ├── mobile.js │ │ │ ├── rate.js │ │ │ ├── slider.js │ │ │ ├── table.js │ │ │ ├── tree.js │ │ │ ├── upload.js │ │ │ └── util.js │ ├── layui.all.js │ └── layui.js ├── sql │ └── pick.sql └── upload │ └── images │ └── 20201014 │ ├── IMG_20201014_162232.jpg │ ├── IMG_20201014_162240.jpg │ ├── IMG_20201014_162249.jpg │ ├── IMG_20201014_162253.jpg │ └── IMG_20201014_162309.jpg └── templates ├── category ├── addCategory.html ├── category.html └── updateCategory.html ├── commodity ├── addCommodity.html ├── commodityDetail.html └── list.html ├── error ├── 404.html ├── 4xx.html └── 5xx.html ├── index.html ├── inform └── informList.html ├── login.html ├── main.html ├── seek ├── addSeek.html ├── editSeek.html └── seekList.html ├── topic ├── addTopic.html ├── topicDetail.html └── topicList.html └── user ├── sendMsg.html └── userList.html /.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled class file 2 | *.class 3 | 4 | # Log file 5 | *.log 6 | 7 | # BlueJ files 8 | *.ctxt 9 | 10 | # Mobile Tools for Java (J2ME) 11 | .mtj.tmp/ 12 | 13 | # Package Files # 14 | *.jar 15 | *.war 16 | *.nar 17 | *.ear 18 | *.zip 19 | *.tar.gz 20 | *.rar 21 | 22 | # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml 23 | hs_err_pid* 24 | /.idea/ 25 | /target/classes/ 26 | -------------------------------------------------------------------------------- /README.en.md: -------------------------------------------------------------------------------- 1 | # 校园二手市场-小程序+后台管理 2 | 3 | #### Description 4 | 校园二手物品交易平台微信小程序,后台管理使用SpringBoot+Mybatis+Shiro+Maven+MySQL架构后端,前端使用Layui框架 5 | 6 | #### Software Architecture 7 | Software architecture description 8 | 9 | #### Installation 10 | 11 | 1. xxxx 12 | 2. xxxx 13 | 3. xxxx 14 | 15 | #### Instructions 16 | 17 | 1. xxxx 18 | 2. xxxx 19 | 3. xxxx 20 | 21 | #### Contribution 22 | 23 | 1. Fork the repository 24 | 2. Create Feat_xxx branch 25 | 3. Commit your code 26 | 4. Create Pull Request 27 | 28 | 29 | #### Gitee Feature 30 | 31 | 1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md 32 | 2. Gitee blog [blog.gitee.com](https://blog.gitee.com) 33 | 3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore) 34 | 4. The most valuable open source project [GVP](https://gitee.com/gvp) 35 | 5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help) 36 | 6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) 37 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # 校园二手市场微信小程序-后台管理系统 2 | 3 | ### 介绍 4 | 校园二手物品交易平台微信小程序的后台管理系统,开发工具:IDEA;后台管理使用SpringBoot+Mybatis+Shiro+Maven+MySQL架构后端;前端使用Layui框架。
5 | 没有小程序端的源代码!没有小程序端的源代码!没有小程序端的源代码!
6 | 只有小程序的后台管理系统~
7 | 很适合用作毕设哦~
8 | 需要小程序端源码的联系我Q:2436009116 9 | 10 | 觉得项目不错,求个 **star ~** 哦。 11 | 12 | ### 软件架构 13 | 微信小程序:无
14 | 后台管理系统: 15 | - 后台:SpringBoot+Mybatis+Shiro+Maven+MySQL 16 | - 前端:Layui 17 | 18 | [项目结构导图](https://www.processon.com/view/link/5fce1ebee0b34d425250bb27) 19 | 20 | ### 安装教程 21 | 22 | 1. MySQL 数据库版本 8.0+;application-dev.yml、application-prod.yml修改数据库登录用户名与密码; 23 | 2. 项目中的图片上传用到了阿里云的OSS,没有提供上传到本地的方法,使用自己的阿里云OSS;修改util/OSSClientUtil.java 中的参数; 24 | 3. util/wechat/WxConsts.java,参数修改成自己小程序的appid和appsecret; 25 | 4. idea安装lombok插件 26 | 5. 数据库文件在 resources/static/sql 文件夹中 27 | 6. 后端登录:用户名:xiaojian;密码:qweqwe 28 | 29 | ### 项目预览 30 | 31 | #### 小程序端 32 | 首页
33 | ![首页](https://images.gitee.com/uploads/images/2020/1209/112018_195720d5_7826257.png "首页.png") 34 | 35 | 发布
36 | ![发布](https://images.gitee.com/uploads/images/2020/1209/112040_fe65d874_7826257.png "发布.png") 37 | 38 | 我的
39 | ![我的](https://images.gitee.com/uploads/images/2020/1209/111924_4612acf6_7826257.png "我的.png") 40 | 41 | 商品详情
42 | ![商品详情](https://images.gitee.com/uploads/images/2020/1209/112413_e34e8a07_7826257.png "商品详情.png") 43 | 44 | 发布商品
45 | ![发布商品](https://images.gitee.com/uploads/images/2020/1209/112505_c083e472_7826257.png "发布商品.png") 46 | 47 | 我的收藏
48 | ![我的收藏](https://images.gitee.com/uploads/images/2020/1209/112545_3be19b11_7826257.png "我的收藏.png") 49 | 50 | 论坛
51 | ![论坛](https://images.gitee.com/uploads/images/2020/1209/112615_7490b063_7826257.png "挑三“谏”四.png") 52 | 53 | 帖子详情
54 | ![帖子详情](https://images.gitee.com/uploads/images/2020/1209/112716_29e243f6_7826257.png "帖子详情.png") 55 | 56 | #### 后台管理 57 | 后台管理首页 58 | ![后台管理首页](https://images.gitee.com/uploads/images/2020/1209/112825_164ce773_7826257.png "后台管理首页.png") 59 | 商品列表 60 | ![商品列表](https://images.gitee.com/uploads/images/2020/1209/112914_7dda0ade_7826257.png "商品列表.png") 61 | 商品分类 62 | ![商品分类](https://images.gitee.com/uploads/images/2020/1209/112947_c0fd9513_7826257.png "商品分类.png") 63 | 帖子列表 64 | ![帖子列表](https://images.gitee.com/uploads/images/2020/1209/113015_8695e1a8_7826257.png "帖子列表.png") 65 | 用户列表 66 | ![用户列表](https://images.gitee.com/uploads/images/2020/1209/113040_a41957db_7826257.png "用户列表.png") 67 | 举报信息 68 | ![举报信息](https://images.gitee.com/uploads/images/2020/1209/113136_d81f03fe_7826257.png "举报信息.png") 69 | 70 | 71 | 欢迎一起学习讨论~ 72 | -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/PickApplication.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick; 2 | 3 | import org.mybatis.spring.annotation.MapperScan; 4 | import org.springframework.boot.SpringApplication; 5 | import org.springframework.boot.autoconfigure.SpringBootApplication; 6 | import org.springframework.scheduling.annotation.EnableScheduling; 7 | 8 | @EnableScheduling // 开启定时任务 9 | @SpringBootApplication 10 | @MapperScan("com.xiaojian.pick.mapper") 11 | public class PickApplication { 12 | 13 | public static void main(String[] args) { 14 | SpringApplication.run(PickApplication.class, args); 15 | } 16 | 17 | } 18 | -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/controller/TaskController.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.controller; 2 | 3 | import com.xiaojian.pick.service.TimedTaskService; 4 | import org.springframework.scheduling.annotation.Scheduled; 5 | import org.springframework.stereotype.Controller; 6 | 7 | /** 8 | * @author 小贱 9 | * @date 2020/11/25 - 15:35 10 | * 11 | * 服务器定时任务 12 | * 定时删除数据库中无状态(已被删除的)数据 13 | */ 14 | @Controller 15 | public class TaskController { 16 | 17 | private TimedTaskService timedTaskService; 18 | 19 | // 30天 下架商品、求购信息改为0 20 | 21 | public void timedDel(){ 22 | // timedTaskService.timedDelCommodity(); 23 | // timedTaskService.timedDelSeek(); 24 | } 25 | 26 | 27 | } 28 | -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/entity/Attention.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.entity; 2 | 3 | import com.fasterxml.jackson.annotation.JsonFormat; 4 | import lombok.Data; 5 | import org.springframework.format.annotation.DateTimeFormat; 6 | 7 | import java.util.Date; 8 | 9 | @Data 10 | public class Attention { 11 | private Integer id; // 主键 12 | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") 13 | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") 14 | private Date createTime; // 15 | 16 | private Topic topic; // 关注的帖子 17 | private User user; // 关注的用户 18 | } -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/entity/Category.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.entity; 2 | 3 | import lombok.Data; 4 | 5 | /** 6 | * 商品分类 7 | */ 8 | @Data 9 | public class Category { 10 | private Integer id; // id 11 | private String cateName; // 分类名称 12 | private String cateIcon; // 分类图标 13 | private Integer sort; // 排序 14 | } -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/entity/Collect.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.entity; 2 | 3 | import com.fasterxml.jackson.annotation.JsonFormat; 4 | import lombok.Data; 5 | import org.springframework.format.annotation.DateTimeFormat; 6 | 7 | import java.util.Date; 8 | import java.util.List; 9 | 10 | @Data 11 | public class Collect { 12 | private Integer id; // 主键 13 | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") 14 | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") 15 | private Date createTime; 16 | 17 | private Commodity commodity; // 收藏的商品 18 | private User user; // 收藏的用户 19 | 20 | } -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/entity/Comment.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.entity; 2 | 3 | import com.fasterxml.jackson.annotation.JsonFormat; 4 | import lombok.Data; 5 | import org.springframework.format.annotation.DateTimeFormat; 6 | 7 | import java.util.Date; 8 | 9 | @Data 10 | public class Comment { 11 | private Integer id; // 评论表主键id 12 | private String content; // 评论内容 13 | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") 14 | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") 15 | private Date publishDate; // 评论时间 16 | private Integer state; // 0,删除状态;1,显示中 17 | 18 | private Integer topicId; // 帖子 id 19 | private User user; // 评论者 20 | 21 | } -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/entity/Commodity.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.entity; 2 | 3 | import com.fasterxml.jackson.annotation.JsonFormat; 4 | import lombok.Data; 5 | import org.springframework.format.annotation.DateTimeFormat; 6 | 7 | import java.util.Date; 8 | import java.util.List; 9 | 10 | /** 11 | * 商品类 12 | */ 13 | @Data 14 | public class Commodity { 15 | private Integer id; // id 16 | private String title; //商品标题 17 | private Double oldPrice; // 原价 18 | private Double price; // 现价 19 | private String quality; // 品质(九成新,使用时长) 20 | private Integer repertory; // 库存数量 21 | private Integer clickCount = 0; // 浏览量 22 | private Integer collectCount = 0; // 收藏数 23 | private Integer state; // 商品状态(1,出售中;2,售罄;3,下架) 24 | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") 25 | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") 26 | private Date publishDate; // 发布时间 27 | private String coverImage; // 商品封面 28 | private String serial; // 商品编号 29 | private String description; // 商品描述 30 | private Boolean swiper; // 是否为 轮播图 31 | 32 | private Category category; // 商品分类 33 | private User user; // 商品发布者 34 | private List commodityImgList; // 商品图片列表 35 | } -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/entity/CommodityImg.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.entity; 2 | 3 | import lombok.Data; 4 | 5 | /** 6 | * 商品图片 7 | */ 8 | @Data 9 | public class CommodityImg { 10 | private Integer id; // id 11 | private String imgSrc; // 图片地址 12 | private Integer commodityId; // 商品类 13 | } -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/entity/Inform.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.entity; 2 | 3 | import com.fasterxml.jackson.annotation.JsonFormat; 4 | import lombok.Data; 5 | import org.springframework.format.annotation.DateTimeFormat; 6 | 7 | import java.util.Date; 8 | 9 | @Data 10 | public class Inform { 11 | private Integer id; // 主键 12 | private String content; // 举报内容 13 | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") 14 | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") 15 | private Date createTime; // 举报时间 16 | private Boolean state; // 信息状态:0,未处理;1,已处理 17 | 18 | private User user; // 举报者 19 | private Commodity commodity; // 被举报的商品 20 | private Seek seek; // 被举报的求购 21 | private Topic topic; // 被举报的帖子 22 | } -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/entity/Message.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.entity; 2 | 3 | import com.fasterxml.jackson.annotation.JsonFormat; 4 | import lombok.Data; 5 | import org.springframework.format.annotation.DateTimeFormat; 6 | 7 | import java.util.Date; 8 | 9 | @Data 10 | public class Message { 11 | private Integer id; // 消息 id 12 | private String title; // 消息主题 13 | private String content; // 消息内容 14 | private Integer state; // 消息阅读状态(0:未读;1:已读;2,删除状态) 15 | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") 16 | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") 17 | private Date createTime; // 消息发送的时间 18 | 19 | private User user; // 消息接收者 20 | } -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/entity/Seek.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.entity; 2 | 3 | import com.fasterxml.jackson.annotation.JsonFormat; 4 | import lombok.Data; 5 | import org.springframework.format.annotation.DateTimeFormat; 6 | 7 | import java.util.Date; 8 | 9 | @Data 10 | public class Seek { 11 | 12 | private Integer id; // 主键 13 | private String title; // 求购标题 14 | private String remark; // 备注 15 | private Integer state; // 求购信息状态(0,已删除;1,存在中) 16 | private Double minPrice; // 最低价格 17 | private Double maxPrice; // 最高价格 18 | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") 19 | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") 20 | private Date publishDate; // 发布时间 21 | 22 | private User user; // 求购发布者 23 | } -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/entity/SysAdmin.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.entity; 2 | 3 | import com.fasterxml.jackson.annotation.JsonFormat; 4 | import lombok.Data; 5 | import org.springframework.format.annotation.DateTimeFormat; 6 | 7 | import java.util.Date; 8 | 9 | /** 10 | * 后台管理员类 11 | */ 12 | @Data 13 | public class SysAdmin { 14 | private Integer id; // id 15 | private String username; // 用户名 16 | private String password; // 密码 17 | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") 18 | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") 19 | private Date registerDate; // 注册时间 20 | private Boolean admin; // 是否为超级管理员 21 | } -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/entity/Topic.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.entity; 2 | 3 | import com.fasterxml.jackson.annotation.JsonFormat; 4 | import lombok.Data; 5 | import org.springframework.format.annotation.DateTimeFormat; 6 | 7 | import java.util.Date; 8 | import java.util.List; 9 | 10 | @Data 11 | public class Topic { 12 | private Integer id; // 主键 13 | private String theme; // 帖子主题 14 | private String description; // 帖子说明 15 | private Integer commentCount; // 帖子评论数 16 | private Integer clickCount; // 帖子点击率 17 | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") 18 | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") 19 | private Date publishDate; // 帖子发布时间 20 | private Integer state; // 0,删除状态;1,展示中 21 | private Integer hotDegree; // 热门程度:1,2,3 22 | 23 | private User user; // 帖子发布者 24 | private List topicImgList; // 帖子内图片 25 | private List commentList; // 帖子的评论列表 26 | } -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/entity/TopicImg.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.entity; 2 | 3 | import lombok.Data; 4 | 5 | @Data 6 | public class TopicImg { 7 | private Integer id; // 帖子图片 id 8 | private String imgSrc; // 帖子图片路径 9 | private Integer topicId; // 帖子 10 | } -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/entity/User.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.entity; 2 | 3 | import com.fasterxml.jackson.annotation.JsonFormat; 4 | import lombok.Data; 5 | import org.springframework.format.annotation.DateTimeFormat; 6 | 7 | import java.util.Date; 8 | 9 | /** 10 | * 前端用户类 11 | */ 12 | @Data 13 | public class User { 14 | // 用户信息完整度状态 15 | // 用户信息不完整 16 | public static final String NOT_USER_INFO = "0"; 17 | // 用户信息已部分完整 18 | public static final String HAVE_USER_INFO = "1"; 19 | // 用户信息完整 20 | public static final String ALL_USER_INFO = "2"; 21 | 22 | private Integer id; // id 23 | private String openid; // 微信小程序用户 openid 24 | private String nickName; // 用户昵称 25 | private String avatarUrl; // 用户头像 26 | private Byte gender; // 性别 27 | private String country; // 国家 28 | private String province; // 省份 29 | private String city; // 城市 30 | private String haveUserInfo; // 是否已获取用户信息 31 | 32 | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") 33 | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") 34 | private Date createTime; // 创建时间 35 | 36 | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") 37 | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") 38 | private Date updateTime; // 更新时间 39 | 40 | private String qqNum; // 预留 QQ号 41 | private String wechatNum; // 预留 微信号 42 | } -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/entity/WxAccessToken.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.entity; 2 | 3 | import lombok.Data; 4 | 5 | import java.util.Date; 6 | 7 | 8 | @Data 9 | public class WxAccessToken { 10 | private String accessToken; 11 | private Date expire; 12 | private Date createTime; 13 | private Date updateTime; 14 | 15 | } -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/mapper/AttentionMapper.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.mapper; 2 | 3 | import com.xiaojian.pick.entity.Attention; 4 | 5 | import java.util.List; 6 | 7 | public interface AttentionMapper { 8 | // 根据用户 id 查询关注列表 9 | List findByUserId(Integer userId); 10 | // 商品id、用户id查询关注信息 11 | Attention findAttention(Attention attention); 12 | // 删除关注话题 13 | int deleteAttention(Integer id); 14 | // 帖子详情页面,取消关注话题 15 | int cancelAttention(Attention attention); 16 | // 添加关注话题信息 17 | int addAttention(Attention attention); 18 | 19 | 20 | // 根据 topic_id 删除收藏记录 21 | int deleteByTopicId(List topicIds); 22 | } -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/mapper/CategoryMapper.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.mapper; 2 | 3 | import com.xiaojian.pick.entity.Category; 4 | 5 | import java.util.List; 6 | import org.apache.ibatis.annotations.Param; 7 | 8 | public interface CategoryMapper { 9 | // 根据 id 查询 10 | Category findById(Integer id); 11 | 12 | // 查询所有 商品分类 13 | List findAll(); 14 | // 查询所有商品分类 数量 15 | Long getCount(); 16 | // 增加 商品分类 17 | int addCategory(Category category); 18 | // 修改 商品分类 19 | int updateCategory(Category category); 20 | // 删除 商品分类 21 | int deleteCategory(Integer id); 22 | } -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/mapper/CollectMapper.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.mapper; 2 | 3 | import com.xiaojian.pick.entity.Collect; 4 | 5 | import java.util.List; 6 | 7 | public interface CollectMapper { 8 | // 根据用户 id 查询收藏列表 9 | List findByUserId(Integer userId); 10 | // 商品id、用户id查询收藏信息 11 | Collect findCollect(Collect collect); 12 | // 删除收藏 13 | int deleteCollect(Integer id); 14 | // 商品详情页面,取消收藏 15 | int cancelCollect(Collect collect); 16 | // 添加收藏信息 17 | int addCollect(Collect collect); 18 | 19 | // 根据 commodity_id 删除收藏记录 20 | int deleteByCommodityId(List commodityIds); 21 | } -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/mapper/CommentMapper.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.mapper; 2 | 3 | import com.xiaojian.pick.entity.Comment; 4 | 5 | import java.util.List; 6 | 7 | public interface CommentMapper { 8 | 9 | // 根据帖子 id 查询 评论列表 10 | List findByTopicId(Integer topicId); 11 | 12 | // 添加帖子的评论 13 | int addComment(Comment comment); 14 | // 修改评论状态 15 | int updateCommentState(Comment comment); 16 | 17 | // 删除帖子的评论记录 18 | int deleteByTopicId(List topicIds); 19 | 20 | } -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/mapper/CommodityImgMapper.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.mapper; 2 | 3 | import com.xiaojian.pick.entity.CommodityImg; 4 | 5 | import java.util.List; 6 | import org.apache.ibatis.annotations.Param; 7 | 8 | public interface CommodityImgMapper { 9 | // 根据商品 id 查询 10 | List findByCommodityId(Integer id); 11 | // 是否是轮播图 12 | List getSwiperList(); 13 | 14 | // 添加商品图片 15 | int add(CommodityImg commodityImg); 16 | 17 | // 删除商品图片记录 18 | int deleteByCommodityId(List commodityId); 19 | } -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/mapper/CommodityMapper.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.mapper; 2 | 3 | import com.xiaojian.pick.entity.Commodity; 4 | 5 | import java.util.List; 6 | 7 | import com.xiaojian.pick.entity.CommodityImg; 8 | import com.xiaojian.pick.page.CommodityCustom; 9 | import org.apache.ibatis.annotations.Param; 10 | 11 | public interface CommodityMapper { 12 | // 根据 id 查询商品 13 | Commodity findById(Integer id); 14 | // 根据 用户id 查询其发布的商品 15 | List findByUserId(Integer id); 16 | // 根据分类 id 查询商品列表 17 | List findByCategoryId(Integer id); 18 | // 查询所有商品 19 | List findAll(); 20 | // 根据条件(商品标题 、商品编号、分类)查询 商品列表 21 | List findByParam(CommodityCustom commodityCustom); 22 | // 获取所有 商品数量 23 | Long getCount(CommodityCustom commodityCustom); 24 | // 获取所有 商品图片 25 | Commodity getCommodityImgList(Integer id); 26 | // 添加商品信息 27 | int addCommodity(Commodity commodity); 28 | // 真实删除商品记录 29 | int realDelCommodity(Integer id); 30 | 31 | // 修改商品信息,主要修改商品封面图片 32 | int updateCoverImgOfCommodity(Commodity commodity); 33 | // 修改商品状态(1,出售中;2,售罄;3,下架) 34 | int updateCommodityState(@Param("state")Integer state,@Param("id")Integer id); 35 | // 商品点击量 +1 36 | int addCommodityClick(Integer id); 37 | // 小程序中查看一个用户发布的商品(售出中的) 38 | List getUserPublish(Commodity commodity); 39 | // 小程序首页的轮播图 40 | List getSwiperCommodity(); 41 | // 分页、分类查询 出售中 的商品列表 42 | List findByPage(Commodity commodity); 43 | // 关键字搜索、出售中商品、分页 44 | List search(String content); 45 | 46 | 47 | // 查询商品发布时间超过 30 天的商品列表 48 | List overtimeCommodity(); 49 | // 将商品状态改为 下架 50 | int deleteByid(Integer id); 51 | // 根据商品 状态 查询商品列表 52 | List findByState(Integer state); 53 | // 删除商品信息(一般根据商品状态:为4已删除) 54 | int delCommodityByState(Integer state); 55 | } -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/mapper/InformMapper.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.mapper; 2 | 3 | import com.xiaojian.pick.entity.Inform; 4 | 5 | import java.util.List; 6 | import org.apache.ibatis.annotations.Param; 7 | 8 | public interface InformMapper { 9 | 10 | // 根据 id 查询举报信息 11 | Inform findById(Integer id); 12 | // 查询所有举报信息 13 | List findAll(); 14 | // 条件查询举报信息 15 | List findByParam(Inform inform); 16 | // 举报信息数量 17 | Long getCount(Inform inform); 18 | // 修改举报信息状态:已处理 19 | int updateInform(Integer id); 20 | // 添加举报信息 21 | int addInform(Inform inform); 22 | // 删除举报信息 23 | int delInform(Inform inform); 24 | 25 | // 根据 商品 id 删除 26 | int delInformByCommodity(List commodityIds); 27 | // 根据 求购 id 删除 28 | int delInformBySeek(List seekIds); 29 | // 根据 帖子 id 删除 30 | int delInformByTopic(List topicIds); 31 | 32 | 33 | // 测试拼接语句 34 | List testSeparator(List ids); 35 | 36 | } -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/mapper/MessageMapper.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.mapper; 2 | 3 | import com.xiaojian.pick.entity.Message; 4 | 5 | import java.util.List; 6 | 7 | public interface MessageMapper { 8 | // 查询所有消息 9 | List findAll(); 10 | // 条件查询消息 11 | List findByParam(Message message); 12 | // 根据用户查询消息列表 13 | List findByUserId(Integer userId); 14 | // 根据用户查询消息数量 15 | Long getCountByUserId(Integer userId); 16 | // 发布消息 17 | int publishMsg(Message message); 18 | // 更改消息状态(0,未读;1,已读;2,删除状态) 19 | int updateMsgState(Message message); 20 | 21 | // 删除消息(一般根据消息状态为:2,已删除) 22 | int delMessageByState(Integer state); 23 | } -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/mapper/SeekMapper.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.mapper; 2 | 3 | import com.xiaojian.pick.entity.Commodity; 4 | import com.xiaojian.pick.entity.Seek; 5 | import com.xiaojian.pick.page.CommodityCustom; 6 | import com.xiaojian.pick.page.SeekCustom; 7 | import org.apache.ibatis.annotations.Param; 8 | 9 | import java.util.List; 10 | 11 | public interface SeekMapper { 12 | // 根据 id 查询 13 | Seek findById(Integer id); 14 | // 根据用户查询求购列表 15 | List findByUserId(Integer userId); 16 | // 查询所有求购列表 17 | List findAll(); 18 | // 条件查询求购列表 19 | List findByParam(SeekCustom seekCustom); 20 | // 获取求购信息数量 21 | Long getCount(SeekCustom seekCustom); 22 | // 添加 求购信息 23 | int addSeek(Seek seek); 24 | // 修改求购信息(目前只用到,修改求购信息状态) 25 | int updateSeekState(Integer seekId); 26 | // 删除求购信息 27 | int delSeek(Integer id); 28 | 29 | 30 | // // 分页查询的求购列表 31 | // List findByPage(); 32 | 33 | // 关键字搜索求购、分页 34 | List search(String content); 35 | 36 | 37 | // 查询求购发布时间超过 30 天的求购列表 38 | List overtimeSeek(); 39 | // 根据 求购状态 查询 40 | List findByState(Integer state); 41 | // 删除求购信息(一般根据求购状态:为0的已删除状态) 42 | int delSeekByState(Integer state); 43 | } -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/mapper/SysAdminMapper.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.mapper; 2 | 3 | import com.xiaojian.pick.entity.SysAdmin; 4 | 5 | import java.util.List; 6 | import org.apache.ibatis.annotations.Param; 7 | 8 | public interface SysAdminMapper { 9 | 10 | // 根据用户名查询 11 | SysAdmin findByUsername(String username); 12 | } -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/mapper/TopicImgMapper.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.mapper; 2 | 3 | import com.xiaojian.pick.entity.TopicImg; 4 | 5 | import java.util.List; 6 | 7 | public interface TopicImgMapper { 8 | 9 | // 根据帖子 id 查询 10 | List findByTopicId(Integer topicId); 11 | 12 | // 添加帖子图片 13 | int addTopicImg(TopicImg topicImg); 14 | // 删除帖子记录 15 | int deleteByTopicId(List topicId); 16 | 17 | } -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/mapper/TopicMapper.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.mapper; 2 | 3 | import com.xiaojian.pick.entity.Topic; 4 | import com.xiaojian.pick.page.TopicCustom; 5 | 6 | import java.util.List; 7 | 8 | public interface TopicMapper { 9 | // 根据 id 查询帖子(简单内容) 10 | Topic findByTopicId(Integer id); 11 | // 根据 id 查询帖子 12 | Topic findById(Integer id); 13 | // 根据 用户id 查询其发布的 14 | List findByUserId(Integer userId); 15 | // 查询所有帖子 16 | List findAll(); 17 | // 根据条件(帖子标题 、帖子内容..)查询 帖子列表 18 | List findByParam(TopicCustom topicCustom); 19 | // 获取所有 帖子数量 20 | Long getCount(TopicCustom topicCustom); 21 | // 添加帖子信息 22 | int addTopic(Topic topic); 23 | 24 | 25 | // 修改帖子状态(0,已删除;1,展示中) 26 | int updateTopicState(Topic topic); 27 | // 修改帖子热门程度(热门程度:1,2,3) 28 | int updateTopicHot(Topic topic); 29 | // 帖子点击量 +1 30 | int addTopicClick(Integer id); 31 | // 帖子评论数 +1 32 | int addTopicComment(Integer id); 33 | // 帖子评论数 -1 34 | int subTopicComment(Integer id); 35 | // 小程序中查看一个用户发布的帖子 36 | List getUserPublish(Topic topic); 37 | // 分页 查询 未删除 的帖子列表 38 | List findByPage(Topic topic); 39 | // 关键字搜索帖子、分页 40 | List search(String content); 41 | 42 | 43 | // 查询帖子发布时间超过 30 天的帖子列表 44 | List overtimeTopic(); 45 | // 真实删除帖子记录 46 | int realDelTopic(Integer id); 47 | // 根据 状态 查询帖子列表 48 | List findByState(Integer state); 49 | // 根据 状态 删除帖子列表 50 | int delTopicByState(Integer state); 51 | } -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/mapper/UserMapper.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.mapper; 2 | 3 | 4 | import com.xiaojian.pick.entity.User; 5 | 6 | import java.util.List; 7 | 8 | public interface UserMapper { 9 | 10 | // 根据 id 查询信息 11 | User findById(Integer id); 12 | // 根据条件查询 用户列表 13 | List findByParam(User user); 14 | // 根据条件查询 用户列表数量 15 | Long getCount(User user); 16 | // 根据 openid 查询用户信息 17 | User findByOpenid(String openid); 18 | // 添加用户信息 19 | int addUser(User user); 20 | // 更新用户信息 21 | int updateUser(User user); 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/mapper/WxAccessTokenMapper.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.mapper; 2 | 3 | import com.xiaojian.pick.entity.WxAccessToken; 4 | 5 | import java.util.List; 6 | import org.apache.ibatis.annotations.Param; 7 | 8 | public interface WxAccessTokenMapper { 9 | 10 | } -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/page/AjaxResult.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.page; 2 | 3 | import lombok.Data; 4 | 5 | /** 6 | * @author 小贱 7 | * @date 2020/10/12 - 19:03 8 | */ 9 | @Data 10 | public class AjaxResult { 11 | private boolean success; 12 | private String message; 13 | 14 | public AjaxResult(){ 15 | 16 | } 17 | 18 | public AjaxResult(boolean success){ 19 | this.success = success; 20 | } 21 | 22 | public AjaxResult(boolean success,String message){ 23 | this.success = success; 24 | this.message = message; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/page/CommodityCustom.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.page; 2 | 3 | import com.xiaojian.pick.entity.Commodity; 4 | import lombok.Data; 5 | 6 | /** 7 | * @author 小贱 8 | * @date 2020/10/27 - 8:22 9 | */ 10 | @Data 11 | public class CommodityCustom extends Commodity { 12 | 13 | private String startTime; // 日期范围:开始时间 14 | private String endTime; // 日期范围:终止时间 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/page/ReturnData.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.page; 2 | 3 | import com.xiaojian.pick.entity.User; 4 | import lombok.Data; 5 | 6 | /** 7 | * @author 小贱 8 | * @date 2020/11/2 - 9:03 9 | * 登录时返回给小程序端的数据 10 | */ 11 | @Data 12 | public class ReturnData { 13 | private User user; 14 | private boolean success; 15 | private String message; 16 | private String haveUserInfo; 17 | private String token; 18 | 19 | public ReturnData() { 20 | } 21 | 22 | public ReturnData(boolean success, String message) { 23 | this.success = success; 24 | this.message = message; 25 | } 26 | 27 | public ReturnData(boolean success, String message, String haveUserInfo,User user) { 28 | this.success = success; 29 | this.message = message; 30 | this.haveUserInfo = haveUserInfo; 31 | this.user = user; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/page/SeekCustom.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.page; 2 | 3 | import com.xiaojian.pick.entity.Seek; 4 | import lombok.Data; 5 | 6 | /** 7 | * @author 小贱 8 | * @date 2020/10/26 - 9:59 9 | */ 10 | @Data 11 | public class SeekCustom extends Seek { 12 | 13 | private String startTime; // 日期范围:开始时间 14 | private String endTime; // 日期范围:终止时间 15 | 16 | } 17 | -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/page/TopicCustom.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.page; 2 | 3 | import com.xiaojian.pick.entity.Topic; 4 | 5 | /** 6 | * @author 小贱 7 | * @date 2020/11/22 - 21:53 8 | */ 9 | public class TopicCustom extends Topic { 10 | 11 | private String startTime; // 日期范围:开始时间 12 | private String endTime; // 日期范围:终止时间 13 | } 14 | -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/service/AttentionService.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.service; 2 | 3 | import com.xiaojian.pick.entity.Attention; 4 | 5 | import java.util.List; 6 | 7 | /** 8 | * @author 小贱 9 | * @date 2020/11/23 - 20:51 10 | */ 11 | public interface AttentionService { 12 | // 根据用户 id 查询关注列表 13 | List findByUserId(Integer userId); 14 | // 商品id、用户id查询关注信息 15 | Attention findAttention(Attention attention); 16 | // 删除关注话题 17 | int deleteAttention(Integer id); 18 | // 帖子详情页面,取消关注话题 19 | int cancelAttention(Attention attention); 20 | // 添加关注话题信息 21 | int addAttention(Attention attention); 22 | } 23 | -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/service/CategoryService.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.service; 2 | 3 | import com.xiaojian.pick.entity.Category; 4 | 5 | import java.util.List; 6 | 7 | /** 8 | * @author 小贱 9 | * @date 2020/10/14 - 18:20 10 | */ 11 | public interface CategoryService { 12 | 13 | // 根据 id 查询 14 | Category findById(Integer id); 15 | 16 | // 分页查询 商品分类 17 | List findByPage(Integer page,Integer pageSize); 18 | // 查询所有商品分类 19 | List findAll(); 20 | // 查询所有商品分类 数量 21 | Long getCount(); 22 | // 增加 商品分类 23 | int addCategory(Category category); 24 | // 修改 商品分类 25 | int updateCategory(Category category); 26 | // 删除 商品分类 27 | int deleteCategory(Integer id); 28 | } 29 | -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/service/CollectService.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.service; 2 | 3 | import com.xiaojian.pick.entity.Collect; 4 | 5 | import java.util.List; 6 | 7 | /** 8 | * @author 小贱 9 | * @date 2020/11/5 - 17:47 10 | */ 11 | public interface CollectService { 12 | // 根据用户 id 查询 13 | List findByUserId(Integer userId); 14 | // 商品id、用户id查询收藏信息 15 | Collect findCollect(Collect collect); 16 | // 删除收藏 17 | int deleteCollect(Integer id); 18 | // 商品详情页面,取消收藏 19 | int cancelCollect(Collect collect); 20 | // 添加收藏信息 21 | int addCollect(Collect collect); 22 | } 23 | -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/service/CommentService.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.service; 2 | 3 | import com.xiaojian.pick.entity.Comment; 4 | 5 | import java.util.List; 6 | 7 | /** 8 | * @author 小贱 9 | * @date 2020/11/23 - 1:47 10 | */ 11 | public interface CommentService { 12 | 13 | // 根据帖子 id 查询 评论列表 14 | List findByTopicId(Integer topicId); 15 | // 根据 帖子id 查询 ,并分页 16 | List findByPage(Integer topicId,Integer page,Integer pageSize); 17 | 18 | // 添加帖子的评论 19 | int addComment(Comment comment); 20 | // 修改评论状态 21 | int updateCommentState(Comment comment); 22 | 23 | 24 | } 25 | -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/service/CommodityImgService.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.service; 2 | 3 | import com.xiaojian.pick.entity.CommodityImg; 4 | 5 | import java.util.List; 6 | 7 | /** 8 | * @author 小贱 9 | * @date 2020/10/22 - 19:14 10 | */ 11 | public interface CommodityImgService { 12 | // 根据商品 id 查询 13 | List findByCommodityId(Integer id); 14 | // 是否是轮播图 15 | List getSwiperList(); 16 | 17 | // 添加商品图片 18 | int add(CommodityImg commodityImg); 19 | // 删除商品记录 20 | int deleteByCommodityId(List commodityIds); 21 | } 22 | -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/service/CommodityService.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.service; 2 | 3 | import com.xiaojian.pick.entity.Category; 4 | import com.xiaojian.pick.entity.Commodity; 5 | import com.xiaojian.pick.entity.CommodityImg; 6 | import com.xiaojian.pick.page.CommodityCustom; 7 | import org.apache.ibatis.annotations.Param; 8 | 9 | import java.util.List; 10 | 11 | /** 12 | * @author 小贱 13 | * @date 2020/10/13 - 16:35 14 | */ 15 | public interface CommodityService { 16 | // 根据 id 查询商品 17 | Commodity findById(Integer id); 18 | // 根据 用户id 查询其发布的商品 19 | List findByUserId(Integer id); 20 | // 根据分类 id 查询商品列表 21 | List findByCategoryId(Integer id); 22 | // 查询所有商品 23 | List findAll(); 24 | // 根据条件(商品标题 、商品编号、分类)查询 商品列表 25 | List findByParam(CommodityCustom commodityCustom, Integer page, Integer pageSize); 26 | // 获取所有 商品数量 27 | Long getCount(CommodityCustom commodityCustom); 28 | // 添加商品信息 29 | int addCommodity(Commodity commodity); 30 | // 获取所有 商品图片 31 | // Commodity getCommodityImgList(Integer id); 32 | 33 | // 将商品状态改为 下架 34 | int deleteByid(Integer id); 35 | // 真实删除商品记录 36 | int realDelCommodity(Integer id); 37 | 38 | // 修改商品信息,主要修改商品封面图片 39 | int updateCoverImgOfCommodity(Commodity commodity); 40 | // 修改商品状态(1,出售中;2,售罄;3,下架) 41 | int updateCommodityState(Integer state, Integer id); 42 | // 商品点击量 +1 43 | int addCommodityClick(Integer id); 44 | // 小程序中查看一个用户发布的商品(售出中的) 45 | List getUserPublish(Commodity commodity); 46 | // 小程序首页的轮播图 47 | List getSwiperCommodity(); 48 | // 分页、分类查询 出售中 的商品列表 49 | List findByPage(Commodity commodity,Integer page,Integer pageSize); 50 | // 关键字搜索、出售中商品、分页 51 | List search(String content,Integer page,Integer pageSize); 52 | } 53 | -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/service/InformService.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.service; 2 | 3 | import com.xiaojian.pick.entity.Inform; 4 | 5 | import java.util.List; 6 | 7 | /** 8 | * @author 小贱 9 | * @date 2020/10/25 - 17:10 10 | */ 11 | public interface InformService { 12 | 13 | // 根据 id 查询举报信息 14 | Inform findById(Integer id); 15 | // 查询所有举报信息 16 | List findAll(); 17 | // 条件查询举报信息 18 | List findByParam(Inform inform,Integer page,Integer pageSize); 19 | // 举报信息数量 20 | Long getCount(Inform inform); 21 | // 修改举报信息状态:已处理 22 | int updateInform(Integer id); 23 | // 添加举报信息 24 | int addInform(Inform inform); 25 | // 删除举报信息 26 | int delInform(Inform inform); 27 | } 28 | -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/service/MessageService.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.service; 2 | 3 | import com.xiaojian.pick.entity.Message; 4 | 5 | import java.util.List; 6 | 7 | /** 8 | * @author 小贱 9 | * @date 2020/11/6 - 18:44 10 | */ 11 | public interface MessageService { 12 | // 查询所有消息 13 | List findAll(); 14 | // 条件查询消息 15 | List findByParam(Message message); 16 | // 根据用户查询消息列表 17 | List findByUserId(Integer userId); 18 | // 根据用户查询消息数量 19 | Long getCountByUserId(Integer userId); 20 | // 发布消息 21 | int publishMsg(Message message); 22 | // 更改消息状态(0,未读;1,已读;2,删除状态) 23 | int updateMsgState(Message message); 24 | 25 | 26 | } 27 | -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/service/SeekService.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.service; 2 | 3 | import com.xiaojian.pick.entity.Seek; 4 | import com.xiaojian.pick.page.SeekCustom; 5 | import org.springframework.stereotype.Service; 6 | 7 | import java.util.List; 8 | 9 | /** 10 | * @author 小贱 11 | * @date 2020/10/24 - 17:00 12 | */ 13 | public interface SeekService { 14 | // 根据 id 查询 15 | Seek findById(Integer id); 16 | // 根据用户查询求购列表 17 | List findByUserId(Integer userId); 18 | // 查询所有求购列表 19 | List findAll(); 20 | // 条件查询求购列表 21 | List findByParam(SeekCustom seekCustom,Integer page, Integer pageSize); 22 | // 获取求购信息数量 23 | Long getCount(SeekCustom seekCustom); 24 | // 添加 求购信息 25 | int addSeek(Seek seek); 26 | // 修改求购信息(目前只用到,修改求购信息状态) 27 | int updateSeekState(Integer seekId); 28 | // 删除求购信息 29 | int delSeek(Integer id); 30 | 31 | // 分页查询的求购列表 32 | List findByPage(Integer page,Integer pageSize); 33 | // 关键字搜索求购、分页 34 | List search(String content,Integer page,Integer pageSize); 35 | } 36 | -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/service/SysAdminService.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.service; 2 | 3 | import com.xiaojian.pick.entity.SysAdmin; 4 | 5 | /** 6 | * @author 小贱 7 | * @date 2020/10/12 - 18:53 8 | */ 9 | 10 | public interface SysAdminService { 11 | 12 | // 根据用户名查询 13 | SysAdmin findByUsername(String username); 14 | } 15 | -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/service/TimedTaskService.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.service; 2 | 3 | /** 4 | * @author 小贱 5 | * @date 2020/11/25 - 21:36 6 | */ 7 | public interface TimedTaskService { 8 | void timedDelCommodity(); 9 | void timedDelSeek(); 10 | 11 | void realDelUserMessage(); 12 | void realDelSeek(); 13 | void realDelCommodity(); 14 | void realDelTopic(); 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/service/TopicImgService.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.service; 2 | 3 | import com.xiaojian.pick.entity.CommodityImg; 4 | import com.xiaojian.pick.entity.TopicImg; 5 | 6 | import java.util.List; 7 | 8 | /** 9 | * @author 小贱 10 | * @date 2020/11/22 - 23:00 11 | */ 12 | public interface TopicImgService { 13 | 14 | // 根据帖子 id 查询 15 | List findByTopicId(Integer topicId); 16 | 17 | // 添加帖子图片 18 | int addTopicImg(TopicImg topicImg); 19 | // 删除帖子记录 20 | int deleteByTopicId(List topicId); 21 | 22 | } 23 | -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/service/TopicService.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.service; 2 | 3 | import com.xiaojian.pick.entity.Topic; 4 | import com.xiaojian.pick.page.TopicCustom; 5 | 6 | import java.util.List; 7 | 8 | /** 9 | * @author 小贱 10 | * @date 2020/11/22 - 22:01 11 | */ 12 | public interface TopicService { 13 | // 根据 id 查询帖子 14 | Topic findById(Integer id); 15 | // 根据 用户id 查询其发布的 16 | List findByUserId(Integer userId); 17 | // 查询所有帖子 18 | List findAll(); 19 | // 根据条件(帖子标题 、帖子内容..)查询 帖子列表 20 | List findByParam(TopicCustom topicCustom,Integer page,Integer pageSize); 21 | // 获取所有 帖子数量 22 | Long getCount(TopicCustom topicCustom); 23 | // 添加帖子信息 24 | int addTopic(Topic Topic); 25 | 26 | // 修改帖子状态(0,已删除;1,展示中) 27 | int updateTopicState(Topic topic); 28 | // 修改帖子热门程度(热门程度:1,2,3) 29 | int updateTopicHot(Topic topic); 30 | // 帖子点击量 +1 31 | int addTopicClick(Integer id); 32 | // 帖子评论数 +1 33 | int addTopicComment(Integer id); 34 | // 帖子评论数 -1 35 | int subTopicComment(Integer id); 36 | // 小程序中查看一个用户发布的帖子 37 | List getUserPublish(Topic topic); 38 | // 分页 查询 未删除 的帖子列表 39 | List findByPage(Topic topic,Integer page,Integer pageSize); 40 | // 关键字搜索帖子、分页 41 | List search(String content,Integer page,Integer pageSize); 42 | 43 | // 查询帖子发布时间超过 30 天的帖子列表 44 | List overtimeTopic(); 45 | // 真实删除帖子记录 46 | int realDelTopic(Integer id); 47 | } 48 | -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/service/UserService.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.service; 2 | 3 | import com.xiaojian.pick.entity.User; 4 | import com.xiaojian.pick.page.ReturnData; 5 | 6 | import java.util.List; 7 | import java.util.Map; 8 | 9 | /** 10 | * @author 小贱 11 | * @date 2020/10/12 - 18:43 12 | */ 13 | public interface UserService { 14 | // 用户初次登录 15 | ReturnData loginByCode(String code); 16 | // 根据 id 查询信息 17 | User findById(Integer id); 18 | // 根据条件查询 用户列表 19 | List findByParam(User user,Integer page,Integer pageSize); 20 | // 根据条件查询 用户列表数量 21 | Long getCount(User user); 22 | // 根据 openid 查询用户信息 23 | User findByOpenid(String openid); 24 | // 添加用户信息 25 | int addUser(User user); 26 | // 更新用户信息 27 | int updateUser(User user); 28 | } 29 | -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/service/impl/AttentionServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.service.impl; 2 | 3 | import com.xiaojian.pick.entity.Attention; 4 | import com.xiaojian.pick.mapper.AttentionMapper; 5 | import com.xiaojian.pick.service.AttentionService; 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.stereotype.Service; 8 | 9 | import java.util.List; 10 | 11 | /** 12 | * @author 小贱 13 | * @date 2020/11/23 - 20:51 14 | */ 15 | @Service 16 | public class AttentionServiceImpl implements AttentionService { 17 | 18 | @Autowired 19 | private AttentionMapper attentionMapper; 20 | 21 | @Override 22 | public List findByUserId(Integer userId) { 23 | return attentionMapper.findByUserId(userId); 24 | } 25 | 26 | @Override 27 | public Attention findAttention(Attention attention) { 28 | return attentionMapper.findAttention(attention); 29 | } 30 | 31 | @Override 32 | public int deleteAttention(Integer id) { 33 | return attentionMapper.deleteAttention(id); 34 | } 35 | 36 | @Override 37 | public int cancelAttention(Attention attention) { 38 | return attentionMapper.cancelAttention(attention); 39 | } 40 | 41 | @Override 42 | public int addAttention(Attention attention) { 43 | return attentionMapper.addAttention(attention); 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/service/impl/CategroyServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.service.impl; 2 | 3 | import com.github.pagehelper.PageHelper; 4 | import com.xiaojian.pick.entity.Category; 5 | import com.xiaojian.pick.mapper.CategoryMapper; 6 | import com.xiaojian.pick.service.CategoryService; 7 | import org.springframework.beans.factory.annotation.Autowired; 8 | import org.springframework.stereotype.Service; 9 | 10 | import java.util.List; 11 | 12 | /** 13 | * @author 小贱 14 | * @date 2020/10/14 - 18:20 15 | */ 16 | @Service 17 | public class CategroyServiceImpl implements CategoryService { 18 | @Autowired 19 | private CategoryMapper categoryMapper; 20 | 21 | 22 | @Override 23 | public Category findById(Integer id) { 24 | return categoryMapper.findById(id); 25 | } 26 | 27 | @Override 28 | public List findByPage(Integer page,Integer pageSize) { 29 | if(page != null && pageSize != null){ 30 | PageHelper.startPage(page,pageSize); 31 | } 32 | 33 | return categoryMapper.findAll(); 34 | } 35 | 36 | @Override 37 | public List findAll() { 38 | return categoryMapper.findAll(); 39 | } 40 | 41 | @Override 42 | public Long getCount() { 43 | return categoryMapper.getCount(); 44 | } 45 | 46 | @Override 47 | public int addCategory(Category category) { 48 | return categoryMapper.addCategory(category); 49 | } 50 | 51 | @Override 52 | public int updateCategory(Category category) { 53 | return categoryMapper.updateCategory(category); 54 | } 55 | 56 | @Override 57 | public int deleteCategory(Integer id) { 58 | return categoryMapper.deleteCategory(id); 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/service/impl/CollectServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.service.impl; 2 | 3 | import com.xiaojian.pick.entity.Collect; 4 | import com.xiaojian.pick.mapper.CollectMapper; 5 | import com.xiaojian.pick.service.CollectService; 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.stereotype.Service; 8 | 9 | import java.util.List; 10 | 11 | /** 12 | * @author 小贱 13 | * @date 2020/11/5 - 17:47 14 | */ 15 | @Service 16 | public class CollectServiceImpl implements CollectService { 17 | 18 | @Autowired 19 | private CollectMapper collectMapper; 20 | 21 | @Override 22 | public List findByUserId(Integer userId) { 23 | return collectMapper.findByUserId(userId); 24 | } 25 | 26 | @Override 27 | public Collect findCollect(Collect collect) { 28 | return collectMapper.findCollect(collect); 29 | } 30 | 31 | @Override 32 | public int deleteCollect(Integer id) { 33 | return collectMapper.deleteCollect(id); 34 | } 35 | 36 | @Override 37 | public int cancelCollect(Collect collect) { 38 | return collectMapper.cancelCollect(collect); 39 | } 40 | 41 | @Override 42 | public int addCollect(Collect collect) { 43 | return collectMapper.addCollect(collect); 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/service/impl/CommentServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.service.impl; 2 | 3 | import com.github.pagehelper.PageHelper; 4 | import com.xiaojian.pick.entity.Comment; 5 | import com.xiaojian.pick.mapper.CommentMapper; 6 | import com.xiaojian.pick.service.CommentService; 7 | import org.springframework.beans.factory.annotation.Autowired; 8 | import org.springframework.stereotype.Service; 9 | 10 | import java.util.List; 11 | 12 | /** 13 | * @author 小贱 14 | * @date 2020/11/23 - 1:47 15 | */ 16 | @Service 17 | public class CommentServiceImpl implements CommentService { 18 | 19 | @Autowired 20 | private CommentMapper commentMapper; 21 | 22 | @Override 23 | public List findByTopicId(Integer topicId) { 24 | return commentMapper.findByTopicId(topicId); 25 | } 26 | 27 | @Override 28 | public List findByPage(Integer topicId, Integer page, Integer pageSize) { 29 | 30 | PageHelper.startPage(page,pageSize); 31 | return commentMapper.findByTopicId(topicId); 32 | } 33 | 34 | @Override 35 | public int addComment(Comment comment) { 36 | return commentMapper.addComment(comment); 37 | } 38 | 39 | @Override 40 | public int updateCommentState(Comment comment) { 41 | return commentMapper.updateCommentState(comment); 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/service/impl/CommodityImgServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.service.impl; 2 | 3 | import com.xiaojian.pick.entity.CommodityImg; 4 | import com.xiaojian.pick.mapper.CommodityImgMapper; 5 | import com.xiaojian.pick.service.CommodityImgService; 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.stereotype.Service; 8 | 9 | import java.util.List; 10 | 11 | /** 12 | * @author 小贱 13 | * @date 2020/10/22 - 19:15 14 | */ 15 | @Service 16 | public class CommodityImgServiceImpl implements CommodityImgService { 17 | 18 | @Autowired 19 | private CommodityImgMapper commodityImgMapper; 20 | 21 | 22 | @Override 23 | public List findByCommodityId(Integer id) { 24 | return commodityImgMapper.findByCommodityId(id); 25 | } 26 | 27 | @Override 28 | public List getSwiperList() { 29 | return commodityImgMapper.getSwiperList(); 30 | } 31 | 32 | @Override 33 | public int add(CommodityImg commodityImg) { 34 | return commodityImgMapper.add(commodityImg); 35 | } 36 | 37 | @Override 38 | public int deleteByCommodityId(List commodityIds) { 39 | return commodityImgMapper.deleteByCommodityId(commodityIds); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/service/impl/CommodityServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.service.impl; 2 | 3 | import com.github.pagehelper.PageHelper; 4 | import com.xiaojian.pick.entity.Category; 5 | import com.xiaojian.pick.entity.Commodity; 6 | import com.xiaojian.pick.entity.CommodityImg; 7 | import com.xiaojian.pick.mapper.CommodityMapper; 8 | import com.xiaojian.pick.page.CommodityCustom; 9 | import com.xiaojian.pick.service.CommodityService; 10 | import org.springframework.beans.factory.annotation.Autowired; 11 | import org.springframework.stereotype.Service; 12 | 13 | import javax.sound.midi.Soundbank; 14 | import java.util.List; 15 | 16 | /** 17 | * @author 小贱 18 | * @date 2020/10/13 - 16:38 19 | */ 20 | @Service 21 | public class CommodityServiceImpl implements CommodityService { 22 | 23 | @Autowired 24 | private CommodityMapper commodityMapper; 25 | 26 | 27 | @Override 28 | public Commodity findById(Integer id) { 29 | return commodityMapper.findById(id); 30 | } 31 | 32 | @Override 33 | public List findByUserId(Integer id) { 34 | return commodityMapper.findByUserId(id); 35 | } 36 | 37 | @Override 38 | public List findByCategoryId(Integer id) { 39 | return commodityMapper.findByCategoryId(id); 40 | } 41 | 42 | @Override 43 | public List findAll() { 44 | return commodityMapper.findAll(); 45 | } 46 | 47 | @Override 48 | public List findByParam(CommodityCustom commodityCustom, Integer page, Integer pageSize) { 49 | if(page != null && pageSize != null){ 50 | PageHelper.startPage(page,pageSize); 51 | } 52 | return commodityMapper.findByParam(commodityCustom); 53 | } 54 | 55 | @Override 56 | public Long getCount(CommodityCustom commodityCustom) { 57 | return commodityMapper.getCount(commodityCustom); 58 | } 59 | 60 | @Override 61 | public int addCommodity(Commodity commodity) { 62 | return commodityMapper.addCommodity(commodity); 63 | } 64 | 65 | // @Override 66 | // public Commodity getCommodityImgList(String id) { 67 | // return commodityMapper.getCommodityImgList(id); 68 | // } 69 | 70 | @Override 71 | public int deleteByid(Integer id) { 72 | return commodityMapper.deleteByid(id); 73 | } 74 | 75 | @Override 76 | public int realDelCommodity(Integer id) { 77 | return commodityMapper.realDelCommodity(id); 78 | } 79 | 80 | @Override 81 | public int updateCoverImgOfCommodity(Commodity commodity) { 82 | return commodityMapper.updateCoverImgOfCommodity(commodity); 83 | } 84 | 85 | @Override 86 | public int updateCommodityState(Integer state, Integer id) { 87 | return commodityMapper.updateCommodityState(state,id); 88 | } 89 | 90 | @Override 91 | public int addCommodityClick(Integer id) { 92 | return commodityMapper.addCommodityClick(id); 93 | } 94 | 95 | @Override 96 | public List getUserPublish(Commodity commodity) { 97 | return commodityMapper.getUserPublish(commodity); 98 | } 99 | 100 | @Override 101 | public List getSwiperCommodity() { 102 | return commodityMapper.getSwiperCommodity(); 103 | } 104 | 105 | @Override 106 | public List findByPage(Commodity commodity,Integer page,Integer pageSize) { 107 | PageHelper.startPage(page,pageSize); 108 | 109 | return commodityMapper.findByPage(commodity); 110 | } 111 | 112 | @Override 113 | public List search(String content,Integer page,Integer pageSize) { 114 | 115 | PageHelper.startPage(page,pageSize); 116 | return commodityMapper.search(content); 117 | } 118 | 119 | } 120 | -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/service/impl/InfromServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.service.impl; 2 | 3 | import com.github.pagehelper.PageHelper; 4 | import com.xiaojian.pick.entity.Inform; 5 | import com.xiaojian.pick.mapper.InformMapper; 6 | import com.xiaojian.pick.service.InformService; 7 | import org.springframework.beans.factory.annotation.Autowired; 8 | import org.springframework.stereotype.Service; 9 | 10 | import java.util.List; 11 | 12 | /** 13 | * @author 小贱 14 | * @date 2020/10/25 - 17:11 15 | */ 16 | @Service 17 | public class InfromServiceImpl implements InformService { 18 | 19 | @Autowired 20 | private InformMapper informMapper; 21 | 22 | @Override 23 | public Inform findById(Integer id) { 24 | return informMapper.findById(id); 25 | } 26 | 27 | @Override 28 | public List findAll() { 29 | return informMapper.findAll(); 30 | } 31 | 32 | @Override 33 | public List findByParam(Inform inform,Integer page,Integer pageSize) { 34 | 35 | if(page != null && pageSize != null){ 36 | PageHelper.startPage(page,pageSize); 37 | } 38 | 39 | return informMapper.findByParam(inform); 40 | } 41 | 42 | @Override 43 | public Long getCount(Inform inform) { 44 | return informMapper.getCount(inform); 45 | } 46 | 47 | @Override 48 | public int updateInform(Integer id) { 49 | return informMapper.updateInform(id); 50 | } 51 | 52 | @Override 53 | public int addInform(Inform inform) { 54 | return informMapper.addInform(inform); 55 | } 56 | 57 | @Override 58 | public int delInform(Inform inform) { 59 | return informMapper.delInform(inform); 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/service/impl/MessageServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.service.impl; 2 | 3 | import com.xiaojian.pick.entity.Message; 4 | import com.xiaojian.pick.mapper.MessageMapper; 5 | import com.xiaojian.pick.service.MessageService; 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.stereotype.Service; 8 | 9 | import java.util.List; 10 | 11 | /** 12 | * @author 小贱 13 | * @date 2020/11/6 - 18:44 14 | */ 15 | @Service 16 | public class MessageServiceImpl implements MessageService { 17 | 18 | @Autowired 19 | private MessageMapper messageMapper; 20 | 21 | @Override 22 | public List findAll() { 23 | return messageMapper.findAll(); 24 | } 25 | 26 | @Override 27 | public List findByParam(Message message) { 28 | return messageMapper.findByParam(message); 29 | } 30 | 31 | @Override 32 | public List findByUserId(Integer userId) { 33 | return messageMapper.findByUserId(userId); 34 | } 35 | 36 | @Override 37 | public Long getCountByUserId(Integer userId) { 38 | return messageMapper.getCountByUserId(userId); 39 | } 40 | 41 | @Override 42 | public int publishMsg(Message message) { 43 | return messageMapper.publishMsg(message); 44 | } 45 | 46 | @Override 47 | public int updateMsgState(Message message) { 48 | return messageMapper.updateMsgState(message); 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/service/impl/SeekServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.service.impl; 2 | 3 | import com.github.pagehelper.PageHelper; 4 | import com.xiaojian.pick.entity.Seek; 5 | import com.xiaojian.pick.mapper.SeekMapper; 6 | import com.xiaojian.pick.page.SeekCustom; 7 | import com.xiaojian.pick.service.SeekService; 8 | import org.springframework.beans.factory.annotation.Autowired; 9 | import org.springframework.stereotype.Service; 10 | 11 | import java.util.List; 12 | 13 | /** 14 | * @author 小贱 15 | * @date 2020/10/24 - 17:01 16 | */ 17 | @Service 18 | public class SeekServiceImpl implements SeekService { 19 | 20 | @Autowired 21 | private SeekMapper seekMapper; 22 | 23 | @Override 24 | public Seek findById(Integer id) { 25 | return seekMapper.findById(id); 26 | } 27 | 28 | @Override 29 | public List findByUserId(Integer userId) { 30 | return seekMapper.findByUserId(userId); 31 | } 32 | 33 | @Override 34 | public List findAll() { 35 | return seekMapper.findAll(); 36 | } 37 | 38 | @Override 39 | public List findByParam(SeekCustom seekCustom, Integer page, Integer pageSize) { 40 | if(page != null && pageSize != null){ 41 | PageHelper.startPage(page,pageSize); 42 | } 43 | List seekList = seekMapper.findByParam(seekCustom); 44 | return seekList; 45 | } 46 | 47 | @Override 48 | public Long getCount(SeekCustom seekCustom) { 49 | 50 | return seekMapper.getCount(seekCustom); 51 | } 52 | 53 | @Override 54 | public int addSeek(Seek seek) { 55 | return seekMapper.addSeek(seek); 56 | } 57 | 58 | @Override 59 | public int updateSeekState(Integer seekId) { 60 | return seekMapper.updateSeekState(seekId); 61 | } 62 | 63 | @Override 64 | public int delSeek(Integer id) { 65 | return seekMapper.delSeek(id); 66 | } 67 | 68 | @Override 69 | public List findByPage(Integer page, Integer pageSize) { 70 | PageHelper.startPage(page,pageSize); 71 | 72 | return seekMapper.findAll(); 73 | } 74 | 75 | @Override 76 | public List search(String content,Integer page,Integer pageSize) { 77 | 78 | PageHelper.startPage(page,pageSize); 79 | return seekMapper.search(content); 80 | } 81 | } 82 | -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/service/impl/SysAdminServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.service.impl; 2 | 3 | import com.xiaojian.pick.entity.SysAdmin; 4 | import com.xiaojian.pick.mapper.SysAdminMapper; 5 | import com.xiaojian.pick.service.SysAdminService; 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.stereotype.Service; 8 | 9 | /** 10 | * @author 小贱 11 | * @date 2020/10/12 - 18:53 12 | */ 13 | @Service 14 | public class SysAdminServiceImpl implements SysAdminService { 15 | 16 | @Autowired 17 | private SysAdminMapper sysAdminMapper; 18 | 19 | @Override 20 | public SysAdmin findByUsername(String username) { 21 | return sysAdminMapper.findByUsername(username); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/service/impl/TopicImgServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.service.impl; 2 | 3 | import com.xiaojian.pick.entity.TopicImg; 4 | import com.xiaojian.pick.mapper.TopicImgMapper; 5 | import com.xiaojian.pick.service.TopicImgService; 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.stereotype.Service; 8 | 9 | import java.util.List; 10 | 11 | /** 12 | * @author 小贱 13 | * @date 2020/11/22 - 23:09 14 | */ 15 | @Service 16 | public class TopicImgServiceImpl implements TopicImgService { 17 | 18 | @Autowired 19 | private TopicImgMapper topicImgMapper; 20 | 21 | 22 | @Override 23 | public List findByTopicId(Integer topicId) { 24 | return topicImgMapper.findByTopicId(topicId); 25 | } 26 | 27 | @Override 28 | public int addTopicImg(TopicImg topicImg) { 29 | return topicImgMapper.addTopicImg(topicImg); 30 | } 31 | 32 | @Override 33 | public int deleteByTopicId(List topicIds) { 34 | return topicImgMapper.deleteByTopicId(topicIds); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/service/impl/TopicServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.service.impl; 2 | 3 | import com.github.pagehelper.PageHelper; 4 | import com.xiaojian.pick.entity.Topic; 5 | import com.xiaojian.pick.mapper.TopicMapper; 6 | import com.xiaojian.pick.page.TopicCustom; 7 | import com.xiaojian.pick.service.TopicService; 8 | import org.springframework.beans.factory.annotation.Autowired; 9 | import org.springframework.stereotype.Service; 10 | 11 | import java.util.List; 12 | 13 | /** 14 | * @author 小贱 15 | * @date 2020/11/22 - 22:02 16 | */ 17 | @Service 18 | public class TopicServiceImpl implements TopicService { 19 | 20 | @Autowired 21 | private TopicMapper topicMapper; 22 | 23 | @Override 24 | public Topic findById(Integer id) { 25 | return topicMapper.findById(id); 26 | } 27 | 28 | @Override 29 | public List findByUserId(Integer userId) { 30 | return topicMapper.findByUserId(userId); 31 | } 32 | 33 | @Override 34 | public List findAll() { 35 | return topicMapper.findAll(); 36 | } 37 | 38 | @Override 39 | public List findByParam(TopicCustom topicCustom,Integer page,Integer pageSize) { 40 | PageHelper.startPage(page,pageSize); 41 | 42 | return topicMapper.findByParam(topicCustom); 43 | } 44 | 45 | @Override 46 | public Long getCount(TopicCustom topicCustom) { 47 | return topicMapper.getCount(topicCustom); 48 | } 49 | 50 | @Override 51 | public int addTopic(Topic topic) { 52 | return topicMapper.addTopic(topic); 53 | } 54 | 55 | @Override 56 | public int updateTopicState(Topic topic) { 57 | return topicMapper.updateTopicState(topic); 58 | } 59 | 60 | @Override 61 | public int updateTopicHot(Topic topic) { 62 | return topicMapper.updateTopicHot(topic); 63 | } 64 | 65 | @Override 66 | public int addTopicClick(Integer id) { 67 | return topicMapper.addTopicClick(id); 68 | } 69 | 70 | @Override 71 | public int addTopicComment(Integer id) { 72 | return topicMapper.addTopicComment(id); 73 | } 74 | 75 | @Override 76 | public int subTopicComment(Integer id) { 77 | return topicMapper.subTopicComment(id); 78 | } 79 | 80 | @Override 81 | public List getUserPublish(Topic topic) { 82 | return topicMapper.getUserPublish(topic); 83 | } 84 | 85 | @Override 86 | public List findByPage(Topic topic, Integer page, Integer pageSize) { 87 | PageHelper.startPage(page,pageSize); 88 | 89 | return topicMapper.findByPage(topic); 90 | } 91 | 92 | @Override 93 | public List search(String content, Integer page, Integer pageSize) { 94 | PageHelper.startPage(page,pageSize); 95 | 96 | return topicMapper.search(content); 97 | } 98 | 99 | @Override 100 | public List overtimeTopic() { 101 | return topicMapper.overtimeTopic(); 102 | } 103 | 104 | @Override 105 | public int realDelTopic(Integer id) { 106 | return topicMapper.realDelTopic(id); 107 | } 108 | } 109 | -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/service/impl/UserServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.service.impl; 2 | 3 | import com.github.pagehelper.PageHelper; 4 | import com.xiaojian.pick.entity.User; 5 | import com.xiaojian.pick.mapper.UserMapper; 6 | import com.xiaojian.pick.page.ReturnData; 7 | import com.xiaojian.pick.service.UserService; 8 | import com.xiaojian.pick.util.JwtUtil; 9 | import com.xiaojian.pick.util.wechat.WxLoginUtil; 10 | import org.springframework.beans.factory.annotation.Autowired; 11 | import org.springframework.stereotype.Service; 12 | 13 | import java.util.Date; 14 | import java.util.HashMap; 15 | import java.util.List; 16 | import java.util.Map; 17 | 18 | /** 19 | * @author 小贱 20 | * @date 2020/10/12 - 18:43 21 | */ 22 | @Service 23 | public class UserServiceImpl implements UserService { 24 | 25 | @Autowired 26 | private UserMapper userMapper; 27 | 28 | 29 | @Override 30 | public ReturnData loginByCode(String code) { 31 | ReturnData result = null; 32 | 33 | ReturnData returnData = WxLoginUtil.getOpenid(code); 34 | // 获取登录用户 35 | User user = returnData.getUser(); 36 | System.out.println("=======user=====" + user); 37 | // 判断数据库是否有该用户,没有则添加该用户(注册) 38 | User dbUser = userMapper.findByOpenid(user.getOpenid()); 39 | System.out.println("======dbUser=====" + dbUser); 40 | if(dbUser == null){ 41 | // 添加该用户 42 | user.setHaveUserInfo("0"); 43 | user.setCreateTime(new Date()); 44 | int count = userMapper.addUser(user); 45 | if(count < 0){ 46 | result = new ReturnData(false,"用户登录失败!"); 47 | return result; 48 | } 49 | Map map = new HashMap<>(); 50 | map.put("userId",user.getId()); 51 | String token = JwtUtil.createToken(map); 52 | 53 | result = new ReturnData(true,"添加了该用户",User.NOT_USER_INFO,user); 54 | result.setToken(token); 55 | 56 | } else if(User.NOT_USER_INFO.equals(dbUser.getHaveUserInfo())){ 57 | Map map = new HashMap<>(); 58 | map.put("userId",user.getId()); 59 | String token = JwtUtil.createToken(map); 60 | result = new ReturnData(true,"已存在该用户,但用户信息不完整!",User.NOT_USER_INFO,dbUser); 61 | result.setToken(token); 62 | } else{ 63 | Map map = new HashMap<>(); 64 | map.put("userId",user.getId()); 65 | String token = JwtUtil.createToken(map); 66 | result = new ReturnData(true,"已存在该用户,且用户信息部分完整!",User.HAVE_USER_INFO,dbUser); 67 | result.setToken(token); 68 | } 69 | // if(dbUser != null){ 70 | // if(dbUser.getNickName() != null && dbUser.getAvatarUrl() != null){ 71 | // if(!user.getNickName().equals(dbUser.getNickName()) || !user.getAvatarUrl().equals(dbUser.getAvatarUrl())){ 72 | // // 更新用户信息 73 | // userMapper.updateUser(user); 74 | // } 75 | // } 76 | // } 77 | return result; 78 | } 79 | 80 | @Override 81 | public User findById(Integer id) { 82 | return userMapper.findById(id); 83 | } 84 | 85 | @Override 86 | public List findByParam(User user,Integer page,Integer pageSize) { 87 | PageHelper.startPage(page,pageSize); 88 | return userMapper.findByParam(user); 89 | } 90 | 91 | @Override 92 | public Long getCount(User user) { 93 | return userMapper.getCount(user); 94 | } 95 | 96 | @Override 97 | public User findByOpenid(String openid) { 98 | return userMapper.findByOpenid(openid); 99 | } 100 | 101 | @Override 102 | public int addUser(User user) { 103 | return userMapper.addUser(user); 104 | } 105 | 106 | @Override 107 | public int updateUser(User user) { 108 | return userMapper.updateUser(user); 109 | } 110 | } 111 | -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/shiro/MyRealm.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.shiro; 2 | 3 | import com.xiaojian.pick.entity.SysAdmin; 4 | import com.xiaojian.pick.service.SysAdminService; 5 | import org.apache.shiro.authc.*; 6 | import org.apache.shiro.authz.AuthorizationInfo; 7 | import org.apache.shiro.realm.AuthorizingRealm; 8 | import org.apache.shiro.subject.PrincipalCollection; 9 | import org.springframework.beans.factory.annotation.Autowired; 10 | 11 | /** 12 | * 自定义 Realm 13 | */ 14 | public class MyRealm extends AuthorizingRealm { 15 | 16 | @Autowired 17 | private SysAdminService sysAdminService; 18 | 19 | /** 20 | * 执行授权逻辑 21 | */ 22 | @Override 23 | protected AuthorizationInfo doGetAuthorizationInfo(PrincipalCollection principalCollection) { 24 | return null; 25 | } 26 | /** 27 | * 执行认证逻辑 28 | */ 29 | @Override 30 | protected AuthenticationInfo doGetAuthenticationInfo(AuthenticationToken authenticationToken) throws AuthenticationException { 31 | 32 | // 1、获取包含用户名 和 密码的 Token 33 | UsernamePasswordToken token = (UsernamePasswordToken)authenticationToken; 34 | // 2、查询用户名是否存在 35 | SysAdmin user = sysAdminService.findByUsername(token.getUsername()); 36 | // 3、如果用户存在 37 | if(user != null){ 38 | // 2. 判断密码,返回 AuthenticationInfo 子类 39 | // 第一个参数为 用户名 40 | // 第二个,password 为正确密码 41 | // 第三个,当前realm的名字,可通过父类getName()获得 42 | return new SimpleAuthenticationInfo(user.getUsername(),user.getPassword(),getName()); 43 | } else{ 44 | return null; 45 | } 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/task/TimedTask.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.task; 2 | 3 | import org.springframework.stereotype.Component; 4 | 5 | /** 6 | * @author 小贱 7 | * @date 2020/11/17 - 8:25 8 | */ 9 | @Component 10 | public class TimedTask { 11 | 12 | 13 | } 14 | -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/util/Consts.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.util; 2 | 3 | /** 4 | * @author 小贱 5 | * @date 2020/10/12 - 19:13 6 | * 常量类 7 | */ 8 | public class Consts { 9 | 10 | public static final String CURRENT_USER = "currentUser"; 11 | 12 | // 发送消息 13 | // 商品 14 | public static final String MSG_TITLE_UNDER = "商品下架提醒"; 15 | public static final String MSG_CONTENT_UNDER = "已被举报,经管理员审查,我们已将该商品下架!"; 16 | public static final String MSG_CONTENT_OVERTIME = "30天已到期!现已将该商品下架!"; 17 | // 求购信息 18 | public static final String MSG_SEEK_TITLE_DEL = "求购信息删除提醒"; 19 | public static final String MSG_SEEK_CONTENT_DEL = "已被举报,经管理员审查,我们已将该求购信息删除!"; 20 | public static final String MSG_SEEK_CONTENT_OVERTIME = "30天已到期!现已将该求购信息删除!"; 21 | // 论坛帖子 22 | public static final String MSG_TOPIC_TITLE_DEL = "论坛帖子删除提醒"; 23 | public static final String MSG_TOPIC_CONTENT_DEL = "已被举报,经管理员审查,我们已将该帖子信息删除!"; 24 | 25 | 26 | // 帖子热门所需条件 27 | // 热门 1 28 | public static final Integer TOPIC_CLICK_HOT_1 = 100; 29 | public static final Integer TOPIC_COMMENT_HOT_1 = 30; 30 | // 热门 2 31 | public static final Integer TOPIC_CLICK_HOT_2 = 200; 32 | public static final Integer TOPIC_COMMENT_HOT_2 = 50; 33 | // 热门 3 34 | public static final Integer TOPIC_CLICK_HOT_3 = 300; 35 | public static final Integer TOPIC_COMMENT_HOT_3 = 100; 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/util/CryptographyUtil.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.util; 2 | 3 | import org.apache.shiro.crypto.hash.Md2Hash; 4 | import org.apache.shiro.crypto.hash.Md5Hash; 5 | 6 | /** 7 | * 加密工具类 8 | */ 9 | public class CryptographyUtil { 10 | 11 | public final static String SALT = "pick"; 12 | 13 | /** 14 | * MD 5 加密 15 | */ 16 | public static String md5(String str,String salt){ 17 | return new Md5Hash(str,salt).toString(); 18 | } 19 | 20 | public static void main(String[] args) { 21 | String password = "qweqwe"; 22 | System.out.println(md5(password,SALT)); 23 | } 24 | 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/util/HttpRequest.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.util; 2 | 3 | import com.xiaojian.pick.util.wechat.WxConsts; 4 | 5 | import java.io.BufferedReader; 6 | import java.io.IOException; 7 | import java.io.InputStreamReader; 8 | import java.io.PrintWriter; 9 | import java.net.URL; 10 | import java.net.URLConnection; 11 | import java.util.List; 12 | import java.util.Map; 13 | 14 | /** 15 | * @author 小贱 16 | * @date 2020/11/1 - 21:51 17 | */ 18 | public class HttpRequest { 19 | /** 20 | * 向指定 URL 发送 GET 请求 21 | * @param url 22 | * @param param 23 | * @return 24 | */ 25 | public static String sendGet(String url,String param){ 26 | String result = ""; 27 | BufferedReader in = null; 28 | try { 29 | String urlNameString = url + "?" + param; 30 | URL realUrl = new URL(urlNameString); 31 | // 打开和URL之间的连接 32 | URLConnection connection = realUrl.openConnection(); 33 | // 设置通用的请求属性 34 | connection.setRequestProperty("accept", "*/*"); 35 | connection.setRequestProperty("connection", "Keep-Alive"); 36 | connection.setRequestProperty("user-agent", 37 | "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;SV1)"); 38 | // 建立实际的连接 39 | connection.connect(); 40 | // 获取所有响应头字段 41 | Map> map = connection.getHeaderFields(); 42 | // 遍历所有的响应头字段 43 | for (String key : map.keySet()) { 44 | System.out.println(key + "--->" + map.get(key)); 45 | } 46 | // 定义 BufferedReader输入流来读取URL的响应 47 | in = new BufferedReader(new InputStreamReader( 48 | connection.getInputStream())); 49 | String line; 50 | while ((line = in.readLine()) != null) { 51 | result += line; 52 | } 53 | } catch (Exception e) { 54 | System.out.println("发送GET请求出现异常!" + e); 55 | e.printStackTrace(); 56 | } 57 | // 使用finally块来关闭输入流 58 | finally { 59 | try { 60 | if (in != null) { 61 | in.close(); 62 | } 63 | } catch (Exception e2) { 64 | e2.printStackTrace(); 65 | } 66 | } 67 | return result; 68 | } 69 | 70 | /** 71 | * POST 请求 72 | * @param url 73 | * @param param 74 | * @return 75 | */ 76 | public static String sendPost(String url, String param) { 77 | PrintWriter out = null; 78 | BufferedReader in = null; 79 | String result = ""; 80 | try { 81 | URL realUrl = new URL(url); 82 | // 打开和URL之间的连接 83 | URLConnection conn = realUrl.openConnection(); 84 | // 设置通用的请求属性 85 | conn.setRequestProperty("accept", "*/*"); 86 | conn.setRequestProperty("connection", "Keep-Alive"); 87 | conn.setRequestProperty("user-agent", 88 | "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;SV1)"); 89 | // 发送POST请求必须设置如下两行 90 | conn.setDoOutput(true); 91 | conn.setDoInput(true); 92 | // 获取URLConnection对象对应的输出流 93 | out = new PrintWriter(conn.getOutputStream()); 94 | // 发送请求参数 95 | out.print(param); 96 | // flush输出流的缓冲 97 | out.flush(); 98 | // 定义BufferedReader输入流来读取URL的响应 99 | in = new BufferedReader( 100 | new InputStreamReader(conn.getInputStream())); 101 | String line; 102 | while ((line = in.readLine()) != null) { 103 | result += line; 104 | } 105 | } catch (Exception e) { 106 | System.out.println("发送 POST 请求出现异常!"+e); 107 | e.printStackTrace(); 108 | } 109 | //使用finally块来关闭输出流、输入流 110 | finally{ 111 | try{ 112 | if(out != null){ 113 | out.close(); 114 | } 115 | if(in != null){ 116 | in.close(); 117 | } 118 | } 119 | catch(IOException ex){ 120 | ex.printStackTrace(); 121 | } 122 | } 123 | return result; 124 | } 125 | } 126 | -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/util/JwtUtil.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.util; 2 | 3 | import com.nimbusds.jose.*; 4 | import com.nimbusds.jose.crypto.MACSigner; 5 | import com.nimbusds.jwt.JWTClaimsSet; 6 | import com.nimbusds.jwt.SignedJWT; 7 | import net.minidev.json.JSONObject; 8 | 9 | import java.util.Map; 10 | 11 | /** 12 | * @author 小贱 13 | * @date 2020/11/2 - 14:46 14 | */ 15 | public class JwtUtil { 16 | /** 17 | * 创建一个 32 位 的秘钥 18 | */ 19 | private static final byte[] SECRET = "6MNSobBRCHGIO0fS6MNSobBRCHGIO0fS".getBytes(); 20 | 21 | /** 22 | * 生成一个 token 23 | * @param payloadMap 24 | * @return 25 | */ 26 | public static String createToken(Map payloadMap){ 27 | 28 | String token = ""; 29 | try { 30 | // 创建密匙 31 | MACSigner macSigner = new MACSigner(SECRET); 32 | // 建立一个 载荷 33 | Payload payload = new Payload(new JSONObject(payloadMap)); 34 | // 建立签名 35 | JWSObject jwsObject = new JWSObject(new JWSHeader(JWSAlgorithm.HS256),payload); 36 | jwsObject.sign(macSigner); 37 | 38 | token = jwsObject.serialize(); 39 | } catch (JOSEException e) { 40 | e.printStackTrace(); 41 | } 42 | 43 | return token; 44 | } 45 | 46 | } 47 | -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/util/StringUtil.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.util; 2 | 3 | import java.text.SimpleDateFormat; 4 | import java.util.Date; 5 | import java.util.Random; 6 | 7 | /** 8 | * @author 小贱 9 | * @date 2020/9/16 - 19:18 10 | * 字符串修饰工具 11 | */ 12 | public class StringUtil { 13 | 14 | /** 15 | * 判断字符串是否为空 16 | */ 17 | public static boolean isEmpty(String str){ 18 | if(str == null || str.trim().equals("")){ 19 | return true; 20 | } 21 | return false; 22 | } 23 | 24 | /** 25 | * 判断字符串是否不为空 26 | */ 27 | public static boolean isNotEmpty(String str){ 28 | if(str != null && !str.trim().equals("")){ 29 | return true; 30 | } 31 | return false; 32 | } 33 | /** 34 | * 生成 6 位随机数 35 | */ 36 | public static String getSixRandom(){ 37 | Random random = new Random(); 38 | String result = ""; 39 | for(int i = 0; i < 6; i++){ 40 | result += random.nextInt(10); 41 | } 42 | return result; 43 | } 44 | 45 | /** 46 | * 返回当前日期,无格式 47 | */ 48 | public static String getDateForm(){ 49 | Date date = new Date(); 50 | SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMdd"); 51 | return dateFormat.format(date); 52 | } 53 | /** 54 | * 返回 55 | */ 56 | 57 | } 58 | -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/util/UUIDSerial.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.util; 2 | 3 | import java.util.UUID; 4 | 5 | /** 6 | * @author 小贱 7 | * @date 2020/10/14 - 16:45 8 | */ 9 | public class UUIDSerial { 10 | 11 | public static String getSerial(){ 12 | return UUID.randomUUID().toString(); 13 | } 14 | 15 | public static void main(String[] args) { 16 | System.out.println(getSerial()); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/util/wechat/WxConsts.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.util.wechat; 2 | 3 | /** 4 | * @author 小贱 5 | * @date 2020/11/1 - 22:02 6 | */ 7 | public class WxConsts { 8 | 9 | // 修改成自己小程序的 appid 10 | public static final String WX_APPID = ""; 11 | // 修改成自己小程序的 appsecret 12 | public static final String WX_APPSECRET = ""; 13 | 14 | public static final String GRANT_TYPE_AUTHORIZATION_CODE = "authorization_code"; 15 | 16 | public static final String GRANT_TYPE_ACCESS_TOKEN = "access_token"; 17 | 18 | public static final String GET_SESSION_BY_CODE = "https://api.weixin.qq.com/sns/jscode2session"; 19 | 20 | public static final String GET_ACCESS_TOKEN = "https://api.weixin.qq.com/cgi-bin/token"; 21 | } 22 | -------------------------------------------------------------------------------- /src/main/java/com/xiaojian/pick/util/wechat/WxLoginUtil.java: -------------------------------------------------------------------------------- 1 | package com.xiaojian.pick.util.wechat; 2 | import com.alibaba.fastjson.JSON; 3 | import com.alibaba.fastjson.JSONObject; 4 | import com.xiaojian.pick.entity.User; 5 | import com.xiaojian.pick.page.ReturnData; 6 | import com.xiaojian.pick.util.HttpRequest; 7 | 8 | /** 9 | * @author 小贱 10 | * @date 2020/11/1 - 21:53 11 | */ 12 | public class WxLoginUtil { 13 | 14 | // 获取微信登录用户的openid 15 | public static ReturnData getOpenid(String code){ 16 | ReturnData returnData = null; 17 | 18 | // 设置访问微信服务器的参数 19 | String params = "appid=" + WxConsts.WX_APPID 20 | + "&secret=" + WxConsts.WX_APPSECRET 21 | + "&js_code=" + code 22 | + "&grant_type=" + WxConsts.GRANT_TYPE_AUTHORIZATION_CODE; 23 | // 返回的数据是 json 格式的字符串 24 | String result = HttpRequest.sendGet(WxConsts.GET_SESSION_BY_CODE,params); 25 | // 解析返回数据 26 | JSONObject jsonObject = JSON.parseObject(result); 27 | if(jsonObject == null){ 28 | returnData = new ReturnData(false,"微信 api 调用失败,请重试!"); 29 | } 30 | // 如果解析结果为错误信息 31 | Integer errcode = (Integer) jsonObject.get("errcode"); 32 | String errmsg = (String) jsonObject.get("errmsg"); 33 | if(errcode != null && errmsg != null){ 34 | returnData = new ReturnData(false,errmsg); 35 | } 36 | // openid 37 | String openid = (String) jsonObject.get("openid"); 38 | User user = new User(); 39 | user.setOpenid(openid); 40 | returnData = new ReturnData(); 41 | returnData.setUser(user); 42 | 43 | System.out.println("========openid=====" + openid); 44 | System.out.println("========这里返回了微信服务器的响应信息=======" + result); 45 | return returnData; 46 | } 47 | 48 | public static void main(String[] args) { 49 | getOpenid("073OnVkl2iNLT54iEMml2TMXKm0OnVkH"); 50 | } 51 | } 52 | 53 | 54 | 55 | 56 | -------------------------------------------------------------------------------- /src/main/resources/application-dev.yml: -------------------------------------------------------------------------------- 1 | # 开发环境 2 | server: 3 | port: 8080 4 | servlet: 5 | context-path: / 6 | # 数据源配置 7 | spring: 8 | datasource: 9 | # 数据源基本配置 10 | username: root 11 | password: 243600 12 | driver-class-name: com.mysql.cj.jdbc.Driver 13 | url: jdbc:mysql://localhost:3306/pick?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull 14 | # 数据库连接池类型 15 | type: com.alibaba.druid.pool.DruidDataSource 16 | # SpringBoot 2.x 必须加配置,才能自动运行创表语句、sql语句 17 | initialization-mode: always 18 | # 数据源其他配置 19 | initialSize: 5 20 | minIdle: 5 21 | maxActive: 20 22 | maxWait: 60000 23 | timeBetweenEvictionRunsMillis: 60000 24 | minEvictableIdleTimeMillis: 300000 25 | validationQuery: SELECT 1 FROM DUAL 26 | testWhileIdle: true 27 | testOnBorrow: false 28 | testOnReturn: false 29 | poolPreparedStatements: true 30 | # 配置监控统计拦截的filters,去掉后监控界面sql无法统计,stat:监控统计;slf4j:日志;wall:防御sql注入; 31 | filters: stat,wall,slf4j 32 | maxPoolPreparedStatementPerConnectionSize: 20 33 | useGlobalDataSourceStat: true 34 | connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=500 35 | # 配置 druid 的监控,登陆:localhost:8080/druid 36 | druid: 37 | stat-view-servlet: 38 | login-username: admin 39 | login-password: 123 40 | 41 | 42 | # 自定义,图片存放路径 43 | imgFilePath: E:\pick\imgs\ 44 | lucenePath: E:\pick\lucene\ 45 | -------------------------------------------------------------------------------- /src/main/resources/application-prod.yml: -------------------------------------------------------------------------------- 1 | # 生产环境 2 | server: 3 | port: 80 4 | servlet: 5 | context-path: / 6 | # 数据源配置 7 | spring: 8 | datasource: 9 | # 数据源基本配置 10 | username: root 11 | password: "!Qw243600" 12 | driver-class-name: com.mysql.cj.jdbc.Driver 13 | url: jdbc:mysql://localhost:3306/pick?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull 14 | # 数据库连接池类型 15 | type: com.alibaba.druid.pool.DruidDataSource 16 | # SpringBoot 2.x 必须加配置,才能自动运行创表语句、sql语句 17 | initialization-mode: always 18 | # 数据源其他配置 19 | initialSize: 5 20 | minIdle: 5 21 | maxActive: 20 22 | maxWait: 60000 23 | timeBetweenEvictionRunsMillis: 60000 24 | minEvictableIdleTimeMillis: 300000 25 | validationQuery: SELECT 1 FROM DUAL 26 | testWhileIdle: true 27 | testOnBorrow: false 28 | testOnReturn: false 29 | poolPreparedStatements: true 30 | # 配置监控统计拦截的filters,去掉后监控界面sql无法统计,stat:监控统计;slf4j:日志;wall:防御sql注入; 31 | filters: stat,wall,slf4j 32 | maxPoolPreparedStatementPerConnectionSize: 20 33 | useGlobalDataSourceStat: true 34 | connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=500 35 | # 配置 druid 的监控,登陆:localhost:8080/druid 36 | druid: 37 | stat-view-servlet: 38 | login-username: admin 39 | login-password: 123 40 | 41 | 42 | # 自定义,图片存放路径 43 | imgFilePath: /usr/local/pick-project/imgs 44 | lucenePath: /usr/local/pick-project/lucene 45 | -------------------------------------------------------------------------------- /src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | # \u65E5\u5FD7\u914D\u7F6E 2 | logging.level.com.xiaojian.pick = trace 3 | logging.pattern.console=%d{yyyy-MM-dd} [%thread] %-5level %logger{50} - %msg%n 4 | 5 | -------------------------------------------------------------------------------- /src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | 2 | spring: 3 | profiles: 4 | active: dev # 使用dev开发环境配置 5 | redis: # redis 配置 6 | host: 112.124.1.187 7 | port: 6379 8 | password: 2436 9 | lettuce: 10 | pool: 11 | max-active: 10 12 | max-idle: 6 13 | min-idle: 2 14 | max-wait: 1000 15 | shutdown-timeout: 100 16 | 17 | thymeleaf: 18 | cache: false #开启 thymeleaf 缓存 19 | 20 | # mybatis 使用注解配置,开启驼峰命名法 21 | mybatis: 22 | mapper-locations: classpath:mapper/*.xml 23 | type-aliases-package: com.xiaojian.pick.entity 24 | configuration: 25 | map-underscore-to-camel-case: true 26 | # mybatis 分页框架 pagehelper 27 | pagehelper: 28 | helper-dialect: mysql 29 | reasonable: false # 分页合理化:否 30 | support-methods-arguments: true 31 | params: count=countSql 32 | 33 | # 阿里云OSS服务 34 | 35 | -------------------------------------------------------------------------------- /src/main/resources/generatorConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 19 | 20 | 21 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 |
70 |
71 |
-------------------------------------------------------------------------------- /src/main/resources/mapper/AttentionMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 25 | 26 | 27 | 28 | 32 | 33 | 34 | 35 | 36 | delete from attention 37 | where id = #{id} 38 | 39 | 40 | 41 | 42 | 43 | 44 | delete from attention 45 | where user_id = #{user.id} and topic_id = #{topic.id} 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | insert into attention(topic_id, user_id, create_time) 54 | values(#{topic.id},#{user.id},#{createTime}) 55 | 56 | 57 | 58 | 59 | 60 | 61 | delete from attention where topic_id in 62 | 63 | #{id} 64 | 65 | 66 | 67 | 68 | -------------------------------------------------------------------------------- /src/main/resources/mapper/CategoryMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 15 | 16 | 17 | 18 | 21 | 22 | 23 | 26 | 27 | 28 | 29 | 30 | 31 | insert into category(cate_name,cate_icon,sort) 32 | values(#{cateName},#{cateIcon},#{sort}) 33 | 34 | 35 | 36 | 37 | 38 | update category 39 | 40 | 41 | cate_name = #{cateName}, 42 | 43 | 44 | cate_icon = #{cateIcon}, 45 | 46 | 47 | sort = #{sort}, 48 | 49 | 50 | where id = #{id} 51 | 52 | 53 | 54 | 55 | 56 | delete from category where id = #{id} 57 | 58 | 59 | -------------------------------------------------------------------------------- /src/main/resources/mapper/CollectMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 18 | 19 | 23 | 24 | 25 | 28 | 29 | 30 | 31 | 32 | 33 | delete from collect 34 | where id = #{id} 35 | 36 | 37 | 38 | 39 | delete from collect 40 | where commodity_id = #{commodity.id} and user_id = #{user.id} 41 | 42 | 43 | 44 | 45 | 46 | insert into collect(commodity_id,user_id,create_time) 47 | values(#{commodity.id},#{user.id},#{createTime}) 48 | 49 | 50 | 51 | 52 | 53 | delete from collect where commodity_id in 54 | 55 | #{id} 56 | 57 | 58 | 59 | 60 | -------------------------------------------------------------------------------- /src/main/resources/mapper/CommentMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 16 | 17 | 18 | 19 | 20 | 21 | 26 | 27 | 28 | 29 | 30 | 31 | insert into comment(content, topic_id, user_id, publish_date, state) 32 | values(#{content},#{topicId},#{user.id},#{publishDate},#{state}) 33 | 34 | 35 | 36 | 37 | 38 | update comment set state = #{state} where id = #{id} 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | delete from comment where topic_id in 47 | 48 | #{id} 49 | 50 | 51 | 52 | 53 | -------------------------------------------------------------------------------- /src/main/resources/mapper/CommodityImgMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 15 | 16 | 17 | 18 | 19 | 22 | 23 | 24 | 25 | 26 | insert into commodity_img(img_src,commodity_id) 27 | values(#{imgSrc},#{commodityId}) 28 | 29 | 30 | 31 | 32 | 33 | delete from commodity_img where commodity_id in 34 | 35 | #{id} 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /src/main/resources/mapper/MessageMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | title = #{title} 20 | 21 | 22 | and state = #{state} 23 | 24 | 25 | and DATE_FORMAT(create_time,'%Y-%m-%d') = DATE_FORMAT(#{createTime},'%Y-%m-%d') 26 | 27 | 28 | 29 | and user_id = #{user.id} 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 41 | 42 | 43 | 44 | 49 | 50 | 51 | 52 | 56 | 57 | 58 | 61 | 62 | 63 | 64 | 65 | insert into message(title,content,user_id,state,create_time) 66 | values(#{title},#{content},#{user.id},#{state},#{createTime}) 67 | 68 | 69 | 70 | 71 | 72 | update message set state = #{state} where id = #{id} 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | delete from message where state = #{state} 81 | 82 | 83 | 84 | 85 | -------------------------------------------------------------------------------- /src/main/resources/mapper/SeekMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | DATE_FORMAT(publish_date,'%Y-%m-%d') between DATE_FORMAT( #{startTime},'%Y-%m-%d') and DATE_FORMAT( #{endTime},'%Y-%m-%d') 23 | 24 | 25 | and title like #{title} 26 | 27 | 28 | and remark like #{remark} 29 | 30 | 31 | 32 | and user_id = #{user.id} 33 | 34 | 35 | 36 | and DATE_FORMAT(publish_date,'%Y-%m-%d') = DATE_FORMAT(#{publishDate},'%Y-%m-%d') 37 | 38 | 39 | 40 | 41 | 42 | 45 | 46 | 47 | 48 | 52 | 53 | 54 | 55 | 60 | 61 | 62 | 63 | 68 | 69 | 70 | 71 | 72 | 76 | 77 | 78 | 79 | 80 | insert into seek(title,remark,state,min_price,max_price,user_id,publish_date) 81 | values(#{title},#{remark},#{state},#{minPrice},#{maxPrice},#{user.id},#{publishDate}) 82 | 83 | 84 | 86 | 87 | update seek set state = 0 where id = #{id} 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | delete from seek where id = #{id} 96 | 97 | 98 | 100 | 105 | 106 | 107 | 109 | 113 | 114 | 115 | 118 | 119 | 120 | 121 | 122 | delete from seek 123 | where state = #{state} 124 | 125 | 126 | -------------------------------------------------------------------------------- /src/main/resources/mapper/SysAdminMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 15 | -------------------------------------------------------------------------------- /src/main/resources/mapper/TopicImgMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 15 | 16 | 17 | 18 | 19 | insert into topic_img(img_src, topic_id) 20 | values(#{imgSrc},#{topicId}) 21 | 22 | 23 | 24 | 25 | 26 | delete from topic_img where topic_id in 27 | 28 | #{id} 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /src/main/resources/mapper/UserMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | openid = #{openid} 25 | 26 | 27 | and nickName like #{nickName} 28 | 29 | 30 | and qq_num = #{qqNum} 31 | 32 | 33 | and wechat_num = #{qqNum} 34 | 35 | 36 | 37 | 38 | 39 | 40 | 43 | 45 | 50 | 51 | 53 | 57 | 58 | 59 | 60 | 63 | 64 | 65 | 66 | 67 | insert into user(openid, nickName, avatarUrl, gender, country, province, city,create_time, qq_num, wechat_num) 68 | values(#{openid},#{nickName},#{avatarUrl},#{gender},#{country},#{province},#{city},#{createTime},#{qqNum},#{wechatNum}) 69 | 70 | 71 | 72 | 73 | 74 | update user 75 | 76 | 77 | nickName = #{nickName}, 78 | 79 | 80 | avatarUrl = #{avatarUrl}, 81 | 82 | 83 | gender = #{gender}, 84 | 85 | 86 | have_user_info = #{haveUserInfo}, 87 | 88 | 89 | update_time = #{updateTime}, 90 | 91 | 92 | qq_num = #{qqNum}, 93 | 94 | 95 | wechat_num = #{wechatNum}, 96 | 97 | 98 | where openid = #{openid} 99 | 100 | -------------------------------------------------------------------------------- /src/main/resources/mapper/WxAccessTokenMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /src/main/resources/static/css/login.css: -------------------------------------------------------------------------------- 1 | /* 2 | * @Author: xuebingsi 3 | * @Date: 2019-04-01 13:37:17 4 | * @Last Modified by: zhibinm 5 | * @Last Modified time: 2019-04-01 13:37:19 6 | */ 7 | .login-bg{ 8 | background: #eeeeee 0 0 no-repeat; 9 | /* background:url(../images/bg.png) no-repeat center;*/ 10 | background-size: cover; 11 | overflow: hidden; 12 | } 13 | .login{ 14 | margin: 120px auto 0 auto; 15 | min-height: 420px; 16 | max-width: 420px; 17 | padding: 40px; 18 | background-color: #ffffff; 19 | margin-left: auto; 20 | margin-right: auto; 21 | border-radius: 4px; 22 | /* overflow-x: hidden; */ 23 | box-sizing: border-box; 24 | } 25 | .login a.logo{ 26 | display: block; 27 | height: 58px; 28 | width: 167px; 29 | margin: 0 auto 30px auto; 30 | background-size: 167px 42px; 31 | } 32 | .login .message { 33 | margin: 10px 0 0 -58px; 34 | padding: 18px 10px 18px 60px; 35 | background: #189F92; 36 | position: relative; 37 | color: #fff; 38 | font-size: 16px; 39 | } 40 | .login #darkbannerwrap { 41 | background: url(../images/aiwrap.png); 42 | width: 18px; 43 | height: 10px; 44 | margin: 0 0 20px -58px; 45 | position: relative; 46 | } 47 | 48 | .login input[type=text], 49 | .login input[type=file], 50 | .login input[type=password], 51 | .login input[type=email], select { 52 | border: 1px solid #DCDEE0; 53 | vertical-align: middle; 54 | border-radius: 3px; 55 | height: 50px; 56 | padding: 0px 16px; 57 | font-size: 14px; 58 | color: #555555; 59 | outline:none; 60 | width:100%; 61 | box-sizing: border-box; 62 | } 63 | .login input[type=text]:focus, 64 | .login input[type=file]:focus, 65 | .login input[type=password]:focus, 66 | .login input[type=email]:focus, select:focus { 67 | border: 1px solid #27A9E3; 68 | } 69 | .login input[type=submit], 70 | .login input[type=button]{ 71 | display: inline-block; 72 | vertical-align: middle; 73 | padding: 12px 24px; 74 | margin: 0px; 75 | font-size: 18px; 76 | line-height: 24px; 77 | text-align: center; 78 | white-space: nowrap; 79 | vertical-align: middle; 80 | cursor: pointer; 81 | color: #ffffff; 82 | background-color: #189F92; 83 | border-radius: 3px; 84 | border: none; 85 | -webkit-appearance: none; 86 | outline:none; 87 | width:100%; 88 | } 89 | .login hr { 90 | /*background: #fff url() 0 0 no-repeat;*/ 91 | } 92 | .login hr.hr15 { 93 | height: 15px; 94 | border: none; 95 | margin: 0px; 96 | padding: 0px; 97 | width: 100%; 98 | } 99 | .login hr.hr20 { 100 | height: 20px; 101 | border: none; 102 | margin: 0px; 103 | padding: 0px; 104 | width: 100%; 105 | } -------------------------------------------------------------------------------- /src/main/resources/static/css/topic.css: -------------------------------------------------------------------------------- 1 | body{ 2 | background-color: #f4f4f4; 3 | } 4 | .topic_container{ 5 | background-color: #ffffff; 6 | margin-bottom: 25px; 7 | } 8 | .topic_wrap{ 9 | width: 96%; 10 | margin: auto; 11 | } 12 | 13 | .userInfo{ 14 | display: flex; 15 | padding: 12px 10px; 16 | border-bottom: 1px solid #f4f4f4; 17 | } 18 | .user_head_img{ 19 | width: 50px; 20 | height: 50px; 21 | border-radius: 50%; 22 | } 23 | .user_head_img img{ 24 | width: 100%; 25 | height: 100%; 26 | } 27 | .nickName{ 28 | margin-left: 15px; 29 | line-height: 50px; 30 | } 31 | .topic_main{ 32 | margin-top: 15px; 33 | } 34 | .topic_title{ 35 | font-size: 17px; 36 | font-weight: 700; 37 | } 38 | .topic_attention_wrap{ 39 | display: flex; 40 | justify-content: space-between; 41 | margin: 5px 0px; 42 | } 43 | .publish_date{ 44 | color: #ccc; 45 | } 46 | .topic_attention{ 47 | display: inline-block; 48 | color: #fff; 49 | font-size: 14px; 50 | padding: 5px; 51 | background-color: #3ac0fb; 52 | border-radius: 5px; 53 | margin: 5px; 54 | } 55 | .iconhao{ 56 | font-size: 14px; 57 | } 58 | .count_wrap{ 59 | display: flex; 60 | } 61 | .line{ 62 | color: #515151; 63 | margin: auto 12px; 64 | } 65 | .iconfont{ 66 | vertical-align: middle; 67 | } 68 | .iconliulan1{ 69 | color: #cbcbcb; 70 | } 71 | .count_text{ 72 | font-size: 12px; 73 | color: #515151; 74 | } 75 | 76 | 77 | .topic_content{ 78 | font-size: 16px; 79 | margin: 10px auto; 80 | width: 96%; 81 | padding-bottom: 25px; 82 | } 83 | .topic_img_wrap{ 84 | width: 96%; 85 | margin: auto; 86 | padding-bottom: 25px; 87 | } 88 | .topic_img_item{ 89 | width: 100%; 90 | } 91 | .topic_img_item img{ 92 | width: 100%; 93 | margin-bottom: 2px; 94 | } 95 | 96 | /* 评论区 */ 97 | .emptyOfComment{ 98 | padding: 10px; 99 | display: flex; 100 | justify-content: center; 101 | color: #999; 102 | } 103 | .comment_container{ 104 | margin-bottom: 50px; 105 | } 106 | .comment_wrap{ 107 | background-color: #ffffff; 108 | padding: 10px 0px; 109 | } 110 | .comment_head_title{ 111 | border-left: 5px solid #3bc1fb; 112 | padding: 3px 8px; 113 | margin-left: 10px; 114 | } 115 | .comment_line{ 116 | border: 1px solid #f4f4f4; 117 | margin-top: 5px; 118 | } 119 | 120 | .comment_left{ 121 | width: 15%; 122 | } 123 | .comment_right{ 124 | width: 80%; 125 | } 126 | .head_img{ 127 | width: 40px; 128 | height: 40px; 129 | } 130 | .head_img img{ 131 | width: 100%; 132 | height: 100%; 133 | } 134 | .comment_item{ 135 | display: flex; 136 | padding: 10px; 137 | border-bottom: 1px solid #f4f4f4; 138 | } 139 | .comment_head{ 140 | display: flex; 141 | justify-content: space-between; 142 | } 143 | 144 | .comment_nickName{ 145 | color:#515151; 146 | } 147 | .level{ 148 | color: #3bc1fb; 149 | } 150 | 151 | .comment_content{ 152 | margin: 10px auto; 153 | } 154 | .btn_wrap{ 155 | width: 100%; 156 | background-color: white; 157 | border-top: 1px solid #f4f4f4; 158 | position: fixed; 159 | bottom: 0px; 160 | left: 0px; 161 | display: flex; 162 | justify-content: center; 163 | } 164 | .btn_wrap button{ 165 | margin: 10px; 166 | } 167 | 168 | 169 | 170 | -------------------------------------------------------------------------------- /src/main/resources/static/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/favicon.ico -------------------------------------------------------------------------------- /src/main/resources/static/fonts/iconfonts.css: -------------------------------------------------------------------------------- 1 | @font-face {font-family: "iconfont"; 2 | src: url('//at.alicdn.com/t/font_2122176_hfrky7n4u59.eot?t=1606076297445'); /* IE9 */ 3 | src: url('//at.alicdn.com/t/font_2122176_hfrky7n4u59.eot?t=1606076297445#iefix') format('embedded-opentype'), /* IE6-IE8 */ 4 | url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAAZ0AAsAAAAAC8AAAAYoAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCDXgqKEIhBATYCJAMcCxAABCAFhG0HYBsZCsiusCnDvWgDw81z+u78zFtpsvScpQDEw9ca+v7uHpSQVNkiWUALRC5TG1uhk1R16qtIsq6+4d/TXpKxmNPOVMZu7jG7c3fn0TiAf9DVXO5DCWx5y6AAWd0kmwvefQBdhSJQlaayzn0vyOUK+//HvfeDHIAkOu0sNFVAodsPi1JepRDds5/LE2tbXNObt/Vyf+aCWSQReSQNidDEJa0RyVAatbJYZzEhKM58bb6awGDTKYN22B5eQrUCzCEHXMA4g+qUR6nhhNZelxxZRsQbUGnTU3gDeO1/P/7B6mAjqTK41p5TWyqs/oSfrQj+/44TGQcPxgthdxwZSwGFeFQauQM5rCyFGHz5m8UBYLhWUv+En5w3vDeaT+1P7H9HeirMD8NRrVJZpb9mrn9eDSxDJe1IteYnsJLgJ0dJ5ifPLG/VSJckraFS08/aKnUvl6WxRwzHRCDeAmk1gG2tj4TqMRcbzQ52xZ5gFDvnS5g5Ur7HXDGSywxGxNiRlR5b0dkIxbuFteI1SD16W9zaK1KLUo6pljhYkhxTx1BMSw14Tor6jqxLyWcUHGB0bEe0ao5agAoPcUZJC6Mtrz2/1RsP6BHv5s+g+BKaugSR8nY5zsZWAbikQ5rgXZDAKADpTiGR+Bz1Kcyn+hVv+1YMIXeLCIkHz3yjL4XHb9Sx15IjIrlMiw+xxAIqWkDCszhxmYrNkb4tQjhA3ofY55j6EUX6iPget9nHw++rUSAAb5EOZ5RRT44dIj8vHi9JelYQwes04I0oubg5r8k7rS9voxEOiC80BDESF/yj2BD4wckQFWIMafcd1uRTrp2MyI04QCcpUBGFQv0REkYOjRSgBWBsr5oFHd1EIe7hbSEqp8jX+70U9eHwKy6n+CbD8aWry7SZmbvjEOfT6/5QWRujBfS4VaCEJSK6bspLfkd+fBKtDbNRsVOGPNyNy3EPpiCEe87g9SLHpcufW2JG5u5Tnim6Utefkp1112IN0gN5B8FgLu5kBX/SfSZUtqPmiYO267vOcI1zR/mO2RwNPmXeTL3rsYK6umnZ284o+iPY1su87nOpfKV0tYBqPREiOhjy3j9ax/xmnL+Of2vm/79zGf/ffuR9u/OSkfh71wPWUtY5HlLAanWLZllnaUxWsTY/FHSnPpAJnzuTNXpD2FznCMqBLlHl3M8hWlenmG4qr2xAJGmTumeSiG8EXvez56hYFcHLx/BduGD5qIiFQxOXheh+vSV/OwvwONOP/yVEi+GdvMBX1GLuqT8uXCapBuRCbJ7eDVj1jkP8IRJii0ad5l/m2sAxXjKTNSOhSFnPlaHcW/9s9Q5zWhS240NuzezdYq0Sujsit/gQu3lrSTEdrq1FctGkIVIEtJkPzYlP88G52aF0mObs5UtKYGNM3xLSEO/hQIKO0ZP7fBCcm5sPRNRf8yEXCNFzYeHjZP1NVh3gHlUvjsCb+CvZsgjT7ShoMmp5/Hc7R8dygX8jPLk6XMxvtJefd1doEjbZyd7nSf/+SZK8rZSmyjXqyaC0j2wfdvVE6PZqPJQgPXKtahaR+RiLZ5wf/SvMyrfpUcoif1mFWwBdXw5BrAGQH8LTXrqfGQeg62exrPg3ShyC1x7mTRb2L9rK+3mKc1iT8T8bv5NFX5/fXVX69pq/gtVF+5+ZVGIBdF05vdeDtynnGdh6ymtaxhonv1ulhME4h39KYrQn49nGtdb+LW3jYkga0yBrzSUV2lKoDLEWaq3NMNgSdscPMUa6giiDsNhFAWGkbkiG64NspE1SoT2GynifoTYyEBjsUPCecYj5gRGs0okFpGIkHbEoKTTyB7XBwHPioc28pN7zrsnzjTxq+Adm6zskyBtjn4xsPpOZqWFsunTQVlyPbFsiLV2apAQT8ZlBaV4toKnskyaiUh2otZ2HMAGiQpFSCKOQBM0uHKjN/fw5woVsjFcz40X1GvH4jLUjDarUW5B2LKLVjGsZniHCzchUJQ2K3fVKDmSrQsTGioRo5ZuZiCIwIb5HqWSempottq1lYn6b8zyvgsHg3k2kyFGiijqaaJVTmEdVNExwOxRVSdij2ktMs2bEhywxRCU9VfDIWJ0MMcHr3QA=') format('woff2'), 5 | url('//at.alicdn.com/t/font_2122176_hfrky7n4u59.woff?t=1606076297445') format('woff'), 6 | url('//at.alicdn.com/t/font_2122176_hfrky7n4u59.ttf?t=1606076297445') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+ */ 7 | url('//at.alicdn.com/t/font_2122176_hfrky7n4u59.svg?t=1606076297445#iconfont') format('svg'); /* iOS 4.1- */ 8 | } 9 | 10 | .iconfont { 11 | font-family: "iconfont" !important; 12 | font-size: 16px; 13 | font-style: normal; 14 | -webkit-font-smoothing: antialiased; 15 | -moz-osx-font-smoothing: grayscale; 16 | } 17 | 18 | .iconfire:before { 19 | content: "\e600"; 20 | } 21 | 22 | .iconpinglun:before { 23 | content: "\e615"; 24 | } 25 | 26 | .iconliulan1:before { 27 | content: "\e605"; 28 | } 29 | 30 | .iconshuaxin:before { 31 | content: "\e669"; 32 | } 33 | 34 | .iconyonghu:before { 35 | content: "\e607"; 36 | } 37 | 38 | .iconshangpin:before { 39 | content: "\e634"; 40 | } 41 | -------------------------------------------------------------------------------- /src/main/resources/static/images/aiwrap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/images/aiwrap.png -------------------------------------------------------------------------------- /src/main/resources/static/images/bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/images/bg.png -------------------------------------------------------------------------------- /src/main/resources/static/images/jiahao.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/images/jiahao.png -------------------------------------------------------------------------------- /src/main/resources/static/images/raining.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/images/raining.jpg -------------------------------------------------------------------------------- /src/main/resources/static/js/category.js: -------------------------------------------------------------------------------- 1 | layui.use('table',function(){ 2 | var table = layui.table; 3 | 4 | table.render({ 5 | elem: '#type', 6 | url: '/category/categoryList', 7 | toolbar: '#toolbarType', 8 | title: '分类列表', 9 | cols: [[ 10 | {field:'id',title: 'ID', width:'6%',unresize: true, sort: true, align: 'center'}, 11 | {field:'cateIcon',title: '分类图标', width:'15%', align: 'center',templet:'#cateIconTpl'}, 12 | {field:'cateName',title: '分类名', width:'30%', align: 'center'}, 13 | {field:'sort',title: '排序', width:'6%', align: 'center'}, 14 | {field:'right',title: '操作', toolbar: '#barType', width:'9%', align: 'center'} 15 | ]], 16 | id: 'typeTabReload', 17 | page: true 18 | }); 19 | // 监听头工具事件 20 | table.on('toolbar(type)',function(obj){ 21 | 22 | if(obj.event == 'addCategory'){ 23 | parent.layer.open({ 24 | type : 2, 25 | title : false, 26 | area : [ '450px', '380px' ], //宽高 27 | closeBtn : 0, //不显示关闭按钮 28 | scrollbar: false, //禁止浏览器出现滚动条 29 | resize: false, //禁止拉伸 30 | move : false, //禁止拖拽 31 | shade : 0.8, //遮罩 32 | shadeClose : true, //点击遮罩关闭当前页面 33 | content : '/category/toAddCategory', //这里content是一个Url 34 | }); 35 | } else if(obj.event == 'refresh'){ 36 | table.reload("typeTabReload"); 37 | } 38 | }); 39 | // 监听行工具事件 40 | table.on('tool(type)',function(obj){ 41 | var data = obj.data; 42 | console.log(obj); 43 | if(obj.event == 'del'){ 44 | layer.confirm('确定删除该分类吗?',function(){ 45 | $.post( 46 | '/category/delCategory', 47 | {"id":data.id}, 48 | function(result){ 49 | if(result.success){ 50 | layer.msg( 51 | result.message, 52 | { 53 | icon:1, 54 | time:1000 55 | }, 56 | function(){ 57 | table.reload("typeTabReload"); 58 | } 59 | ); 60 | } else{ 61 | layer.msg( 62 | result.message, 63 | { 64 | icon:2, 65 | time:2000 66 | } 67 | ); 68 | } 69 | } 70 | ,'json'); 71 | }); 72 | } else if(obj.event == 'edit'){ 73 | let categoryId = data.id; 74 | console.log("分类 id :" + categoryId); 75 | parent.layer.open({ 76 | type : 2, 77 | title : false, 78 | area : [ '450px', '380px' ], //宽高 79 | closeBtn : 0, //不显示关闭按钮 80 | scrollbar: false, //禁止浏览器出现滚动条 81 | resize: false, //禁止拉伸 82 | move : false, //禁止拖拽 83 | shade : 0.8, //遮罩 84 | shadeClose : true, //点击遮罩关闭当前页面 85 | content : '/category/toUpdateCategory/' + categoryId, //这里content是一个Url 86 | }); 87 | } 88 | }); 89 | } 90 | ); 91 | 92 | 93 | 94 | 95 | 96 | 97 | -------------------------------------------------------------------------------- /src/main/resources/static/js/index.js: -------------------------------------------------------------------------------- 1 | //JavaScript代码区域 2 | layui.use('element', function(){ 3 | 4 | var $ = layui.jquery 5 | ,element = layui.element; //Tab的切换功能,切换事件监听等,需要依赖element模块 6 | 7 | // 首页没有删除图标 8 | $(".layui-tab ul").children('li').first().children('.layui-tab-close').css("display",'none'); 9 | //触发事件 10 | var active = { 11 | tabAdd: function(url,id,name){ 12 | //新增一个Tab项 传入三个参数,分别对应其标题,tab页面的地址,还有一个规定的id,是标签中data-id的属性值 13 | element.tabAdd('demo', { 14 | title: name, 15 | content: '', 16 | id: id 17 | }) 18 | element.render('tab'); 19 | } 20 | ,tabChange: function(id){ 21 | //切换到指定Tab项 22 | element.tabChange('demo', id); 23 | } 24 | ,tabDelete: function(id){ 25 | //删除指定Tab项 26 | element.tabDelete('demo', id); //删除:“商品管理” 27 | } 28 | 29 | }; 30 | //当点击有site-demo-active属性的标签时,即左侧菜单栏中内容 ,触发点击事件 31 | $('.site-demo-active').on('click', function() { 32 | var dataid = $(this); 33 | //这时会判断右侧.layui-tab-title属性下的有lay-id属性的li的数目,即已经打开的tab项数目 34 | if ($(".layui-tab-title li[lay-id]").length <= 0) { 35 | //如果比零小,则直接打开新的tab项 36 | active.tabAdd(dataid.attr("data-url"), dataid.attr("data-id"),dataid.attr("data-title")); 37 | } else { 38 | //否则判断该tab项是否以及存在 39 | 40 | var isData = false; //初始化一个标志,为false说明未打开该tab项 为true则说明已有 41 | $.each($(".layui-tab-title li[lay-id]"), function () { 42 | //如果点击左侧菜单栏所传入的id 在右侧tab项中的lay-id属性可以找到,则说明该tab项已经打开 43 | if ($(this).attr("lay-id") == dataid.attr("data-id")) { 44 | isData = true; 45 | } 46 | }) 47 | if (isData == false) { 48 | //标志为false 新增一个tab项 49 | active.tabAdd(dataid.attr("data-url"), dataid.attr("data-id"),dataid.attr("data-title")); 50 | } 51 | } 52 | //最后不管是否新增tab,最后都转到要打开的选项页面上 53 | active.tabChange(dataid.attr("data-id")); 54 | }); 55 | 56 | }); 57 | 58 | 59 | 60 | // 是否退出登录 61 | function logout(){ 62 | layer.confirm("确认要退出吗?",function () { 63 | location.href="/logout"; 64 | }); 65 | } -------------------------------------------------------------------------------- /src/main/resources/static/js/jquery.cookie.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * jQuery Cookie Plugin v1.4.1 3 | * https://github.com/carhartl/jquery-cookie 4 | * 5 | * Copyright 2006, 2014 Klaus Hartl 6 | * Released under the MIT license 7 | */ 8 | (function (factory) { 9 | if (typeof define === 'function' && define.amd) { 10 | // AMD 11 | define(['jquery'], factory); 12 | } else if (typeof exports === 'object') { 13 | // CommonJS 14 | factory(require('jquery')); 15 | } else { 16 | // Browser globals 17 | factory(jQuery); 18 | } 19 | }(function ($) { 20 | 21 | var pluses = /\+/g; 22 | 23 | function encode(s) { 24 | return config.raw ? s : encodeURIComponent(s); 25 | } 26 | 27 | function decode(s) { 28 | return config.raw ? s : decodeURIComponent(s); 29 | } 30 | 31 | function stringifyCookieValue(value) { 32 | return encode(config.json ? JSON.stringify(value) : String(value)); 33 | } 34 | 35 | function parseCookieValue(s) { 36 | if (s.indexOf('"') === 0) { 37 | // This is a quoted cookie as according to RFC2068, unescape... 38 | s = s.slice(1, -1).replace(/\\"/g, '"').replace(/\\\\/g, '\\'); 39 | } 40 | 41 | try { 42 | // Replace server-side written pluses with spaces. 43 | // If we can't decode the cookie, ignore it, it's unusable. 44 | // If we can't parse the cookie, ignore it, it's unusable. 45 | s = decodeURIComponent(s.replace(pluses, ' ')); 46 | return config.json ? JSON.parse(s) : s; 47 | } catch(e) {} 48 | } 49 | 50 | function read(s, converter) { 51 | var value = config.raw ? s : parseCookieValue(s); 52 | return $.isFunction(converter) ? converter(value) : value; 53 | } 54 | 55 | var config = $.cookie = function (key, value, options) { 56 | 57 | // Write 58 | 59 | if (arguments.length > 1 && !$.isFunction(value)) { 60 | options = $.extend({}, config.defaults, options); 61 | 62 | if (typeof options.expires === 'number') { 63 | var days = options.expires, t = options.expires = new Date(); 64 | t.setTime(+t + days * 864e+5); 65 | } 66 | 67 | return (document.cookie = [ 68 | encode(key), '=', stringifyCookieValue(value), 69 | options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE 70 | options.path ? '; path=' + options.path : '', 71 | options.domain ? '; domain=' + options.domain : '', 72 | options.secure ? '; secure' : '' 73 | ].join('')); 74 | } 75 | 76 | // Read 77 | 78 | var result = key ? undefined : {}; 79 | 80 | // To prevent the for loop in the first place assign an empty array 81 | // in case there are no cookies at all. Also prevents odd result when 82 | // calling $.cookie(). 83 | var cookies = document.cookie ? document.cookie.split('; ') : []; 84 | 85 | for (var i = 0, l = cookies.length; i < l; i++) { 86 | var parts = cookies[i].split('='); 87 | var name = decode(parts.shift()); 88 | var cookie = parts.join('='); 89 | 90 | if (key && key === name) { 91 | // If second argument (value) is a function it's a converter... 92 | result = read(cookie, value); 93 | break; 94 | } 95 | 96 | // Prevent storing a cookie that we couldn't decode. 97 | if (!key && (cookie = read(cookie)) !== undefined) { 98 | result[name] = cookie; 99 | } 100 | } 101 | 102 | return result; 103 | }; 104 | 105 | config.defaults = {}; 106 | 107 | $.removeCookie = function (key, options) { 108 | if ($.cookie(key) === undefined) { 109 | return false; 110 | } 111 | 112 | // Must not alter options, thus extending a fresh object... 113 | $.cookie(key, '', $.extend({}, options, { expires: -1 })); 114 | return !$.cookie(key); 115 | }; 116 | 117 | })); 118 | -------------------------------------------------------------------------------- /src/main/resources/static/layui/css/modules/code.css: -------------------------------------------------------------------------------- 1 | /** layui-v2.4.5 MIT License By https://www.layui.com */ 2 | html #layuicss-skincodecss{display:none;position:absolute;width:1989px}.layui-code-h3,.layui-code-view{position:relative;font-size:12px}.layui-code-view{display:block;margin:10px 0;padding:0;border:1px solid #e2e2e2;border-left-width:6px;background-color:#F2F2F2;color:#333;font-family:Courier New}.layui-code-h3{padding:0 10px;height:32px;line-height:32px;border-bottom:1px solid #e2e2e2}.layui-code-h3 a{position:absolute;right:10px;top:0;color:#999}.layui-code-view .layui-code-ol{position:relative;overflow:auto}.layui-code-view .layui-code-ol li{position:relative;margin-left:45px;line-height:20px;padding:0 5px;border-left:1px solid #e2e2e2;list-style-type:decimal-leading-zero;*list-style-type:decimal;background-color:#fff}.layui-code-view pre{margin:0}.layui-code-notepad{border:1px solid #0C0C0C;border-left-color:#3F3F3F;background-color:#0C0C0C;color:#C2BE9E}.layui-code-notepad .layui-code-h3{border-bottom:none}.layui-code-notepad .layui-code-ol li{background-color:#3F3F3F;border-left:none} -------------------------------------------------------------------------------- /src/main/resources/static/layui/css/modules/layer/default/icon-ext.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/css/modules/layer/default/icon-ext.png -------------------------------------------------------------------------------- /src/main/resources/static/layui/css/modules/layer/default/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/css/modules/layer/default/icon.png -------------------------------------------------------------------------------- /src/main/resources/static/layui/css/modules/layer/default/loading-0.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/css/modules/layer/default/loading-0.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/css/modules/layer/default/loading-1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/css/modules/layer/default/loading-1.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/css/modules/layer/default/loading-2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/css/modules/layer/default/loading-2.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/font/iconfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/font/iconfont.eot -------------------------------------------------------------------------------- /src/main/resources/static/layui/font/iconfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/font/iconfont.ttf -------------------------------------------------------------------------------- /src/main/resources/static/layui/font/iconfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/font/iconfont.woff -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/0.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/0.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/1.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/10.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/10.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/11.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/11.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/12.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/12.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/13.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/13.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/14.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/14.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/15.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/15.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/16.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/16.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/17.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/17.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/18.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/18.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/19.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/19.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/2.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/20.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/20.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/21.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/21.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/22.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/22.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/23.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/23.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/24.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/24.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/25.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/25.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/26.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/26.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/27.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/27.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/28.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/28.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/29.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/29.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/3.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/3.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/30.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/30.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/31.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/31.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/32.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/32.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/33.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/33.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/34.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/34.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/35.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/35.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/36.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/36.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/37.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/37.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/38.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/38.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/39.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/39.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/4.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/4.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/40.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/40.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/41.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/41.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/42.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/42.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/43.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/43.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/44.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/44.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/45.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/45.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/46.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/46.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/47.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/47.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/48.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/48.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/49.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/49.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/5.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/5.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/50.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/50.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/51.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/51.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/52.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/52.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/53.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/53.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/54.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/54.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/55.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/55.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/56.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/56.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/57.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/57.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/58.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/58.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/59.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/59.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/6.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/6.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/60.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/60.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/61.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/61.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/62.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/62.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/63.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/63.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/64.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/64.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/65.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/65.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/66.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/66.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/67.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/67.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/68.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/68.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/69.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/69.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/7.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/7.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/70.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/70.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/71.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/71.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/8.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/8.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/9.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/layui/images/face/9.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/lay/modules/carousel.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.4.5 MIT License By https://www.layui.com */ 2 | ;layui.define("jquery",function(e){"use strict";var i=layui.$,n=(layui.hint(),layui.device(),{config:{},set:function(e){var n=this;return n.config=i.extend({},n.config,e),n},on:function(e,i){return layui.onevent.call(this,t,e,i)}}),t="carousel",a="layui-this",l=">*[carousel-item]>*",o="layui-carousel-left",r="layui-carousel-right",d="layui-carousel-prev",s="layui-carousel-next",u="layui-carousel-arrow",c="layui-carousel-ind",m=function(e){var t=this;t.config=i.extend({},t.config,n.config,e),t.render()};m.prototype.config={width:"600px",height:"280px",full:!1,arrow:"hover",indicator:"inside",autoplay:!0,interval:3e3,anim:"",trigger:"click",index:0},m.prototype.render=function(){var e=this,n=e.config;n.elem=i(n.elem),n.elem[0]&&(e.elemItem=n.elem.find(l),n.index<0&&(n.index=0),n.index>=e.elemItem.length&&(n.index=e.elemItem.length-1),n.interval<800&&(n.interval=800),n.full?n.elem.css({position:"fixed",width:"100%",height:"100%",zIndex:9999}):n.elem.css({width:n.width,height:n.height}),n.elem.attr("lay-anim",n.anim),e.elemItem.eq(n.index).addClass(a),e.elemItem.length<=1||(e.indicator(),e.arrow(),e.autoplay(),e.events()))},m.prototype.reload=function(e){var n=this;clearInterval(n.timer),n.config=i.extend({},n.config,e),n.render()},m.prototype.prevIndex=function(){var e=this,i=e.config,n=i.index-1;return n<0&&(n=e.elemItem.length-1),n},m.prototype.nextIndex=function(){var e=this,i=e.config,n=i.index+1;return n>=e.elemItem.length&&(n=0),n},m.prototype.addIndex=function(e){var i=this,n=i.config;e=e||1,n.index=n.index+e,n.index>=i.elemItem.length&&(n.index=0)},m.prototype.subIndex=function(e){var i=this,n=i.config;e=e||1,n.index=n.index-e,n.index<0&&(n.index=i.elemItem.length-1)},m.prototype.autoplay=function(){var e=this,i=e.config;i.autoplay&&(e.timer=setInterval(function(){e.slide()},i.interval))},m.prototype.arrow=function(){var e=this,n=e.config,t=i(['",'"].join(""));n.elem.attr("lay-arrow",n.arrow),n.elem.find("."+u)[0]&&n.elem.find("."+u).remove(),n.elem.append(t),t.on("click",function(){var n=i(this),t=n.attr("lay-type");e.slide(t)})},m.prototype.indicator=function(){var e=this,n=e.config,t=e.elemInd=i(['
    ',function(){var i=[];return layui.each(e.elemItem,function(e){i.push("")}),i.join("")}(),"
"].join(""));n.elem.attr("lay-indicator",n.indicator),n.elem.find("."+c)[0]&&n.elem.find("."+c).remove(),n.elem.append(t),"updown"===n.anim&&t.css("margin-top",-(t.height()/2)),t.find("li").on("hover"===n.trigger?"mouseover":n.trigger,function(){var t=i(this),a=t.index();a>n.index?e.slide("add",a-n.index):a/g,">").replace(/'/g,"'").replace(/"/g,""")),c.html('
  1. '+o.replace(/[\r\t\n]+/g,"
  2. ")+"
"),c.find(">.layui-code-h3")[0]||c.prepend('

'+(c.attr("lay-title")||e.title||"code")+(e.about?'layui.code':"")+"

");var d=c.find(">.layui-code-ol");c.addClass("layui-box layui-code-view"),(c.attr("lay-skin")||e.skin)&&c.addClass("layui-code-"+(c.attr("lay-skin")||e.skin)),(d.find("li").length/100|0)>0&&d.css("margin-left",(d.find("li").length/100|0)+"px"),(c.attr("lay-height")||e.height)&&d.css("max-height",c.attr("lay-height")||e.height)})})}).addcss("modules/code.css","skincodecss"); -------------------------------------------------------------------------------- /src/main/resources/static/layui/lay/modules/flow.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.4.5 MIT License By https://www.layui.com */ 2 | ;layui.define("jquery",function(e){"use strict";var l=layui.$,o=function(e){},t='';o.prototype.load=function(e){var o,i,n,r,a=this,c=0;e=e||{};var f=l(e.elem);if(f[0]){var m=l(e.scrollElem||document),u=e.mb||50,s=!("isAuto"in e)||e.isAuto,v=e.end||"没有更多了",y=e.scrollElem&&e.scrollElem!==document,d="加载更多",h=l('");f.find(".layui-flow-more")[0]||f.append(h);var p=function(e,t){e=l(e),h.before(e),t=0==t||null,t?h.html(v):h.find("a").html(d),i=t,o=null,n&&n()},g=function(){o=!0,h.find("a").html(t),"function"==typeof e.done&&e.done(++c,p)};if(g(),h.find("a").on("click",function(){l(this);i||o||g()}),e.isLazyimg)var n=a.lazyimg({elem:e.elem+" img",scrollElem:e.scrollElem});return s?(m.on("scroll",function(){var e=l(this),t=e.scrollTop();r&&clearTimeout(r),i||(r=setTimeout(function(){var i=y?e.height():l(window).height(),n=y?e.prop("scrollHeight"):document.documentElement.scrollHeight;n-t-i<=u&&(o||g())},100))}),a):a}},o.prototype.lazyimg=function(e){var o,t=this,i=0;e=e||{};var n=l(e.scrollElem||document),r=e.elem||"img",a=e.scrollElem&&e.scrollElem!==document,c=function(e,l){var o=n.scrollTop(),r=o+l,c=a?function(){return e.offset().top-n.offset().top+o}():e.offset().top;if(c>=o&&c<=r&&!e.attr("src")){var m=e.attr("lay-src");layui.img(m,function(){var l=t.lazyimg.elem.eq(i);e.attr("src",m).removeAttr("lay-src"),l[0]&&f(l),i++})}},f=function(e,o){var f=a?(o||n).height():l(window).height(),m=n.scrollTop(),u=m+f;if(t.lazyimg.elem=l(r),e)c(e,f);else for(var s=0;su)break}};if(f(),!o){var m;n.on("scroll",function(){var e=l(this);m&&clearTimeout(m),m=setTimeout(function(){f(null,e)},50)}),o=!0}return f},e("flow",new o)}); -------------------------------------------------------------------------------- /src/main/resources/static/layui/lay/modules/laypage.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.4.5 MIT License By https://www.layui.com */ 2 | ;layui.define(function(e){"use strict";var a=document,t="getElementById",n="getElementsByTagName",i="laypage",r="layui-disabled",u=function(e){var a=this;a.config=e||{},a.config.index=++s.index,a.render(!0)};u.prototype.type=function(){var e=this.config;if("object"==typeof e.elem)return void 0===e.elem.length?2:3},u.prototype.view=function(){var e=this,a=e.config,t=a.groups="groups"in a?0|a.groups:5;a.layout="object"==typeof a.layout?a.layout:["prev","page","next"],a.count=0|a.count,a.curr=0|a.curr||1,a.limits="object"==typeof a.limits?a.limits:[10,20,30,40,50],a.limit=0|a.limit||10,a.pages=Math.ceil(a.count/a.limit)||1,a.curr>a.pages&&(a.curr=a.pages),t<0?t=1:t>a.pages&&(t=a.pages),a.prev="prev"in a?a.prev:"上一页",a.next="next"in a?a.next:"下一页";var n=a.pages>t?Math.ceil((a.curr+(t>1?1:0))/(t>0?t:1)):1,i={prev:function(){return a.prev?''+a.prev+"":""}(),page:function(){var e=[];if(a.count<1)return"";n>1&&a.first!==!1&&0!==t&&e.push(''+(a.first||1)+"");var i=Math.floor((t-1)/2),r=n>1?a.curr-i:1,u=n>1?function(){var e=a.curr+(t-i-1);return e>a.pages?a.pages:e}():t;for(u-r2&&e.push('');r<=u;r++)r===a.curr?e.push('"+r+""):e.push(''+r+"");return a.pages>t&&a.pages>u&&a.last!==!1&&(u+1…'),0!==t&&e.push(''+(a.last||a.pages)+"")),e.join("")}(),next:function(){return a.next?''+a.next+"":""}(),count:'共 '+a.count+" 条",limit:function(){var e=['"}(),refresh:['','',""].join(""),skip:function(){return['到第','','页',""].join("")}()};return['
',function(){var e=[];return layui.each(a.layout,function(a,t){i[t]&&e.push(i[t])}),e.join("")}(),"
"].join("")},u.prototype.jump=function(e,a){if(e){var t=this,i=t.config,r=e.children,u=e[n]("button")[0],l=e[n]("input")[0],p=e[n]("select")[0],c=function(){var e=0|l.value.replace(/\s|\D/g,"");e&&(i.curr=e,t.render())};if(a)return c();for(var o=0,y=r.length;oi.pages||(i.curr=e,t.render())});p&&s.on(p,"change",function(){var e=this.value;i.curr*e>i.count&&(i.curr=Math.ceil(i.count/e)),i.limit=e,t.render()}),u&&s.on(u,"click",function(){c()})}},u.prototype.skip=function(e){if(e){var a=this,t=e[n]("input")[0];t&&s.on(t,"keyup",function(t){var n=this.value,i=t.keyCode;/^(37|38|39|40)$/.test(i)||(/\D/.test(n)&&(this.value=n.replace(/\D/,"")),13===i&&a.jump(e,!0))})}},u.prototype.render=function(e){var n=this,i=n.config,r=n.type(),u=n.view();2===r?i.elem&&(i.elem.innerHTML=u):3===r?i.elem.html(u):a[t](i.elem)&&(a[t](i.elem).innerHTML=u),i.jump&&i.jump(i,e);var s=a[t]("layui-laypage-"+i.index);n.jump(s),i.hash&&!e&&(location.hash="!"+i.hash+"="+i.curr),n.skip(s)};var s={render:function(e){var a=new u(e);return a.index},index:layui.laypage?layui.laypage.index+1e4:0,on:function(e,a,t){return e.attachEvent?e.attachEvent("on"+a,function(a){a.target=a.srcElement,t.call(e,a)}):e.addEventListener(a,t,!1),this}};e(i,s)}); -------------------------------------------------------------------------------- /src/main/resources/static/layui/lay/modules/laytpl.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.4.5 MIT License By https://www.layui.com */ 2 | ;layui.define(function(e){"use strict";var r={open:"{{",close:"}}"},c={exp:function(e){return new RegExp(e,"g")},query:function(e,c,t){var o=["#([\\s\\S])+?","([^{#}])*?"][e||0];return n((c||"")+r.open+o+r.close+(t||""))},escape:function(e){return String(e||"").replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&").replace(//g,">").replace(/'/g,"'").replace(/"/g,""")},error:function(e,r){var c="Laytpl Error:";return"object"==typeof console&&console.error(c+e+"\n"+(r||"")),c+e}},n=c.exp,t=function(e){this.tpl=e};t.pt=t.prototype,window.errors=0,t.pt.parse=function(e,t){var o=this,p=e,a=n("^"+r.open+"#",""),l=n(r.close+"$","");e=e.replace(/\s+|\r|\t|\n/g," ").replace(n(r.open+"#"),r.open+"# ").replace(n(r.close+"}"),"} "+r.close).replace(/\\/g,"\\\\").replace(n(r.open+"!(.+?)!"+r.close),function(e){return e=e.replace(n("^"+r.open+"!"),"").replace(n("!"+r.close),"").replace(n(r.open+"|"+r.close),function(e){return e.replace(/(.)/g,"\\$1")})}).replace(/(?="|')/g,"\\").replace(c.query(),function(e){return e=e.replace(a,"").replace(l,""),'";'+e.replace(/\\/g,"")+';view+="'}).replace(c.query(1),function(e){var c='"+(';return e.replace(/\s/g,"")===r.open+r.close?"":(e=e.replace(n(r.open+"|"+r.close),""),/^=/.test(e)&&(e=e.replace(/^=/,""),c='"+_escape_('),c+e.replace(/\\/g,"")+')+"')}),e='"use strict";var view = "'+e+'";return view;';try{return o.cache=e=new Function("d, _escape_",e),e(t,c.escape)}catch(u){return delete o.cache,c.error(u,p)}},t.pt.render=function(e,r){var n,t=this;return e?(n=t.cache?t.cache(e,c.escape):t.parse(t.tpl,e),r?void r(n):n):c.error("no data")};var o=function(e){return"string"!=typeof e?c.error("Template not found"):new t(e)};o.config=function(e){e=e||{};for(var c in e)r[c]=e[c]},o.v="1.2.0",e("laytpl",o)}); -------------------------------------------------------------------------------- /src/main/resources/static/layui/lay/modules/rate.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.4.5 MIT License By https://www.layui.com */ 2 | ;layui.define("jquery",function(e){"use strict";var a=layui.jquery,i={config:{},index:layui.rate?layui.rate.index+1e4:0,set:function(e){var i=this;return i.config=a.extend({},i.config,e),i},on:function(e,a){return layui.onevent.call(this,n,e,a)}},l=function(){var e=this,a=e.config;return{setvalue:function(a){e.setvalue.call(e,a)},config:a}},n="rate",t="layui-rate",o="layui-icon-rate",s="layui-icon-rate-solid",u="layui-icon-rate-half",r="layui-icon-rate-solid layui-icon-rate-half",c="layui-icon-rate-solid layui-icon-rate",f="layui-icon-rate layui-icon-rate-half",v=function(e){var l=this;l.index=++i.index,l.config=a.extend({},l.config,i.config,e),l.render()};v.prototype.config={length:5,text:!1,readonly:!1,half:!1,value:0,theme:""},v.prototype.render=function(){var e=this,i=e.config,l=i.theme?'style="color: '+i.theme+';"':"";i.elem=a(i.elem),parseInt(i.value)!==i.value&&(i.half||(i.value=Math.ceil(i.value)-i.value<.5?Math.ceil(i.value):Math.floor(i.value)));for(var n='
    ",u=1;u<=i.length;u++){var r='
  • ";i.half&&parseInt(i.value)!==i.value&&u==Math.ceil(i.value)?n=n+'
  • ":n+=r}n+="
"+(i.text?''+i.value+"星":"")+"";var c=i.elem,f=c.next("."+t);f[0]&&f.remove(),e.elemTemp=a(n),i.span=e.elemTemp.next("span"),i.setText&&i.setText(i.value),c.html(e.elemTemp),c.addClass("layui-inline"),i.readonly||e.action()},v.prototype.setvalue=function(e){var a=this,i=a.config;i.value=e,a.render()},v.prototype.action=function(){var e=this,i=e.config,l=e.elemTemp,n=l.find("i").width();l.children("li").each(function(e){var t=e+1,v=a(this);v.on("click",function(e){if(i.value=t,i.half){var o=e.pageX-a(this).offset().left;o<=n/2&&(i.value=i.value-.5)}i.text&&l.next("span").text(i.value+"星"),i.choose&&i.choose(i.value),i.setText&&i.setText(i.value)}),v.on("mousemove",function(e){if(l.find("i").each(function(){a(this).addClass(o).removeClass(r)}),l.find("i:lt("+t+")").each(function(){a(this).addClass(s).removeClass(f)}),i.half){var c=e.pageX-a(this).offset().left;c<=n/2&&v.children("i").addClass(u).removeClass(s)}}),v.on("mouseleave",function(){l.find("i").each(function(){a(this).addClass(o).removeClass(r)}),l.find("i:lt("+Math.floor(i.value)+")").each(function(){a(this).addClass(s).removeClass(f)}),i.half&&parseInt(i.value)!==i.value&&l.children("li:eq("+Math.floor(i.value)+")").children("i").addClass(u).removeClass(c)})})},v.prototype.events=function(){var e=this;e.config},i.render=function(e){var a=new v(e);return l.call(a)},e(n,i)}); -------------------------------------------------------------------------------- /src/main/resources/static/layui/lay/modules/tree.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.4.5 MIT License By https://www.layui.com */ 2 | ;layui.define("jquery",function(e){"use strict";var o=layui.$,a=layui.hint(),i="layui-tree-enter",r=function(e){this.options=e},t={arrow:["",""],checkbox:["",""],radio:["",""],branch:["",""],leaf:""};r.prototype.init=function(e){var o=this;e.addClass("layui-box layui-tree"),o.options.skin&&e.addClass("layui-tree-skin-"+o.options.skin),o.tree(e),o.on(e)},r.prototype.tree=function(e,a){var i=this,r=i.options,n=a||r.nodes;layui.each(n,function(a,n){var l=n.children&&n.children.length>0,c=o('
    '),s=o(["
  • ",function(){return l?''+(n.spread?t.arrow[1]:t.arrow[0])+"":""}(),function(){return r.check?''+("checkbox"===r.check?t.checkbox[0]:"radio"===r.check?t.radio[0]:"")+"":""}(),function(){return'"+(''+(l?n.spread?t.branch[1]:t.branch[0]:t.leaf)+"")+(""+(n.name||"未命名")+"")}(),"
  • "].join(""));l&&(s.append(c),i.tree(c,n.children)),e.append(s),"function"==typeof r.click&&i.click(s,n),i.spread(s,n),r.drag&&i.drag(s,n)})},r.prototype.click=function(e,o){var a=this,i=a.options;e.children("a").on("click",function(e){layui.stope(e),i.click(o)})},r.prototype.spread=function(e,o){var a=this,i=(a.options,e.children(".layui-tree-spread")),r=e.children("ul"),n=e.children("a"),l=function(){e.data("spread")?(e.data("spread",null),r.removeClass("layui-show"),i.html(t.arrow[0]),n.find(".layui-icon").html(t.branch[0])):(e.data("spread",!0),r.addClass("layui-show"),i.html(t.arrow[1]),n.find(".layui-icon").html(t.branch[1]))};r[0]&&(i.on("click",l),n.on("dblclick",l))},r.prototype.on=function(e){var a=this,r=a.options,t="layui-tree-drag";e.find("i").on("selectstart",function(e){return!1}),r.drag&&o(document).on("mousemove",function(e){var i=a.move;if(i.from){var r=(i.to,o('
    '));e.preventDefault(),o("."+t)[0]||o("body").append(r);var n=o("."+t)[0]?o("."+t):r;n.addClass("layui-show").html(i.from.elem.children("a").html()),n.css({left:e.pageX+10,top:e.pageY+10})}}).on("mouseup",function(){var e=a.move;e.from&&(e.from.elem.children("a").removeClass(i),e.to&&e.to.elem.children("a").removeClass(i),a.move={},o("."+t).remove())})},r.prototype.move={},r.prototype.drag=function(e,a){var r=this,t=(r.options,e.children("a")),n=function(){var t=o(this),n=r.move;n.from&&(n.to={item:a,elem:e},t.addClass(i))};t.on("mousedown",function(){var o=r.move;o.from={item:a,elem:e}}),t.on("mouseenter",n).on("mousemove",n).on("mouseleave",function(){var e=o(this),a=r.move;a.from&&(delete a.to,e.removeClass(i))})},e("tree",function(e){var i=new r(e=e||{}),t=o(e.elem);return t[0]?void i.init(t):a.error("layui.tree 没有找到"+e.elem+"元素")})}); -------------------------------------------------------------------------------- /src/main/resources/static/layui/lay/modules/util.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.4.5 MIT License By https://www.layui.com */ 2 | ;layui.define("jquery",function(t){"use strict";var e=layui.$,i={fixbar:function(t){var i,a,n="layui-fixbar",r="layui-fixbar-top",o=e(document),l=e("body");t=e.extend({showHeight:200},t),t.bar1=t.bar1===!0?"":t.bar1,t.bar2=t.bar2===!0?"":t.bar2,t.bgcolor=t.bgcolor?"background-color:"+t.bgcolor:"";var c=[t.bar1,t.bar2,""],g=e(['
      ',t.bar1?'
    • '+c[0]+"
    • ":"",t.bar2?'
    • '+c[1]+"
    • ":"",'
    • '+c[2]+"
    • ","
    "].join("")),s=g.find("."+r),u=function(){var e=o.scrollTop();e>=t.showHeight?i||(s.show(),i=1):i&&(s.hide(),i=0)};e("."+n)[0]||("object"==typeof t.css&&g.css(t.css),l.append(g),u(),g.find("li").on("click",function(){var i=e(this),a=i.attr("lay-type");"top"===a&&e("html,body").animate({scrollTop:0},200),t.click&&t.click.call(this,a)}),o.on("scroll",function(){clearTimeout(a),a=setTimeout(function(){u()},100)}))},countdown:function(t,e,i){var a=this,n="function"==typeof e,r=new Date(t).getTime(),o=new Date(!e||n?(new Date).getTime():e).getTime(),l=r-o,c=[Math.floor(l/864e5),Math.floor(l/36e5)%24,Math.floor(l/6e4)%60,Math.floor(l/1e3)%60];n&&(i=e);var g=setTimeout(function(){a.countdown(t,o+1e3,i)},1e3);return i&&i(l>0?c:[0,0,0,0],e,g),l<=0&&clearTimeout(g),g},timeAgo:function(t,e){var i=this,a=[[],[]],n=(new Date).getTime()-new Date(t).getTime();return n>6912e5?(n=new Date(t),a[0][0]=i.digit(n.getFullYear(),4),a[0][1]=i.digit(n.getMonth()+1),a[0][2]=i.digit(n.getDate()),e||(a[1][0]=i.digit(n.getHours()),a[1][1]=i.digit(n.getMinutes()),a[1][2]=i.digit(n.getSeconds())),a[0].join("-")+" "+a[1].join(":")):n>=864e5?(n/1e3/60/60/24|0)+"天前":n>=36e5?(n/1e3/60/60|0)+"小时前":n>=12e4?(n/1e3/60|0)+"分钟前":n<0?"未来":"刚刚"},digit:function(t,e){var i="";t=String(t),e=e||2;for(var a=t.length;a/g,">").replace(/'/g,"'").replace(/"/g,""")}};!function(t,e,i){"$:nomunge";function a(){n=e[l](function(){r.each(function(){var e=t(this),i=e.width(),a=e.height(),n=t.data(this,g);(i!==n.w||a!==n.h)&&e.trigger(c,[n.w=i,n.h=a])}),a()},o[s])}var n,r=t([]),o=t.resize=t.extend(t.resize,{}),l="setTimeout",c="resize",g=c+"-special-event",s="delay",u="throttleWindow";o[s]=250,o[u]=!0,t.event.special[c]={setup:function(){if(!o[u]&&this[l])return!1;var e=t(this);r=r.add(e),t.data(this,g,{w:e.width(),h:e.height()}),1===r.length&&a()},teardown:function(){if(!o[u]&&this[l])return!1;var e=t(this);r=r.not(e),e.removeData(g),r.length||clearTimeout(n)},add:function(e){function a(e,a,r){var o=t(this),l=t.data(this,g)||{};l.w=a!==i?a:o.width(),l.h=r!==i?r:o.height(),n.apply(this,arguments)}if(!o[u]&&this[l])return!1;var n;return t.isFunction(e)?(n=e,a):(n=e.handler,void(e.handler=a))}}}(e,window),t("util",i)}); -------------------------------------------------------------------------------- /src/main/resources/static/upload/images/20201014/IMG_20201014_162232.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/upload/images/20201014/IMG_20201014_162232.jpg -------------------------------------------------------------------------------- /src/main/resources/static/upload/images/20201014/IMG_20201014_162240.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/upload/images/20201014/IMG_20201014_162240.jpg -------------------------------------------------------------------------------- /src/main/resources/static/upload/images/20201014/IMG_20201014_162249.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/upload/images/20201014/IMG_20201014_162249.jpg -------------------------------------------------------------------------------- /src/main/resources/static/upload/images/20201014/IMG_20201014_162253.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/upload/images/20201014/IMG_20201014_162253.jpg -------------------------------------------------------------------------------- /src/main/resources/static/upload/images/20201014/IMG_20201014_162309.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JRaining/Campus_secondary_market_small_procedures/77a49405cbc5042f75513e293cb89c71a9387aaa/src/main/resources/static/upload/images/20201014/IMG_20201014_162309.jpg -------------------------------------------------------------------------------- /src/main/resources/templates/category/category.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 商品分类 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
    16 | 17 | 18 | 25 | 26 | 27 | 33 | 34 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /src/main/resources/templates/commodity/list.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 商品列表 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
    15 |
    16 |
    17 |
    18 | 19 |
    20 |
    21 |
    22 |
    23 | 24 |
    25 |
    26 |
    27 | 34 |
    35 |
    36 | 39 |
    40 | 41 |
    42 | 43 |
    44 | 45 |
    46 |
    47 | 48 | 49 | 50 |
    51 | 52 | 53 | 57 | 58 | 64 | 65 | 66 | 69 | 72 | 83 | 84 | -------------------------------------------------------------------------------- /src/main/resources/templates/error/404.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 404错误页面 6 | 7 | 24 | 25 | 26 | 27 |
    28 | 状态码:[[${status}]] 29 |
    30 |
    31 | 请求错误!!! 32 | 没有找到请求页面!!! 33 |
    34 | 35 | -------------------------------------------------------------------------------- /src/main/resources/templates/error/4xx.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 4xx错误页面 6 | 7 | 24 | 25 | 26 | 27 |
    28 | 状态码:[[${status}]] 29 |
    30 |
    31 | 客户端请求错误!!!
    32 | 看到没!看到没!4 开头的,就是你的问题啦,再好好找找去! 33 |
    34 | 35 | -------------------------------------------------------------------------------- /src/main/resources/templates/error/5xx.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 5xx错误页面 6 | 7 | 24 | 25 | 26 | 27 |
    28 | 状态码:[[${status}]] 29 |
    30 |
    31 | 服务器已崩溃!!!请联系管理员!!! 32 |
    33 | 34 | -------------------------------------------------------------------------------- /src/main/resources/templates/inform/informList.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 求购列表 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 |
    18 | 19 | 20 | 28 | 29 | 32 | 33 | 34 | 37 | 46 | 55 | 56 | 57 | 58 | -------------------------------------------------------------------------------- /src/main/resources/templates/login.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 挑啊! 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 38 | 39 | 102 | 103 | -------------------------------------------------------------------------------- /src/main/resources/templates/seek/seekList.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 求购列表 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 |
    14 |
    15 |
    16 | 17 |
    18 |
    19 | 20 |
    21 | 22 | 23 |
    24 |
    25 | 26 | 27 | 28 | 29 | 30 |
    31 | 32 | 33 | 41 | 42 | 46 | 47 | 48 | 51 | 54 | 55 | 56 | -------------------------------------------------------------------------------- /src/main/resources/templates/topic/topicList.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 商品列表 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
    15 |
    16 |
    17 |
    18 | 19 |
    20 |
    21 |
    22 |
    23 | 24 |
    25 |
    26 | 27 |
    28 | 29 |
    30 | 31 |
    32 |
    33 | 34 | 35 | 36 |
    37 | 38 | 39 | 43 | 44 | 52 | 53 | 54 | 64 | 65 | 68 | 69 | 70 | -------------------------------------------------------------------------------- /src/main/resources/templates/user/sendMsg.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 用户管理 6 | 7 | 8 | 9 | 10 | 11 | 12 |
    13 | 发送消息 14 |
    15 |
    16 | 17 | 18 | 19 |
    20 | 21 |
    22 | 26 |
    27 |
    28 | 29 |
    30 | 31 |
    32 | 33 |
    34 |
    35 | 36 |
    37 | 40 |
    41 |
    42 | 43 | 44 | 45 | 96 | 97 | 98 | -------------------------------------------------------------------------------- /src/main/resources/templates/user/userList.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 用户管理 6 | 7 | 8 | 9 | 10 | 11 | 12 | 18 | 19 | 20 | 21 |
    22 |
    23 |
    24 | 25 |
    26 |
    27 | 28 |
    29 |
    30 | 31 |
    32 |
    33 | 34 |
    35 | 36 | 37 |
    38 |
    39 | 40 | 41 | 42 |
    43 | 44 | 45 | 46 | 54 | 55 | 58 | 59 | 60 | 67 | 70 | 81 | 82 | 83 | 84 | 85 | 86 | --------------------------------------------------------------------------------