package com.jwipc.contract.controller.pc;

import com.jwipc.contract.constant.ModuleConst;
import com.jwipc.contract.logic.ContractReturnOrderDetailLogic;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import static com.jwipc.contract.constant.ModuleConst.MODULE_ROOT;

/**
 * @author qizhicai
 * @version JDK 1.8
 * @date 2025/12/18
 * @description TODO
 */
@RestController
@RequestMapping(ModuleConst.MODULE_ROOT + "/returnOrderDetail/rest/")
@RequiredArgsConstructor
@Slf4j
public class ContractReturnOrderDetailRestController {
    private final ContractReturnOrderDetailLogic contractReturnOrderDetailLogic;

    /**
     * 删除发货单明细
     * @param ids
     * @return
     */
    @PostMapping("remove")
    public ResponseEntity remove(String ids) {
        contractReturnOrderDetailLogic.remove(ids);
        return ResponseEntity.ok().build();
    }
}
