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