package com.zhongshu.card.server.core.controller.org;

import com.github.microservice.net.ResultContent;
import com.zhongshu.card.server.core.service.mqtt.MqttServiceImpl;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 *
 */
@RequestMapping("/ping")
@RestController
@Validated
@Tag(name = "ping接口")
public class PingController {

    @Autowired
    MqttServiceImpl mqttService;

    @Operation(summary = "ping")
    @RequestMapping(value = "ping", method = {RequestMethod.GET})
    public ResultContent ping() {
        return ResultContent.buildSuccess(System.currentTimeMillis());
    }

}

