account模块相关表引入
This commit is contained in:
@@ -10,6 +10,8 @@ import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @author Administrator
|
||||
*/
|
||||
@@ -31,4 +33,10 @@ public class AuthorizationController {
|
||||
public CzgResult<?> login(@Validated SysLoginDTO loginDTO) {
|
||||
return CzgResult.success(authorizationService.login(loginDTO));
|
||||
}
|
||||
|
||||
@GetMapping("test")
|
||||
public CzgResult<?> login() {
|
||||
StpKit.ADMIN.login(1);
|
||||
return CzgResult.success(Map.of("token", StpKit.ADMIN.getTokenInfo()));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
package com.czg.controller;
|
||||
|
||||
import com.czg.annotation.SaAdminCheckPermission;
|
||||
import com.czg.resp.CzgResult;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
*
|
||||
* 角色管理
|
||||
* @author Administrator
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/role")
|
||||
public class RoleController {
|
||||
|
||||
@SaAdminCheckPermission(value = "role.add")
|
||||
public CzgResult add() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -1,12 +1,26 @@
|
||||
package com.czg.controller;
|
||||
|
||||
import com.czg.resp.CzgResult;
|
||||
import com.czg.service.ShopInfoService;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* 店铺管理
|
||||
* @author Administrator
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("shopInfo")
|
||||
public class ShopInfoController {
|
||||
private final ShopInfoService shopInfoService;
|
||||
|
||||
public ShopInfoController(ShopInfoService shopInfoService) {
|
||||
this.shopInfoService = shopInfoService;
|
||||
}
|
||||
|
||||
@PostMapping
|
||||
public CzgResult add() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user