package com.jeequan.jeepay.pay.ctrl.openapi;

import com.jeequan.jeepay.pay.anno.OpenLabel;
import com.jeequan.jeepay.pay.ctrl.OpenApiController;
import com.jeequan.jeepay.pay.service.openapi.impl.DivisionApiService;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * TODO
 * 分账相关操作
 * @author crystal
 * @date 2024/5/17 14:56
 */
@RequiredArgsConstructor
@RestController
@RequestMapping("/api/open/division")
public class DivisionController extends OpenApiController {

    @Autowired
    private DivisionApiService divisionApiService;

    @OpenLabel
    @PostMapping(value = "/receiver/create")
    public Object receiverCreate() {
        return divisionApiService.create(getRQ());
    }
}
