package com.tofly.feesapi.bmgl.controller;

import com.tofly.feesapi.common.core.ResultRespone;
import com.tofly.feesapi.bmgl.entity.BmGs;
import com.tofly.feesapi.bmgl.service.IBmGsService;
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;

import java.util.List;

@RestController
@RequestMapping("/api/bmgl/bmGs")
@Api(tags="公司档案")
public class BmGsController {

    @Autowired
    private IBmGsService bmGsService;

    @GetMapping("")
    @ApiOperation(value = "查询全部", response = BmGs.class, responseContainer = "List")
    public ResultRespone<List<BmGs>> getAll() {
        return ResultRespone.success(bmGsService.list());
    }

}
