package com.liquidnet.service.platform.controller.kylin;

import com.liquidnet.service.platform.service.impl.kylin.KylinFreightChargeServiceImpl;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@Api(tags = "运费")
@RestController
@RequestMapping("freightCharge")
@Slf4j
public class KylinFreightChargeController {

    @Autowired
    private KylinFreightChargeServiceImpl kylinFreightChargeService;

    @GetMapping("get")
    @ApiOperation("运费查询")
   public void getFreightCharge(){
        kylinFreightChargeService.getFreightCharge();

   }

    @GetMapping("findDataAddRedis")
    @ApiOperation("读取运费全表数据存redis")
    public void findDataAddRedis(){
        kylinFreightChargeService.findDataAddRedis();
        System.out.println("1");
    }
}