package com.yami.shop.platform.controller;

import com.yami.shop.service.impl.FeiEYunApi;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import lombok.AllArgsConstructor;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.yami.shop.common.util.R;
/**
 * 飞鹅云打印机管理实现
 *
 * @author fubojin
 * @version 1.0.0
 * @since 2025-01-01
 */
@RestController
@AllArgsConstructor
@RequestMapping("/platform/fey" )
public class FeiEYunController {

    @GetMapping("/addprinter")
    @ApiOperation("添加打印机")
    public R<String> addprinter(@RequestParam @ApiParam("格式（多条逗号分隔）：sn#key#remark#carnum") String snlist){
        return R.SUCCESS(FeiEYunApi.addprinter(snlist));
    }
}
