package org.dromara.payment.thirdPlatform.base.controller;


import org.dromara.payment.thirdPlatform.base.domain.SysThirdPlatform;
import org.dromara.payment.thirdPlatform.base.mapper.SysThirdPlatformMapper;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;
import java.util.stream.Collectors;

@RestController
@RequestMapping("/sysThirdPlatform")
public class SysThirdPlatformController {
    @Resource
    private SysThirdPlatformMapper sysThirdPlatformMapper;

    @GetMapping("/list")
    public List<SysThirdPlatform> list(){
        List<SysThirdPlatform> sysThirdPlatforms = this.sysThirdPlatformMapper.selectList();

        return sysThirdPlatforms;
    }

}
