package com.scm.contract.web.apply;

import com.scm.contract.service.apply.DictionaryShippingMethodService;
import com.scm.contract.service.apply.DictionaryTagTypeService;
import com.set.direwolf.core.web.OperationResult;
import org.springframework.beans.factory.annotation.Autowired;
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.ResponseBody;

/**
 * @author zuo
 * @date 2024/6/4 17:43
 */

@Controller
@RequestMapping("${adminPath}/shipping/method")
public class DictionaryShippingMethodController {

    @Autowired
    private DictionaryShippingMethodService shippingMethodService;


    @PostMapping("/list")
    public @ResponseBody OperationResult List() {
        return OperationResult.buildSuccessResult("获取发货方式信息成功", shippingMethodService.list());
    }
}
