package com.ruoyi.web.app;

import com.ruoyi.bst.ad.domain.AdQuery;
import com.ruoyi.bst.ad.service.AdService;
import com.ruoyi.bst.agreement.domain.AgreementQuery;
import com.ruoyi.common.annotation.Anonymous;
import com.ruoyi.common.core.controller.BaseController;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/app/ad")
public class AppAdController extends BaseController {

    @Autowired
    private AdService adService;

    @ApiOperation("获取广告")
    @GetMapping
    @Anonymous
    public AjaxResult getAd() {
        return success(adService.toAppVOList());
    }

}
