package com.cool.store.controller.webb;

import com.cool.store.service.iot.ThirdIotService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * <p>
 * 第三方Iot 前端控制器
 * </p>
 *
 * @author wangff
 * @since 2025/10/20
 */
@RestController
@RequestMapping("/pc/third/iot")
@Api(tags = "第三方Iot")
@Slf4j
@RequiredArgsConstructor
public class ThirdIotController {
    private final ThirdIotService thirdIotService;

    @ApiOperation("获取token")
    @PostMapping("/token")
    public Map<String, Object> getToken() {
        return thirdIotService.getToken();
    }
}
