@ -0,0 +1,64 @@ | |||
package org.jeecg.modules.miniapp.banner.controller; | |||
import cn.hutool.core.util.StrUtil; | |||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; | |||
import io.swagger.annotations.Api; | |||
import io.swagger.annotations.ApiOperation; | |||
import lombok.extern.slf4j.Slf4j; | |||
import org.jeecg.common.api.vo.Result; | |||
import org.jeecg.common.system.base.controller.JeecgController; | |||
import org.jeecg.common.system.query.QueryGenerator; | |||
import org.jeecg.common.system.query.QueryRuleEnum; | |||
import org.jeecg.config.shiro.IgnoreAuth; | |||
import org.jeecg.modules.demo.appbanner.entity.AppBanner; | |||
import org.jeecg.modules.demo.appbanner.service.IAppBannerService; | |||
import org.springframework.beans.factory.annotation.Autowired; | |||
import org.springframework.web.bind.annotation.*; | |||
import javax.servlet.http.HttpServletRequest; | |||
import java.util.HashMap; | |||
import java.util.List; | |||
import java.util.Map; | |||
/** | |||
* @Description: 应用广告配置 | |||
* @Author: jeecg-boot | |||
* @Date: 2025-02-15 | |||
* @Version: V1.0 | |||
*/ | |||
@Api(tags="广告管理") | |||
@RestController | |||
@RequestMapping("/miniapp/banner") | |||
@Slf4j | |||
public class BannerController extends JeecgController<AppBanner, IAppBannerService> { | |||
@Autowired | |||
private IAppBannerService appBannerService; | |||
/** | |||
* 列表查询 | |||
* | |||
* @param appBanner | |||
* @param req | |||
* @return | |||
*/ | |||
//@AutoLog(value = "应用广告配置-分页列表查询") | |||
@ApiOperation(value="应用广告查询", notes="应用广告查询") | |||
@GetMapping(value = "/list") | |||
@IgnoreAuth | |||
public Result<List<AppBanner>> queryPageList(AppBanner appBanner, | |||
HttpServletRequest req) { | |||
// 自定义查询规则 | |||
Map<String, QueryRuleEnum> customeRuleMap = new HashMap<>(); | |||
// 默认查询启用的 | |||
if (appBanner.getStatus()== null){ | |||
appBanner.setStatus(1); | |||
} | |||
// 自定义多选的查询规则为:LIKE_WITH_OR | |||
customeRuleMap.put("jumpType", QueryRuleEnum.LIKE_WITH_OR); | |||
customeRuleMap.put("position", QueryRuleEnum.LIKE_WITH_OR); | |||
customeRuleMap.put("status", QueryRuleEnum.LIKE_WITH_OR); | |||
QueryWrapper<AppBanner> queryWrapper = QueryGenerator.initQueryWrapper(appBanner, req.getParameterMap(),customeRuleMap); | |||
List<AppBanner> list = appBannerService.list(queryWrapper); | |||
return Result.OK(list); | |||
} | |||
} |
@ -0,0 +1,69 @@ | |||
package org.jeecg.modules.miniapp.notice.controller; | |||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; | |||
import com.baomidou.mybatisplus.core.metadata.IPage; | |||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; | |||
import io.swagger.annotations.Api; | |||
import io.swagger.annotations.ApiOperation; | |||
import lombok.extern.slf4j.Slf4j; | |||
import org.apache.shiro.authz.annotation.RequiresPermissions; | |||
import org.jeecg.common.api.vo.Result; | |||
import org.jeecg.common.aspect.annotation.AutoLog; | |||
import org.jeecg.common.system.base.controller.JeecgController; | |||
import org.jeecg.common.system.query.QueryGenerator; | |||
import org.jeecg.common.system.query.QueryRuleEnum; | |||
import org.jeecg.config.shiro.IgnoreAuth; | |||
import org.jeecg.modules.demo.notice.entity.AppNotice; | |||
import org.jeecg.modules.demo.notice.service.IAppNoticeService; | |||
import org.springframework.beans.factory.annotation.Autowired; | |||
import org.springframework.web.bind.annotation.*; | |||
import org.springframework.web.servlet.ModelAndView; | |||
import javax.servlet.http.HttpServletRequest; | |||
import javax.servlet.http.HttpServletResponse; | |||
import java.util.Arrays; | |||
import java.util.HashMap; | |||
import java.util.List; | |||
import java.util.Map; | |||
/** | |||
* @Description: 公告管理 | |||
* @Author: jeecg-boot | |||
* @Date: 2025-02-16 | |||
* @Version: V1.0 | |||
*/ | |||
@Api(tags="公告管理") | |||
@RestController | |||
@RequestMapping("/miniapp/notice") | |||
@Slf4j | |||
public class NoticeController extends JeecgController<AppNotice, IAppNoticeService> { | |||
@Autowired | |||
private IAppNoticeService appNoticeService; | |||
/** | |||
* 列表查询 | |||
* | |||
* @param appNotice | |||
* @param req | |||
* @return | |||
*/ | |||
//@AutoLog(value = "公告管理-分页列表查询") | |||
@ApiOperation(value="公告管理-公告查询", notes="公告管理-公告查询") | |||
@GetMapping(value = "/list") | |||
@IgnoreAuth | |||
public Result<List<AppNotice>> queryPageList(AppNotice appNotice, | |||
HttpServletRequest req) { | |||
// 自定义查询规则 | |||
Map<String, QueryRuleEnum> customeRuleMap = new HashMap<>(); | |||
// 自定义多选的查询规则为:LIKE_WITH_OR | |||
customeRuleMap.put("status", QueryRuleEnum.LIKE_WITH_OR); | |||
if (appNotice.getStatus()== null){ | |||
appNotice.setStatus(1); | |||
} | |||
QueryWrapper<AppNotice> queryWrapper = QueryGenerator.initQueryWrapper(appNotice, req.getParameterMap(),customeRuleMap); | |||
List<AppNotice> list = appNoticeService.list(queryWrapper); | |||
return Result.OK(list); | |||
} | |||
} |
@ -1,4 +1,4 @@ | |||
package org.jeecg.modules.pdftest.service; | |||
package org.jeecg.modules.miniapp.pdftest.service; | |||
/** | |||
* @author Tanzs |
@ -0,0 +1,67 @@ | |||
package org.jeecg.modules.miniapp.store.controller; | |||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; | |||
import com.baomidou.mybatisplus.core.metadata.IPage; | |||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; | |||
import io.swagger.annotations.Api; | |||
import io.swagger.annotations.ApiOperation; | |||
import lombok.extern.slf4j.Slf4j; | |||
import org.apache.shiro.authz.annotation.RequiresPermissions; | |||
import org.jeecg.common.api.vo.Result; | |||
import org.jeecg.common.aspect.annotation.AutoLog; | |||
import org.jeecg.common.system.base.controller.JeecgController; | |||
import org.jeecg.common.system.query.QueryGenerator; | |||
import org.jeecg.common.system.query.QueryRuleEnum; | |||
import org.jeecg.config.shiro.IgnoreAuth; | |||
import org.jeecg.modules.demo.store.entity.AppStore; | |||
import org.jeecg.modules.demo.store.service.IAppStoreService; | |||
import org.springframework.beans.factory.annotation.Autowired; | |||
import org.springframework.web.bind.annotation.*; | |||
import org.springframework.web.servlet.ModelAndView; | |||
import javax.servlet.http.HttpServletRequest; | |||
import javax.servlet.http.HttpServletResponse; | |||
import java.util.Arrays; | |||
import java.util.HashMap; | |||
import java.util.List; | |||
import java.util.Map; | |||
/** | |||
* @Description: 门店管理 | |||
* @Author: jeecg-boot | |||
* @Date: 2025-02-16 | |||
* @Version: V1.0 | |||
*/ | |||
@Api(tags="门店管理") | |||
@RestController | |||
@RequestMapping("miniapp/store") | |||
@Slf4j | |||
public class StoreController extends JeecgController<AppStore, IAppStoreService> { | |||
@Autowired | |||
private IAppStoreService appStoreService; | |||
/** | |||
* 列表查询 | |||
* | |||
* @param appStore | |||
* @param req | |||
* @return | |||
*/ | |||
//@AutoLog(value = "门店管理-分页列表查询") | |||
@ApiOperation(value="门店管理-列表查询", notes="门店管理-列表查询") | |||
@GetMapping(value = "/list") | |||
@IgnoreAuth | |||
public Result<List<AppStore>> queryPageList(AppStore appStore, HttpServletRequest req) { | |||
// 自定义查询规则 | |||
Map<String, QueryRuleEnum> customeRuleMap = new HashMap<>(); | |||
// 自定义多选的查询规则为:LIKE_WITH_OR | |||
customeRuleMap.put("status", QueryRuleEnum.LIKE_WITH_OR); | |||
if (appStore.getStatus()== null){ | |||
appStore.setStatus(1); | |||
} | |||
QueryWrapper<AppStore> queryWrapper = QueryGenerator.initQueryWrapper(appStore, req.getParameterMap(),customeRuleMap); | |||
List<AppStore> list = appStoreService.list(queryWrapper); | |||
return Result.OK(list); | |||
} | |||
} |
@ -1,4 +1,4 @@ | |||
package org.jeecg.modules.user.domain; | |||
package org.jeecg.modules.miniapp.user.domain; | |||
import lombok.Data; | |||
@ -1,7 +1,7 @@ | |||
package org.jeecg.modules.user.service; | |||
package org.jeecg.modules.miniapp.user.service; | |||
import org.jeecg.common.api.vo.Result; | |||
import org.jeecg.modules.user.domain.WxLoginInfo; | |||
import org.jeecg.modules.miniapp.user.domain.WxLoginInfo; | |||
/** | |||
* @author Tanzs |
@ -1,4 +1,4 @@ | |||
package org.jeecg.modules.utils; | |||
package org.jeecg.modules.miniapp.utils; | |||
import com.aliyuncs.utils.IOUtils; | |||
import org.apache.pdfbox.pdmodel.PDDocument; |