xiaoyong931011
2021-07-14 10e7bd13ad8f081f75052db6bca60092b5633466
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package com.xzx.gc.user.controller;
 
import com.xzx.gc.common.constant.Constants;
import com.xzx.gc.common.request.BaseController;
import com.xzx.gc.model.JsonResult;
import com.xzx.gc.user.dto.ViewFxsysDto;
import com.xzx.gc.user.dto.ViewJhyInfoDto;
import com.xzx.gc.user.service.FxSysService;
import com.xzx.gc.user.vo.ViewFxsysVo;
import com.xzx.gc.user.vo.ViewJhyInfoVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
 
@RestController
@Api(tags = {"分銷系統管理"})
public class FxSysController extends BaseController {
 
    @Autowired
    private FxSysService fxSysService;
 
    /**
     * 查看分銷系統设置详情
     */
    @PostMapping(Constants.ADMIN_VIEW_PREFIX + "/fxsys/viewFxsys.json")
    @ApiResponses({@ApiResponse( code = 200, message = "success", response = ViewFxsysVo.class)})
    @ApiOperation(value="分銷系統管理-查看分銷系統设置详情", notes="test: 仅0有正确返回")
    public JsonResult<ViewFxsysVo> viewFxsys(@RequestBody ViewFxsysDto viewFxsysDto) {
        Long id = viewFxsysDto.getId();
        ViewFxsysVo viewFxsysVo = fxSysService.viewFxsys(id);
        return JsonResult.success(viewFxsysVo);
    }
 
 
}