package cn.ysk.cashier.controller;

import cn.ysk.cashier.service.TbPlatformDictService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.http.HttpStatus;
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.RestController;
@RestController
@RequiredArgsConstructor
@Api(tags = "应用中心管理")
@RequestMapping("/api/appCenter")
public class AppCenterController {

    private final TbPlatformDictService tbPlatformDictService;

    @GetMapping
    @ApiOperation("获取应用中心列表")
    public ResponseEntity<Object> queryBotButtonConfig(){
        return new ResponseEntity<>(tbPlatformDictService.queryByType("appCenter"), HttpStatus.OK);
    }



}
