package cn.pluss.platform.controller;

import cn.pluss.platform.api.Result;
import cn.pluss.platform.base.BaseModelController;
import cn.pluss.platform.entity.MerchantRate;
import cn.pluss.platform.exception.MsgException;
import cn.pluss.platform.service.agent.MerchantRateApiService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author DJH
 */
@RestController
@RequestMapping("/merchantRate")
public class MerchantRateController extends BaseModelController<MerchantRateApiService, MerchantRate> {

    /**
     * 修改下级服务商的费率
     * @return
     */
    @PostMapping("/changeRate")
    public Result<String> setSubAgentRate(@RequestBody MerchantRate merchantRate) {
        throw new MsgException("不支持该操作");
        // baseService.setSubAgentRate(merchantRate);
        // return ResultGenerator.genSuccessResult("操作成功", null);
    }
}
