WebPriceController.java 944 Bytes
package com.lhcredit.project.webbusiness.controller;

import com.lhcredit.framework.web.domain.AjaxResult;
import com.lhcredit.project.business.price.service.PriceService;
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("/price")
@Api(value = "用户报告价格", tags = "用户报告价格")
public class WebPriceController {

    @Autowired
    private PriceService priceService;

    @ApiOperation(value = "添加用户报告价格", notes = "添加用户报告价格")
    @GetMapping("/add")
    public AjaxResult add(String contractId){
        priceService.addPrice(contractId);
        return AjaxResult.success();
    }
}