#
luxiaotao1123
2023-12-19 ba6c02d49a28f2d3aa43b5d11e37e5977a90e70e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package com.zy.asrs.common.sys.controller;
 
import com.zy.asrs.common.sys.service.HostService;
import com.zy.asrs.common.web.BaseController;
import com.zy.asrs.framework.common.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
@RestController
public class HostController extends BaseController {
 
    @Autowired
    private HostService hostService;
 
    @RequestMapping(value = "/host/{id}/auth")
//    @ManagerAuth
    public R get(@PathVariable("id") Long id) {
        return R.ok(hostService.getById(String.valueOf(id)));
    }
 
 
}