package com.jwipc.sys.controller.pc;

import com.jwipc.sys.logic.ExpressCompanyLogic;
import lombok.RequiredArgsConstructor;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

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

/**
 * <p> </p>
 *
 * @author ZhangJie
 * @version 1.0
 * @since JDK 1.8
 */
@RequestMapping(MODULE_ROOT + "/expressCompany/rest")
@RequiredArgsConstructor
@RestController
public class ExpressCompanyRestController {
    private final ExpressCompanyLogic expressCompanyLogic;
    @GetMapping("listAll")
    public ResponseEntity listAll(){
        return ResponseEntity.ok(expressCompanyLogic.listAll());
    }
}
