File tree Expand file tree Collapse file tree
java/ch/puzzle/pcts/controller Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ package ch .puzzle .pcts .controller ;
2+
3+ import ch .puzzle .pcts .mapper .RoleMapper ;
4+ import ch .puzzle .pcts .service .business .RoleBusinessService ;
5+ import org .springframework .beans .factory .annotation .Autowired ;
6+ import org .springframework .web .bind .annotation .RequestMapping ;
7+ import org .springframework .web .bind .annotation .RestController ;
8+
9+ @ RestController
10+ @ RequestMapping ("/api/v1/role" )
11+ public class RoleController {
12+ private final RoleMapper mapper ;
13+ private final RoleBusinessService service ;
14+
15+ @ Autowired
16+ public RoleController (RoleMapper mapper , RoleBusinessService service ) {
17+ this .mapper = mapper ;
18+ this .service = service ;
19+ }
20+ }
Original file line number Diff line number Diff line change 11CREATE SEQUENCE IF NOT EXISTS sequence_role;
22CREATE TABLE IF NOT EXISTS role
33(
4- id BIGINT NOT NUll PRIMARY KEY ,
5- name VARCHAR (250 ) NOT NULL ,
6- deleted_at TIMESTAMP NOT NULL
4+ id BIGINT NOT NUll PRIMARY KEY ,
5+ name VARCHAR (250 ) NOT NULL ,
6+ deleted_at TIMESTAMP NOT NULL ,
7+ is_management BOOLEAN NOT NULL
78);
You can’t perform that action at this time.
0 commit comments