package com.tuoheng.controller;

import com.tuoheng.service.PlatformService;
import com.tuoheng.until.JsonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author xiaoying
 * @Date 2023/1/9 14:30
 */
@RestController
@RequestMapping("/platform")
public class PlatformController {

    @Autowired
    private PlatformService platformService;

    /**
     * 查询各平台名称
     * @return
     */
    @GetMapping("/list")
    public JsonResult list(){
       return platformService.findAll();
    }
}
