account模块相关表引入

This commit is contained in:
张松
2025-02-08 17:44:11 +08:00
parent f9a3d37bb1
commit 0204f427cc
26 changed files with 581 additions and 10 deletions

View File

@@ -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()));
}
}

View File

@@ -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;
}
}

View File

@@ -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;
}
}