mirror of
https://github.com/suyiiyii/SIMS.git
synced 2025-06-03 12:56:10 +08:00
用通知来解决:普通成员可以向管理员申请撤销某一个奖惩记录,管理员可以查看所有撤销申请,并决定是否撤销该记录
然后,那个职务的问题,我觉得可以直接放到role里面,HierarchyRelation表就只记录上下级关系
This commit is contained in:
parent
09a60fbb06
commit
1c6cdb6700
@ -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) {
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -26,6 +26,4 @@ public class HierarchyRelation {
|
||||
// 下级用户ID
|
||||
private Integer subordinateUserId;
|
||||
|
||||
// 关系类型
|
||||
private String relationType;
|
||||
}
|
||||
|
@ -19,6 +19,7 @@ public class Role {
|
||||
|
||||
private Integer id;
|
||||
private Integer roleId;
|
||||
//管理员,普通用户,组员,组长,队长
|
||||
private String roleName;
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user