package com.loan.system.controller.wechat;

import com.loan.system.domain.pojo.Result;
import com.loan.system.service.StepService;
import com.loan.system.utils.ResultUtil;
import io.swagger.annotations.Api;
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.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/wechat/step")
@Api(tags = "环节接口")
public class StepController {
    @Autowired
    private StepService stepService;

    @GetMapping
    public Result findStep(@RequestParam("caseId")Long caseId){
        return ResultUtil.success("success",stepService.getStepByCaseId(caseId));
    }
}
