package com.cmvr.web.controller.api;

import com.cmvr.common.core.controller.BaseController;
import com.cmvr.common.core.domain.AjaxResult;
import com.cmvr.test.enums.ActionEnum;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "边缘--API操作")
@RestController
@RequestMapping("/api")
@RequiredArgsConstructor
public class EdgeDeviceController extends BaseController {

    @ApiOperation("查询操作内容")
    @GetMapping("/action")
    public AjaxResult getAction() {
        return success(ActionEnum.toList());
    }
}
