目录
project模块
与用户表有关联 userId
- 项目列表
- 统计count
- 查询id
- 新增
- 删除
- 更新
项目列表
- shiro filter:进入项目页面,首先判断用户是否登录,如果未登录,进入到登录页面,通过shiro的过滤器。
- 根据userId查list,进行比对,将该用户的项目列出来。
- 项目总数要进行统计,list.length。
ProjectController.java的代码
package com.one.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.one.common.Result;
import com.one.service.ProjectService;
import com.one.service.UserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation