用通知来解决:普通成员可以向管理员申请撤销某一个奖惩记录,管理员可以查看所有撤销申请,并决定是否撤销该记录

然后,那个职务的问题,我觉得可以直接放到role里面,HierarchyRelation表就只记录上下级关系
This commit is contained in:
tortoise 2024-08-10 18:24:12 +08:00
parent 09a60fbb06
commit 1c6cdb6700
4 changed files with 11 additions and 3 deletions

View File

@ -3,7 +3,7 @@ package top.suyiiyii.sims;
import com.tangzc.autotable.springboot.EnableAutoTable;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@EnableAutoTable
/*@EnableAutoTable*/
@SpringBootApplication
public class SimsApplication {
public static void main(String[] args) {

View File

@ -1,8 +1,11 @@
package top.suyiiyii.sims.controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
@RestController
public class HelloController {
@ -10,4 +13,10 @@ public class HelloController {
public String hello(String username) {
return "Hello " + username;
}
@PostMapping("/hello")
public List<String> helloPost(String username , Integer age) {
List<String> list = List.of(username,age.toString());
return list;
}
}

View File

@ -26,6 +26,4 @@ public class HierarchyRelation {
// 下级用户ID
private Integer subordinateUserId;
// 关系类型
private String relationType;
}

View File

@ -19,6 +19,7 @@ public class Role {
private Integer id;
private Integer roleId;
//管理员普通用户组员组长队长
private String roleName;
}