repo
stringclasses
1k values
file_url
stringlengths
96
373
file_path
stringlengths
11
294
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
6 values
commit_sha
stringclasses
1k values
retrieved_at
stringdate
2026-01-04 14:45:56
2026-01-04 18:30:23
truncated
bool
2 classes
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/controller/SmsHomeRecommendProductController.java
mall-admin/src/main/java/com/macro/mall/controller/SmsHomeRecommendProductController.java
package com.macro.mall.controller; import com.macro.mall.common.api.CommonPage; import com.macro.mall.common.api.CommonResult; import com.macro.mall.model.SmsHomeRecommendProduct; import com.macro.mall.service.SmsHomeRecommendProductService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import io.swagger.v3.oas.annotations.tags.Tag; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.*; import java.util.List; /** * 首页人气推荐管理Controller * Created by macro on 2018/11/6. */ @Controller @Api(tags = "SmsHomeRecommendProductController") @Tag(name = "SmsHomeRecommendProductController", description = "首页人气推荐管理") @RequestMapping("/home/recommendProduct") public class SmsHomeRecommendProductController { @Autowired private SmsHomeRecommendProductService recommendProductService; @ApiOperation("添加首页推荐") @RequestMapping(value = "/create", method = RequestMethod.POST) @ResponseBody public CommonResult create(@RequestBody List<SmsHomeRecommendProduct> homeRecommendProductList) { int count = recommendProductService.create(homeRecommendProductList); if (count > 0) { return CommonResult.success(count); } return CommonResult.failed(); } @ApiOperation("修改推荐排序") @RequestMapping(value = "/update/sort/{id}", method = RequestMethod.POST) @ResponseBody public CommonResult updateSort(@PathVariable Long id, Integer sort) { int count = recommendProductService.updateSort(id, sort); if (count > 0) { return CommonResult.success(count); } return CommonResult.failed(); } @ApiOperation("批量删除推荐") @RequestMapping(value = "/delete", method = RequestMethod.POST) @ResponseBody public CommonResult delete(@RequestParam("ids") List<Long> ids) { int count = recommendProductService.delete(ids); if (count > 0) { return CommonResult.success(count); } return CommonResult.failed(); } @ApiOperation("批量修改推荐状态") @RequestMapping(value = "/update/recommendStatus", method = RequestMethod.POST) @ResponseBody public CommonResult updateRecommendStatus(@RequestParam("ids") List<Long> ids, @RequestParam Integer recommendStatus) { int count = recommendProductService.updateRecommendStatus(ids, recommendStatus); if (count > 0) { return CommonResult.success(count); } return CommonResult.failed(); } @ApiOperation("分页查询推荐") @RequestMapping(value = "/list", method = RequestMethod.GET) @ResponseBody public CommonResult<CommonPage<SmsHomeRecommendProduct>> list(@RequestParam(value = "productName", required = false) String productName, @RequestParam(value = "recommendStatus", required = false) Integer recommendStatus, @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { List<SmsHomeRecommendProduct> homeRecommendProductList = recommendProductService.list(productName, recommendStatus, pageSize, pageNum); return CommonResult.success(CommonPage.restPage(homeRecommendProductList)); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/controller/PmsProductAttributeController.java
mall-admin/src/main/java/com/macro/mall/controller/PmsProductAttributeController.java
package com.macro.mall.controller; import com.macro.mall.common.api.CommonPage; import com.macro.mall.common.api.CommonResult; import com.macro.mall.dto.PmsProductAttributeParam; import com.macro.mall.dto.ProductAttrInfo; import com.macro.mall.model.PmsProductAttribute; import com.macro.mall.service.PmsProductAttributeService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; import io.swagger.annotations.ApiOperation; import io.swagger.v3.oas.annotations.tags.Tag; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.*; import java.util.List; /** * 商品属性管理Controller * Created by macro on 2018/4/26. */ @Controller @Api(tags = "PmsProductAttributeController") @Tag(name = "PmsProductAttributeController", description = "商品属性管理") @RequestMapping("/productAttribute") public class PmsProductAttributeController { @Autowired private PmsProductAttributeService productAttributeService; @ApiOperation("根据分类查询属性列表或参数列表") @ApiImplicitParams({@ApiImplicitParam(name = "type", value = "0表示属性,1表示参数", required = true, paramType = "query", dataType = "integer")}) @RequestMapping(value = "/list/{cid}", method = RequestMethod.GET) @ResponseBody public CommonResult<CommonPage<PmsProductAttribute>> getList(@PathVariable Long cid, @RequestParam(value = "type") Integer type, @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { List<PmsProductAttribute> productAttributeList = productAttributeService.getList(cid, type, pageSize, pageNum); return CommonResult.success(CommonPage.restPage(productAttributeList)); } @ApiOperation("添加商品属性信息") @RequestMapping(value = "/create", method = RequestMethod.POST) @ResponseBody public CommonResult create(@RequestBody PmsProductAttributeParam productAttributeParam) { int count = productAttributeService.create(productAttributeParam); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } } @ApiOperation("修改商品属性信息") @RequestMapping(value = "/update/{id}", method = RequestMethod.POST) @ResponseBody public CommonResult update(@PathVariable Long id, @RequestBody PmsProductAttributeParam productAttributeParam) { int count = productAttributeService.update(id, productAttributeParam); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } } @ApiOperation("查询单个商品属性") @RequestMapping(value = "/{id}", method = RequestMethod.GET) @ResponseBody public CommonResult<PmsProductAttribute> getItem(@PathVariable Long id) { PmsProductAttribute productAttribute = productAttributeService.getItem(id); return CommonResult.success(productAttribute); } @ApiOperation("批量删除商品属性") @RequestMapping(value = "/delete", method = RequestMethod.POST) @ResponseBody public CommonResult delete(@RequestParam("ids") List<Long> ids) { int count = productAttributeService.delete(ids); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } } @ApiOperation("根据商品分类的id获取商品属性及属性分类") @RequestMapping(value = "/attrInfo/{productCategoryId}", method = RequestMethod.GET) @ResponseBody public CommonResult<List<ProductAttrInfo>> getAttrInfo(@PathVariable Long productCategoryId) { List<ProductAttrInfo> productAttrInfoList = productAttributeService.getProductAttrInfo(productCategoryId); return CommonResult.success(productAttrInfoList); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/controller/SmsHomeBrandController.java
mall-admin/src/main/java/com/macro/mall/controller/SmsHomeBrandController.java
package com.macro.mall.controller; import com.macro.mall.common.api.CommonPage; import com.macro.mall.common.api.CommonResult; import com.macro.mall.model.SmsHomeBrand; import com.macro.mall.service.SmsHomeBrandService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import io.swagger.v3.oas.annotations.tags.Tag; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.*; import java.util.List; /** * 首页品牌管理Controller * Created by macro on 2018/11/6. */ @Controller @Api(tags = "SmsHomeBrandController") @Tag(name = "SmsHomeBrandController", description = "首页品牌管理") @RequestMapping("/home/brand") public class SmsHomeBrandController { @Autowired private SmsHomeBrandService homeBrandService; @ApiOperation("添加首页推荐品牌") @RequestMapping(value = "/create", method = RequestMethod.POST) @ResponseBody public CommonResult create(@RequestBody List<SmsHomeBrand> homeBrandList) { int count = homeBrandService.create(homeBrandList); if (count > 0) { return CommonResult.success(count); } return CommonResult.failed(); } @ApiOperation("修改推荐品牌排序") @RequestMapping(value = "/update/sort/{id}", method = RequestMethod.POST) @ResponseBody public CommonResult updateSort(@PathVariable Long id, Integer sort) { int count = homeBrandService.updateSort(id, sort); if (count > 0) { return CommonResult.success(count); } return CommonResult.failed(); } @ApiOperation("批量删除推荐品牌") @RequestMapping(value = "/delete", method = RequestMethod.POST) @ResponseBody public CommonResult delete(@RequestParam("ids") List<Long> ids) { int count = homeBrandService.delete(ids); if (count > 0) { return CommonResult.success(count); } return CommonResult.failed(); } @ApiOperation("批量修改推荐品牌状态") @RequestMapping(value = "/update/recommendStatus", method = RequestMethod.POST) @ResponseBody public CommonResult updateRecommendStatus(@RequestParam("ids") List<Long> ids, @RequestParam Integer recommendStatus) { int count = homeBrandService.updateRecommendStatus(ids, recommendStatus); if (count > 0) { return CommonResult.success(count); } return CommonResult.failed(); } @ApiOperation("分页查询推荐品牌") @RequestMapping(value = "/list", method = RequestMethod.GET) @ResponseBody public CommonResult<CommonPage<SmsHomeBrand>> list(@RequestParam(value = "brandName", required = false) String brandName, @RequestParam(value = "recommendStatus", required = false) Integer recommendStatus, @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { List<SmsHomeBrand> homeBrandList = homeBrandService.list(brandName, recommendStatus, pageSize, pageNum); return CommonResult.success(CommonPage.restPage(homeBrandList)); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/controller/SmsFlashPromotionController.java
mall-admin/src/main/java/com/macro/mall/controller/SmsFlashPromotionController.java
package com.macro.mall.controller; import com.macro.mall.common.api.CommonPage; import com.macro.mall.common.api.CommonResult; import com.macro.mall.model.SmsFlashPromotion; import com.macro.mall.service.SmsFlashPromotionService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import io.swagger.v3.oas.annotations.tags.Tag; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.*; import java.util.List; /** * 限时购活动管理Controller * Created by macro on 2018/11/16. */ @Controller @Api(tags = "SmsFlashPromotionController") @Tag(name = "SmsFlashPromotionController", description = "限时购活动管理") @RequestMapping("/flash") public class SmsFlashPromotionController { @Autowired private SmsFlashPromotionService flashPromotionService; @ApiOperation("添加活动") @RequestMapping(value = "/create", method = RequestMethod.POST) @ResponseBody public CommonResult create(@RequestBody SmsFlashPromotion flashPromotion) { int count = flashPromotionService.create(flashPromotion); if (count > 0) { return CommonResult.success(count); } return CommonResult.failed(); } @ApiOperation("编辑活动") @RequestMapping(value = "/update/{id}", method = RequestMethod.POST) @ResponseBody public CommonResult update(@PathVariable Long id, @RequestBody SmsFlashPromotion flashPromotion) { int count = flashPromotionService.update(id, flashPromotion); if (count > 0) { return CommonResult.success(count); } return CommonResult.failed(); } @ApiOperation("删除活动") @RequestMapping(value = "/delete/{id}", method = RequestMethod.POST) @ResponseBody public CommonResult delete(@PathVariable Long id) { int count = flashPromotionService.delete(id); if (count > 0) { return CommonResult.success(count); } return CommonResult.failed(); } @ApiOperation("修改上下线状态") @RequestMapping(value = "/update/status/{id}", method = RequestMethod.POST) @ResponseBody public CommonResult update(@PathVariable Long id, Integer status) { int count = flashPromotionService.updateStatus(id, status); if (count > 0) { return CommonResult.success(count); } return CommonResult.failed(); } @ApiOperation("获取活动详情") @RequestMapping(value = "/{id}", method = RequestMethod.GET) @ResponseBody public CommonResult<SmsFlashPromotion> getItem(@PathVariable Long id) { SmsFlashPromotion flashPromotion = flashPromotionService.getItem(id); return CommonResult.success(flashPromotion); } @ApiOperation("根据活动名称分页查询") @RequestMapping(value = "/list", method = RequestMethod.GET) @ResponseBody public CommonResult<CommonPage<SmsFlashPromotion>> getItem(@RequestParam(value = "keyword", required = false) String keyword, @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { List<SmsFlashPromotion> flashPromotionList = flashPromotionService.list(keyword, pageSize, pageNum); return CommonResult.success(CommonPage.restPage(flashPromotionList)); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/controller/SmsFlashPromotionProductRelationController.java
mall-admin/src/main/java/com/macro/mall/controller/SmsFlashPromotionProductRelationController.java
package com.macro.mall.controller; import com.macro.mall.common.api.CommonPage; import com.macro.mall.common.api.CommonResult; import com.macro.mall.dto.SmsFlashPromotionProduct; import com.macro.mall.model.SmsFlashPromotionProductRelation; import com.macro.mall.service.SmsFlashPromotionProductRelationService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import io.swagger.v3.oas.annotations.tags.Tag; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.*; import java.util.List; /** * 限时购和商品关系管理Controller * Created by macro on 2018/11/16. */ @Controller @Api(tags = "SmsFlashPromotionProductRelationController") @Tag(name = "SmsFlashPromotionProductRelationController", description = "限时购和商品关系管理") @RequestMapping("/flashProductRelation") public class SmsFlashPromotionProductRelationController { @Autowired private SmsFlashPromotionProductRelationService relationService; @ApiOperation("批量选择商品添加关联") @RequestMapping(value = "/create", method = RequestMethod.POST) @ResponseBody public CommonResult create(@RequestBody List<SmsFlashPromotionProductRelation> relationList) { int count = relationService.create(relationList); if (count > 0) { return CommonResult.success(count); } return CommonResult.failed(); } @ApiOperation("修改关联信息") @RequestMapping(value = "/update/{id}", method = RequestMethod.POST) @ResponseBody public CommonResult update(@PathVariable Long id, @RequestBody SmsFlashPromotionProductRelation relation) { int count = relationService.update(id, relation); if (count > 0) { return CommonResult.success(count); } return CommonResult.failed(); } @ApiOperation("删除关联") @RequestMapping(value = "/delete/{id}", method = RequestMethod.POST) @ResponseBody public CommonResult delete(@PathVariable Long id) { int count = relationService.delete(id); if (count > 0) { return CommonResult.success(count); } return CommonResult.failed(); } @ApiOperation("获取关联商品促销信息") @RequestMapping(value = "/{id}", method = RequestMethod.GET) @ResponseBody public CommonResult<SmsFlashPromotionProductRelation> getItem(@PathVariable Long id) { SmsFlashPromotionProductRelation relation = relationService.getItem(id); return CommonResult.success(relation); } @ApiOperation("分页查询不同场次关联及商品信息") @RequestMapping(value = "/list", method = RequestMethod.GET) @ResponseBody public CommonResult<CommonPage<SmsFlashPromotionProduct>> list(@RequestParam(value = "flashPromotionId") Long flashPromotionId, @RequestParam(value = "flashPromotionSessionId") Long flashPromotionSessionId, @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { List<SmsFlashPromotionProduct> flashPromotionProductList = relationService.list(flashPromotionId, flashPromotionSessionId, pageSize, pageNum); return CommonResult.success(CommonPage.restPage(flashPromotionProductList)); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/controller/OmsOrderReturnReasonController.java
mall-admin/src/main/java/com/macro/mall/controller/OmsOrderReturnReasonController.java
package com.macro.mall.controller; import com.macro.mall.common.api.CommonPage; import com.macro.mall.common.api.CommonResult; import com.macro.mall.model.OmsOrderReturnReason; import com.macro.mall.service.OmsOrderReturnReasonService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import io.swagger.v3.oas.annotations.tags.Tag; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.*; import java.util.List; /** * 退货原因管理Controller * Created by macro on 2018/10/17. */ @Controller @Api(tags = "OmsOrderReturnReasonController") @Tag(name = "OmsOrderReturnReasonController", description = "退货原因管理") @RequestMapping("/returnReason") public class OmsOrderReturnReasonController { @Autowired private OmsOrderReturnReasonService orderReturnReasonService; @ApiOperation("添加退货原因") @RequestMapping(value = "/create", method = RequestMethod.POST) @ResponseBody public CommonResult create(@RequestBody OmsOrderReturnReason returnReason) { int count = orderReturnReasonService.create(returnReason); if (count > 0) { return CommonResult.success(count); } return CommonResult.failed(); } @ApiOperation("修改退货原因") @RequestMapping(value = "/update/{id}", method = RequestMethod.POST) @ResponseBody public CommonResult update(@PathVariable Long id, @RequestBody OmsOrderReturnReason returnReason) { int count = orderReturnReasonService.update(id, returnReason); if (count > 0) { return CommonResult.success(count); } return CommonResult.failed(); } @ApiOperation("批量删除退货原因") @RequestMapping(value = "/delete", method = RequestMethod.POST) @ResponseBody public CommonResult delete(@RequestParam("ids") List<Long> ids) { int count = orderReturnReasonService.delete(ids); if (count > 0) { return CommonResult.success(count); } return CommonResult.failed(); } @ApiOperation("分页查询退货原因") @RequestMapping(value = "/list", method = RequestMethod.GET) @ResponseBody public CommonResult<CommonPage<OmsOrderReturnReason>> list(@RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { List<OmsOrderReturnReason> reasonList = orderReturnReasonService.list(pageSize, pageNum); return CommonResult.success(CommonPage.restPage(reasonList)); } @ApiOperation("获取单个退货原因详情信息") @RequestMapping(value = "/{id}", method = RequestMethod.GET) @ResponseBody public CommonResult<OmsOrderReturnReason> getItem(@PathVariable Long id) { OmsOrderReturnReason reason = orderReturnReasonService.getItem(id); return CommonResult.success(reason); } @ApiOperation("修改退货原因启用状态") @RequestMapping(value = "/update/status", method = RequestMethod.POST) @ResponseBody public CommonResult updateStatus(@RequestParam(value = "status") Integer status, @RequestParam("ids") List<Long> ids) { int count = orderReturnReasonService.updateStatus(ids, status); if (count > 0) { return CommonResult.success(count); } return CommonResult.failed(); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/controller/CmsSubjectController.java
mall-admin/src/main/java/com/macro/mall/controller/CmsSubjectController.java
package com.macro.mall.controller; import com.macro.mall.common.api.CommonPage; import com.macro.mall.common.api.CommonResult; import com.macro.mall.model.CmsSubject; import com.macro.mall.service.CmsSubjectService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import io.swagger.v3.oas.annotations.tags.Tag; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.ResponseBody; import java.util.List; /** * 商品专题管理Controller * Created by macro on 2018/6/1. */ @Controller @Api(tags = "CmsSubjectController") @Tag(name = "CmsSubjectController", description = "商品专题管理") @RequestMapping("/subject") public class CmsSubjectController { @Autowired private CmsSubjectService subjectService; @ApiOperation("获取全部商品专题") @RequestMapping(value = "/listAll", method = RequestMethod.GET) @ResponseBody public CommonResult<List<CmsSubject>> listAll() { List<CmsSubject> subjectList = subjectService.listAll(); return CommonResult.success(subjectList); } @ApiOperation(value = "根据专题名称分页获取商品专题") @RequestMapping(value = "/list", method = RequestMethod.GET) @ResponseBody public CommonResult<CommonPage<CmsSubject>> getList(@RequestParam(value = "keyword", required = false) String keyword, @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum, @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize) { List<CmsSubject> subjectList = subjectService.list(keyword, pageNum, pageSize); return CommonResult.success(CommonPage.restPage(subjectList)); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/controller/SmsCouponController.java
mall-admin/src/main/java/com/macro/mall/controller/SmsCouponController.java
package com.macro.mall.controller; import com.macro.mall.common.api.CommonPage; import com.macro.mall.common.api.CommonResult; import com.macro.mall.dto.SmsCouponParam; import com.macro.mall.model.SmsCoupon; import com.macro.mall.service.SmsCouponService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import io.swagger.v3.oas.annotations.tags.Tag; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.*; import java.util.List; /** * 优惠券管理Controller * Created by macro on 2018/8/28. */ @Controller @Api(tags = "SmsCouponController") @Tag(name = "SmsCouponController", description = "优惠券管理") @RequestMapping("/coupon") public class SmsCouponController { @Autowired private SmsCouponService couponService; @ApiOperation("添加优惠券") @RequestMapping(value = "/create", method = RequestMethod.POST) @ResponseBody public CommonResult add(@RequestBody SmsCouponParam couponParam) { int count = couponService.create(couponParam); if(count>0){ return CommonResult.success(count); } return CommonResult.failed(); } @ApiOperation("删除优惠券") @RequestMapping(value = "/delete/{id}", method = RequestMethod.POST) @ResponseBody public CommonResult delete(@PathVariable Long id) { int count = couponService.delete(id); if(count>0){ return CommonResult.success(count); } return CommonResult.failed(); } @ApiOperation("修改优惠券") @RequestMapping(value = "/update/{id}", method = RequestMethod.POST) @ResponseBody public CommonResult update(@PathVariable Long id,@RequestBody SmsCouponParam couponParam) { int count = couponService.update(id,couponParam); if(count>0){ return CommonResult.success(count); } return CommonResult.failed(); } @ApiOperation("根据优惠券名称和类型分页获取优惠券列表") @RequestMapping(value = "/list", method = RequestMethod.GET) @ResponseBody public CommonResult<CommonPage<SmsCoupon>> list( @RequestParam(value = "name",required = false) String name, @RequestParam(value = "type",required = false) Integer type, @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { List<SmsCoupon> couponList = couponService.list(name,type,pageSize,pageNum); return CommonResult.success(CommonPage.restPage(couponList)); } @ApiOperation("获取单个优惠券的详细信息") @RequestMapping(value = "/{id}", method = RequestMethod.GET) @ResponseBody public CommonResult<SmsCouponParam> getItem(@PathVariable Long id) { SmsCouponParam couponParam = couponService.getItem(id); return CommonResult.success(couponParam); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/controller/UmsRoleController.java
mall-admin/src/main/java/com/macro/mall/controller/UmsRoleController.java
package com.macro.mall.controller; import com.macro.mall.common.api.CommonPage; import com.macro.mall.common.api.CommonResult; import com.macro.mall.model.*; import com.macro.mall.service.UmsRoleService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import io.swagger.v3.oas.annotations.tags.Tag; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.*; import java.util.List; /** * 后台用户角色管理Controller * Created by macro on 2018/9/30. */ @Controller @Api(tags = "UmsRoleController") @Tag(name = "UmsRoleController", description = "后台用户角色管理") @RequestMapping("/role") public class UmsRoleController { @Autowired private UmsRoleService roleService; @ApiOperation("添加角色") @RequestMapping(value = "/create", method = RequestMethod.POST) @ResponseBody public CommonResult create(@RequestBody UmsRole role) { int count = roleService.create(role); if (count > 0) { return CommonResult.success(count); } return CommonResult.failed(); } @ApiOperation("修改角色") @RequestMapping(value = "/update/{id}", method = RequestMethod.POST) @ResponseBody public CommonResult update(@PathVariable Long id, @RequestBody UmsRole role) { int count = roleService.update(id, role); if (count > 0) { return CommonResult.success(count); } return CommonResult.failed(); } @ApiOperation("批量删除角色") @RequestMapping(value = "/delete", method = RequestMethod.POST) @ResponseBody public CommonResult delete(@RequestParam("ids") List<Long> ids) { int count = roleService.delete(ids); if (count > 0) { return CommonResult.success(count); } return CommonResult.failed(); } @ApiOperation("获取所有角色") @RequestMapping(value = "/listAll", method = RequestMethod.GET) @ResponseBody public CommonResult<List<UmsRole>> listAll() { List<UmsRole> roleList = roleService.list(); return CommonResult.success(roleList); } @ApiOperation("根据角色名称分页获取角色列表") @RequestMapping(value = "/list", method = RequestMethod.GET) @ResponseBody public CommonResult<CommonPage<UmsRole>> list(@RequestParam(value = "keyword", required = false) String keyword, @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { List<UmsRole> roleList = roleService.list(keyword, pageSize, pageNum); return CommonResult.success(CommonPage.restPage(roleList)); } @ApiOperation("修改角色状态") @RequestMapping(value = "/updateStatus/{id}", method = RequestMethod.POST) @ResponseBody public CommonResult updateStatus(@PathVariable Long id, @RequestParam(value = "status") Integer status) { UmsRole umsRole = new UmsRole(); umsRole.setStatus(status); int count = roleService.update(id, umsRole); if (count > 0) { return CommonResult.success(count); } return CommonResult.failed(); } @ApiOperation("获取角色相关菜单") @RequestMapping(value = "/listMenu/{roleId}", method = RequestMethod.GET) @ResponseBody public CommonResult<List<UmsMenu>> listMenu(@PathVariable Long roleId) { List<UmsMenu> roleList = roleService.listMenu(roleId); return CommonResult.success(roleList); } @ApiOperation("获取角色相关资源") @RequestMapping(value = "/listResource/{roleId}", method = RequestMethod.GET) @ResponseBody public CommonResult<List<UmsResource>> listResource(@PathVariable Long roleId) { List<UmsResource> roleList = roleService.listResource(roleId); return CommonResult.success(roleList); } @ApiOperation("给角色分配菜单") @RequestMapping(value = "/allocMenu", method = RequestMethod.POST) @ResponseBody public CommonResult allocMenu(@RequestParam Long roleId, @RequestParam List<Long> menuIds) { int count = roleService.allocMenu(roleId, menuIds); return CommonResult.success(count); } @ApiOperation("给角色分配资源") @RequestMapping(value = "/allocResource", method = RequestMethod.POST) @ResponseBody public CommonResult allocResource(@RequestParam Long roleId, @RequestParam List<Long> resourceIds) { int count = roleService.allocResource(roleId, resourceIds); return CommonResult.success(count); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/controller/SmsHomeAdvertiseController.java
mall-admin/src/main/java/com/macro/mall/controller/SmsHomeAdvertiseController.java
package com.macro.mall.controller; import com.macro.mall.common.api.CommonPage; import com.macro.mall.common.api.CommonResult; import com.macro.mall.model.SmsHomeAdvertise; import com.macro.mall.service.SmsHomeAdvertiseService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import io.swagger.v3.oas.annotations.tags.Tag; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.*; import java.util.List; /** * 首页轮播广告管理Controller * Created by macro on 2018/11/7. */ @Controller @Api(tags = "SmsHomeAdvertiseController") @Tag(name = "SmsHomeAdvertiseController", description = "首页轮播广告管理") @RequestMapping("/home/advertise") public class SmsHomeAdvertiseController { @Autowired private SmsHomeAdvertiseService advertiseService; @ApiOperation("添加广告") @RequestMapping(value = "/create", method = RequestMethod.POST) @ResponseBody public CommonResult create(@RequestBody SmsHomeAdvertise advertise) { int count = advertiseService.create(advertise); if (count > 0) return CommonResult.success(count); return CommonResult.failed(); } @ApiOperation("删除广告") @RequestMapping(value = "/delete", method = RequestMethod.POST) @ResponseBody public CommonResult delete(@RequestParam("ids") List<Long> ids) { int count = advertiseService.delete(ids); if (count > 0) return CommonResult.success(count); return CommonResult.failed(); } @ApiOperation("修改上下线状态") @RequestMapping(value = "/update/status/{id}", method = RequestMethod.POST) @ResponseBody public CommonResult updateStatus(@PathVariable Long id, Integer status) { int count = advertiseService.updateStatus(id, status); if (count > 0) return CommonResult.success(count); return CommonResult.failed(); } @ApiOperation("获取广告详情") @RequestMapping(value = "/{id}", method = RequestMethod.GET) @ResponseBody public CommonResult<SmsHomeAdvertise> getItem(@PathVariable Long id) { SmsHomeAdvertise advertise = advertiseService.getItem(id); return CommonResult.success(advertise); } @ApiOperation("修改广告") @RequestMapping(value = "/update/{id}", method = RequestMethod.POST) @ResponseBody public CommonResult update(@PathVariable Long id, @RequestBody SmsHomeAdvertise advertise) { int count = advertiseService.update(id, advertise); if (count > 0) return CommonResult.success(count); return CommonResult.failed(); } @ApiOperation("分页查询广告") @RequestMapping(value = "/list", method = RequestMethod.GET) @ResponseBody public CommonResult<CommonPage<SmsHomeAdvertise>> list(@RequestParam(value = "name", required = false) String name, @RequestParam(value = "type", required = false) Integer type, @RequestParam(value = "endTime", required = false) String endTime, @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { List<SmsHomeAdvertise> advertiseList = advertiseService.list(name, type, endTime, pageSize, pageNum); return CommonResult.success(CommonPage.restPage(advertiseList)); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/controller/PmsBrandController.java
mall-admin/src/main/java/com/macro/mall/controller/PmsBrandController.java
package com.macro.mall.controller; import com.macro.mall.common.api.CommonPage; import com.macro.mall.common.api.CommonResult; import com.macro.mall.dto.PmsBrandParam; import com.macro.mall.model.PmsBrand; import com.macro.mall.service.PmsBrandService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import io.swagger.v3.oas.annotations.tags.Tag; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; import java.util.List; /** * 商品品牌管理Controller * Created by macro on 2018/4/26. */ @Controller @Api(tags = "PmsBrandController") @Tag(name = "PmsBrandController", description = "商品品牌管理") @RequestMapping("/brand") public class PmsBrandController { @Autowired private PmsBrandService brandService; @ApiOperation(value = "获取全部品牌列表") @RequestMapping(value = "/listAll", method = RequestMethod.GET) @ResponseBody public CommonResult<List<PmsBrand>> getList() { return CommonResult.success(brandService.listAllBrand()); } @ApiOperation(value = "添加品牌") @RequestMapping(value = "/create", method = RequestMethod.POST) @ResponseBody public CommonResult create(@Validated @RequestBody PmsBrandParam pmsBrand) { CommonResult commonResult; int count = brandService.createBrand(pmsBrand); if (count == 1) { commonResult = CommonResult.success(count); } else { commonResult = CommonResult.failed(); } return commonResult; } @ApiOperation(value = "更新品牌") @RequestMapping(value = "/update/{id}", method = RequestMethod.POST) @ResponseBody public CommonResult update(@PathVariable("id") Long id, @Validated @RequestBody PmsBrandParam pmsBrandParam) { CommonResult commonResult; int count = brandService.updateBrand(id, pmsBrandParam); if (count == 1) { commonResult = CommonResult.success(count); } else { commonResult = CommonResult.failed(); } return commonResult; } @ApiOperation(value = "删除品牌") @RequestMapping(value = "/delete/{id}", method = RequestMethod.GET) @ResponseBody public CommonResult delete(@PathVariable("id") Long id) { int count = brandService.deleteBrand(id); if (count == 1) { return CommonResult.success(null); } else { return CommonResult.failed(); } } @ApiOperation(value = "根据品牌名称分页获取品牌列表") @RequestMapping(value = "/list", method = RequestMethod.GET) @ResponseBody public CommonResult<CommonPage<PmsBrand>> getList(@RequestParam(value = "keyword", required = false) String keyword, @RequestParam(value = "showStatus",required = false) Integer showStatus, @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum, @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize) { List<PmsBrand> brandList = brandService.listBrand(keyword,showStatus,pageNum, pageSize); return CommonResult.success(CommonPage.restPage(brandList)); } @ApiOperation(value = "根据编号查询品牌信息") @RequestMapping(value = "/{id}", method = RequestMethod.GET) @ResponseBody public CommonResult<PmsBrand> getItem(@PathVariable("id") Long id) { return CommonResult.success(brandService.getBrand(id)); } @ApiOperation(value = "批量删除品牌") @RequestMapping(value = "/delete/batch", method = RequestMethod.POST) @ResponseBody public CommonResult deleteBatch(@RequestParam("ids") List<Long> ids) { int count = brandService.deleteBrand(ids); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } } @ApiOperation(value = "批量更新显示状态") @RequestMapping(value = "/update/showStatus", method = RequestMethod.POST) @ResponseBody public CommonResult updateShowStatus(@RequestParam("ids") List<Long> ids, @RequestParam("showStatus") Integer showStatus) { int count = brandService.updateShowStatus(ids, showStatus); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } } @ApiOperation(value = "批量更新厂家制造商状态") @RequestMapping(value = "/update/factoryStatus", method = RequestMethod.POST) @ResponseBody public CommonResult updateFactoryStatus(@RequestParam("ids") List<Long> ids, @RequestParam("factoryStatus") Integer factoryStatus) { int count = brandService.updateFactoryStatus(ids, factoryStatus); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/controller/OmsOrderReturnApplyController.java
mall-admin/src/main/java/com/macro/mall/controller/OmsOrderReturnApplyController.java
package com.macro.mall.controller; import com.macro.mall.common.api.CommonPage; import com.macro.mall.common.api.CommonResult; import com.macro.mall.dto.OmsOrderReturnApplyResult; import com.macro.mall.dto.OmsReturnApplyQueryParam; import com.macro.mall.dto.OmsUpdateStatusParam; import com.macro.mall.model.OmsOrderReturnApply; import com.macro.mall.service.OmsOrderReturnApplyService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import io.swagger.v3.oas.annotations.tags.Tag; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.*; import java.util.List; /** * 订单退货申请管理Controller * Created by macro on 2018/10/18. */ @Controller @Api(tags = "OmsOrderReturnApplyController") @Tag(name = "OmsOrderReturnApplyController", description = "订单退货申请管理") @RequestMapping("/returnApply") public class OmsOrderReturnApplyController { @Autowired private OmsOrderReturnApplyService returnApplyService; @ApiOperation("分页查询退货申请") @RequestMapping(value = "/list", method = RequestMethod.GET) @ResponseBody public CommonResult<CommonPage<OmsOrderReturnApply>> list(OmsReturnApplyQueryParam queryParam, @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { List<OmsOrderReturnApply> returnApplyList = returnApplyService.list(queryParam, pageSize, pageNum); return CommonResult.success(CommonPage.restPage(returnApplyList)); } @ApiOperation("批量删除退货申请") @RequestMapping(value = "/delete", method = RequestMethod.POST) @ResponseBody public CommonResult delete(@RequestParam("ids") List<Long> ids) { int count = returnApplyService.delete(ids); if (count > 0) { return CommonResult.success(count); } return CommonResult.failed(); } @ApiOperation("获取退货申请详情") @RequestMapping(value = "/{id}", method = RequestMethod.GET) @ResponseBody public CommonResult getItem(@PathVariable Long id) { OmsOrderReturnApplyResult result = returnApplyService.getItem(id); return CommonResult.success(result); } @ApiOperation("修改退货申请状态") @RequestMapping(value = "/update/status/{id}", method = RequestMethod.POST) @ResponseBody public CommonResult updateStatus(@PathVariable Long id, @RequestBody OmsUpdateStatusParam statusParam) { int count = returnApplyService.updateStatus(id, statusParam); if (count > 0) { return CommonResult.success(count); } return CommonResult.failed(); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/controller/OmsOrderController.java
mall-admin/src/main/java/com/macro/mall/controller/OmsOrderController.java
package com.macro.mall.controller; import com.macro.mall.common.api.CommonPage; import com.macro.mall.common.api.CommonResult; import com.macro.mall.dto.*; import com.macro.mall.model.OmsOrder; import com.macro.mall.service.OmsOrderService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import io.swagger.v3.oas.annotations.tags.Tag; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.*; import java.util.List; /** * 订单管理Controller * Created by macro on 2018/10/11. */ @Controller @Api(tags = "OmsOrderController") @Tag(name = "OmsOrderController", description = "订单管理") @RequestMapping("/order") public class OmsOrderController { @Autowired private OmsOrderService orderService; @ApiOperation("查询订单") @RequestMapping(value = "/list", method = RequestMethod.GET) @ResponseBody public CommonResult<CommonPage<OmsOrder>> list(OmsOrderQueryParam queryParam, @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { List<OmsOrder> orderList = orderService.list(queryParam, pageSize, pageNum); return CommonResult.success(CommonPage.restPage(orderList)); } @ApiOperation("批量发货") @RequestMapping(value = "/update/delivery", method = RequestMethod.POST) @ResponseBody public CommonResult delivery(@RequestBody List<OmsOrderDeliveryParam> deliveryParamList) { int count = orderService.delivery(deliveryParamList); if (count > 0) { return CommonResult.success(count); } return CommonResult.failed(); } @ApiOperation("批量关闭订单") @RequestMapping(value = "/update/close", method = RequestMethod.POST) @ResponseBody public CommonResult close(@RequestParam("ids") List<Long> ids, @RequestParam String note) { int count = orderService.close(ids, note); if (count > 0) { return CommonResult.success(count); } return CommonResult.failed(); } @ApiOperation("批量删除订单") @RequestMapping(value = "/delete", method = RequestMethod.POST) @ResponseBody public CommonResult delete(@RequestParam("ids") List<Long> ids) { int count = orderService.delete(ids); if (count > 0) { return CommonResult.success(count); } return CommonResult.failed(); } @ApiOperation("获取订单详情:订单信息、商品信息、操作记录") @RequestMapping(value = "/{id}", method = RequestMethod.GET) @ResponseBody public CommonResult<OmsOrderDetail> detail(@PathVariable Long id) { OmsOrderDetail orderDetailResult = orderService.detail(id); return CommonResult.success(orderDetailResult); } @ApiOperation("修改收货人信息") @RequestMapping(value = "/update/receiverInfo", method = RequestMethod.POST) @ResponseBody public CommonResult updateReceiverInfo(@RequestBody OmsReceiverInfoParam receiverInfoParam) { int count = orderService.updateReceiverInfo(receiverInfoParam); if (count > 0) { return CommonResult.success(count); } return CommonResult.failed(); } @ApiOperation("修改订单费用信息") @RequestMapping(value = "/update/moneyInfo", method = RequestMethod.POST) @ResponseBody public CommonResult updateReceiverInfo(@RequestBody OmsMoneyInfoParam moneyInfoParam) { int count = orderService.updateMoneyInfo(moneyInfoParam); if (count > 0) { return CommonResult.success(count); } return CommonResult.failed(); } @ApiOperation("备注订单") @RequestMapping(value = "/update/note", method = RequestMethod.POST) @ResponseBody public CommonResult updateNote(@RequestParam("id") Long id, @RequestParam("note") String note, @RequestParam("status") Integer status) { int count = orderService.updateNote(id, note, status); if (count > 0) { return CommonResult.success(count); } return CommonResult.failed(); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/controller/UmsResourceCategoryController.java
mall-admin/src/main/java/com/macro/mall/controller/UmsResourceCategoryController.java
package com.macro.mall.controller; import com.macro.mall.common.api.CommonResult; import com.macro.mall.model.UmsResourceCategory; import com.macro.mall.service.UmsResourceCategoryService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import io.swagger.v3.oas.annotations.tags.Tag; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.*; import java.util.List; /** * 后台资源分类管理Controller * Created by macro on 2020/2/5. */ @Controller @Api(tags = "UmsResourceCategoryController") @Tag(name = "UmsResourceCategoryController", description = "后台资源分类管理") @RequestMapping("/resourceCategory") public class UmsResourceCategoryController { @Autowired private UmsResourceCategoryService resourceCategoryService; @ApiOperation("查询所有后台资源分类") @RequestMapping(value = "/listAll", method = RequestMethod.GET) @ResponseBody public CommonResult<List<UmsResourceCategory>> listAll() { List<UmsResourceCategory> resourceList = resourceCategoryService.listAll(); return CommonResult.success(resourceList); } @ApiOperation("添加后台资源分类") @RequestMapping(value = "/create", method = RequestMethod.POST) @ResponseBody public CommonResult create(@RequestBody UmsResourceCategory umsResourceCategory) { int count = resourceCategoryService.create(umsResourceCategory); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } } @ApiOperation("修改后台资源分类") @RequestMapping(value = "/update/{id}", method = RequestMethod.POST) @ResponseBody public CommonResult update(@PathVariable Long id, @RequestBody UmsResourceCategory umsResourceCategory) { int count = resourceCategoryService.update(id, umsResourceCategory); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } } @ApiOperation("根据ID删除后台资源分类") @RequestMapping(value = "/delete/{id}", method = RequestMethod.POST) @ResponseBody public CommonResult delete(@PathVariable Long id) { int count = resourceCategoryService.delete(id); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/controller/CmsPrefrenceAreaController.java
mall-admin/src/main/java/com/macro/mall/controller/CmsPrefrenceAreaController.java
package com.macro.mall.controller; import com.macro.mall.common.api.CommonResult; import com.macro.mall.model.CmsPrefrenceArea; import com.macro.mall.service.CmsPrefrenceAreaService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import io.swagger.v3.oas.annotations.tags.Tag; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.ResponseBody; import java.util.List; /** * 商品优选管理Controller * Created by macro on 2018/6/1. */ @Controller @Api(tags = "CmsPrefrenceAreaController") @Tag(name = "CmsPrefrenceAreaController", description = "商品优选管理") @RequestMapping("/prefrenceArea") public class CmsPrefrenceAreaController { @Autowired private CmsPrefrenceAreaService prefrenceAreaService; @ApiOperation("获取所有商品优选") @RequestMapping(value = "/listAll", method = RequestMethod.GET) @ResponseBody public CommonResult<List<CmsPrefrenceArea>> listAll() { List<CmsPrefrenceArea> prefrenceAreaList = prefrenceAreaService.listAll(); return CommonResult.success(prefrenceAreaList); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/controller/OmsOrderSettingController.java
mall-admin/src/main/java/com/macro/mall/controller/OmsOrderSettingController.java
package com.macro.mall.controller; import com.macro.mall.common.api.CommonResult; import com.macro.mall.model.OmsOrderSetting; import com.macro.mall.service.OmsOrderSettingService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import io.swagger.v3.oas.annotations.tags.Tag; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.*; /** * 订单设置管理Controller * Created by macro on 2018/10/16. */ @Controller @Api(tags = "OmsOrderSettingController") @Tag(name = "OmsOrderSettingController", description = "订单设置管理") @RequestMapping("/orderSetting") public class OmsOrderSettingController { @Autowired private OmsOrderSettingService orderSettingService; @ApiOperation("获取指定订单设置") @RequestMapping(value = "/{id}", method = RequestMethod.GET) @ResponseBody public CommonResult<OmsOrderSetting> getItem(@PathVariable Long id) { OmsOrderSetting orderSetting = orderSettingService.getItem(id); return CommonResult.success(orderSetting); } @ApiOperation("修改指定订单设置") @RequestMapping(value = "/update/{id}", method = RequestMethod.POST) @ResponseBody public CommonResult update(@PathVariable Long id, @RequestBody OmsOrderSetting orderSetting) { int count = orderSettingService.update(id,orderSetting); if(count>0){ return CommonResult.success(count); } return CommonResult.failed(); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/controller/SmsHomeNewProductController.java
mall-admin/src/main/java/com/macro/mall/controller/SmsHomeNewProductController.java
package com.macro.mall.controller; import com.macro.mall.common.api.CommonPage; import com.macro.mall.common.api.CommonResult; import com.macro.mall.model.SmsHomeNewProduct; import com.macro.mall.service.SmsHomeNewProductService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import io.swagger.v3.oas.annotations.tags.Tag; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.*; import java.util.List; /** * 首页新品管理Controller * Created by macro on 2018/11/6. */ @Controller @Api(tags = "SmsHomeNewProductController") @Tag(name = "SmsHomeNewProductController", description = "首页新品管理") @RequestMapping("/home/newProduct") public class SmsHomeNewProductController { @Autowired private SmsHomeNewProductService homeNewProductService; @ApiOperation("添加首页新品") @RequestMapping(value = "/create", method = RequestMethod.POST) @ResponseBody public CommonResult create(@RequestBody List<SmsHomeNewProduct> homeNewProductList) { int count = homeNewProductService.create(homeNewProductList); if (count > 0) { return CommonResult.success(count); } return CommonResult.failed(); } @ApiOperation("修改首页新品排序") @RequestMapping(value = "/update/sort/{id}", method = RequestMethod.POST) @ResponseBody public CommonResult updateSort(@PathVariable Long id, Integer sort) { int count = homeNewProductService.updateSort(id, sort); if (count > 0) { return CommonResult.success(count); } return CommonResult.failed(); } @ApiOperation("批量删除首页新品") @RequestMapping(value = "/delete", method = RequestMethod.POST) @ResponseBody public CommonResult delete(@RequestParam("ids") List<Long> ids) { int count = homeNewProductService.delete(ids); if (count > 0) { return CommonResult.success(count); } return CommonResult.failed(); } @ApiOperation("批量修改首页新品状态") @RequestMapping(value = "/update/recommendStatus", method = RequestMethod.POST) @ResponseBody public CommonResult updateRecommendStatus(@RequestParam("ids") List<Long> ids, @RequestParam Integer recommendStatus) { int count = homeNewProductService.updateRecommendStatus(ids, recommendStatus); if (count > 0) { return CommonResult.success(count); } return CommonResult.failed(); } @ApiOperation("分页查询首页新品") @RequestMapping(value = "/list", method = RequestMethod.GET) @ResponseBody public CommonResult<CommonPage<SmsHomeNewProduct>> list(@RequestParam(value = "productName", required = false) String productName, @RequestParam(value = "recommendStatus", required = false) Integer recommendStatus, @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { List<SmsHomeNewProduct> homeNewProductList = homeNewProductService.list(productName, recommendStatus, pageSize, pageNum); return CommonResult.success(CommonPage.restPage(homeNewProductList)); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/controller/MinioController.java
mall-admin/src/main/java/com/macro/mall/controller/MinioController.java
package com.macro.mall.controller; import cn.hutool.core.collection.CollUtil; import cn.hutool.json.JSONUtil; import com.macro.mall.common.api.CommonResult; import com.macro.mall.dto.BucketPolicyConfigDto; import com.macro.mall.dto.MinioUploadDto; import io.minio.*; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import io.swagger.v3.oas.annotations.tags.Tag; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; import java.text.SimpleDateFormat; import java.util.Date; /** * MinIO对象存储管理Controller * Created by macro on 2019/12/25. */ @Controller @Api(tags = "MinioController") @Tag(name = "MinioController", description = "MinIO对象存储管理") @RequestMapping("/minio") public class MinioController { private static final Logger LOGGER = LoggerFactory.getLogger(MinioController.class); @Value("${minio.endpoint}") private String ENDPOINT; @Value("${minio.bucketName}") private String BUCKET_NAME; @Value("${minio.accessKey}") private String ACCESS_KEY; @Value("${minio.secretKey}") private String SECRET_KEY; @ApiOperation("文件上传") @RequestMapping(value = "/upload", method = RequestMethod.POST) @ResponseBody public CommonResult upload(@RequestPart("file") MultipartFile file) { try { //创建一个MinIO的Java客户端 MinioClient minioClient =MinioClient.builder() .endpoint(ENDPOINT) .credentials(ACCESS_KEY,SECRET_KEY) .build(); boolean isExist = minioClient.bucketExists(BucketExistsArgs.builder().bucket(BUCKET_NAME).build()); if (isExist) { LOGGER.info("存储桶已经存在!"); } else { //创建存储桶并设置只读权限 minioClient.makeBucket(MakeBucketArgs.builder().bucket(BUCKET_NAME).build()); BucketPolicyConfigDto bucketPolicyConfigDto = createBucketPolicyConfigDto(BUCKET_NAME); SetBucketPolicyArgs setBucketPolicyArgs = SetBucketPolicyArgs.builder() .bucket(BUCKET_NAME) .config(JSONUtil.toJsonStr(bucketPolicyConfigDto)) .build(); minioClient.setBucketPolicy(setBucketPolicyArgs); } String filename = file.getOriginalFilename(); SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd"); // 设置存储对象名称 String objectName = sdf.format(new Date()) + "/" + filename; // 使用putObject上传一个文件到存储桶中 PutObjectArgs putObjectArgs = PutObjectArgs.builder() .bucket(BUCKET_NAME) .object(objectName) .contentType(file.getContentType()) .stream(file.getInputStream(), file.getSize(), ObjectWriteArgs.MIN_MULTIPART_SIZE).build(); minioClient.putObject(putObjectArgs); LOGGER.info("文件上传成功!"); MinioUploadDto minioUploadDto = new MinioUploadDto(); minioUploadDto.setName(filename); minioUploadDto.setUrl(ENDPOINT + "/" + BUCKET_NAME + "/" + objectName); return CommonResult.success(minioUploadDto); } catch (Exception e) { e.printStackTrace(); LOGGER.info("上传发生错误: {}!", e.getMessage()); } return CommonResult.failed(); } /** * 创建存储桶的访问策略,设置为只读权限 */ private BucketPolicyConfigDto createBucketPolicyConfigDto(String bucketName) { BucketPolicyConfigDto.Statement statement = BucketPolicyConfigDto.Statement.builder() .Effect("Allow") .Principal("*") .Action("s3:GetObject") .Resource("arn:aws:s3:::"+bucketName+"/*.**").build(); return BucketPolicyConfigDto.builder() .Version("2012-10-17") .Statement(CollUtil.toList(statement)) .build(); } @ApiOperation("文件删除") @RequestMapping(value = "/delete", method = RequestMethod.POST) @ResponseBody public CommonResult delete(@RequestParam("objectName") String objectName) { try { MinioClient minioClient = MinioClient.builder() .endpoint(ENDPOINT) .credentials(ACCESS_KEY,SECRET_KEY) .build(); minioClient.removeObject(RemoveObjectArgs.builder().bucket(BUCKET_NAME).object(objectName).build()); return CommonResult.success(null); } catch (Exception e) { e.printStackTrace(); } return CommonResult.failed(); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/controller/UmsAdminController.java
mall-admin/src/main/java/com/macro/mall/controller/UmsAdminController.java
package com.macro.mall.controller; import cn.hutool.core.collection.CollUtil; import com.macro.mall.common.api.CommonPage; import com.macro.mall.common.api.CommonResult; import com.macro.mall.dto.UmsAdminLoginParam; import com.macro.mall.dto.UmsAdminParam; import com.macro.mall.dto.UpdateAdminPasswordParam; import com.macro.mall.model.UmsAdmin; import com.macro.mall.model.UmsRole; import com.macro.mall.service.UmsAdminService; import com.macro.mall.service.UmsRoleService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import io.swagger.v3.oas.annotations.tags.Tag; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Controller; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; import javax.servlet.http.HttpServletRequest; import java.security.Principal; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.stream.Collectors; /** * 后台用户管理Controller * Created by macro on 2018/4/26. */ @Controller @Api(tags = "UmsAdminController") @Tag(name = "UmsAdminController", description = "后台用户管理") @RequestMapping("/admin") public class UmsAdminController { @Value("${jwt.tokenHeader}") private String tokenHeader; @Value("${jwt.tokenHead}") private String tokenHead; @Autowired private UmsAdminService adminService; @Autowired private UmsRoleService roleService; @ApiOperation(value = "用户注册") @RequestMapping(value = "/register", method = RequestMethod.POST) @ResponseBody public CommonResult<UmsAdmin> register(@Validated @RequestBody UmsAdminParam umsAdminParam) { UmsAdmin umsAdmin = adminService.register(umsAdminParam); if (umsAdmin == null) { return CommonResult.failed(); } return CommonResult.success(umsAdmin); } @ApiOperation(value = "登录以后返回token") @RequestMapping(value = "/login", method = RequestMethod.POST) @ResponseBody public CommonResult login(@Validated @RequestBody UmsAdminLoginParam umsAdminLoginParam) { String token = adminService.login(umsAdminLoginParam.getUsername(), umsAdminLoginParam.getPassword()); if (token == null) { return CommonResult.validateFailed("用户名或密码错误"); } Map<String, String> tokenMap = new HashMap<>(); tokenMap.put("token", token); tokenMap.put("tokenHead", tokenHead); return CommonResult.success(tokenMap); } @ApiOperation(value = "刷新token") @RequestMapping(value = "/refreshToken", method = RequestMethod.GET) @ResponseBody public CommonResult refreshToken(HttpServletRequest request) { String token = request.getHeader(tokenHeader); String refreshToken = adminService.refreshToken(token); if (refreshToken == null) { return CommonResult.failed("token已经过期!"); } Map<String, String> tokenMap = new HashMap<>(); tokenMap.put("token", refreshToken); tokenMap.put("tokenHead", tokenHead); return CommonResult.success(tokenMap); } @ApiOperation(value = "获取当前登录用户信息") @RequestMapping(value = "/info", method = RequestMethod.GET) @ResponseBody public CommonResult getAdminInfo(Principal principal) { if(principal==null){ return CommonResult.unauthorized(null); } String username = principal.getName(); UmsAdmin umsAdmin = adminService.getAdminByUsername(username); Map<String, Object> data = new HashMap<>(); data.put("username", umsAdmin.getUsername()); data.put("menus", roleService.getMenuList(umsAdmin.getId())); data.put("icon", umsAdmin.getIcon()); List<UmsRole> roleList = adminService.getRoleList(umsAdmin.getId()); if(CollUtil.isNotEmpty(roleList)){ List<String> roles = roleList.stream().map(UmsRole::getName).collect(Collectors.toList()); data.put("roles",roles); } return CommonResult.success(data); } @ApiOperation(value = "登出功能") @RequestMapping(value = "/logout", method = RequestMethod.POST) @ResponseBody public CommonResult logout(Principal principal) { adminService.logout(principal.getName()); return CommonResult.success(null); } @ApiOperation("根据用户名或姓名分页获取用户列表") @RequestMapping(value = "/list", method = RequestMethod.GET) @ResponseBody public CommonResult<CommonPage<UmsAdmin>> list(@RequestParam(value = "keyword", required = false) String keyword, @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { List<UmsAdmin> adminList = adminService.list(keyword, pageSize, pageNum); return CommonResult.success(CommonPage.restPage(adminList)); } @ApiOperation("获取指定用户信息") @RequestMapping(value = "/{id}", method = RequestMethod.GET) @ResponseBody public CommonResult<UmsAdmin> getItem(@PathVariable Long id) { UmsAdmin admin = adminService.getItem(id); return CommonResult.success(admin); } @ApiOperation("修改指定用户信息") @RequestMapping(value = "/update/{id}", method = RequestMethod.POST) @ResponseBody public CommonResult update(@PathVariable Long id, @RequestBody UmsAdmin admin) { int count = adminService.update(id, admin); if (count > 0) { return CommonResult.success(count); } return CommonResult.failed(); } @ApiOperation("修改指定用户密码") @RequestMapping(value = "/updatePassword", method = RequestMethod.POST) @ResponseBody public CommonResult updatePassword(@Validated @RequestBody UpdateAdminPasswordParam updatePasswordParam) { int status = adminService.updatePassword(updatePasswordParam); if (status > 0) { return CommonResult.success(status); } else if (status == -1) { return CommonResult.failed("提交参数不合法"); } else if (status == -2) { return CommonResult.failed("找不到该用户"); } else if (status == -3) { return CommonResult.failed("旧密码错误"); } else { return CommonResult.failed(); } } @ApiOperation("删除指定用户信息") @RequestMapping(value = "/delete/{id}", method = RequestMethod.POST) @ResponseBody public CommonResult delete(@PathVariable Long id) { int count = adminService.delete(id); if (count > 0) { return CommonResult.success(count); } return CommonResult.failed(); } @ApiOperation("修改帐号状态") @RequestMapping(value = "/updateStatus/{id}", method = RequestMethod.POST) @ResponseBody public CommonResult updateStatus(@PathVariable Long id,@RequestParam(value = "status") Integer status) { UmsAdmin umsAdmin = new UmsAdmin(); umsAdmin.setStatus(status); int count = adminService.update(id,umsAdmin); if (count > 0) { return CommonResult.success(count); } return CommonResult.failed(); } @ApiOperation("给用户分配角色") @RequestMapping(value = "/role/update", method = RequestMethod.POST) @ResponseBody public CommonResult updateRole(@RequestParam("adminId") Long adminId, @RequestParam("roleIds") List<Long> roleIds) { int count = adminService.updateRole(adminId, roleIds); if (count >= 0) { return CommonResult.success(count); } return CommonResult.failed(); } @ApiOperation("获取指定用户的角色") @RequestMapping(value = "/role/{adminId}", method = RequestMethod.GET) @ResponseBody public CommonResult<List<UmsRole>> getRoleList(@PathVariable Long adminId) { List<UmsRole> roleList = adminService.getRoleList(adminId); return CommonResult.success(roleList); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/controller/PmsProductAttributeCategoryController.java
mall-admin/src/main/java/com/macro/mall/controller/PmsProductAttributeCategoryController.java
package com.macro.mall.controller; import com.macro.mall.common.api.CommonPage; import com.macro.mall.common.api.CommonResult; import com.macro.mall.dto.PmsProductAttributeCategoryItem; import com.macro.mall.model.PmsProductAttributeCategory; import com.macro.mall.service.PmsProductAttributeCategoryService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import io.swagger.v3.oas.annotations.tags.Tag; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.*; import java.util.List; /** * 商品属性分类管理Controller * Created by macro on 2018/4/26. */ @Controller @Api(tags = "PmsProductAttributeCategoryController") @Tag(name = "PmsProductAttributeCategoryController", description = "商品属性分类管理") @RequestMapping("/productAttribute/category") public class PmsProductAttributeCategoryController { @Autowired private PmsProductAttributeCategoryService productAttributeCategoryService; @ApiOperation("添加商品属性分类") @RequestMapping(value = "/create", method = RequestMethod.POST) @ResponseBody public CommonResult create(@RequestParam String name) { int count = productAttributeCategoryService.create(name); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } } @ApiOperation("修改商品属性分类") @RequestMapping(value = "/update/{id}", method = RequestMethod.POST) @ResponseBody public CommonResult update(@PathVariable Long id, @RequestParam String name) { int count = productAttributeCategoryService.update(id, name); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } } @ApiOperation("删除单个商品属性分类") @RequestMapping(value = "/delete/{id}", method = RequestMethod.GET) @ResponseBody public CommonResult delete(@PathVariable Long id) { int count = productAttributeCategoryService.delete(id); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } } @ApiOperation("获取单个商品属性分类信息") @RequestMapping(value = "/{id}", method = RequestMethod.GET) @ResponseBody public CommonResult<PmsProductAttributeCategory> getItem(@PathVariable Long id) { PmsProductAttributeCategory productAttributeCategory = productAttributeCategoryService.getItem(id); return CommonResult.success(productAttributeCategory); } @ApiOperation("分页获取所有商品属性分类") @RequestMapping(value = "/list", method = RequestMethod.GET) @ResponseBody public CommonResult<CommonPage<PmsProductAttributeCategory>> getList(@RequestParam(defaultValue = "5") Integer pageSize, @RequestParam(defaultValue = "1") Integer pageNum) { List<PmsProductAttributeCategory> productAttributeCategoryList = productAttributeCategoryService.getList(pageSize, pageNum); return CommonResult.success(CommonPage.restPage(productAttributeCategoryList)); } @ApiOperation("获取所有商品属性分类及其下属性") @RequestMapping(value = "/list/withAttr", method = RequestMethod.GET) @ResponseBody public CommonResult<List<PmsProductAttributeCategoryItem>> getListWithAttr() { List<PmsProductAttributeCategoryItem> productAttributeCategoryResultList = productAttributeCategoryService.getListWithAttr(); return CommonResult.success(productAttributeCategoryResultList); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/controller/PmsProductCategoryController.java
mall-admin/src/main/java/com/macro/mall/controller/PmsProductCategoryController.java
package com.macro.mall.controller; import com.macro.mall.common.api.CommonPage; import com.macro.mall.common.api.CommonResult; import com.macro.mall.dto.PmsProductCategoryParam; import com.macro.mall.dto.PmsProductCategoryWithChildrenItem; import com.macro.mall.model.PmsProductCategory; import com.macro.mall.service.PmsProductCategoryService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import io.swagger.v3.oas.annotations.tags.Tag; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; import java.util.List; /** * 商品分类管理Controller * Created by macro on 2018/4/26. */ @Controller @Api(tags = "PmsProductCategoryController") @Tag(name = "PmsProductCategoryController", description = "商品分类管理") @RequestMapping("/productCategory") public class PmsProductCategoryController { @Autowired private PmsProductCategoryService productCategoryService; @ApiOperation("添加商品分类") @RequestMapping(value = "/create", method = RequestMethod.POST) @ResponseBody public CommonResult create(@Validated @RequestBody PmsProductCategoryParam productCategoryParam) { int count = productCategoryService.create(productCategoryParam); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } } @ApiOperation("修改商品分类") @RequestMapping(value = "/update/{id}", method = RequestMethod.POST) @ResponseBody public CommonResult update(@PathVariable Long id, @Validated @RequestBody PmsProductCategoryParam productCategoryParam) { int count = productCategoryService.update(id, productCategoryParam); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } } @ApiOperation("分页查询商品分类") @RequestMapping(value = "/list/{parentId}", method = RequestMethod.GET) @ResponseBody public CommonResult<CommonPage<PmsProductCategory>> getList(@PathVariable Long parentId, @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { List<PmsProductCategory> productCategoryList = productCategoryService.getList(parentId, pageSize, pageNum); return CommonResult.success(CommonPage.restPage(productCategoryList)); } @ApiOperation("根据id获取商品分类") @RequestMapping(value = "/{id}", method = RequestMethod.GET) @ResponseBody public CommonResult<PmsProductCategory> getItem(@PathVariable Long id) { PmsProductCategory productCategory = productCategoryService.getItem(id); return CommonResult.success(productCategory); } @ApiOperation("删除商品分类") @RequestMapping(value = "/delete/{id}", method = RequestMethod.POST) @ResponseBody public CommonResult delete(@PathVariable Long id) { int count = productCategoryService.delete(id); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } } @ApiOperation("修改导航栏显示状态") @RequestMapping(value = "/update/navStatus", method = RequestMethod.POST) @ResponseBody public CommonResult updateNavStatus(@RequestParam("ids") List<Long> ids, @RequestParam("navStatus") Integer navStatus) { int count = productCategoryService.updateNavStatus(ids, navStatus); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } } @ApiOperation("修改显示状态") @RequestMapping(value = "/update/showStatus", method = RequestMethod.POST) @ResponseBody public CommonResult updateShowStatus(@RequestParam("ids") List<Long> ids, @RequestParam("showStatus") Integer showStatus) { int count = productCategoryService.updateShowStatus(ids, showStatus); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } } @ApiOperation("查询所有一级分类及子分类") @RequestMapping(value = "/list/withChildren", method = RequestMethod.GET) @ResponseBody public CommonResult<List<PmsProductCategoryWithChildrenItem>> listWithChildren() { List<PmsProductCategoryWithChildrenItem> list = productCategoryService.listWithChildren(); return CommonResult.success(list); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/dto/OmsUpdateStatusParam.java
mall-admin/src/main/java/com/macro/mall/dto/OmsUpdateStatusParam.java
package com.macro.mall.dto; import io.swagger.annotations.ApiModelProperty; import lombok.Getter; import lombok.Setter; import java.math.BigDecimal; /** * 确认收货请求参数 * Created by macro on 2018/10/18. */ @Getter @Setter public class OmsUpdateStatusParam { @ApiModelProperty("服务单号") private Long id; @ApiModelProperty("收货地址关联id") private Long companyAddressId; @ApiModelProperty("确认退款金额") private BigDecimal returnAmount; @ApiModelProperty("处理备注") private String handleNote; @ApiModelProperty("处理人") private String handleMan; @ApiModelProperty("收货备注") private String receiveNote; @ApiModelProperty("收货人") private String receiveMan; @ApiModelProperty("申请状态:1->退货中;2->已完成;3->已拒绝") private Integer status; }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/dto/OmsMoneyInfoParam.java
mall-admin/src/main/java/com/macro/mall/dto/OmsMoneyInfoParam.java
package com.macro.mall.dto; import io.swagger.annotations.ApiModelProperty; import lombok.Getter; import lombok.Setter; import java.math.BigDecimal; /** * 修改订单费用信息参数 * Created by macro on 2018/10/29. */ @Getter @Setter public class OmsMoneyInfoParam { @ApiModelProperty("订单ID") private Long orderId; @ApiModelProperty("运费金额") private BigDecimal freightAmount; @ApiModelProperty("管理员后台调整订单所使用的折扣金额") private BigDecimal discountAmount; @ApiModelProperty("订单状态:0->待付款;1->待发货;2->已发货;3->已完成;4->已关闭;5->无效订单") private Integer status; }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/dto/BucketPolicyConfigDto.java
mall-admin/src/main/java/com/macro/mall/dto/BucketPolicyConfigDto.java
package com.macro.mall.dto; import lombok.Builder; import lombok.Data; import lombok.EqualsAndHashCode; import java.util.List; /** * Minio Bucket访问策略配置 * Created by macro on 2020/8/11. */ @Data @EqualsAndHashCode @Builder public class BucketPolicyConfigDto { private String Version; private List<Statement> Statement; @Data @EqualsAndHashCode @Builder public static class Statement { private String Effect; private String Principal; private String Action; private String Resource; } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/dto/PmsProductResult.java
mall-admin/src/main/java/com/macro/mall/dto/PmsProductResult.java
package com.macro.mall.dto; import io.swagger.annotations.ApiModelProperty; import lombok.Getter; import lombok.Setter; /** * 查询单个商品修改后返回的结果 * Created by macro on 2018/4/26. */ public class PmsProductResult extends PmsProductParam { @Getter @Setter @ApiModelProperty("商品所选分类的父id") private Long cateParentId; }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/dto/MinioUploadDto.java
mall-admin/src/main/java/com/macro/mall/dto/MinioUploadDto.java
package com.macro.mall.dto; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import lombok.EqualsAndHashCode; /** * 文件上传返回结果 * Created by macro on 2019/12/25. */ @Data @EqualsAndHashCode public class MinioUploadDto { @ApiModelProperty("文件访问URL") private String url; @ApiModelProperty("文件名称") private String name; }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/dto/PmsProductAttributeParam.java
mall-admin/src/main/java/com/macro/mall/dto/PmsProductAttributeParam.java
package com.macro.mall.dto; import com.macro.mall.validator.FlagValidator; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import lombok.EqualsAndHashCode; import javax.validation.constraints.NotEmpty; /** * 商品属性参数 * Created by macro on 2018/4/26. */ @Data @EqualsAndHashCode public class PmsProductAttributeParam { @NotEmpty @ApiModelProperty("属性分类ID") private Long productAttributeCategoryId; @NotEmpty @ApiModelProperty("属性名称") private String name; @FlagValidator({"0","1","2"}) @ApiModelProperty("属性选择类型:0->唯一;1->单选;2->多选") private Integer selectType; @FlagValidator({"0","1"}) @ApiModelProperty("属性录入方式:0->手工录入;1->从列表中选取") private Integer inputType; @ApiModelProperty("可选值列表,以逗号隔开") private String inputList; private Integer sort; @ApiModelProperty("分类筛选样式:0->普通;1->颜色") @FlagValidator({"0","1"}) private Integer filterType; @ApiModelProperty("检索类型;0->不需要进行检索;1->关键字检索;2->范围检索") @FlagValidator({"0","1","2"}) private Integer searchType; @ApiModelProperty("相同属性商品是否关联;0->不关联;1->关联") @FlagValidator({"0","1"}) private Integer relatedStatus; @ApiModelProperty("是否支持手动新增;0->不支持;1->支持") @FlagValidator({"0","1"}) private Integer handAddStatus; @ApiModelProperty("属性的类型;0->规格;1->参数") @FlagValidator({"0","1"}) private Integer type; }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/dto/OssPolicyResult.java
mall-admin/src/main/java/com/macro/mall/dto/OssPolicyResult.java
package com.macro.mall.dto; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import lombok.EqualsAndHashCode; /** * 获取OSS上传文件授权返回结果 * Created by macro on 2018/5/17. */ @Data @EqualsAndHashCode public class OssPolicyResult { @ApiModelProperty("访问身份验证中用到用户标识") private String accessKeyId; @ApiModelProperty("用户表单上传的策略,经过base64编码过的字符串") private String policy; @ApiModelProperty("对policy签名后的字符串") private String signature; @ApiModelProperty("上传文件夹路径前缀") private String dir; @ApiModelProperty("oss对外服务的访问域名") private String host; @ApiModelProperty("上传成功后的回调设置") private String callback; }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/dto/OssCallbackResult.java
mall-admin/src/main/java/com/macro/mall/dto/OssCallbackResult.java
package com.macro.mall.dto; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import lombok.EqualsAndHashCode; /** * OSS上传文件的回调结果 * Created by macro on 2018/5/17. */ @Data @EqualsAndHashCode public class OssCallbackResult { @ApiModelProperty("文件名称") private String filename; @ApiModelProperty("文件大小") private String size; @ApiModelProperty("文件的mimeType") private String mimeType; @ApiModelProperty("图片文件的宽") private String width; @ApiModelProperty("图片文件的高") private String height; }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/dto/SmsFlashPromotionProduct.java
mall-admin/src/main/java/com/macro/mall/dto/SmsFlashPromotionProduct.java
package com.macro.mall.dto; import com.macro.mall.model.PmsProduct; import com.macro.mall.model.SmsFlashPromotionProductRelation; import io.swagger.annotations.ApiModelProperty; import lombok.Getter; import lombok.Setter; /** * 限时购商品信息封装 * Created by macro on 2018/11/16. */ public class SmsFlashPromotionProduct extends SmsFlashPromotionProductRelation{ @Getter @Setter @ApiModelProperty("关联商品") private PmsProduct product; }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/dto/PmsProductCategoryParam.java
mall-admin/src/main/java/com/macro/mall/dto/PmsProductCategoryParam.java
package com.macro.mall.dto; import com.macro.mall.validator.FlagValidator; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import lombok.EqualsAndHashCode; import javax.validation.constraints.Min; import javax.validation.constraints.NotEmpty; import java.util.List; /** * 添加更新商品分类的参数 * Created by macro on 2018/4/26. */ @Data @EqualsAndHashCode public class PmsProductCategoryParam { @ApiModelProperty("父分类的编号") private Long parentId; @NotEmpty @ApiModelProperty(value = "商品分类名称",required = true) private String name; @ApiModelProperty("分类单位") private String productUnit; @FlagValidator(value = {"0","1"},message = "状态只能为0或1") @ApiModelProperty("是否在导航栏显示") private Integer navStatus; @FlagValidator(value = {"0","1"},message = "状态只能为0或1") @ApiModelProperty("是否进行显示") private Integer showStatus; @Min(value = 0) @ApiModelProperty("排序") private Integer sort; @ApiModelProperty("图标") private String icon; @ApiModelProperty("关键字") private String keywords; @ApiModelProperty("描述") private String description; @ApiModelProperty("商品相关筛选属性集合") private List<Long> productAttributeIdList; }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/dto/OmsReturnApplyQueryParam.java
mall-admin/src/main/java/com/macro/mall/dto/OmsReturnApplyQueryParam.java
package com.macro.mall.dto; import io.swagger.annotations.ApiModelProperty; import lombok.Getter; import lombok.Setter; /** * 订单退货申请查询参数 * Created by macro on 2018/10/18. */ @Getter @Setter public class OmsReturnApplyQueryParam { @ApiModelProperty("服务单号") private Long id; @ApiModelProperty(value = "收货人姓名/号码") private String receiverKeyword; @ApiModelProperty(value = "申请状态:0->待处理;1->退货中;2->已完成;3->已拒绝") private Integer status; @ApiModelProperty(value = "申请时间") private String createTime; @ApiModelProperty(value = "处理人员") private String handleMan; @ApiModelProperty(value = "处理时间") private String handleTime; }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/dto/UpdateAdminPasswordParam.java
mall-admin/src/main/java/com/macro/mall/dto/UpdateAdminPasswordParam.java
package com.macro.mall.dto; import io.swagger.annotations.ApiModelProperty; import lombok.Getter; import lombok.Setter; import javax.validation.constraints.NotEmpty; /** * 修改用户名密码参数 * Created by macro on 2019/10/9. */ @Getter @Setter public class UpdateAdminPasswordParam { @NotEmpty @ApiModelProperty(value = "用户名", required = true) private String username; @NotEmpty @ApiModelProperty(value = "旧密码", required = true) private String oldPassword; @NotEmpty @ApiModelProperty(value = "新密码", required = true) private String newPassword; }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/dto/UmsMenuNode.java
mall-admin/src/main/java/com/macro/mall/dto/UmsMenuNode.java
package com.macro.mall.dto; import com.macro.mall.model.UmsMenu; import io.swagger.annotations.ApiModelProperty; import lombok.Getter; import lombok.Setter; import java.util.List; /** * 后台菜单节点封装 * Created by macro on 2020/2/4. */ @Getter @Setter public class UmsMenuNode extends UmsMenu { @ApiModelProperty(value = "子级菜单") private List<UmsMenuNode> children; }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/dto/OssCallbackParam.java
mall-admin/src/main/java/com/macro/mall/dto/OssCallbackParam.java
package com.macro.mall.dto; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import lombok.EqualsAndHashCode; /** * OSS上传成功后的回调参数 * Created by macro on 2018/5/17. */ @Data @EqualsAndHashCode public class OssCallbackParam { @ApiModelProperty("请求的回调地址") private String callbackUrl; @ApiModelProperty("回调是传入request中的参数") private String callbackBody; @ApiModelProperty("回调时传入参数的格式,比如表单提交形式") private String callbackBodyType; }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/dto/SmsFlashPromotionSessionDetail.java
mall-admin/src/main/java/com/macro/mall/dto/SmsFlashPromotionSessionDetail.java
package com.macro.mall.dto; import com.macro.mall.model.SmsFlashPromotionSession; import io.swagger.annotations.ApiModelProperty; import lombok.Getter; import lombok.Setter; /** * 包含商品数量的场次信息 * Created by macro on 2018/11/19. */ public class SmsFlashPromotionSessionDetail extends SmsFlashPromotionSession { @Setter @Getter @ApiModelProperty("商品数量") private Long productCount; }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/dto/OmsOrderDetail.java
mall-admin/src/main/java/com/macro/mall/dto/OmsOrderDetail.java
package com.macro.mall.dto; import com.macro.mall.model.OmsOrder; import com.macro.mall.model.OmsOrderItem; import com.macro.mall.model.OmsOrderOperateHistory; import io.swagger.annotations.ApiModelProperty; import lombok.Getter; import lombok.Setter; import java.util.List; /** * 订单详情信息 * Created by macro on 2018/10/11. */ public class OmsOrderDetail extends OmsOrder { @Getter @Setter @ApiModelProperty("订单商品列表") private List<OmsOrderItem> orderItemList; @Getter @Setter @ApiModelProperty("订单操作记录列表") private List<OmsOrderOperateHistory> historyList; }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/dto/PmsProductCategoryWithChildrenItem.java
mall-admin/src/main/java/com/macro/mall/dto/PmsProductCategoryWithChildrenItem.java
package com.macro.mall.dto; import com.macro.mall.model.PmsProductCategory; import io.swagger.annotations.ApiModelProperty; import lombok.Getter; import lombok.Setter; import java.util.List; /** * 包含子级分类的商品分类 * Created by macro on 2018/5/25. */ public class PmsProductCategoryWithChildrenItem extends PmsProductCategory { @Getter @Setter @ApiModelProperty("子级分类") private List<PmsProductCategory> children; }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/dto/PmsBrandParam.java
mall-admin/src/main/java/com/macro/mall/dto/PmsBrandParam.java
package com.macro.mall.dto; import com.macro.mall.validator.FlagValidator; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import lombok.EqualsAndHashCode; import javax.validation.constraints.Min; import javax.validation.constraints.NotEmpty; /** * 品牌请求参数 * Created by macro on 2018/4/26. */ @Data @EqualsAndHashCode public class PmsBrandParam { @NotEmpty @ApiModelProperty(value = "品牌名称",required = true) private String name; @ApiModelProperty(value = "品牌首字母") private String firstLetter; @Min(value = 0) @ApiModelProperty(value = "排序字段") private Integer sort; @FlagValidator(value = {"0","1"}, message = "厂家状态不正确") @ApiModelProperty(value = "是否为厂家制造商") private Integer factoryStatus; @FlagValidator(value = {"0","1"}, message = "显示状态不正确") @ApiModelProperty(value = "是否进行显示") private Integer showStatus; @NotEmpty @ApiModelProperty(value = "品牌logo",required = true) private String logo; @ApiModelProperty(value = "品牌大图") private String bigPic; @ApiModelProperty(value = "品牌故事") private String brandStory; }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/dto/PmsProductAttributeCategoryItem.java
mall-admin/src/main/java/com/macro/mall/dto/PmsProductAttributeCategoryItem.java
package com.macro.mall.dto; import com.macro.mall.model.PmsProductAttribute; import com.macro.mall.model.PmsProductAttributeCategory; import io.swagger.annotations.ApiModelProperty; import lombok.Getter; import lombok.Setter; import java.util.List; /** * 带有属性的商品属性分类 * Created by macro on 2018/5/24. */ public class PmsProductAttributeCategoryItem extends PmsProductAttributeCategory { @Getter @Setter @ApiModelProperty(value = "商品属性列表") private List<PmsProductAttribute> productAttributeList; }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/dto/OmsReceiverInfoParam.java
mall-admin/src/main/java/com/macro/mall/dto/OmsReceiverInfoParam.java
package com.macro.mall.dto; import io.swagger.annotations.ApiModelProperty; import lombok.Getter; import lombok.Setter; /** * 订单修改收货人信息参数 * Created by macro on 2018/10/29. */ @Getter @Setter public class OmsReceiverInfoParam { @ApiModelProperty(value = "订单ID") private Long orderId; @ApiModelProperty(value = "收货人姓名") private String receiverName; @ApiModelProperty(value = "收货人电话") private String receiverPhone; @ApiModelProperty(value = "收货人邮编") private String receiverPostCode; @ApiModelProperty(value = "详细地址") private String receiverDetailAddress; @ApiModelProperty(value = "省份/直辖市") private String receiverProvince; @ApiModelProperty(value = "城市") private String receiverCity; @ApiModelProperty(value = "区") private String receiverRegion; @ApiModelProperty(value = "订单状态:0->待付款;1->待发货;2->已发货;3->已完成;4->已关闭;5->无效订单") private Integer status; }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/dto/OmsOrderReturnApplyResult.java
mall-admin/src/main/java/com/macro/mall/dto/OmsOrderReturnApplyResult.java
package com.macro.mall.dto; import com.macro.mall.model.OmsCompanyAddress; import com.macro.mall.model.OmsOrderReturnApply; import io.swagger.annotations.ApiModelProperty; import lombok.Getter; import lombok.Setter; /** * 订单退货申请结果封装 * Created by macro on 2018/10/18. */ public class OmsOrderReturnApplyResult extends OmsOrderReturnApply { @Getter @Setter @ApiModelProperty(value = "公司收货地址") private OmsCompanyAddress companyAddress; }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/dto/SmsCouponParam.java
mall-admin/src/main/java/com/macro/mall/dto/SmsCouponParam.java
package com.macro.mall.dto; import com.macro.mall.model.SmsCoupon; import com.macro.mall.model.SmsCouponProductCategoryRelation; import com.macro.mall.model.SmsCouponProductRelation; import io.swagger.annotations.ApiModelProperty; import lombok.Getter; import lombok.Setter; import java.util.List; /** * 优惠券信息封装,包括绑定商品和分类 * Created by macro on 2018/8/28. */ public class SmsCouponParam extends SmsCoupon { @Getter @Setter @ApiModelProperty("优惠券绑定的商品") private List<SmsCouponProductRelation> productRelationList; @Getter @Setter @ApiModelProperty("优惠券绑定的商品分类") private List<SmsCouponProductCategoryRelation> productCategoryRelationList; }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/dto/OmsOrderDeliveryParam.java
mall-admin/src/main/java/com/macro/mall/dto/OmsOrderDeliveryParam.java
package com.macro.mall.dto; import io.swagger.annotations.ApiModelProperty; import lombok.Getter; import lombok.Setter; /** * 订单发货参数 * Created by macro on 2018/10/12. */ @Getter @Setter public class OmsOrderDeliveryParam { @ApiModelProperty("订单id") private Long orderId; @ApiModelProperty("物流公司") private String deliveryCompany; @ApiModelProperty("物流单号") private String deliverySn; }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/dto/UmsAdminParam.java
mall-admin/src/main/java/com/macro/mall/dto/UmsAdminParam.java
package com.macro.mall.dto; import io.swagger.annotations.ApiModelProperty; import lombok.Getter; import lombok.Setter; import javax.validation.constraints.Email; import javax.validation.constraints.NotEmpty; /** * 用户注册参数 * Created by macro on 2018/4/26. */ @Getter @Setter public class UmsAdminParam { @NotEmpty @ApiModelProperty(value = "用户名", required = true) private String username; @NotEmpty @ApiModelProperty(value = "密码", required = true) private String password; @ApiModelProperty(value = "用户头像") private String icon; @Email @ApiModelProperty(value = "邮箱") private String email; @ApiModelProperty(value = "用户昵称") private String nickName; @ApiModelProperty(value = "备注") private String note; }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/dto/ProductAttrInfo.java
mall-admin/src/main/java/com/macro/mall/dto/ProductAttrInfo.java
package com.macro.mall.dto; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import lombok.EqualsAndHashCode; /** * 商品分类对应属性信息 * Created by macro on 2018/5/23. */ @Data @EqualsAndHashCode public class ProductAttrInfo { @ApiModelProperty("商品属性ID") private Long attributeId; @ApiModelProperty("商品属性分类ID") private Long attributeCategoryId; }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/dto/OmsOrderQueryParam.java
mall-admin/src/main/java/com/macro/mall/dto/OmsOrderQueryParam.java
package com.macro.mall.dto; import io.swagger.annotations.ApiModelProperty; import lombok.Getter; import lombok.Setter; /** * 订单查询参数 * Created by macro on 2018/10/11. */ @Getter @Setter public class OmsOrderQueryParam { @ApiModelProperty(value = "订单编号") private String orderSn; @ApiModelProperty(value = "收货人姓名/号码") private String receiverKeyword; @ApiModelProperty(value = "订单状态:0->待付款;1->待发货;2->已发货;3->已完成;4->已关闭;5->无效订单") private Integer status; @ApiModelProperty(value = "订单类型:0->正常订单;1->秒杀订单") private Integer orderType; @ApiModelProperty(value = "订单来源:0->PC订单;1->app订单") private Integer sourceType; @ApiModelProperty(value = "订单提交时间") private String createTime; }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/dto/PmsProductQueryParam.java
mall-admin/src/main/java/com/macro/mall/dto/PmsProductQueryParam.java
package com.macro.mall.dto; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import lombok.EqualsAndHashCode; /** * 商品查询参数 * Created by macro on 2018/4/27. */ @Data @EqualsAndHashCode public class PmsProductQueryParam { @ApiModelProperty("上架状态") private Integer publishStatus; @ApiModelProperty("审核状态") private Integer verifyStatus; @ApiModelProperty("商品名称模糊关键字") private String keyword; @ApiModelProperty("商品货号") private String productSn; @ApiModelProperty("商品分类编号") private Long productCategoryId; @ApiModelProperty("商品品牌编号") private Long brandId; }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/dto/PmsProductParam.java
mall-admin/src/main/java/com/macro/mall/dto/PmsProductParam.java
package com.macro.mall.dto; import com.macro.mall.model.*; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import lombok.EqualsAndHashCode; import java.util.List; /** * 创建和修改商品的请求参数 * Created by macro on 2018/4/26. */ @Data @EqualsAndHashCode public class PmsProductParam extends PmsProduct{ @ApiModelProperty("商品阶梯价格设置") private List<PmsProductLadder> productLadderList; @ApiModelProperty("商品满减价格设置") private List<PmsProductFullReduction> productFullReductionList; @ApiModelProperty("商品会员价格设置") private List<PmsMemberPrice> memberPriceList; @ApiModelProperty("商品的sku库存信息") private List<PmsSkuStock> skuStockList; @ApiModelProperty("商品参数及自定义规格属性") private List<PmsProductAttributeValue> productAttributeValueList; @ApiModelProperty("专题和商品关系") private List<CmsSubjectProductRelation> subjectProductRelationList; @ApiModelProperty("优选专区和商品的关系") private List<CmsPrefrenceAreaProductRelation> prefrenceAreaProductRelationList; }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/dto/UmsAdminLoginParam.java
mall-admin/src/main/java/com/macro/mall/dto/UmsAdminLoginParam.java
package com.macro.mall.dto; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import lombok.EqualsAndHashCode; import javax.validation.constraints.NotEmpty; /** * 用户登录参数 * Created by macro on 2018/4/26. */ @Data @EqualsAndHashCode public class UmsAdminLoginParam { @NotEmpty @ApiModelProperty(value = "用户名",required = true) private String username; @NotEmpty @ApiModelProperty(value = "密码",required = true) private String password; }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/dao/PmsProductDao.java
mall-admin/src/main/java/com/macro/mall/dao/PmsProductDao.java
package com.macro.mall.dao; import com.macro.mall.dto.PmsProductResult; import org.apache.ibatis.annotations.Param; /** * 商品管理自定义Dao * Created by macro on 2018/4/26. */ public interface PmsProductDao { /** * 获取商品编辑信息 */ PmsProductResult getUpdateInfo(@Param("id") Long id); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/dao/SmsCouponProductRelationDao.java
mall-admin/src/main/java/com/macro/mall/dao/SmsCouponProductRelationDao.java
package com.macro.mall.dao; import com.macro.mall.model.SmsCouponProductRelation; import org.apache.ibatis.annotations.Param; import java.util.List; /** * 优惠券和商品关系自定义Dao * Created by macro on 2018/8/28. */ public interface SmsCouponProductRelationDao { /** * 批量创建 */ int insertList(@Param("list")List<SmsCouponProductRelation> productRelationList); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/dao/CmsSubjectProductRelationDao.java
mall-admin/src/main/java/com/macro/mall/dao/CmsSubjectProductRelationDao.java
package com.macro.mall.dao; import com.macro.mall.model.CmsSubjectProductRelation; import org.apache.ibatis.annotations.Param; import java.util.List; /** * 商品和专题关系自定义Dao * Created by macro on 2018/4/26. */ public interface CmsSubjectProductRelationDao { /** * 批量创建 */ int insertList(@Param("list") List<CmsSubjectProductRelation> subjectProductRelationList); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/dao/OmsOrderOperateHistoryDao.java
mall-admin/src/main/java/com/macro/mall/dao/OmsOrderOperateHistoryDao.java
package com.macro.mall.dao; import com.macro.mall.model.OmsOrderOperateHistory; import org.apache.ibatis.annotations.Param; import java.util.List; /** * 订单操作记录自定义Dao * Created by macro on 2018/10/12. */ public interface OmsOrderOperateHistoryDao { /** * 批量创建 */ int insertList(@Param("list") List<OmsOrderOperateHistory> orderOperateHistoryList); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/dao/CmsPrefrenceAreaProductRelationDao.java
mall-admin/src/main/java/com/macro/mall/dao/CmsPrefrenceAreaProductRelationDao.java
package com.macro.mall.dao; import com.macro.mall.model.CmsPrefrenceAreaProductRelation; import org.apache.ibatis.annotations.Param; import java.util.List; /** * 优选和商品关系自定义Dao * Created by macro on 2018/4/26. */ public interface CmsPrefrenceAreaProductRelationDao { /** * 批量创建 */ int insertList(@Param("list") List<CmsPrefrenceAreaProductRelation> prefrenceAreaProductRelationList); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/dao/PmsProductFullReductionDao.java
mall-admin/src/main/java/com/macro/mall/dao/PmsProductFullReductionDao.java
package com.macro.mall.dao; import com.macro.mall.model.PmsProductFullReduction; import org.apache.ibatis.annotations.Param; import java.util.List; /** * 商品满减自定义Dao * Created by macro on 2018/4/26. */ public interface PmsProductFullReductionDao { /** * 批量创建 */ int insertList(@Param("list") List<PmsProductFullReduction> productFullReductionList); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/dao/PmsProductAttributeDao.java
mall-admin/src/main/java/com/macro/mall/dao/PmsProductAttributeDao.java
package com.macro.mall.dao; import com.macro.mall.dto.ProductAttrInfo; import org.apache.ibatis.annotations.Param; import java.util.List; /** * 商品属性管理自定义Dao * Created by macro on 2018/5/23. */ public interface PmsProductAttributeDao { /** * 获取商品属性信息 */ List<ProductAttrInfo> getProductAttrInfo(@Param("id") Long productCategoryId); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/dao/SmsCouponDao.java
mall-admin/src/main/java/com/macro/mall/dao/SmsCouponDao.java
package com.macro.mall.dao; import com.macro.mall.dto.SmsCouponParam; import org.apache.ibatis.annotations.Param; /** * 优惠券管理自定义Dao * Created by macro on 2018/8/29. */ public interface SmsCouponDao { /** * 获取优惠券详情包括绑定关系 */ SmsCouponParam getItem(@Param("id") Long id); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/dao/PmsProductAttributeCategoryDao.java
mall-admin/src/main/java/com/macro/mall/dao/PmsProductAttributeCategoryDao.java
package com.macro.mall.dao; import com.macro.mall.dto.PmsProductAttributeCategoryItem; import java.util.List; /** * 商品属性分类管理自定义Dao * Created by macro on 2018/5/24. */ public interface PmsProductAttributeCategoryDao { /** * 获取包含属性的商品属性分类 */ List<PmsProductAttributeCategoryItem> getListWithAttr(); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/dao/PmsProductAttributeValueDao.java
mall-admin/src/main/java/com/macro/mall/dao/PmsProductAttributeValueDao.java
package com.macro.mall.dao; import com.macro.mall.model.PmsProductAttributeValue; import org.apache.ibatis.annotations.Param; import java.util.List; /** * 商品属性值管理自定义Dao * Created by macro on 2018/4/26. */ public interface PmsProductAttributeValueDao { /** * 批量创建 */ int insertList(@Param("list")List<PmsProductAttributeValue> productAttributeValueList); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/dao/SmsCouponProductCategoryRelationDao.java
mall-admin/src/main/java/com/macro/mall/dao/SmsCouponProductCategoryRelationDao.java
package com.macro.mall.dao; import com.macro.mall.model.SmsCouponProductCategoryRelation; import org.apache.ibatis.annotations.Param; import java.util.List; /** * 优惠券和商品分类关系管理自定义Dao * Created by macro on 2018/8/28. */ public interface SmsCouponProductCategoryRelationDao { /** * 批量创建 */ int insertList(@Param("list")List<SmsCouponProductCategoryRelation> productCategoryRelationList); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/dao/PmsProductCategoryDao.java
mall-admin/src/main/java/com/macro/mall/dao/PmsProductCategoryDao.java
package com.macro.mall.dao; import com.macro.mall.dto.PmsProductCategoryWithChildrenItem; import java.util.List; /** * 商品分类自定义Dao * Created by macro on 2018/5/25. */ public interface PmsProductCategoryDao { /** * 获取商品分类及其子分类 */ List<PmsProductCategoryWithChildrenItem> listWithChildren(); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/dao/OmsOrderReturnApplyDao.java
mall-admin/src/main/java/com/macro/mall/dao/OmsOrderReturnApplyDao.java
package com.macro.mall.dao; import com.macro.mall.dto.OmsOrderReturnApplyResult; import com.macro.mall.dto.OmsReturnApplyQueryParam; import com.macro.mall.model.OmsOrderReturnApply; import org.apache.ibatis.annotations.Param; import java.util.List; /** * 订单退货申请管理自定义Dao * Created by macro on 2018/10/18. */ public interface OmsOrderReturnApplyDao { /** * 查询申请列表 */ List<OmsOrderReturnApply> getList(@Param("queryParam") OmsReturnApplyQueryParam queryParam); /** * 获取申请详情 */ OmsOrderReturnApplyResult getDetail(@Param("id")Long id); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/dao/UmsAdminRoleRelationDao.java
mall-admin/src/main/java/com/macro/mall/dao/UmsAdminRoleRelationDao.java
package com.macro.mall.dao; import com.macro.mall.model.UmsAdminRoleRelation; import com.macro.mall.model.UmsResource; import com.macro.mall.model.UmsRole; import org.apache.ibatis.annotations.Param; import java.util.List; /** * 后台用户与角色关系管理自定义Dao * Created by macro on 2018/10/8. */ public interface UmsAdminRoleRelationDao { /** * 批量插入用户角色关系 */ int insertList(@Param("list") List<UmsAdminRoleRelation> adminRoleRelationList); /** * 获取用于所有角色 */ List<UmsRole> getRoleList(@Param("adminId") Long adminId); /** * 获取用户所有可访问资源 */ List<UmsResource> getResourceList(@Param("adminId") Long adminId); /** * 获取资源相关用户ID列表 */ List<Long> getAdminIdList(@Param("resourceId") Long resourceId); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/dao/PmsProductCategoryAttributeRelationDao.java
mall-admin/src/main/java/com/macro/mall/dao/PmsProductCategoryAttributeRelationDao.java
package com.macro.mall.dao; import com.macro.mall.model.PmsProductCategoryAttributeRelation; import org.apache.ibatis.annotations.Param; import java.util.List; /** * 商品分类和属性关系自定义Dao * Created by macro on 2018/5/23. */ public interface PmsProductCategoryAttributeRelationDao { /** * 批量创建 */ int insertList(@Param("list") List<PmsProductCategoryAttributeRelation> productCategoryAttributeRelationList); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/dao/UmsRoleDao.java
mall-admin/src/main/java/com/macro/mall/dao/UmsRoleDao.java
package com.macro.mall.dao; import com.macro.mall.model.UmsMenu; import com.macro.mall.model.UmsResource; import org.apache.ibatis.annotations.Param; import java.util.List; /** * 后台角色管理自定义Dao * Created by macro on 2020/2/2. */ public interface UmsRoleDao { /** * 根据后台用户ID获取菜单 */ List<UmsMenu> getMenuList(@Param("adminId") Long adminId); /** * 根据角色ID获取菜单 */ List<UmsMenu> getMenuListByRoleId(@Param("roleId") Long roleId); /** * 根据角色ID获取资源 */ List<UmsResource> getResourceListByRoleId(@Param("roleId") Long roleId); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/dao/PmsProductLadderDao.java
mall-admin/src/main/java/com/macro/mall/dao/PmsProductLadderDao.java
package com.macro.mall.dao; import com.macro.mall.model.PmsProductLadder; import org.apache.ibatis.annotations.Param; import java.util.List; /** * 会员阶梯价格自定义Dao * Created by macro on 2018/4/26. */ public interface PmsProductLadderDao { /** * 批量创建 */ int insertList(@Param("list") List<PmsProductLadder> productLadderList); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/dao/OmsOrderDao.java
mall-admin/src/main/java/com/macro/mall/dao/OmsOrderDao.java
package com.macro.mall.dao; import com.macro.mall.dto.OmsOrderDeliveryParam; import com.macro.mall.dto.OmsOrderDetail; import com.macro.mall.dto.OmsOrderQueryParam; import com.macro.mall.model.OmsOrder; import org.apache.ibatis.annotations.Param; import java.util.List; /** * 订单查询自定义Dao * Created by macro on 2018/10/12. */ public interface OmsOrderDao { /** * 条件查询订单 */ List<OmsOrder> getList(@Param("queryParam") OmsOrderQueryParam queryParam); /** * 批量发货 */ int delivery(@Param("list") List<OmsOrderDeliveryParam> deliveryParamList); /** * 获取订单详情 */ OmsOrderDetail getDetail(@Param("id") Long id); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/dao/PmsMemberPriceDao.java
mall-admin/src/main/java/com/macro/mall/dao/PmsMemberPriceDao.java
package com.macro.mall.dao; import com.macro.mall.model.PmsMemberPrice; import org.apache.ibatis.annotations.Param; import java.util.List; /** * 会员价格管理自定义Dao * Created by macro on 2018/4/26. */ public interface PmsMemberPriceDao { /** * 批量创建 */ int insertList(@Param("list") List<PmsMemberPrice> memberPriceList); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/dao/PmsProductVertifyRecordDao.java
mall-admin/src/main/java/com/macro/mall/dao/PmsProductVertifyRecordDao.java
package com.macro.mall.dao; import com.macro.mall.model.PmsProductVertifyRecord; import org.apache.ibatis.annotations.Param; import java.util.List; /** * 商品审核日志管理自定义Dao * Created by macro on 2018/4/27. */ public interface PmsProductVertifyRecordDao { /** * 批量创建 */ int insertList(@Param("list") List<PmsProductVertifyRecord> list); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/dao/PmsSkuStockDao.java
mall-admin/src/main/java/com/macro/mall/dao/PmsSkuStockDao.java
package com.macro.mall.dao; import com.macro.mall.model.PmsSkuStock; import org.apache.ibatis.annotations.Param; import java.util.List; /** * 商品SKU管理自定义Dao * Created by macro on 2018/4/26. */ public interface PmsSkuStockDao { /** * 批量插入操作 */ int insertList(@Param("list")List<PmsSkuStock> skuStockList); /** * 批量插入或替换操作 */ int replaceList(@Param("list")List<PmsSkuStock> skuStockList); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/dao/SmsFlashPromotionProductRelationDao.java
mall-admin/src/main/java/com/macro/mall/dao/SmsFlashPromotionProductRelationDao.java
package com.macro.mall.dao; import com.macro.mall.dto.SmsFlashPromotionProduct; import org.apache.ibatis.annotations.Param; import java.util.List; /** * 限时购商品关系管理自定义Dao * Created by macro on 2018/11/16. */ public interface SmsFlashPromotionProductRelationDao { /** * 获取限时购及相关商品信息 */ List<SmsFlashPromotionProduct> getList(@Param("flashPromotionId") Long flashPromotionId, @Param("flashPromotionSessionId") Long flashPromotionSessionId); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/service/SmsCouponService.java
mall-admin/src/main/java/com/macro/mall/service/SmsCouponService.java
package com.macro.mall.service; import com.macro.mall.dto.SmsCouponParam; import com.macro.mall.model.SmsCoupon; import org.springframework.transaction.annotation.Transactional; import java.util.List; /** * 优惠券管理Service * Created by macro on 2018/8/28. */ public interface SmsCouponService { /** * 添加优惠券 */ @Transactional int create(SmsCouponParam couponParam); /** * 根据优惠券id删除优惠券 */ @Transactional int delete(Long id); /** * 根据优惠券id更新优惠券信息 */ @Transactional int update(Long id, SmsCouponParam couponParam); /** * 分页获取优惠券列表 */ List<SmsCoupon> list(String name, Integer type, Integer pageSize, Integer pageNum); /** * 获取优惠券详情 * @param id 优惠券表id */ SmsCouponParam getItem(Long id); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/service/UmsMenuService.java
mall-admin/src/main/java/com/macro/mall/service/UmsMenuService.java
package com.macro.mall.service; import com.macro.mall.dto.UmsMenuNode; import com.macro.mall.model.UmsMenu; import java.util.List; /** * 后台菜单管理Service * Created by macro on 2020/2/2. */ public interface UmsMenuService { /** * 创建后台菜单 */ int create(UmsMenu umsMenu); /** * 修改后台菜单 */ int update(Long id, UmsMenu umsMenu); /** * 根据ID获取菜单详情 */ UmsMenu getItem(Long id); /** * 根据ID删除菜单 */ int delete(Long id); /** * 分页查询后台菜单 */ List<UmsMenu> list(Long parentId, Integer pageSize, Integer pageNum); /** * 树形结构返回所有菜单列表 */ List<UmsMenuNode> treeList(); /** * 修改菜单显示状态 */ int updateHidden(Long id, Integer hidden); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/service/UmsResourceService.java
mall-admin/src/main/java/com/macro/mall/service/UmsResourceService.java
package com.macro.mall.service; import com.macro.mall.model.UmsResource; import java.util.List; /** * 后台资源管理Service * Created by macro on 2020/2/2. */ public interface UmsResourceService { /** * 添加资源 */ int create(UmsResource umsResource); /** * 修改资源 */ int update(Long id, UmsResource umsResource); /** * 获取资源详情 */ UmsResource getItem(Long id); /** * 删除资源 */ int delete(Long id); /** * 分页查询资源 */ List<UmsResource> list(Long categoryId, String nameKeyword, String urlKeyword, Integer pageSize, Integer pageNum); /** * 查询全部资源 */ List<UmsResource> listAll(); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/service/SmsFlashPromotionService.java
mall-admin/src/main/java/com/macro/mall/service/SmsFlashPromotionService.java
package com.macro.mall.service; import com.macro.mall.model.SmsFlashPromotion; import java.util.List; /** * 限时购活动管理Service * Created by macro on 2018/11/16. */ public interface SmsFlashPromotionService { /** * 添加活动 */ int create(SmsFlashPromotion flashPromotion); /** * 修改指定活动 */ int update(Long id, SmsFlashPromotion flashPromotion); /** * 删除单个活动 */ int delete(Long id); /** * 修改活动上下线状态 */ int updateStatus(Long id, Integer status); /** * 获取活动详情 */ SmsFlashPromotion getItem(Long id); /** * 根据关键字分页查询活动 */ List<SmsFlashPromotion> list(String keyword, Integer pageSize, Integer pageNum); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/service/UmsAdminService.java
mall-admin/src/main/java/com/macro/mall/service/UmsAdminService.java
package com.macro.mall.service; import com.macro.mall.dto.UmsAdminParam; import com.macro.mall.dto.UpdateAdminPasswordParam; import com.macro.mall.model.UmsAdmin; import com.macro.mall.model.UmsResource; import com.macro.mall.model.UmsRole; import org.springframework.security.core.userdetails.UserDetails; import org.springframework.transaction.annotation.Transactional; import java.util.List; /** * 后台用户管理Service * Created by macro on 2018/4/26. */ public interface UmsAdminService { /** * 根据用户名获取后台管理员 */ UmsAdmin getAdminByUsername(String username); /** * 注册功能 */ UmsAdmin register(UmsAdminParam umsAdminParam); /** * 登录功能 * @param username 用户名 * @param password 密码 * @return 生成的JWT的token */ String login(String username,String password); /** * 刷新token的功能 * @param oldToken 旧的token */ String refreshToken(String oldToken); /** * 根据用户id获取用户 */ UmsAdmin getItem(Long id); /** * 根据用户名或昵称分页查询用户 */ List<UmsAdmin> list(String keyword, Integer pageSize, Integer pageNum); /** * 修改指定用户信息 */ int update(Long id, UmsAdmin admin); /** * 删除指定用户 */ int delete(Long id); /** * 修改用户角色关系 */ @Transactional int updateRole(Long adminId, List<Long> roleIds); /** * 获取用户对应角色 */ List<UmsRole> getRoleList(Long adminId); /** * 获取指定用户的可访问资源 */ List<UmsResource> getResourceList(Long adminId); /** * 修改密码 */ int updatePassword(UpdateAdminPasswordParam updatePasswordParam); /** * 获取用户信息 */ UserDetails loadUserByUsername(String username); /** * 获取缓存服务 */ UmsAdminCacheService getCacheService(); /** * 登出功能 * @param username 用户名 */ void logout(String username); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/service/OmsOrderSettingService.java
mall-admin/src/main/java/com/macro/mall/service/OmsOrderSettingService.java
package com.macro.mall.service; import com.macro.mall.model.OmsOrderSetting; /** * 订单设置管理Service * Created by macro on 2018/10/16. */ public interface OmsOrderSettingService { /** * 获取指定订单设置 */ OmsOrderSetting getItem(Long id); /** * 修改指定订单设置 */ int update(Long id, OmsOrderSetting orderSetting); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/service/OmsCompanyAddressService.java
mall-admin/src/main/java/com/macro/mall/service/OmsCompanyAddressService.java
package com.macro.mall.service; import com.macro.mall.model.OmsCompanyAddress; import java.util.List; /** * 收货地址管理Service * Created by macro on 2018/10/18. */ public interface OmsCompanyAddressService { /** * 获取全部收货地址 */ List<OmsCompanyAddress> list(); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/service/UmsRoleService.java
mall-admin/src/main/java/com/macro/mall/service/UmsRoleService.java
package com.macro.mall.service; import com.macro.mall.model.UmsMenu; import com.macro.mall.model.UmsResource; import com.macro.mall.model.UmsRole; import org.springframework.transaction.annotation.Transactional; import java.util.List; /** * 后台角色管理Service * Created by macro on 2018/9/30. */ public interface UmsRoleService { /** * 添加角色 */ int create(UmsRole role); /** * 修改角色信息 */ int update(Long id, UmsRole role); /** * 批量删除角色 */ int delete(List<Long> ids); /** * 获取所有角色列表 */ List<UmsRole> list(); /** * 分页获取角色列表 */ List<UmsRole> list(String keyword, Integer pageSize, Integer pageNum); /** * 根据管理员ID获取对应菜单 */ List<UmsMenu> getMenuList(Long adminId); /** * 获取角色相关菜单 */ List<UmsMenu> listMenu(Long roleId); /** * 获取角色相关资源 */ List<UmsResource> listResource(Long roleId); /** * 给角色分配菜单 */ @Transactional int allocMenu(Long roleId, List<Long> menuIds); /** * 给角色分配资源 */ @Transactional int allocResource(Long roleId, List<Long> resourceIds); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/service/SmsFlashPromotionProductRelationService.java
mall-admin/src/main/java/com/macro/mall/service/SmsFlashPromotionProductRelationService.java
package com.macro.mall.service; import com.macro.mall.dto.SmsFlashPromotionProduct; import com.macro.mall.model.SmsFlashPromotionProductRelation; import org.springframework.transaction.annotation.Transactional; import java.util.List; /** * 限时购商品关联管理Service * Created by macro on 2018/11/16. */ public interface SmsFlashPromotionProductRelationService { /** * 批量添加关联 */ @Transactional int create(List<SmsFlashPromotionProductRelation> relationList); /** * 修改关联信息 */ int update(Long id, SmsFlashPromotionProductRelation relation); /** * 删除关联 */ int delete(Long id); /** * 获取关联详情 */ SmsFlashPromotionProductRelation getItem(Long id); /** * 根据限时购和场次id分页查询限时购商品信息 * * @param flashPromotionId 限时购id * @param flashPromotionSessionId 限时购场次id */ List<SmsFlashPromotionProduct> list(Long flashPromotionId, Long flashPromotionSessionId, Integer pageSize, Integer pageNum); /** * 根据限时购和场次id获取商品关系数量 * @param flashPromotionId 限时购id * @param flashPromotionSessionId 限时购场次id */ long getCount(Long flashPromotionId,Long flashPromotionSessionId); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/service/PmsProductCategoryService.java
mall-admin/src/main/java/com/macro/mall/service/PmsProductCategoryService.java
package com.macro.mall.service; import com.macro.mall.dto.PmsProductCategoryParam; import com.macro.mall.dto.PmsProductCategoryWithChildrenItem; import com.macro.mall.model.PmsProductCategory; import org.springframework.transaction.annotation.Transactional; import java.util.List; /** * 商品分类管理Service * Created by macro on 2018/4/26. */ public interface PmsProductCategoryService { /** * 创建商品分类 */ @Transactional int create(PmsProductCategoryParam pmsProductCategoryParam); /** * 修改商品分类 */ @Transactional int update(Long id, PmsProductCategoryParam pmsProductCategoryParam); /** * 分页获取商品分类 */ List<PmsProductCategory> getList(Long parentId, Integer pageSize, Integer pageNum); /** * 删除商品分类 */ int delete(Long id); /** * 根据ID获取商品分类 */ PmsProductCategory getItem(Long id); /** * 批量修改导航状态 */ int updateNavStatus(List<Long> ids, Integer navStatus); /** * 批量修改显示状态 */ int updateShowStatus(List<Long> ids, Integer showStatus); /** * 以层级形式获取商品分类 */ List<PmsProductCategoryWithChildrenItem> listWithChildren(); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/service/PmsBrandService.java
mall-admin/src/main/java/com/macro/mall/service/PmsBrandService.java
package com.macro.mall.service; import com.macro.mall.dto.PmsBrandParam; import com.macro.mall.model.PmsBrand; import org.springframework.transaction.annotation.Transactional; import java.util.List; /** * 商品品牌管理Service * Created by macro on 2018/4/26. */ public interface PmsBrandService { /** * 获取所有品牌 */ List<PmsBrand> listAllBrand(); /** * 创建品牌 */ int createBrand(PmsBrandParam pmsBrandParam); /** * 修改品牌 */ @Transactional int updateBrand(Long id, PmsBrandParam pmsBrandParam); /** * 删除品牌 */ int deleteBrand(Long id); /** * 批量删除品牌 */ int deleteBrand(List<Long> ids); /** * 分页查询品牌 */ List<PmsBrand> listBrand(String keyword, Integer showStatus, int pageNum, int pageSize); /** * 获取品牌详情 */ PmsBrand getBrand(Long id); /** * 修改显示状态 */ int updateShowStatus(List<Long> ids, Integer showStatus); /** * 修改厂家制造商状态 */ int updateFactoryStatus(List<Long> ids, Integer factoryStatus); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/service/SmsCouponHistoryService.java
mall-admin/src/main/java/com/macro/mall/service/SmsCouponHistoryService.java
package com.macro.mall.service; import com.macro.mall.model.SmsCouponHistory; import java.util.List; /** * 优惠券领取记录管理Service * Created by macro on 2018/11/6. */ public interface SmsCouponHistoryService { /** * 分页查询优惠券领取记录 * @param couponId 优惠券id * @param useStatus 使用状态 * @param orderSn 使用订单号码 */ List<SmsCouponHistory> list(Long couponId, Integer useStatus, String orderSn, Integer pageSize, Integer pageNum); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/service/OmsOrderService.java
mall-admin/src/main/java/com/macro/mall/service/OmsOrderService.java
package com.macro.mall.service; import com.macro.mall.dto.*; import com.macro.mall.model.OmsOrder; import org.springframework.transaction.annotation.Transactional; import java.util.List; /** * 订单管理Service * Created by macro on 2018/10/11. */ public interface OmsOrderService { /** * 分页查询订单 */ List<OmsOrder> list(OmsOrderQueryParam queryParam, Integer pageSize, Integer pageNum); /** * 批量发货 */ @Transactional int delivery(List<OmsOrderDeliveryParam> deliveryParamList); /** * 批量关闭订单 */ @Transactional int close(List<Long> ids, String note); /** * 批量删除订单 */ int delete(List<Long> ids); /** * 获取指定订单详情 */ OmsOrderDetail detail(Long id); /** * 修改订单收货人信息 */ @Transactional int updateReceiverInfo(OmsReceiverInfoParam receiverInfoParam); /** * 修改订单费用信息 */ @Transactional int updateMoneyInfo(OmsMoneyInfoParam moneyInfoParam); /** * 修改订单备注 */ @Transactional int updateNote(Long id, String note, Integer status); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/service/SmsHomeNewProductService.java
mall-admin/src/main/java/com/macro/mall/service/SmsHomeNewProductService.java
package com.macro.mall.service; import com.macro.mall.model.SmsHomeNewProduct; import org.springframework.transaction.annotation.Transactional; import java.util.List; /** * 首页新品推荐管理Service * Created by macro on 2018/11/6. */ public interface SmsHomeNewProductService { /** * 添加新品推荐 */ @Transactional int create(List<SmsHomeNewProduct> homeNewProductList); /** * 修改新品推荐排序 */ int updateSort(Long id, Integer sort); /** * 批量删除新品推荐 */ int delete(List<Long> ids); /** * 批量更新新品推荐状态 */ int updateRecommendStatus(List<Long> ids, Integer recommendStatus); /** * 分页查询新品推荐 */ List<SmsHomeNewProduct> list(String productName, Integer recommendStatus, Integer pageSize, Integer pageNum); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/service/SmsHomeRecommendSubjectService.java
mall-admin/src/main/java/com/macro/mall/service/SmsHomeRecommendSubjectService.java
package com.macro.mall.service; import com.macro.mall.model.SmsHomeRecommendSubject; import org.springframework.transaction.annotation.Transactional; import java.util.List; /** * 首页专题推荐管理Service * Created by macro on 2018/11/7. */ public interface SmsHomeRecommendSubjectService { /** * 添加专题推荐 */ @Transactional int create(List<SmsHomeRecommendSubject> recommendSubjectList); /** * 修改专题推荐排序 */ int updateSort(Long id, Integer sort); /** * 批量删除专题推荐 */ int delete(List<Long> ids); /** * 批量更新专题推荐状态 */ int updateRecommendStatus(List<Long> ids, Integer recommendStatus); /** * 分页查询专题推荐 */ List<SmsHomeRecommendSubject> list(String subjectName, Integer recommendStatus, Integer pageSize, Integer pageNum); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/service/SmsHomeAdvertiseService.java
mall-admin/src/main/java/com/macro/mall/service/SmsHomeAdvertiseService.java
package com.macro.mall.service; import com.macro.mall.model.SmsHomeAdvertise; import java.util.List; /** * 首页广告管理Service * Created by macro on 2018/11/7. */ public interface SmsHomeAdvertiseService { /** * 添加广告 */ int create(SmsHomeAdvertise advertise); /** * 批量删除广告 */ int delete(List<Long> ids); /** * 修改广告上、下线状态 */ int updateStatus(Long id, Integer status); /** * 获取广告详情 */ SmsHomeAdvertise getItem(Long id); /** * 更新广告 */ int update(Long id, SmsHomeAdvertise advertise); /** * 分页查询广告 */ List<SmsHomeAdvertise> list(String name, Integer type, String endTime, Integer pageSize, Integer pageNum); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/service/UmsAdminCacheService.java
mall-admin/src/main/java/com/macro/mall/service/UmsAdminCacheService.java
package com.macro.mall.service; import com.macro.mall.model.UmsAdmin; import com.macro.mall.model.UmsResource; import java.util.List; /** * 后台用户缓存管理Service * Created by macro on 2020/3/13. */ public interface UmsAdminCacheService { /** * 删除后台用户缓存 */ void delAdmin(Long adminId); /** * 删除后台用户资源列表缓存 */ void delResourceList(Long adminId); /** * 当角色相关资源信息改变时删除相关后台用户缓存 */ void delResourceListByRole(Long roleId); /** * 当角色相关资源信息改变时删除相关后台用户缓存 */ void delResourceListByRoleIds(List<Long> roleIds); /** * 当资源信息改变时,删除资源相关后台用户缓存 */ void delResourceListByResource(Long resourceId); /** * 获取缓存后台用户信息 */ UmsAdmin getAdmin(String username); /** * 设置缓存后台用户信息 */ void setAdmin(UmsAdmin admin); /** * 获取缓存后台用户资源列表 */ List<UmsResource> getResourceList(Long adminId); /** * 设置缓存后台用户资源列表 */ void setResourceList(Long adminId, List<UmsResource> resourceList); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/service/UmsMemberLevelService.java
mall-admin/src/main/java/com/macro/mall/service/UmsMemberLevelService.java
package com.macro.mall.service; import com.macro.mall.model.UmsMemberLevel; import java.util.List; /** * 会员等级管理Service * Created by macro on 2018/4/26. */ public interface UmsMemberLevelService { /** * 获取所有会员等级 * @param defaultStatus 是否为默认会员 */ List<UmsMemberLevel> list(Integer defaultStatus); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/service/PmsProductAttributeService.java
mall-admin/src/main/java/com/macro/mall/service/PmsProductAttributeService.java
package com.macro.mall.service; import com.macro.mall.dto.PmsProductAttributeParam; import com.macro.mall.dto.ProductAttrInfo; import com.macro.mall.model.PmsProductAttribute; import org.springframework.transaction.annotation.Transactional; import java.util.List; /** * 商品属性管理Service * Created by macro on 2018/4/26. */ public interface PmsProductAttributeService { /** * 根据分类ID和类型分页获取商品属性 * @param cid 分类id * @param type 0->规格;1->参数 */ List<PmsProductAttribute> getList(Long cid, Integer type, Integer pageSize, Integer pageNum); /** * 添加商品属性 */ @Transactional int create(PmsProductAttributeParam pmsProductAttributeParam); /** * 修改商品属性 */ int update(Long id, PmsProductAttributeParam productAttributeParam); /** * 获取单个商品属性信息 */ PmsProductAttribute getItem(Long id); /** * 批量删除商品属性 */ @Transactional int delete(List<Long> ids); /** * 获取商品分类对应属性列表 */ List<ProductAttrInfo> getProductAttrInfo(Long productCategoryId); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/service/OmsOrderReturnApplyService.java
mall-admin/src/main/java/com/macro/mall/service/OmsOrderReturnApplyService.java
package com.macro.mall.service; import com.macro.mall.dto.OmsOrderReturnApplyResult; import com.macro.mall.dto.OmsReturnApplyQueryParam; import com.macro.mall.dto.OmsUpdateStatusParam; import com.macro.mall.model.OmsOrderReturnApply; import java.util.List; /** * 退货申请管理Service * Created by macro on 2018/10/18. */ public interface OmsOrderReturnApplyService { /** * 分页查询申请 */ List<OmsOrderReturnApply> list(OmsReturnApplyQueryParam queryParam, Integer pageSize, Integer pageNum); /** * 批量删除申请 */ int delete(List<Long> ids); /** * 修改指定申请状态 */ int updateStatus(Long id, OmsUpdateStatusParam statusParam); /** * 获取指定申请详情 */ OmsOrderReturnApplyResult getItem(Long id); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/service/PmsProductAttributeCategoryService.java
mall-admin/src/main/java/com/macro/mall/service/PmsProductAttributeCategoryService.java
package com.macro.mall.service; import com.macro.mall.dto.PmsProductAttributeCategoryItem; import com.macro.mall.model.PmsProductAttributeCategory; import java.util.List; /** * 商品属性分类管理Service * Created by macro on 2018/4/26. */ public interface PmsProductAttributeCategoryService { /** * 创建属性分类 */ int create(String name); /** * 修改属性分类 */ int update(Long id, String name); /** * 删除属性分类 */ int delete(Long id); /** * 获取属性分类详情 */ PmsProductAttributeCategory getItem(Long id); /** * 分页查询属性分类 */ List<PmsProductAttributeCategory> getList(Integer pageSize, Integer pageNum); /** * 获取包含属性的属性分类 */ List<PmsProductAttributeCategoryItem> getListWithAttr(); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/service/CmsSubjectService.java
mall-admin/src/main/java/com/macro/mall/service/CmsSubjectService.java
package com.macro.mall.service; import com.macro.mall.model.CmsSubject; import java.util.List; /** * 商品专题管理Service * Created by macro on 2018/6/1. */ public interface CmsSubjectService { /** * 查询所有专题 */ List<CmsSubject> listAll(); /** * 分页查询专题 */ List<CmsSubject> list(String keyword, Integer pageNum, Integer pageSize); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/service/SmsFlashPromotionSessionService.java
mall-admin/src/main/java/com/macro/mall/service/SmsFlashPromotionSessionService.java
package com.macro.mall.service; import com.macro.mall.dto.SmsFlashPromotionSessionDetail; import com.macro.mall.model.SmsFlashPromotionSession; import java.util.List; /** * 限时购场次管理Service * Created by macro on 2018/11/16. */ public interface SmsFlashPromotionSessionService { /** * 添加场次 */ int create(SmsFlashPromotionSession promotionSession); /** * 修改场次 */ int update(Long id, SmsFlashPromotionSession promotionSession); /** * 修改场次启用状态 */ int updateStatus(Long id, Integer status); /** * 删除场次 */ int delete(Long id); /** * 获取场次详情 */ SmsFlashPromotionSession getItem(Long id); /** * 获取全部场次列表 */ List<SmsFlashPromotionSession> list(); /** * 获取全部可选场次及其数量 */ List<SmsFlashPromotionSessionDetail> selectList(Long flashPromotionId); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/service/UmsResourceCategoryService.java
mall-admin/src/main/java/com/macro/mall/service/UmsResourceCategoryService.java
package com.macro.mall.service; import com.macro.mall.model.UmsResourceCategory; import java.util.List; /** * 后台资源分类管理Service * Created by macro on 2020/2/5. */ public interface UmsResourceCategoryService { /** * 获取所有资源分类 */ List<UmsResourceCategory> listAll(); /** * 创建资源分类 */ int create(UmsResourceCategory umsResourceCategory); /** * 修改资源分类 */ int update(Long id, UmsResourceCategory umsResourceCategory); /** * 删除资源分类 */ int delete(Long id); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/service/SmsHomeRecommendProductService.java
mall-admin/src/main/java/com/macro/mall/service/SmsHomeRecommendProductService.java
package com.macro.mall.service; import com.macro.mall.model.SmsHomeRecommendProduct; import org.springframework.transaction.annotation.Transactional; import java.util.List; /** * 首页人气推荐管理Service * Created by macro on 2018/11/7. */ public interface SmsHomeRecommendProductService { /** * 添加人气推荐 */ @Transactional int create(List<SmsHomeRecommendProduct> homeRecommendProductList); /** * 修改人气推荐排序 */ int updateSort(Long id, Integer sort); /** * 批量删除人气推荐 */ int delete(List<Long> ids); /** * 批量更新人气推荐状态 */ int updateRecommendStatus(List<Long> ids, Integer recommendStatus); /** * 分页查询人气推荐 */ List<SmsHomeRecommendProduct> list(String productName, Integer recommendStatus, Integer pageSize, Integer pageNum); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/service/PmsSkuStockService.java
mall-admin/src/main/java/com/macro/mall/service/PmsSkuStockService.java
package com.macro.mall.service; import com.macro.mall.model.PmsSkuStock; import java.util.List; /** * 商品SKU库存管理Service * Created by macro on 2018/4/27. */ public interface PmsSkuStockService { /** * 根据商品id和skuCode关键字模糊搜索 */ List<PmsSkuStock> getList(Long pid, String keyword); /** * 批量更新商品库存信息 */ int update(Long pid, List<PmsSkuStock> skuStockList); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/service/OssService.java
mall-admin/src/main/java/com/macro/mall/service/OssService.java
package com.macro.mall.service; import com.macro.mall.dto.OssCallbackResult; import com.macro.mall.dto.OssPolicyResult; import javax.servlet.http.HttpServletRequest; /** * Oss对象存储管理Service * Created by macro on 2018/5/17. */ public interface OssService { /** * Oss上传策略生成 */ OssPolicyResult policy(); /** * Oss上传成功回调 */ OssCallbackResult callback(HttpServletRequest request); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/service/OmsOrderReturnReasonService.java
mall-admin/src/main/java/com/macro/mall/service/OmsOrderReturnReasonService.java
package com.macro.mall.service; import com.macro.mall.model.OmsOrderReturnReason; import java.util.List; /** * 退货原因管理Service * Created by macro on 2018/10/17. */ public interface OmsOrderReturnReasonService { /** * 添加退货原因 */ int create(OmsOrderReturnReason returnReason); /** * 修改退货原因 */ int update(Long id, OmsOrderReturnReason returnReason); /** * 批量删除退货原因 */ int delete(List<Long> ids); /** * 分页获取退货原因 */ List<OmsOrderReturnReason> list(Integer pageSize, Integer pageNum); /** * 批量修改退货原因状态 */ int updateStatus(List<Long> ids, Integer status); /** * 获取单个退货原因详情信息 */ OmsOrderReturnReason getItem(Long id); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false