| | |
| | | |
| | | @RestController |
| | | @RequestMapping(value = "/app/courier") |
| | | @Api(value = "跑腿员信息", tags = "跑腿员信息操作控制器") |
| | | @Slf4j |
| | | public class CourierController { |
| | | @Autowired |
| | |
| | | } |
| | | |
| | | /** |
| | | * 加载未绑定小区的跑腿员 权限设置 |
| | | * 加载未绑定小区的跑腿员 |
| | | */ |
| | | @GetMapping("/getAllCourierList") |
| | | @PreAuthorize("@ss.hasPermi('system:appuser:list')") |
| | |
| | | } |
| | | |
| | | /** |
| | | * 跑腿员管理列表 权限设置 |
| | | * 跑腿员管理列表 |
| | | */ |
| | | @PostMapping("/list") |
| | | @PreAuthorize("@ss.hasPermi('system:courier:list')") |
| | |
| | | return R.ok(courierService.getCourierPageList(courierPageListDTO)); |
| | | } |
| | | /** |
| | | * 查看详情 权限设置 |
| | | * 查看详情 |
| | | */ |
| | | @GetMapping("/detail") |
| | | @PreAuthorize("@ss.hasPermi('system:courier:list')") |
| | |
| | | return R.ok(courierService.detail(id)); |
| | | } |
| | | /** |
| | | * 添加 权限设置 |
| | | * 添加 |
| | | */ |
| | | @PostMapping("/add") |
| | | @PreAuthorize("@ss.hasPermi('system:courier:list')") |
| | |
| | | return R.ok(); |
| | | } |
| | | /** |
| | | * 编辑 权限设置 |
| | | * 编辑 |
| | | */ |
| | | @PutMapping("/edit") |
| | | @PreAuthorize("@ss.hasPermi('system:courier:list')") |
| | |
| | | } |
| | | |
| | | /** |
| | | * 删除 权限设置 |
| | | * 删除 |
| | | */ |
| | | @DeleteMapping("/delete") |
| | | @PreAuthorize("@ss.hasPermi('system:courier:list')") |
| | |
| | | return R.ok(); |
| | | } |
| | | /** |
| | | * 复职/离职 权限设置 |
| | | * 复职/离职 |
| | | */ |
| | | @PutMapping("/froze") |
| | | @PreAuthorize("@ss.hasPermi('system:courier:list')") |