JourneyController.java 879 Bytes
package cn.com.glsx.stdinterface.modules.controller;

import cn.com.glsx.stdinterface.api.JourneyClient;
import cn.com.glsx.stdinterface.dto.DeviceJourneyDTO;
import cn.com.glsx.stdinterface.modules.service.JourneyService;
import com.glsx.plat.core.web.R;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 新e盾|里程控制层
 *
 * @author xiangyanlin
 * @since 2022-04-07 16:51:36
 */
@RestController
@RequestMapping("/journey")
public class JourneyController implements JourneyClient {
    /**
     * 服务对象
     */
    @Resource
    private JourneyService journeyService;

    @Override
    public R saveDeviceJourney(DeviceJourneyDTO deviceJourneyDTO) {
        journeyService.saveDeviceJourney(deviceJourneyDTO);
        return R.ok();
    }
}