package com.sqx.modules.shopping.controller.app;


import com.sqx.modules.shopping.entity.Adverti;
import com.sqx.modules.shopping.service.AdvertService;
import com.sqx.modules.shopping.utils.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@Api(value="自营商城广告位",tags={"自营商城广告位管理"})
@RequestMapping(value = "/app/advert")
public class AppAdvertController {
    @Autowired
    private AdvertService service;


    @GetMapping("/list")
    @ApiOperation("列表")
    public Result findAll() {
        return service.findAll();
    }


    @GetMapping("/find")
    @ApiOperation("查询")
    public Result findOne(Long id) {
        return service.findOne(id);
    }


}
