package com.crm.pay.controller;

import com.crm.pay.service.CustomInfoService;
import com.crm.rely.backend.core.constant.FeignClientAnnotation;
import com.crm.rely.backend.core.dto.base.BaseResultDto;
import com.crm.rely.backend.model.entity.custom.CustomInfoFundsEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
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;


@RestController
@RequestMapping("/finance/custom")
public class CustomInfoController {

    @Autowired
    private CustomInfoService service;

    @PostMapping("/manager/funds")
    @FeignClientAnnotation
    public BaseResultDto funds(@RequestBody @Validated CustomInfoFundsEntity entity) throws Exception {
        return BaseResultDto.success();
    }

}
