package cn.pluss.platform.controller.home;

import cn.pluss.platform.api.ApiMercSplitService;
import cn.pluss.platform.api.SplitReq;
import cn.pluss.platform.api.Result;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * TODO
 * 接口商户分账设置控制器
 * @author crystal
 * @date 2022/6/29 14:07
 */
@RestController
@RequestMapping(value = "/api")
public class ApiMercSplitController {

    @Resource
    private ApiMercSplitService apiMercSplitService;
    /**
     * 商户分账
     * @return
     */
    @RequestMapping(value = "/split")
    public Result<Object> splitOperat(@RequestBody SplitReq req){
        return apiMercSplitService.splitOperat(req);
    }

}
