请求员工权限
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
package com.chaozhanggui.system.cashierservice.controller;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.service.TbShopPermissionService;
|
||||
import com.chaozhanggui.system.cashierservice.service.TbShopStaffPermissionService;
|
||||
import com.chaozhanggui.system.cashierservice.sign.Result;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@RestController
|
||||
@Slf4j
|
||||
@RequestMapping("staffPermission")
|
||||
public class StaffPermissionController {
|
||||
|
||||
@Autowired
|
||||
private TbShopPermissionService permissionService;
|
||||
|
||||
@GetMapping
|
||||
public Result getStaffPermission(String staffId, String code) {
|
||||
return permissionService.getStaffPermission(staffId, code);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user