弹窗广告
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
package cn.ysk.cashier.controller;
|
||||
|
||||
import cn.ysk.cashier.dto.TbMiniAppPagesDto;
|
||||
import cn.ysk.cashier.mybatis.service.TbMiniAppPagesService;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @author GYJ
|
||||
*/
|
||||
@RestController
|
||||
@RequiredArgsConstructor
|
||||
@RequestMapping("/api/miniAppPages")
|
||||
public class TbMiniAppPagesController {
|
||||
|
||||
final private TbMiniAppPagesService tbMiniAppPagesService;
|
||||
|
||||
@PostMapping
|
||||
@ApiOperation("新增/system/miniAppPages")
|
||||
public ResponseEntity<Object> createTbMiniAppPages(@Validated @RequestBody TbMiniAppPagesDto pagesDto) {
|
||||
return tbMiniAppPagesService.createTbMiniAppPages(pagesDto);
|
||||
}
|
||||
|
||||
@PutMapping
|
||||
@ApiOperation("修改/system/miniAppPages")
|
||||
public ResponseEntity<Object> updateTbMiniAppPages(@Validated @RequestBody TbMiniAppPagesDto pagesDto) {
|
||||
return tbMiniAppPagesService.updateTbMiniAppPages(pagesDto);
|
||||
}
|
||||
|
||||
@DeleteMapping("/{pagesId}")
|
||||
@ApiOperation("删除/system/miniAppPages")
|
||||
public ResponseEntity<Object> deleteTbMiniAppPages(@PathVariable Integer pagesId) {
|
||||
return tbMiniAppPagesService.deleteTbMiniAppPages(pagesId);
|
||||
}
|
||||
|
||||
@GetMapping
|
||||
@ApiOperation("查询/system/miniAppPages")
|
||||
public ResponseEntity<Object> getTbMiniAppPages(@RequestParam Map<String, Object> params) {
|
||||
return tbMiniAppPagesService.getTbMiniAppPages(params);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
package cn.ysk.cashier.controller.shop;
|
||||
|
||||
import cn.ysk.cashier.dto.shop.TbShopAdDto;
|
||||
import cn.ysk.cashier.mybatis.service.TbShopAdService;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @author GYJ
|
||||
*/
|
||||
@RestController
|
||||
@RequiredArgsConstructor
|
||||
@RequestMapping("/api/ad")
|
||||
public class TbShopAdController {
|
||||
final private TbShopAdService tbShopAdService;
|
||||
|
||||
@PostMapping
|
||||
public ResponseEntity<Object> createTbShopAd(@RequestBody TbShopAdDto adDto) {
|
||||
return tbShopAdService.createTbShopAd(adDto);
|
||||
}
|
||||
|
||||
@PutMapping
|
||||
public ResponseEntity<Object> updateTbShopAd(@RequestBody TbShopAdDto adDto) {
|
||||
return tbShopAdService.updateTbShopAd(adDto);
|
||||
}
|
||||
|
||||
@DeleteMapping("/{adId}")
|
||||
public ResponseEntity<Object> deleteTbShopAd(@PathVariable Integer adId) {
|
||||
return tbShopAdService.deleteTbShopAd(adId);
|
||||
}
|
||||
|
||||
@GetMapping
|
||||
public ResponseEntity<Object> getTbShopAd(@RequestParam Map<String, Object> params) {
|
||||
return tbShopAdService.getTbShopAd(params);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user