permission

This commit is contained in:
xzb 2022-10-13 14:44:25 +08:00
parent 92c25f77fd
commit 7c5551f891
7 changed files with 128 additions and 10 deletions

View File

@ -1,5 +1,6 @@
package club.joylink.rtss.controller.permission2; package club.joylink.rtss.controller.permission2;
import club.joylink.rtss.vo.client.PageVO;
import club.joylink.rtss.vo.permission.*; import club.joylink.rtss.vo.permission.*;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
@ -50,7 +51,18 @@ public class SystemAbilityController {
public List<String> deleteAbilities(@RequestBody DeleteAbilitiesReqVo req){ public List<String> deleteAbilities(@RequestBody DeleteAbilitiesReqVo req){
return null; return null;
} }
/**
* 根据权限功能的id查询完整信息
*/
@GetMapping("/{abilityId}")
public SystemAbilityRspVo findById(@PathVariable("abilityId") Long abilityId){
return null;
}
/**
* 分页查询权限功能的基本信息
*/
public PageVO<FindAbilityBasicRspVo>findByPage(){
return null;
}
} }

View File

@ -16,13 +16,13 @@ public class CreatePaperRuleReqVo {
@JsonSerialize(using = ToStringSerializer.class) @JsonSerialize(using = ToStringSerializer.class)
private Long pcId; private Long pcId;
/** /**
* 试题类型1-理论题2-实训题 * 试题类型1-理论题2-实训题,序列化后为数值
*/ */
@NotNull @NotNull
private PaperQType.GroupType type; private PaperQType.GroupType type;
/** /**
* 规则类型理论题(1-单选题2-多选题3-判断题);实训题(4-单操实训5-场景实训) * 规则类型理论题(1-单选题2-多选题3-判断题);实训题(4-单操实训5-场景实训),序列化后为数值
*/ */
@NotNull @NotNull
private PaperQType.SubType subtype; private PaperQType.SubType subtype;

View File

@ -34,11 +34,19 @@ public class FindPaperUserForClassReqVo extends PageQueryVO {
@NotNull @NotNull
private Long classId; private Long classId;
/** /**
* 查询类型默认所有 * 查询类型默认所有,序列化后为数值<br>
* All(1),//所有<br>
* Pass(2),//所有及格的<br>
* NotPass(3),//所有不及格的<br>
* NotComplete(4),//未完成考试<br>
* Complete(5),//完成考试即及格和不及格的<br>
*/ */
private FindPuType findType = FindPuType.All; private FindPuType findType = FindPuType.All;
/** /**
* 以什么来排序,默认以用户试卷创建时间 * 以什么来排序,默认以用户试卷创建时间,序列化后为数值<br>
* CreateTime(1, "create_time"),//用户试卷创建时间<br>
* StartTime(2, "start_time"),//用户开始答题时间<br>
* Score(3, "score"),//用户最终得分<br>
*/ */
private FindPuOrderByType orderBy = FindPuOrderByType.CreateTime; private FindPuOrderByType orderBy = FindPuOrderByType.CreateTime;
/** /**

View File

@ -29,11 +29,19 @@ public class FindPaperUserForCompositionReqVo extends PageQueryVO {
@NotNull @NotNull
private Long pcId; private Long pcId;
/** /**
* 查询类型默认所有 * 查询类型默认所有,序列化后为数值<br>
* All(1),//所有<br>
* Pass(2),//所有及格的<br>
* NotPass(3),//所有不及格的<br>
* NotComplete(4),//未完成考试<br>
* Complete(5),//完成考试即及格和不及格的<br>
*/ */
private FindPuType findType = FindPuType.All; private FindPuType findType = FindPuType.All;
/** /**
* 以什么来排序,默认以用户试卷创建时间 * 以什么来排序,默认以用户试卷创建时间,序列化后为数值<br>
* CreateTime(1, "create_time"),//用户试卷创建时间<br>
* StartTime(2, "start_time"),//用户开始答题时间<br>
* Score(3, "score"),//用户最终得分<br>
*/ */
private FindPuOrderByType orderBy = FindPuOrderByType.CreateTime; private FindPuOrderByType orderBy = FindPuOrderByType.CreateTime;
/** /**

View File

@ -22,12 +22,17 @@ public class PaperSubmitAnswerReqVo {
@JsonSerialize(using = ToStringSerializer.class) @JsonSerialize(using = ToStringSerializer.class)
private Long pqId; private Long pqId;
/** /**
* 试题类型1-理论题2-实训题 * 试题类型1-理论题2-实训题序列化后为数值
*/ */
@NotNull @NotNull
private PaperQType.GroupType type; private PaperQType.GroupType type;
/** /**
* 试题子类型 * 试题子类型序列化后为数值<br>
* Select(1),<br>
* Multi(2),<br>
* Judge(3), <br>
* Single(4),<br>
* Scene(5),<br>
*/ */
@NotNull @NotNull
private PaperQType.SubType subType; private PaperQType.SubType subType;

View File

@ -0,0 +1,32 @@
package club.joylink.rtss.vo.permission;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import javax.validation.constraints.NotNull;
/**
* 更新权限功能的请求
*/
@Data
public class FindAbilityBasicRspVo {
/**
* 权限功能id
*/
@JsonSerialize(using = ToStringSerializer.class)
@NotNull
private Long id;
/**
* 权限功能名称
*/
private String name;
/**
* 权限功能描述
*/
private String des;
/**
* 权限功能类型
*/
private SystemAbilityType type;
}

View File

@ -0,0 +1,53 @@
package club.joylink.rtss.vo.permission;
import lombok.Data;
import java.time.LocalDateTime;
@Data
public class SystemAbilityRspVo {
/**
* 系统功能id
*/
private Long id;
/**
* 功能的类型
*/
private SystemAbilityType type;
/**
* 关联的功能的id,由type决定关联表
*/
private Long abilityId;
/**
* 功能的名称
*/
private String name;
/**
* 功能的描述
*/
private String des;
/**
* 状态
*/
private SystemAbilityStatus status;
/**
* 创建者id
*/
private Long creatorId;
/**
* 创建时间
*/
private LocalDateTime createTime;
/**
* 跟新时间
*/
private LocalDateTime updateTime;
}