| | |
| | | package com.sandu.ximon.admin.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.github.pagehelper.PageHelper; |
| | | import com.sandu.common.domain.ResponseVO; |
| | | import com.sandu.common.object.BaseConditionVO; |
| | | import com.sandu.common.util.ResponseUtil; |
| | | import com.sandu.ximon.admin.dto.BannerDto; |
| | | import com.sandu.ximon.admin.param.BannerParam; |
| | |
| | | |
| | | @PostMapping("/addbanner") |
| | | public ResponseVO<Object> addBanner(@Validated @RequestBody BannerParam bannerParam) { |
| | | Client client = clientService.getOne(Wrappers.lambdaQuery(Client.class).eq(Client::getId, bannerParam.getBinding_author())); |
| | | Client client = clientService.getOne(Wrappers.lambdaQuery(Client.class).eq(Client::getId, bannerParam.getBinding_author())); |
| | | |
| | | |
| | | boolean result = contentBannerService.addBanner(bannerParam, client); |