| | |
| | | insert into sys_role values('3', 'æ®éç¨æ·', 'common', 3, 4, 1, 1, '0', '0', 'admin', sysdate(), '', null, 'æ®éç¨æ·'); |
| | | insert into sys_role values('4', 'åéç¨æ·', 'limited', 4, 4, 1, 1, '0', '0', 'admin', sysdate(), '', null, 'åéç¨æ·'); |
| | | insert into sys_role values('5', 'åªè¯»ç¨æ·', 'readonly', 5, 4, 1, 1, '0', '0', 'admin', sysdate(), '', null, 'åªè¯»ç¨æ·'); |
| | | -- select * from sys_role; |
| | | |
| | | -- ---------------------------- |
| | | -- 5ãèåæé表 |
| | |
| | | insert into sys_dict_type values(10, 'ç³»ç»ç¶æ', 'sys_common_status', '0', 'admin', sysdate(), '', null, 'ç»å½ç¶æå表'); |
| | | insert into sys_dict_type values(11, 'å å¯ç±»å', 'sys_encryption_method','0', 'admin', sysdate(), '', null, 'å å¯ç±»åå表'); |
| | | insert into sys_dict_type values(12, 'å¯çº§ç±»å', 'sys_secret_level', '0', 'admin', sysdate(), '', null, 'å¯çº§ç±»åå表'); |
| | | |
| | | -- select * from sys_dict_type; |
| | | |
| | | -- ---------------------------- |
| | | -- 12ãåå
¸æ°æ®è¡¨ |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.se.auth.controller; |
| | | |
| | | import com.se.common.core.web.controller.BaseController; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | /** |
| | | * å¥åº·æ§å¶å¨ |
| | | * |
| | | * @author WWW |
| | | * @date 2024-08-24 |
| | | */ |
| | | @RestController |
| | | public class HealthController extends BaseController { |
| | | @GetMapping("/health") |
| | | public long test() { |
| | | return System.currentTimeMillis(); |
| | | } |
| | | } |
| | |
| | | @Autowired |
| | | private SysLoginService sysLoginService; |
| | | |
| | | @GetMapping("/health") |
| | | public long health() { |
| | | return System.currentTimeMillis(); |
| | | } |
| | | |
| | | @PostMapping("login") |
| | | public R<?> login(@RequestBody LoginBody form) |
| | | { |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.se.gateway.handler; |
| | | |
| | | import com.se.common.core.web.controller.BaseController; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | /** |
| | | * å¥åº·æ§å¶å¨ |
| | | * |
| | | * @author WWW |
| | | * @date 2024-08-24 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/gateway") |
| | | public class HealthController extends BaseController { |
| | | @GetMapping("/health") |
| | | public long test() { |
| | | return System.currentTimeMillis(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.se.system.controller; |
| | | |
| | | import com.se.common.core.web.controller.BaseController; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | /** |
| | | * å¥åº·æ§å¶å¨ |
| | | * |
| | | * @author WWW |
| | | * @date 2024-08-24 |
| | | */ |
| | | @RestController |
| | | public class HealthController extends BaseController { |
| | | @GetMapping("/health") |
| | | public long test() { |
| | | return System.currentTimeMillis(); |
| | | } |
| | | } |
| | |
| | | @Autowired |
| | | private ISysConfigService configService; |
| | | |
| | | @GetMapping("/health") |
| | | public long health() { |
| | | return System.currentTimeMillis(); |
| | | } |
| | | |
| | | /** |
| | | * è·ååæ°é
ç½®å表 |
| | | */ |