package com.malk.huagao.controller;

import com.malk.huagao.service.IKdYdOrderService;
import com.malk.huagao.service.IKdYdTransferService;
import com.malk.server.common.McR;
import com.malk.service.aliwork.YDClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author LQY
 * @since 2025-11-12
 */
@RestController
@RequestMapping("/hg")
public class KdYdTransferController {
    @Autowired
    private YDClient ydClient;
    @Autowired
    private IKdYdTransferService kdYdTransferService;
    @PostMapping("/kdYdTransfer1")
    McR insertTransfer1(@RequestBody Map map) {
        kdYdTransferService.insertTransfer(map);
        return McR.success();
    }

    @PostMapping("/kdYdTransfer")
    Map<String, Object> insertTransfer(@RequestBody Map map) {
        Map<String, Object> stringObjectMap = kdYdTransferService.insertTransfer1(map);
        return stringObjectMap;
    }
}
