package com.whyc.controller;
|
|
import com.whyc.dto.Response;
|
import com.whyc.service.BaoJiGroupUserService;
|
import io.swagger.annotations.Api;
|
import io.swagger.annotations.ApiOperation;
|
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
|
@RequestMapping("baoJiGroupUser")
|
@Api(tags = "包机组-用户")
|
public class BaoJiGroupUserController {
|
|
@Autowired
|
private BaoJiGroupUserService service;
|
|
@GetMapping("groupAndUser")
|
@ApiOperation(value = "查询所有的包机组和对应用户")
|
public Response getGroupAndUserList(){
|
return new Response().set(1,service.getGroupAndUserList());
|
}
|
|
}
|