Compare commits

..

2 Commits

Author SHA1 Message Date
liubozhi
f1d65054cc Merge branch 'changeurl' 2025-04-21 17:04:45 +08:00
liubozhi
e9878fcaa1 修改 url 2025-04-21 17:04:16 +08:00
226 changed files with 645 additions and 646 deletions

View File

@ -14,22 +14,22 @@ import java.util.List;
*/
public class AddrApi {
public static void addAddr(UserAddrDTO userAddrDTO){
String url = Constant.API_URL + "/tmerclub_user/user_addr";
String url = Constant.API_URL + "/tmerclub_user/userAddr";
HttpUtil.post(url, userAddrDTO, UrlEnum.API);
}
public static List<UserAddrVO> dvyList(){
String url = Constant.API_URL + "/tmerclub_user/user_addr/list";
String url = Constant.API_URL + "/tmerclub_user/userAddr/list";
List list = HttpUtil.get(url, List.class, UrlEnum.API);
return JSON.parseArray(JSON.toJSONString(list), UserAddrVO.class);
}
// public static UserAddrVO addrInfo(Long addrId) {
// String url = Constant.API_URL + "/tmerclub_user/user_addr?addrId=" + addrId;
// String url = Constant.API_URL + "/tmerclub_user/userAddr?addrId=" + addrId;
// return HttpUtil.get(url, UserAddrVO.class, UrlEnum.API);
// }
public static void updateAddr(UserAddrDTO userAddrDTO){
String url = Constant.API_URL + "/tmerclub_user/user_addr";
String url = Constant.API_URL + "/tmerclub_user/userAddr";
HttpUtil.put(url, userAddrDTO, UrlEnum.API);
}

View File

@ -20,7 +20,7 @@ public class PayApi {
}
public static void balancePay(Long payId){
String uri = Constant.API_URL+"/tmerclub_user/user_balance/balance_pay";
String uri = Constant.API_URL+"/tmerclub_user/userBalance/balancePay";
HttpUtil.post(uri,payId, UrlEnum.API);
}
@ -33,7 +33,7 @@ public class PayApi {
}
public static Long payBalance(PayInfoDTO payParam){
String uri = Constant.API_URL+"/tmerclub_payment/pay/pay_balance";
String uri = Constant.API_URL+"/tmerclub_payment/pay/payBalance";
Long payId = HttpUtil.post(uri,payParam, UrlEnum.API,Long.class);
return payId;
}

View File

@ -104,7 +104,7 @@ public class ProductApi {
* 商家获取最新下架信息
*/
public static OfflineHandleEventVO shopGetOfflineHandleEvent(Long productId) {
String url = Constant.API_URL + "/tmerclub_product/mp/spu/get_offline_handle_event/" + productId;
String url = Constant.API_URL + "/tmerclub_product/mp/spu/getOfflineHandleEvent/" + productId;
return HttpUtil.get(url, OfflineHandleEventVO.class, UrlEnum.SHOP);
}
@ -112,7 +112,7 @@ public class ProductApi {
* 商家申请上架提交审核
*/
public static void apply(OfflineHandleEventDTO offlineHandleEventDTO) {
String url = Constant.API_URL + "/tmerclub_product/mp/spu/audit_apply";
String url = Constant.API_URL + "/tmerclub_product/mp/spu/auditApply";
HttpUtil.post(url, offlineHandleEventDTO, UrlEnum.SHOP);
}
}

View File

@ -13,7 +13,7 @@ public class UserApi {
* 获取用户信息
*/
public static UserApiVO getUserInfo() {
String url = Constant.API_URL + "/tmerclub_user/user/ma/user_detail_info";
String url = Constant.API_URL + "/tmerclub_user/user/ma/getUserDetailInfo";
return HttpUtil.get(url, UserApiVO.class, UrlEnum.API);
}
}

View File

@ -70,7 +70,7 @@ public class CouponApi {
* 商家获取最新下架信息
*/
public static OfflineHandleEventVO shopGetOfflineHandleEvent(Long couponId) {
String url = Constant.API_URL + "/tmerclub_marketing/mp/coupon/get_offline_handle_event/" + couponId;
String url = Constant.API_URL + "/tmerclub_marketing/mp/coupon/getOfflineHandleEvent/" + couponId;
return HttpUtil.get(url, OfflineHandleEventVO.class, UrlEnum.SHOP);
}
@ -78,7 +78,7 @@ public class CouponApi {
* 商家申请上架提交审核
*/
public static void apply(OfflineHandleEventDTO offlineHandleEventDTO) {
String url = Constant.API_URL + "/tmerclub_marketing/mp/coupon/audit_apply";
String url = Constant.API_URL + "/tmerclub_marketing/mp/coupon/auditApply";
HttpUtil.post(url, offlineHandleEventDTO, UrlEnum.SHOP);
}
@ -86,7 +86,7 @@ public class CouponApi {
* 平台获取最新下架信息
*/
public static OfflineHandleEventVO platformGetOfflineHandleEvent(Long couponId) {
String url = Constant.API_URL + "/tmerclub_marketing/mp/coupon/get_offline_handle_event/" + couponId;
String url = Constant.API_URL + "/tmerclub_marketing/mp/coupon/getOfflineHandleEvent/" + couponId;
return HttpUtil.get(url, OfflineHandleEventVO.class, UrlEnum.PLATFORM);
}
@ -142,7 +142,7 @@ public class CouponApi {
* 用户领取优惠券
*/
public static void receive(Long couponId) {
String url = Constant.API_URL + "/tmerclub_marketing/my_coupon/receive";
String url = Constant.API_URL + "/tmerclub_marketing/myCoupon/receive";
HttpUtil.post(url, couponId, UrlEnum.API);
}
@ -150,7 +150,7 @@ public class CouponApi {
* 用户获取优惠券列表
*/
public static List<CouponAppVO> getUserCouponPage() {
String url = Constant.API_URL + "/tmerclub_marketing/my_coupon/get_page?pageSize=10&pageNum=1&status=1&type=0";
String url = Constant.API_URL + "/tmerclub_marketing/myCoupon/get_page?pageSize=10&pageNum=1&status=1&type=0";
return JSON.parseArray(JSON.toJSONString(Json.parseObject(JSON.toJSONString(HttpUtil.get(url, PageVO.class, UrlEnum.API)), PageVO.class).getList()), CouponAppVO.class);
}
@ -158,7 +158,7 @@ public class CouponApi {
* 用户删除优惠券
*/
public static void deleteUserCoupon(Long couponUserId) {
String url = Constant.API_URL + "/tmerclub_marketing/my_coupon/delete_coupon/" + couponUserId;
String url = Constant.API_URL + "/tmerclub_marketing/myCoupon/delete_coupon/" + couponUserId;
HttpUtil.delete(url, UrlEnum.API);
}
}

View File

@ -81,7 +81,7 @@ public class DiscountApi {
* 商家获取最新下架信息
*/
public static OfflineHandleEventVO shopGetOfflineHandleEvent(Long discountId) {
String url = Constant.API_URL + "/tmerclub_marketing/mp/discount/get_offline_handle_event/" + discountId;
String url = Constant.API_URL + "/tmerclub_marketing/mp/discount/getOfflineHandleEvent/" + discountId;
return HttpUtil.get(url, OfflineHandleEventVO.class, UrlEnum.SHOP);
}
@ -89,7 +89,7 @@ public class DiscountApi {
* 商家申请上架提交审核
*/
public static void applyDiscount(OfflineHandleEventDTO offlineHandleEventDTO) {
String url = Constant.API_URL + "/tmerclub_marketing/mp/discount/audit_apply";
String url = Constant.API_URL + "/tmerclub_marketing/mp/discount/auditApply";
HttpUtil.post(url, offlineHandleEventDTO, UrlEnum.SHOP);
}
@ -97,7 +97,7 @@ public class DiscountApi {
* 平台获取最新下架信息
*/
public static OfflineHandleEventVO platformGetOfflineHandleEvent(Long discountId) {
String url = Constant.API_URL + "/tmerclub_marketing/mp/discount/get_offline_handle_event/" + discountId;
String url = Constant.API_URL + "/tmerclub_marketing/mp/discount/getOfflineHandleEvent/" + discountId;
return HttpUtil.get(url, OfflineHandleEventVO.class, UrlEnum.PLATFORM);
}

View File

@ -21,7 +21,7 @@ public class DistributionProdApi {
* 获取分销商品列表
*/
public static List<SpuAdminVO> getDistributionProdPage(Boolean isMainShop) {
String url = Constant.API_URL + "/tmerclub_search/mp/search/page_distribution_spu?pageSize=10&pageNum=1&distributionSpu=true&spuName=&distributionState=";
String url = Constant.API_URL + "/tmerclub_search/mp/search/pageDistributionSpu?pageSize=10&pageNum=1&distributionSpu=true&spuName=&distributionState=";
if(isMainShop) {
return JSON.parseArray(JSON.toJSONString(Json.parseObject(JSON.toJSONString(HttpUtil.get(url, EsPageVO.class, UrlEnum.SHOP)), EsPageVO.class).getList()), SpuAdminVO.class);
} else {
@ -33,7 +33,7 @@ public class DistributionProdApi {
* 新增分销商品
*/
public static void save(DistributionSpuDTO distributionSpuDTO, Boolean isMainShop) {
String url = Constant.API_URL + "/tmerclub_marketing/m/distribution_spu";
String url = Constant.API_URL + "/tmerclub_marketing/m/distributionSpu";
if(isMainShop) {
HttpUtil.post(url, distributionSpuDTO, UrlEnum.SHOP);
} else {
@ -45,7 +45,7 @@ public class DistributionProdApi {
* 修改分销商品
*/
public static void update(DistributionSpuDTO distributionSpuDTO) {
String url = Constant.API_URL + "/tmerclub_marketing/m/distribution_spu";
String url = Constant.API_URL + "/tmerclub_marketing/m/distributionSpu";
HttpUtil.put(url, distributionSpuDTO, UrlEnum.SHOP);
}
@ -53,7 +53,7 @@ public class DistributionProdApi {
* 删除分销商品
*/
public static void delete(Long distributionSpuId, Boolean isMainShop) {
String url = Constant.API_URL + "/tmerclub_marketing/m/distribution_spu?distributionSpuId=" + distributionSpuId;
String url = Constant.API_URL + "/tmerclub_marketing/m/distributionSpu?distributionSpuId=" + distributionSpuId;
if(isMainShop) {
HttpUtil.delete(url, UrlEnum.SHOP);
} else {
@ -65,7 +65,7 @@ public class DistributionProdApi {
* 平台违规下架活动
*/
public static void offline(OfflineHandleEventDTO offlineHandleEventDTO) {
String url = Constant.API_URL + "/tmerclub_marketing/p/distribution_spu/offline";
String url = Constant.API_URL + "/tmerclub_marketing/p/distributionSpu/offline";
HttpUtil.post(url, offlineHandleEventDTO, UrlEnum.PLATFORM);
}
@ -73,7 +73,7 @@ public class DistributionProdApi {
* 商家获取最新下架信息
*/
public static OfflineHandleEventVO shopGetOfflineHandleEvent(Long distributionSpuId) {
String url = Constant.API_URL + "/tmerclub_marketing/m/distribution_spu/get_offline_handle_event?distributionSpuId=" + distributionSpuId;
String url = Constant.API_URL + "/tmerclub_marketing/m/distributionSpu/getOfflineHandleEvent?distributionSpuId=" + distributionSpuId;
return HttpUtil.get(url, OfflineHandleEventVO.class, UrlEnum.SHOP);
}
@ -81,7 +81,7 @@ public class DistributionProdApi {
* 商家申请上架提交审核
*/
public static void apply(OfflineHandleEventDTO offlineHandleEventDTO) {
String url = Constant.API_URL + "/tmerclub_marketing/m/distribution_spu/audit_apply";
String url = Constant.API_URL + "/tmerclub_marketing/m/distributionSpu/auditApply";
HttpUtil.post(url, offlineHandleEventDTO, UrlEnum.SHOP);
}
@ -89,7 +89,7 @@ public class DistributionProdApi {
* 平台获取最新下架信息
*/
public static OfflineHandleEventVO platformGetOfflineHandleEvent(Long distributionSpuId) {
String url = Constant.API_URL + "/tmerclub_marketing/p/distribution_spu/get_offline_handle_event?distributionSpuId=" + distributionSpuId;
String url = Constant.API_URL + "/tmerclub_marketing/p/distributionSpu/getOfflineHandleEvent?distributionSpuId=" + distributionSpuId;
return HttpUtil.get(url, OfflineHandleEventVO.class, UrlEnum.PLATFORM);
}
@ -97,7 +97,7 @@ public class DistributionProdApi {
* 平台审核平台活动
*/
public static void audit(OfflineHandleEventDTO offlineHandleEventDTO) {
String url = Constant.API_URL + "/tmerclub_marketing/p/distribution_spu/audit";
String url = Constant.API_URL + "/tmerclub_marketing/p/distributionSpu/audit";
HttpUtil.post(url, offlineHandleEventDTO, UrlEnum.PLATFORM);
}
}

View File

@ -27,7 +27,7 @@ public class GroupApi {
* 新增拼团活动
*/
public static void save(GroupActivityDTO groupActivityDTO) {
String url = Constant.API_URL + "/tmerclub_group/mp/group_activity";
String url = Constant.API_URL + "/tmerclub_group/mp/groupActivity";
HttpUtil.post(url, groupActivityDTO, UrlEnum.SHOP );
}
@ -35,7 +35,7 @@ public class GroupApi {
* 商家获取拼团活动列表
*/
public static List<GroupActivityVO> getGroupActivityPage() {
String url = Constant.API_URL + "/tmerclub_group/mp/group_activity/page?pageSize=10&pageNum=1&activityName=&spuName=&status=";
String url = Constant.API_URL + "/tmerclub_group/mp/groupActivity/page?pageSize=10&pageNum=1&activityName=&spuName=&status=";
return JSON.parseArray(JSON.toJSONString(Json.parseObject(JSON.toJSONString(HttpUtil.get(url, PageVO.class, UrlEnum.SHOP)), PageVO.class).getList()), GroupActivityVO.class);
}
@ -43,7 +43,7 @@ public class GroupApi {
*通过id获取拼团活动
*/
public static GroupActivityVO getGroupActivity(Long groupActivityId) {
String url = Constant.API_URL + "/tmerclub_group/mp/group_activity?groupActivityId=" + groupActivityId;
String url = Constant.API_URL + "/tmerclub_group/mp/groupActivity?groupActivityId=" + groupActivityId;
return HttpUtil.get(url, GroupActivityVO.class, UrlEnum.SHOP);
}
@ -51,7 +51,7 @@ public class GroupApi {
* 修改拼团活动
*/
public static void updateGroupActivity(GroupActivityDTO groupActivityDTO) {
String url = Constant.API_URL + "/tmerclub_group/mp/group_activity";
String url = Constant.API_URL + "/tmerclub_group/mp/groupActivity";
HttpUtil.put(url, groupActivityDTO, UrlEnum.SHOP);
}
@ -59,7 +59,7 @@ public class GroupApi {
* 启用拼团活动
*/
public static void activeGroupActivity(GroupActivityDTO groupActivityDTO) {
String url = Constant.API_URL + "/tmerclub_group/mp/group_activity/active";
String url = Constant.API_URL + "/tmerclub_group/mp/groupActivity/active";
HttpUtil.put(url, groupActivityDTO, UrlEnum.SHOP);
}
@ -67,7 +67,7 @@ public class GroupApi {
* 失效拼团活动
*/
public static void invalidActivity(GroupActivityDTO groupActivityDTO) {
String url = Constant.API_URL + "/tmerclub_group/mp/group_activity/invalid";
String url = Constant.API_URL + "/tmerclub_group/mp/groupActivity/invalid";
HttpUtil.put(url, groupActivityDTO, UrlEnum.SHOP);
}
@ -75,7 +75,7 @@ public class GroupApi {
* 删除拼团活动
*/
public static void deleteGroupActivity(Long groupActivityId) {
String url = Constant.API_URL + "/tmerclub_group/mp/group_activity?groupActivityId=" + groupActivityId;
String url = Constant.API_URL + "/tmerclub_group/mp/groupActivity?groupActivityId=" + groupActivityId;
HttpUtil.delete(url, UrlEnum.SHOP);
}
@ -83,7 +83,7 @@ public class GroupApi {
* 平台违规下架平台活动
*/
public static void offline(OfflineHandleEventDTO offlineHandleEventDTO) {
String url = Constant.API_URL + "/tmerclub_group/mp/group_activity/offline";
String url = Constant.API_URL + "/tmerclub_group/mp/groupActivity/offline";
HttpUtil.post(url, offlineHandleEventDTO, UrlEnum.PLATFORM);
}
@ -91,7 +91,7 @@ public class GroupApi {
* 商家获取最新下架信息
*/
public static OfflineHandleEventVO shopGetOfflineHandleEvent(Long groupActivityId) {
String url = Constant.API_URL + "/tmerclub_group/mp/group_activity/get_offline_handle_event/" + groupActivityId;
String url = Constant.API_URL + "/tmerclub_group/mp/groupActivity/getOfflineHandleEvent/" + groupActivityId;
return HttpUtil.get(url, OfflineHandleEventVO.class, UrlEnum.SHOP);
}
@ -99,7 +99,7 @@ public class GroupApi {
* 商家申请上架提交审核
*/
public static void applyGroupActivity(OfflineHandleEventDTO offlineHandleEventDTO) {
String url = Constant.API_URL + "/tmerclub_group/mp/group_activity/audit_apply";
String url = Constant.API_URL + "/tmerclub_group/mp/groupActivity/auditApply";
HttpUtil.post(url, offlineHandleEventDTO, UrlEnum.SHOP);
}
@ -107,7 +107,7 @@ public class GroupApi {
* 平台获取最新下架信息
*/
public static OfflineHandleEventVO platformGetOfflineHandleEvent(Long groupActivityId) {
String url = Constant.API_URL + "/tmerclub_group/mp/group_activity/get_offline_handle_event/" + groupActivityId;
String url = Constant.API_URL + "/tmerclub_group/mp/groupActivity/getOfflineHandleEvent/" + groupActivityId;
return HttpUtil.get(url, OfflineHandleEventVO.class, UrlEnum.PLATFORM);
}
@ -115,7 +115,7 @@ public class GroupApi {
* 平台审核平台活动
*/
public static void auditGroupActivity(OfflineHandleEventDTO offlineHandleEventDTO) {
String url = Constant.API_URL + "/tmerclub_group/mp/group_activity/audit";
String url = Constant.API_URL + "/tmerclub_group/mp/groupActivity/audit";
HttpUtil.post(url, offlineHandleEventDTO, UrlEnum.PLATFORM);
}
@ -123,7 +123,7 @@ public class GroupApi {
* 用户获取团购商品信息
*/
public static AppGroupActivityVO getGroupActivityInfo(Long productId) {
String url = Constant.API_URL + "/tmerclub_group/ua/group_activity/info?spuId=" + productId;
String url = Constant.API_URL + "/tmerclub_group/ua/groupActivity/info?spuId=" + productId;
return HttpUtil.get(url, AppGroupActivityVO.class, UrlEnum.API);
}
@ -131,7 +131,7 @@ public class GroupApi {
* 用户开团
*/
public static void openGroup(GroupOrderDTO groupOrderDTO) {
String url = Constant.API_URL + "/tmerclub_group/group_order/confirm";
String url = Constant.API_URL + "/tmerclub_group/groupOrder/confirm";
HttpUtil.post(url, groupOrderDTO, UrlEnum.API);
}
@ -139,7 +139,7 @@ public class GroupApi {
* 开团用户提交拼团订单
*/
public static List<Long> submitGroupOrder(SubmitGroupOrderDTO submitGroupOrderDTO) {
String url = Constant.API_URL + "/tmerclub_group/group_order/submit";
String url = Constant.API_URL + "/tmerclub_group/groupOrder/submit";
return HttpUtil.post(url, submitGroupOrderDTO, UrlEnum.API, List.class);
}
@ -147,7 +147,7 @@ public class GroupApi {
* 用户获取可参团列表
*/
public static List<AppGroupTeamVO> getJoinGroupList(Long groupActivityId) {
String url = Constant.API_URL + "/tmerclub_group/ua/group_activity/join_group_list?groupActivityId=" + groupActivityId;
String url = Constant.API_URL + "/tmerclub_group/ua/groupActivity/joinGroupList?groupActivityId=" + groupActivityId;
return HttpUtil.get(url, List.class, UrlEnum.API_OTHER);
}
@ -155,7 +155,7 @@ public class GroupApi {
* 用户立即参团
*/
public static void joinGroup(GroupOrderDTO groupOrderDTO) {
String url = Constant.API_URL + "/tmerclub_group/group_order/confirm";
String url = Constant.API_URL + "/tmerclub_group/groupOrder/confirm";
HttpUtil.post(url, groupOrderDTO, UrlEnum.API_OTHER);
}
@ -163,7 +163,7 @@ public class GroupApi {
* 参团用户提交拼团订单
*/
public static List<Long> submitJoinGroupOrder(SubmitGroupOrderDTO submitGroupOrderDTO) {
String url = Constant.API_URL + "/tmerclub_group/group_order/submit";
String url = Constant.API_URL + "/tmerclub_group/groupOrder/submit";
return HttpUtil.post(url, submitGroupOrderDTO, UrlEnum.API_OTHER, List.class);
}

View File

@ -24,7 +24,7 @@ public class SeckillApi {
* 平台新建秒杀分类
*/
public static void saveSeckillCategory(SeckillCategoryDTO seckillCategoryDTO) {
String url = Constant.API_URL + "/tmerclub_seckill/mp/seckill_category";
String url = Constant.API_URL + "/tmerclub_seckill/mp/seckillCategory";
HttpUtil.post(url, seckillCategoryDTO, UrlEnum.PLATFORM);
}
@ -32,7 +32,7 @@ public class SeckillApi {
* 获取秒杀分类列表
*/
public static List<SeckillCategory> getSeckillCategoryList() {
String url = Constant.API_URL + "/tmerclub_seckill/mp/seckill_category/list";
String url = Constant.API_URL + "/tmerclub_seckill/mp/seckillCategory/list";
return HttpUtil.get(url, List.class, UrlEnum.PLATFORM);
}
@ -40,7 +40,7 @@ public class SeckillApi {
* 删除秒杀分类
*/
public static void deleteSeckillCategory(Long categoryId) {
String url = Constant.API_URL + "/tmerclub_seckill/mp/seckill_category?categoryId=" + categoryId;
String url = Constant.API_URL + "/tmerclub_seckill/mp/seckillCategory?categoryId=" + categoryId;
HttpUtil.delete(url, UrlEnum.PLATFORM);
}
@ -48,7 +48,7 @@ public class SeckillApi {
* 获取可参加的秒杀列表
*/
public static List<SeckillAdminVO> getSeckillList() {
String url = Constant.API_URL + "/tmerclub_seckill/mp/seckill/list_seckill?pageSize=10&pageNum=1&name=&type=0";
String url = Constant.API_URL + "/tmerclub_seckill/mp/seckill/seckillList?pageSize=10&pageNum=1&name=&type=0";
return JSON.parseArray(JSON.toJSONString(Json.parseObject(JSON.toJSONString(HttpUtil.get(url, PageVO.class, UrlEnum.SHOP)), PageVO.class).getList()), SeckillAdminVO.class);
}
@ -64,7 +64,7 @@ public class SeckillApi {
* 根据时间获取秒杀活动列表
*/
public static List<SeckillSpuVO> getSeckillSpuList(Long startTimestamps) {
String url = Constant.API_URL + "/tmerclub_seckill/mp/seckill/list_seckill_spu_by_time?pageSize=10&pageNum=1&name=&startTimestamp=" + startTimestamps;
String url = Constant.API_URL + "/tmerclub_seckill/mp/seckill/seckillSpuByTimeList?pageSize=10&pageNum=1&name=&startTimestamp=" + startTimestamps;
return JSON.parseArray(JSON.toJSONString(Json.parseObject(JSON.toJSONString(HttpUtil.get(url, PageVO.class, UrlEnum.SHOP)), PageVO.class).getList()), SeckillSpuVO.class);
}
@ -88,7 +88,7 @@ public class SeckillApi {
* 商家获取最新下架信息
*/
public static OfflineHandleEventVO shopGetOfflineHandleEvent(Long seckillId) {
String url = Constant.API_URL + "/tmerclub_seckill/mp/seckill/get_offline_handle_event/" + seckillId;
String url = Constant.API_URL + "/tmerclub_seckill/mp/seckill/getOfflineHandleEvent/" + seckillId;
return HttpUtil.get(url, OfflineHandleEventVO.class, UrlEnum.SHOP);
}
@ -96,7 +96,7 @@ public class SeckillApi {
* 商家申请上架提交审核
*/
public static void apply(OfflineHandleEventDTO offlineHandleEventDTO) {
String url = Constant.API_URL + "/tmerclub_seckill/mp/seckill/audit_apply";
String url = Constant.API_URL + "/tmerclub_seckill/mp/seckill/auditApply";
HttpUtil.post(url, offlineHandleEventDTO, UrlEnum.SHOP);
}
@ -104,7 +104,7 @@ public class SeckillApi {
* 平台获取最新下架信息
*/
public static OfflineHandleEventVO platformGetOfflineHandleEvent(Long seckillId) {
String url = Constant.API_URL + "/tmerclub_seckill/mp/seckill/get_offline_handle_event/" + seckillId;
String url = Constant.API_URL + "/tmerclub_seckill/mp/seckill/getOfflineHandleEvent/" + seckillId;
return HttpUtil.get(url, OfflineHandleEventVO.class, UrlEnum.PLATFORM);
}

View File

@ -65,7 +65,7 @@ public class MyOrderApi {
* 用户扫商家码核销订单
*/
public static void orderStationByOrderId(OrderStationDTO orderStationDTO) {
String url = Constant.API_URL + "/tmerclub_order/my_station_order/order_station_by_order_id";
String url = Constant.API_URL + "/tmerclub_order/my_station_order/orderStationByOrderId";
HttpUtil.put(url, orderStationDTO, UrlEnum.API);
}
}

View File

@ -53,13 +53,13 @@ public class OrderApi {
}
public static List<DeliveryOrderFeignVO> infoOrderDelivery(Long orderNumber){
String url = Constant.API_URL+"/tmerclub_order/mp/order_delivery/info?orderId="+orderNumber;
String url = Constant.API_URL+"/tmerclub_order/mp/orderDelivery/info?orderId="+orderNumber;
List<DeliveryOrderFeignVO> deliveryOrderFeignVos = HttpUtil.get(url, List.class,UrlEnum.SHOP);
return deliveryOrderFeignVos;
}
public static void updateOrderDelivery(List<DeliveryOrderDTO> list){
String url = Constant.API_URL + "/tmerclub_order/mp/order_delivery/update";
String url = Constant.API_URL + "/tmerclub_order/mp/orderDelivery/update";
HttpUtil.put(url,list,UrlEnum.SHOP);
}
@ -83,7 +83,7 @@ public class OrderApi {
* 根据订单ID和核销码核销虚拟订单
*/
public static void orderWriteOffByOrderId(OrderVirtualInfoDTO orderVirtualInfoDTO) {
String url = Constant.API_URL + "/tmerclub_order/m/order_virtual_info/order_write_off_by_order_id";
String url = Constant.API_URL + "/tmerclub_order/m/order_virtual_info/orderWriteOffByOrderId";
HttpUtil.put(url, orderVirtualInfoDTO, UrlEnum.SHOP);
}

View File

@ -46,7 +46,7 @@ public class ShopOrderRefundApi {
* 根据订单号查询退款记录
*/
public static List<EsOrderRefundVO> getEsOrderRefundVO(Long orderId) {
String url = Constant.API_URL + "/tmerclub_search/mp/search/order_refund/page?pageSize=10&pageNum=1&orderId=" + orderId + "&returnMoneySts=&refundId=&orderType=&applyType=&refundType=&beginTime=&endTime=";
String url = Constant.API_URL + "/tmerclub_search/mp/search/orderRefund/page?pageSize=10&pageNum=1&orderId=" + orderId + "&returnMoneySts=&refundId=&orderType=&applyType=&refundType=&beginTime=&endTime=";
return JSON.parseArray(JSON.toJSONString(Json.parseObject(JSON.toJSONString(HttpUtil.get(url, EsPageVO.class, UrlEnum.SHOP)), EsPageVO.class).getList()), EsOrderRefundVO.class);
}
}

View File

@ -18,7 +18,7 @@ import java.util.List;
*/
public class StationApi {
public static List<StationDetailVO> getStationList(Long shopId){
String url = Constant.API_URL+"/tmerclub_order/station/user_station?pageNum=1&pageSize=7&lat=22.943953938872706&lng=113.39070900424778&stationName=&shopId="+shopId;
String url = Constant.API_URL+"/tmerclub_order/station/userStation?pageNum=1&pageSize=7&lat=22.943953938872706&lng=113.39070900424778&stationName=&shopId="+shopId;
return JSON.parseArray(JSON.toJSONString(Json.parseObject(JSON.toJSONString(HttpUtil.get(url, PageVO.class, UrlEnum.API)), PageVO.class).getList()), StationDetailVO.class);
}
@ -26,7 +26,7 @@ public class StationApi {
* 获取门店首页数据
*/
public static StationVO getStationIndexInfo() {
String url = Constant.API_URL + "/tmerclub_order/station/get_station_index_info";
String url = Constant.API_URL + "/tmerclub_order/station/getStationIndexInfo";
return HttpUtil.get(url, StationVO.class, UrlEnum.STATION);
}
@ -34,7 +34,7 @@ public class StationApi {
* 在门店端查询订单信息
* */
public static OrderVO getStationOrderByCode(String code){
String url = Constant.API_URL+"/tmerclub_order/station/get_station_order_by_code?code="+code;
String url = Constant.API_URL+"/tmerclub_order/station/getStationOrderByCode?code="+code;
return HttpUtil.get(url,OrderVO.class, UrlEnum.STATION);
}
@ -42,14 +42,14 @@ public class StationApi {
* 在门店端核销自提订单
* */
public static void orderStationById(String orderIds) {
String url = Constant.API_URL + "/tmerclub_order/station/order_station_by_order_id";
String url = Constant.API_URL + "/tmerclub_order/station/orderStationByOrderId";
HttpUtil.put(url, orderIds, UrlEnum.STATION);
}
/**
* 在门店端核销虚拟商品订单
* */
public static void orderWriteOffByOrderNumber(OrderVirtualInfoDTO orderVirtualInfoDTO){
String url = Constant.API_URL + "/tmerclub_order/station/order_write_off_by_order_id";
String url = Constant.API_URL + "/tmerclub_order/station/orderWriteOffByOrderId";
HttpUtil.put(url, orderVirtualInfoDTO, UrlEnum.STATION);
}
}

View File

@ -22,7 +22,7 @@ public class PlatformProductApi {
* 平台获取最新下架信息
*/
public static OfflineHandleEventVO platformGetOfflineHandleEvent(Long productId) {
String url = Constant.API_URL + "/tmerclub_product/mp/spu/get_offline_handle_event/" + productId;
String url = Constant.API_URL + "/tmerclub_product/mp/spu/getOfflineHandleEvent/" + productId;
return HttpUtil.get(url, OfflineHandleEventVO.class, UrlEnum.PLATFORM);
}

View File

@ -24,13 +24,13 @@ public class ScoreOrderApi {
}
public static List<DeliveryOrderFeignVO> infoOrderDelivery(Long orderNumber){
String url = Constant.API_URL+"/tmerclub_order/mp/order_delivery/info?orderId="+orderNumber;
String url = Constant.API_URL+"/tmerclub_order/mp/orderDelivery/info?orderId="+orderNumber;
List<DeliveryOrderFeignVO> deliveryOrderFeignVos = HttpUtil.get(url, List.class,UrlEnum.PLATFORM);
return deliveryOrderFeignVos;
}
public static void updateOrderDelivery(List<DeliveryOrderDTO> list){
String url = Constant.API_URL + "/tmerclub_order/mp/order_delivery/update";
String url = Constant.API_URL + "/tmerclub_order/mp/orderDelivery/update";
HttpUtil.put(url,list,UrlEnum.PLATFORM);
}
}

View File

@ -14,7 +14,7 @@ public class UserLevelApi {
* 获取用户等级信息
*/
public static UserLevelVO info(Long userLevelId) {
String url = Constant.API_URL + "/tmerclub_user/p/user_level?userLevelId=" + userLevelId;
String url = Constant.API_URL + "/tmerclub_user/p/userLevel?userLevelId=" + userLevelId;
return HttpUtil.get(url, UserLevelVO.class, UrlEnum.PLATFORM);
}
@ -22,7 +22,7 @@ public class UserLevelApi {
* 更新用户等级
*/
public static void update(UserLevelDTO userLevelDTO) {
String url = Constant.API_URL + "/tmerclub_user/p/user_level";
String url = Constant.API_URL + "/tmerclub_user/p/userLevel";
HttpUtil.put(url, userLevelDTO, UrlEnum.PLATFORM);
}
}

View File

@ -13,7 +13,7 @@ public class UserRightsApi {
* 新增用户权益
*/
public static Long save(UserRightsDTO userRightsDTO) {
String url = Constant.API_URL + "/tmerclub_user/p/user_rights";
String url = Constant.API_URL + "/tmerclub_user/p/userRights";
return HttpUtil.post(url, userRightsDTO, UrlEnum.PLATFORM, Long.class);
}
@ -21,7 +21,7 @@ public class UserRightsApi {
* 删除用户权益
*/
public static void delete(Long rightsId) {
String url = Constant.API_URL + "/tmerclub_user/p/user_rights?rightsId=" + rightsId;
String url = Constant.API_URL + "/tmerclub_user/p/userRights?rightsId=" + rightsId;
HttpUtil.delete(url, UrlEnum.PLATFORM);
}
}

View File

@ -11,12 +11,12 @@ import com.moyuer.cloud.systemtest.util.UrlEnum;
*/
public class SameCityApi {
public static SameCityVO getSameCityInfo() {
String url = Constant.API_URL + "/tmerclub_order/m/same_city/get_same_city_info";
String url = Constant.API_URL + "/tmerclub_order/m/sameCity/getSameCityPage";
return HttpUtil.get(url, SameCityVO.class, UrlEnum.SHOP);
}
public static void saveSameCity(SameCityDTO sameCityDTO) {
String url = Constant.API_URL + "/tmerclub_order/m/same_city";
String url = Constant.API_URL + "/tmerclub_order/m/sameCity";
HttpUtil.post(url, sameCityDTO, UrlEnum.SHOP);
}
}

View File

@ -14,12 +14,12 @@ import java.util.List;
*/
public class ShopRefundAddrApi {
public static Long addShopRefundAddr(ShopRefundAddrDTO shopRefundAddrDTO){
String url = Constant.API_URL +"/tmerclub_admin/mp/shop_refund_addr";
String url = Constant.API_URL +"/tmerclub_admin/mp/refundAddr";
return JSON.parseArray(JSON.toJSONString(HttpUtil.post(url,shopRefundAddrDTO, UrlEnum.SHOP,Long.class)),Long.class).get(0);
}
public static List<ShopRefundAddrVO> listShopRefundAddr(){
String url = Constant.API_URL +"/tmerclub_admin/mp/shop_refund_addr/list";
String url = Constant.API_URL +"/tmerclub_admin/mp/refundAddr/list";
return JSON.parseArray(JSON.toJSONString(HttpUtil.get(url,List.class, UrlEnum.SHOP)),ShopRefundAddrVO.class);
}
}

View File

@ -29,7 +29,7 @@ public class SupplierOrderApi {
}
public static void updateOrderDelivery(List<DeliveryOrderDTO> list){
String url = Constant.API_URL + "/tmerclub_order/mp/order_delivery/update";
String url = Constant.API_URL + "/tmerclub_order/mp/orderDelivery/update";
HttpUtil.put(url,list,UrlEnum.SUPPLIER);
}
}

View File

@ -75,7 +75,7 @@ public class SupplierProductApi {
* 商家获取最新下架信息
*/
public static OfflineHandleEventVO getOfflineHandleEvent(Long productId) {
String url = Constant.API_URL + "/tmerclub_product/s/spu/get_offline_handle_event/" + productId;
String url = Constant.API_URL + "/tmerclub_product/s/spu/getOfflineHandleEvent/" + productId;
return HttpUtil.get(url, OfflineHandleEventVO.class, UrlEnum.SUPPLIER);
}
@ -83,7 +83,7 @@ public class SupplierProductApi {
* 商家申请上架提交审核
*/
public static void apply(OfflineHandleEventDTO offlineHandleEventDTO) {
String url = Constant.API_URL + "/tmerclub_product/s/spu/audit_apply";
String url = Constant.API_URL + "/tmerclub_product/s/spu/auditApply";
HttpUtil.post(url, offlineHandleEventDTO, UrlEnum.SUPPLIER);
}
}

View File

@ -23,7 +23,7 @@ import java.util.Objects;
* @date 2022/9/13 14:06
*/
@RestController("adminCompanyAuditingController")
@RequestMapping("/mp/shop_company_auditing")
@RequestMapping("/mp/shopCompanyAuditing")
@Tag(name = "admin-工商信息审核情况")
public class CompanyAuditingController {

View File

@ -30,7 +30,7 @@ import java.util.Objects;
* @date 2021-01-27 09:10:00
*/
@RestController("adminHotSearchController")
@RequestMapping("/mp/hot_search")
@RequestMapping("/mp/hotQuery")
@Tag(name = "admin-热搜")
public class HotSearchController {
private static final Logger log = LoggerFactory.getLogger(HotSearchController.class);

View File

@ -29,7 +29,7 @@ import java.util.Objects;
* @date 2020-11-24 16:38:32
*/
@RestController("adminIndexImgController")
@RequestMapping("/mp/index_img")
@RequestMapping("/mp/indexPic")
@Tag(name = "admin-轮播图")
public class IndexImgController {

View File

@ -29,7 +29,6 @@ import java.util.Objects;
*/
@RestController("adminShopCompanyController")
@RequestMapping("/ma/shopCompany")
//@RequestMapping("/mp/shop_company")
@Tag(name = "admin-商家工商信息")
public class ShopCompanyController {
@ -42,16 +41,16 @@ public class ShopCompanyController {
@Autowired
private ShopDetailService shopDetailService;
@GetMapping("/check_credit_code")
@GetMapping("/checkCreditCode")
@Operation(summary = "检查统一信用码是否已存在", description = "检查统一信用码是否已存在")
public ServerResponseEntity<Boolean> checkCreditCode(@RequestParam("creditCode") String creditCode, @RequestParam("shopId") Long shopId) {
Boolean res = shopCompanyService.checkCreditCode(creditCode, shopId);
return ServerResponseEntity.success(res);
}
@PutMapping("/update_id_card_status")
@PutMapping("/updateCardCtatus")
@Operation(summary = "更新影印件状态", description = "通联独有")
public ServerResponseEntity<Integer> updateIdCardStatus(@RequestParam("shopId") Long shopId) {
public ServerResponseEntity<Integer> updateCardStatus(@RequestParam("shopId") Long shopId) {
if (!shopAllinpayService.getIsAllinpay()) {
return ServerResponseEntity.success();
}
@ -85,9 +84,9 @@ public class ShopCompanyController {
return ServerResponseEntity.success(idCardStatus.getData());
}
@PutMapping("/upload_id_card")
@PutMapping("/uploadCard")
@Operation(summary = "重新上传影印件", description = "通联独有")
public ServerResponseEntity<String> uploadIdCard(@RequestBody ShopCompanyDTO shopCompanyDTO) {
public ServerResponseEntity<String> uploadCard(@RequestBody ShopCompanyDTO shopCompanyDTO) {
if (!shopAllinpayService.getIsAllinpay()) {
return ServerResponseEntity.success("非通联环境");
}

View File

@ -16,14 +16,14 @@ import org.springframework.web.bind.annotation.RestController;
* @Date 2021/8/14 16:45
*/
@RestController("adminShopDetailController")
@RequestMapping("/mp/shop_detail")
@RequestMapping("/mp/shopDetail")
@Tag(name = "admin-店铺信息")
public class ShopDetailController {
@Autowired
private ShopDetailService shopDetailService;
@GetMapping("/check_shop_name")
@GetMapping("/checkShopName")
@Operation(summary = "检查店铺名称是否已存在", description = "检查店铺名称是否已存在")
public ServerResponseEntity<Boolean> checkShopName(@RequestParam("shopName") String shopName) {
Boolean res = shopDetailService.checkShopName(shopName);

View File

@ -28,7 +28,7 @@ import java.util.Objects;
* @date 2021-01-15 17:46:26
*/
@RestController("shopOfflineHandleEventController")
@RequestMapping("/mp/shop_offline_handle_event")
@RequestMapping("/mp/shopOfflineHandleEvent")
@Tag(name = "admin-下线处理事件")
public class ShopOfflineHandleEventController {
@ -59,7 +59,7 @@ public class ShopOfflineHandleEventController {
return ServerResponseEntity.success();
}
@GetMapping("/get_offline_handle_event_by_prodId/{prodId}")
@GetMapping("/getOfflineHandleEventByProdId/{prodId}")
@Operation(summary = "获取最新下线店铺的事件", description = "通过prodId获取最新下线店铺的事件")
public ServerResponseEntity<OfflineHandleEventVO> getOfflineHandleEventByProdId(@PathVariable Long prodId) {
ServerResponseEntity<OfflineHandleEventVO> offlineHandleEventResponse =
@ -67,9 +67,9 @@ public class ShopOfflineHandleEventController {
return ServerResponseEntity.success(offlineHandleEventResponse.getData());
}
@PostMapping("/shop_audit")
@PostMapping("/shopAudit")
@Operation(summary = "审核店铺", description = "审核店铺")
public ServerResponseEntity<Void> prodAudit(@RequestBody OfflineHandleEventDTO offlineHandleEventDto) {
public ServerResponseEntity<Void> shopAudit(@RequestBody OfflineHandleEventDTO offlineHandleEventDto) {
offlineHandleEventFeignClient.auditOfflineEvent(offlineHandleEventDto);
Long shopId = offlineHandleEventDto.getHandleId();
// 审核通过,更新店铺为营业状态
@ -84,7 +84,7 @@ public class ShopOfflineHandleEventController {
return ServerResponseEntity.success();
}
@PostMapping("/audit_apply")
@PostMapping("/auditApply")
@Operation(summary = "违规店铺提交审核", description = "违规店铺提交审核")
public ServerResponseEntity<Void> auditApply(@RequestBody OfflineHandleEventDTO offlineHandleEventDto) {
Long shopId = offlineHandleEventDto.getHandleId();

View File

@ -21,7 +21,7 @@ import org.springframework.web.bind.annotation.RestController;
* @Date 2022/6/30 17:23
*/
@RestController("adminShopRechargeController")
@RequestMapping("/mp/shop_recharge")
@RequestMapping("/mp/shopRecharge")
@Tag(name = "admin-商家充值记录信息")
public class ShopRechargeController {

View File

@ -27,7 +27,7 @@ import java.util.List;
* @date 2021-01-27 09:10:00
*/
@RestController("adminShopRefundAddrController")
@RequestMapping("/mp/shop_refund_addr")
@RequestMapping("/mp/RefundAddr")
@Tag(name = "admin-退货地址")
public class ShopRefundAddrController {

View File

@ -24,7 +24,7 @@ import java.util.Objects;
* @author Orange
*/
@RestController("adminShopRenovationController")
@RequestMapping("/mp/shop_renovation")
@RequestMapping("/mp/shopRenovation")
@Tag(name = "店铺装修信息")
public class ShopRenovationController {
@ -40,7 +40,7 @@ public class ShopRenovationController {
return ServerResponseEntity.success(shopRenovationPage);
}
@GetMapping("/page_h5")
@GetMapping("/pageH5")
@Operation(summary = "根据类型分页获取店铺装修信息列表", description = "分页获取店铺装修信息列表")
public ServerResponseEntity<PageVO<ShopRenovation>> pageH5(@Valid PageDTO pageDTO, ShopRenovationDTO shopRenovation) {
shopRenovation.setShopId(AuthUserContext.get().getTenantId());
@ -58,7 +58,7 @@ public class ShopRenovationController {
return ServerResponseEntity.success(shopRenovation);
}
@GetMapping("/get_h5")
@GetMapping("/getH5")
@Operation(summary = "获取店铺装修信息", description = "根据renovationId获取店铺装修信息")
public ServerResponseEntity<ShopRenovation> getH5ByRenovationId(@RequestParam Long renovationId) {
ShopRenovation shopRenovation = shopRenovationService.getByRenovationId(renovationId);
@ -68,7 +68,7 @@ public class ShopRenovationController {
return ServerResponseEntity.success(shopRenovation);
}
@PostMapping("/save_pc")
@PostMapping("/savePc")
@Operation(summary = "保存店铺pc端装修信息", description = "保存店铺装修信息")
public ServerResponseEntity<Long> save(@Valid @RequestBody ShopRenovationDTO shopRenovationDTO) {
ShopRenovation shopRenovation = BeanUtil.map(shopRenovationDTO, ShopRenovation.class);
@ -79,7 +79,7 @@ public class ShopRenovationController {
return ServerResponseEntity.success(shopRenovation.getRenovationId());
}
@PostMapping("/save_h5")
@PostMapping("/saveH5")
@Operation(summary = "保存店铺移动端装修信息", description = "保存店铺装修信息")
public ServerResponseEntity<Long> saveH5(@Valid @RequestBody ShopRenovationDTO shopRenovationDTO) {
ShopRenovation shopRenovation = BeanUtil.map(shopRenovationDTO, ShopRenovation.class);

View File

@ -23,7 +23,7 @@ import java.util.Objects;
* @author 菠萝凤梨
*/
@RestController("adminShopRenovationUpDelController")
@RequestMapping("/mp/shop_renovation")
@RequestMapping("/mp/shopRenovation")
@Tag(name = "店铺页面-修改、删除、设为主页")
public class ShopRenovationUpDelController {
@ -35,7 +35,7 @@ public class ShopRenovationUpDelController {
private Boolean permission;
@PutMapping("/update_pc")
@PutMapping("/updatePc")
@Operation(summary = "更新店铺pc端装修信息", description = "更新店铺装修信息")
public ServerResponseEntity<Void> update(@Valid @RequestBody ShopRenovationDTO shopRenovationDTO) {
shopRenovationDTO.setRenovationType(RenovationType.PC.value());
@ -43,7 +43,7 @@ public class ShopRenovationUpDelController {
return ServerResponseEntity.success();
}
@PutMapping("/update_h5")
@PutMapping("/updateH5")
@Operation(summary = "更新店铺移动端装修信息", description = "更新店铺装修信息")
public ServerResponseEntity<Void> updateH5(@Valid @RequestBody ShopRenovationDTO shopRenovationDTO) {
shopRenovationDTO.setRenovationType(RenovationType.H5.value());
@ -51,28 +51,28 @@ public class ShopRenovationUpDelController {
return ServerResponseEntity.success();
}
@DeleteMapping("/delete_pc")
@DeleteMapping("/deletePc")
@Operation(summary = "删除pc店铺装修信息", description = "根据店铺装修信息id删除店铺pc装修信息")
public ServerResponseEntity<Void> delete(@RequestParam Long renovationId) {
deleteRenovation(renovationId);
return ServerResponseEntity.success();
}
@DeleteMapping("/delete_h5")
@DeleteMapping("/deleteH5")
@Operation(summary = "删除h5店铺装修信息", description = "根据店铺装修信息id删除店铺h5装修信息")
public ServerResponseEntity<Void> deleteH5(@RequestParam Long renovationId) {
deleteRenovation(renovationId);
return ServerResponseEntity.success();
}
@PutMapping("/update_home_status_pc")
@PutMapping("/updateHomeStatus")
@Operation(summary = "PC端修改主页标识", description = "PC端修改主页标识")
public ServerResponseEntity<Void> updateHomeStatus(@RequestParam Long renovationId) {
updateShopRenovationStatus(renovationId);
return ServerResponseEntity.success();
}
@PutMapping("/update_h5_home_status")
@PutMapping("/updateH5HomeStatus")
@Operation(summary = "移动端修改主页标识", description = "移动端修改主页标识")
public ServerResponseEntity<Void> updateH5HomeStatus(@RequestParam Long renovationId) {
updateShopRenovationStatus(renovationId);

View File

@ -26,7 +26,7 @@ import java.util.Objects;
* @author Orange
*/
@RestController("multishopShopTemplateController")
@RequestMapping("/mp/shop_template")
@RequestMapping("/mp/shopTemplate")
@Tag(name = "店铺装修模板")
public class ShopTemplateController {
@ -42,7 +42,7 @@ public class ShopTemplateController {
return ServerResponseEntity.success(shopTemplatePage);
}
@GetMapping("/page_h5")
@GetMapping("/pageH5")
@Operation(summary = "根据类型获取商品装修模板表列表", description = "根据类型分页获取商品装修模板表列表")
public ServerResponseEntity<PageVO<ShopTemplate>> pageH5(@Valid PageDTO pageDTO, ShopTemplateDTO shopTemplateDTO) {
shopTemplateDTO.setShopId(AuthUserContext.get().getTenantId());
@ -56,13 +56,13 @@ public class ShopTemplateController {
return ServerResponseEntity.success(shopTemplateService.getByTemplateId(templateId));
}
@GetMapping("/get_h5")
@GetMapping("/getH5")
@Operation(summary = "获取商品装修模板表", description = "根据templateId获取商品装修模板表")
public ServerResponseEntity<ShopTemplate> getH5ByTemplateId(@RequestParam Long templateId) {
return ServerResponseEntity.success(shopTemplateService.getByTemplateId(templateId));
}
@PostMapping("/save_pc")
@PostMapping("/savePc")
@Operation(summary = "保存商品pc装修模板表", description = "保存商品pc装修模板表")
public ServerResponseEntity<Long> save(@Valid @RequestBody ShopTemplateDTO shopTemplateDTO) {
ShopTemplate shopTemplate = BeanUtil.map(shopTemplateDTO, ShopTemplate.class);
@ -73,7 +73,7 @@ public class ShopTemplateController {
return ServerResponseEntity.success(shopTemplate.getTemplateId());
}
@PostMapping("/save_h5")
@PostMapping("/saveH5")
@Operation(summary = "保存商品h5装修模板表", description = "保存商品h5装修模板表")
public ServerResponseEntity<Long> saveH5(@Valid @RequestBody ShopTemplateDTO shopTemplateDTO) {
ShopTemplate shopTemplate = BeanUtil.map(shopTemplateDTO, ShopTemplate.class);
@ -84,14 +84,14 @@ public class ShopTemplateController {
return ServerResponseEntity.success(shopTemplate.getTemplateId());
}
@PostMapping("/copy_pc")
@PostMapping("/copyPc")
@Operation(summary = "PC端复制模板信息", description = "PC端复制模板信息")
public ServerResponseEntity<Long> copy(@RequestParam Long templateId) {
ShopTemplate shopTemplate = copyTemplate(templateId);
return ServerResponseEntity.success(shopTemplate.getTemplateId());
}
@PostMapping("/copy_h5")
@PostMapping("/copyH5")
@Operation(summary = "移动端复制模板信息", description = "移动端复制模板信息")
public ServerResponseEntity<Long> copyH5(@RequestParam Long templateId) {
ShopTemplate shopTemplate = copyTemplate(templateId);

View File

@ -30,7 +30,7 @@ public class ShopTemplateUpDelController {
@Value("${tmerclub.expose.operation.auth:}")
private Boolean permission;
@PutMapping("/update_pc")
@PutMapping("/updatePc")
@Operation(summary = "更新商品PC装修模板表", description = "更新商品PC装修模板表")
public ServerResponseEntity<Void> update(@Valid @RequestBody ShopTemplateDTO shopTemplateDTO) {
if (BooleanUtil.isFalse(permission)) {
@ -40,7 +40,7 @@ public class ShopTemplateUpDelController {
return ServerResponseEntity.success();
}
@PutMapping("/update_h5")
@PutMapping("/updateH5")
@Operation(summary = "更新商品H5装修模板表", description = "更新商品H5装修模板表")
public ServerResponseEntity<Void> updateH5(@Valid @RequestBody ShopTemplateDTO shopTemplateDTO) {
if (BooleanUtil.isFalse(permission)) {

View File

@ -30,7 +30,7 @@ import java.util.Objects;
* @date 2021/6/8 19:46
*/
@RestController("adminShopWalletController")
@RequestMapping("/mp/shop_wallet")
@RequestMapping("/mp/shopWallet")
@Tag(name = "admin-店铺钱包")
public class ShopWalletController {
@ -51,28 +51,28 @@ public class ShopWalletController {
return ServerResponseEntity.success(page);
}
@GetMapping("/get_all_shop_wallet")
@GetMapping("/getAllShopWalletVoByShopId")
@Operation(summary = "查看所有店铺钱包总信息")
public ServerResponseEntity<ShopWalletVO> getAllShopWalletVoByShopId(ShopWalletLogSearchDTO shopWalletLogSearchDTO) {
ShopWalletVO shopWallet = shopWalletService.getAllShop(shopWalletLogSearchDTO);
return ServerResponseEntity.success(shopWallet);
}
@GetMapping("/page_shop_wallet_by_time")
@GetMapping("/pageShopWalletByTime")
@Operation(summary = "分页查看店铺钱包总信息")
public ServerResponseEntity<PageVO<ShopWalletVO>> pageShopWalletByTime(PageDTO pageDTO, ShopWalletLogSearchDTO shopWalletLogSearchDTO) {
PageVO<ShopWalletVO> pageShopWalletByTime = shopWalletService.pageShopWalletByTime(pageDTO, shopWalletLogSearchDTO);
return ServerResponseEntity.success(pageShopWalletByTime);
}
@GetMapping("/page_all_shop")
@GetMapping("/getAllShopWalletLogPage")
@Operation(summary = "查看所有店铺的日志")
public ServerResponseEntity<PageVO<MongoShopWalletLogBO>> getAllShopWalletLogPage(PageDTO pageDTO, ShopWalletLogSearchDTO shopWalletLogSearchDTO) {
PageVO<MongoShopWalletLogBO> page = shopWalletLogService.pageAllShop(pageDTO, shopWalletLogSearchDTO);
return ServerResponseEntity.success(page);
}
@GetMapping("/get_shop_wallet_log_form")
@GetMapping("/getShopWalletLogForm")
@Operation(summary = "导出店铺结算报表", description = "导出店铺结算报表")
public ServerResponseEntity<Void> getShopWalletLogForm(HttpServletResponse response, ShopWalletLogSearchDTO shopWalletLogSearchDTO) {
List<ShopWalletLogExcelVO> list = shopWalletLogService.listShopWalletLogExcel(shopWalletLogSearchDTO);
@ -80,7 +80,7 @@ public class ShopWalletController {
return ServerResponseEntity.success();
}
@GetMapping("/get_shop_wallet")
@GetMapping("/getShopWalletVoByShopId")
@Operation(summary = "查看店铺钱包信息", description = "根据店铺id查看店铺钱包信息")
public ServerResponseEntity<ShopWalletVO> getShopWalletVoByShopId() {
Long shopId = AuthUserContext.get().getTenantId();

View File

@ -26,7 +26,7 @@ import java.util.Objects;
* @Date 2021/6/11 9:23
*/
@RestController("adminShopWithdrawCashController")
@RequestMapping("/mp/shop_withdraw_cash")
@RequestMapping("/mp/shopWithdrawApply")
@Tag(name = "admin-商家提现申请信息")
public class ShopWithdrawCashController {

View File

@ -23,7 +23,7 @@ import java.util.List;
* @date 2021-01-27 09:10:00
*/
@RestController("appHotSearchController")
@RequestMapping("/ua/app/hot_search")
@RequestMapping("/ua/app/hotQuery")
@Tag(name = "app-热搜")
public class HotSearchController {

View File

@ -23,7 +23,7 @@ import java.util.List;
* @date 2020-11-24 16:38:32
*/
@RestController("appIndexImgController")
@RequestMapping("/ua/index_img")
@RequestMapping("/ua/indexPic")
@Tag(name = "app-轮播图")
public class IndexImgController {

View File

@ -25,7 +25,7 @@ import java.util.List;
* @date 2021-02-23 14:41:42
*/
@RestController("appUserCollectionShopController")
@RequestMapping("/user_collection_shop")
@RequestMapping("/shopCollection")
@Tag(name = "app-用户店铺收藏记录")
public class ShopCollectionController {
@ -40,7 +40,7 @@ public class ShopCollectionController {
return ServerResponseEntity.success(shopCollectionPage);
}
@GetMapping("/ma/is_collection")
@GetMapping("/ma/isCollection")
@Operation(summary = "根据店铺id获取该店铺是否在收藏夹中", description = "传入收藏店铺id")
public ServerResponseEntity<Boolean> isCollection(Long shopId) {
UidInfoBO uidInfoBO = AuthUserContext.get();
@ -51,16 +51,16 @@ public class ShopCollectionController {
return ServerResponseEntity.success(shopCollectionService.countByShopIdAndUserId(shopId, uidInfoBO.getUserId()) > 0);
}
@PostMapping("/add_or_cancel")
@PostMapping("/createOrCancel")
@Operation(summary = "添加/取消收藏", description = "传入收藏店铺id,如果店铺未收藏则收藏店铺,已收藏则取消收藏")
@Parameter(name = "shopId", description = "店铺id", required = true)
public ServerResponseEntity<Boolean> addOrCancel(@RequestBody Long shopId) {
public ServerResponseEntity<Boolean> createOrCancel(@RequestBody Long shopId) {
Long userId = AuthUserContext.get().getUserId();
Boolean isAdd = shopCollectionService.addOrCancel(shopId, userId);
return ServerResponseEntity.success(isAdd);
}
@PostMapping("/batch_cancel")
@PostMapping("/batchCancel")
@Operation(summary = "批量取消收藏", description = "传入收藏店铺id")
@Parameter(name = "shopIds", description = "店铺Id", required = true)
public ServerResponseEntity<Boolean> batchCancel(@RequestBody List<Long> shopIds) {

View File

@ -32,7 +32,7 @@ import java.util.Objects;
* @date 2020-12-05 15:50:25
*/
@RestController("appShopDetailController")
@RequestMapping("/ua/shop_detail")
@RequestMapping("/ua/shopDetail")
@Tag(name = "app-店铺详情")
public class ShopDetailController {
@ -48,7 +48,7 @@ public class ShopDetailController {
return ServerResponseEntity.success(shopDetailService.shopSearchPage(pageDTO, shopDetailDTO));
}
@GetMapping("/head_info")
@GetMapping("/getShopHeadInfo")
@Operation(summary = "店铺头部信息", description = "获取的店铺头部信息")
public ServerResponseEntity<ShopHeadInfoVO> getShopHeadInfo(Long shopId) {
ShopHeadInfoVO shopHeadInfoDto = new ShopHeadInfoVO();
@ -76,16 +76,16 @@ public class ShopDetailController {
return ServerResponseEntity.success(shopHeadInfoDto);
}
@GetMapping("/search_shops")
@GetMapping("/queryShops")
@Operation(summary = "app搜索店铺", description = "根据店铺名称搜索店铺")
public ServerResponseEntity<PageVO<ShopHeadInfoVO>> searchShops(PageDTO pageDTO, ShopSearchDTO shopSearchDTO) {
public ServerResponseEntity<PageVO<ShopHeadInfoVO>> queryShops(PageDTO pageDTO, ShopSearchDTO shopSearchDTO) {
PageVO<ShopHeadInfoVO> shopPage = shopDetailService.renovationShopPage(pageDTO, shopSearchDTO, SysTypeEnum.ORDINARY.value());
return ServerResponseEntity.success(shopPage);
}
@GetMapping("/list_renovation_shop")
@GetMapping("/getRenovationShopList")
@Operation(summary = "获取装修店铺列表信息", description = "获取装修店铺列表信息")
public ServerResponseEntity<List<ShopHeadInfoVO>> listRenovationShop(ShopSearchDTO shopSearchDTO) {
public ServerResponseEntity<List<ShopHeadInfoVO>> getRenovationShopList(ShopSearchDTO shopSearchDTO) {
List<ShopHeadInfoVO> shopList = shopDetailService.listRenovationShop(shopSearchDTO);
return ServerResponseEntity.success(shopList);
}

View File

@ -24,7 +24,7 @@ import java.util.Objects;
* @date 2022-08-12 11:27:18
*/
@RestController("appShopRenovationController")
@RequestMapping("/ua/shop_renovation")
@RequestMapping("/ua/shopRenovation")
@Tag(name = "app-店铺装修信息")
public class ShopRenovationController {
private static final Logger logger = LoggerFactory.getLogger(ShopRenovationController.class);
@ -32,19 +32,19 @@ public class ShopRenovationController {
@Autowired
private ShopRenovationService shopRenovationService;
@GetMapping("/get_home_page")
@GetMapping("/homePage")
@Operation(summary = "获取店铺主页装修信息", description = "根据店铺id装修类型获取店铺装修信息")
@Parameters({
@Parameter(name = "shopId", description = "店铺id", required = true),
@Parameter(name = "renovationType", description = "装修类型 1.pc 2.移动端", required = true)
})
public ServerResponseEntity<ShopRenovation> getHomePage(@RequestParam("shopId") Long shopId,
public ServerResponseEntity<ShopRenovation> homePage(@RequestParam("shopId") Long shopId,
@RequestParam("renovationType") Integer renovationType) {
ShopRenovation shopHomeRenovation = shopRenovationService.getShopHomeRenovation(shopId, renovationType);
return ServerResponseEntity.success(shopHomeRenovation);
}
@GetMapping("/get_home")
@GetMapping("/getHome")
@Operation(summary = "获取店铺主页装修信息(内容为空)", description = "根据店铺id装修类型获取店铺装修信息(内容为空)")
@Parameters({
@Parameter(name = "shopId", description = "店铺id", required = true),
@ -60,7 +60,7 @@ public class ShopRenovationController {
return ServerResponseEntity.success(shopHomeRenovation);
}
@GetMapping("/get_renovation_by_id")
@GetMapping("/getRenovationById")
@Operation(summary = "根据装修id获取店铺装修信息", description = "根据装修id获取店铺装修信息")
@Parameter(name = "renovationId", description = "装修id", required = true)
public ServerResponseEntity<ShopRenovation> getRenovationById(@RequestParam("renovationId") Long renovationId) {

View File

@ -27,7 +27,7 @@ import java.util.Objects;
* @Author lth
* @Date 2021/5/12 20:27
*/
@RequestMapping("/m/apply_shop/shop_user")
@RequestMapping("/m/applyShop/shopUser")
@RestController("multishopShopUserController")
@Tag(name = "multishop-店铺用户信息")
public class ApplyShopUserController {

View File

@ -22,7 +22,7 @@ import java.util.Objects;
* @date 2022/9/13 14:06
*/
@RestController("multishopCompanyAuditingController")
@RequestMapping("/m/shop_company_auditing")
@RequestMapping("/m/shopCompanyAuditing")
@Tag(name = "multishop-店铺变更工商信息")
public class CompanyAuditingController {
@ -31,7 +31,7 @@ public class CompanyAuditingController {
@Autowired
private ShopDetailService shopDetailService;
@PostMapping("/apply_change_company_info")
@PostMapping("/applyChangeCompanyInfo")
@Operation(summary = "申请变更工商信息", description = "申请变更工商信息")
public ServerResponseEntity<Void> applyChangeCompanyInfo(@RequestBody @Valid ShopCompanyDTO shopCompanyDTO) {
Long shopId = AuthUserContext.get().getTenantId();

View File

@ -29,7 +29,7 @@ import java.util.Objects;
* @author person
*/
@RestController("multishopShopApplyController")
@RequestMapping("/m/apply_shop/shop_apply")
@RequestMapping("/m/applyShop/shopApply")
@Tag(name = "multishop-店铺申请")
public class ShopApplyController {
@ -47,7 +47,7 @@ public class ShopApplyController {
@Autowired
private ShopAllinpayService shopAllinpayService;
@GetMapping("/get_auditing_info")
@GetMapping("/getAuditingInfo")
@Operation(summary = "获取店铺审核状态信息", description = "获取店铺审核状态信息,返回值为空代表该店铺没有提交过审核信息")
public ServerResponseEntity<ShopAuditingVO> getAuditingInfo() {
Long shopId = AuthUserContext.get().getTenantId();

View File

@ -30,7 +30,7 @@ import java.util.Objects;
* @author lth
*/
@RestController("multishopShopBankCardController")
@RequestMapping("/m/apply_shop/shop_bank_card")
@RequestMapping("/m/applyShop/shopBankCard")
@Tag(name = "multishop-店铺银行卡信息")
public class ShopBankCardController {
@ -45,7 +45,7 @@ public class ShopBankCardController {
@Autowired
private ShopDetailService shopDetailService;
@PostMapping("/save_and_apply_shop")
@PostMapping("/saveAndApplyShop")
@Operation(summary = "批量保存店铺银行卡信息并提交店铺审核信息", description = "批量保存店铺银行卡信息并提交店铺审核信息")
public ServerResponseEntity<Void> saveAndApplyShop(@Valid @RequestBody List<ShopBankCardDTO> shopBankCardDTOList) {
Long shopId = AuthUserContext.get().getTenantId();
@ -94,9 +94,9 @@ public class ShopBankCardController {
return ServerResponseEntity.success(shopBankCardVO);
}
@GetMapping("/list_by_shopId")
@GetMapping("/getShopIdList")
@Operation(summary = "获取店铺下的银行卡列表", description = "获取店铺下的银行卡列表")
public ServerResponseEntity<List<ShopBankCardVO>> listByShopId() {
public ServerResponseEntity<List<ShopBankCardVO>> getShopIdList() {
Long shopId = AuthUserContext.get().getTenantId();
List<ShopBankCardVO> shopBankCardVOList = shopBankCardService.listByShopId(shopId);
return ServerResponseEntity.success(shopBankCardVOList);
@ -133,16 +133,16 @@ public class ShopBankCardController {
return ServerResponseEntity.success();
}
@PutMapping("/set_primary")
@PutMapping("/setPrimary")
@Operation(summary = "设置为主账号", description = "设置为主账号")
public ServerResponseEntity<Void> setPrimary(@RequestParam("shopBankCardId") Long shopBankCardId) {
shopBankCardService.setPrimaryByShopId(shopBankCardId, AuthUserContext.get().getTenantId());
return ServerResponseEntity.success();
}
@PutMapping("/set_not_primary")
@PutMapping("/cancelPrimary")
@Operation(summary = "取消主账号", description = "取消主账号")
public ServerResponseEntity<Void> setNotPrimary(@RequestParam("shopBankCardId") Long shopBankCardId) {
public ServerResponseEntity<Void> cancelPrimary(@RequestParam("shopBankCardId") Long shopBankCardId) {
shopBankCardService.setNotPrimaryByShopId(shopBankCardId, AuthUserContext.get().getTenantId());
return ServerResponseEntity.success();
}

View File

@ -34,7 +34,7 @@ import java.util.Objects;
* @Date 2021/4/25 16:31
*/
@RestController
@RequestMapping("/m/apply_shop/shop_company")
@RequestMapping("/m/applyShop/shopCompany")
@Tag(name = "multishop-店铺工商信息")
public class ShopCompanyController {
@ -121,7 +121,7 @@ public class ShopCompanyController {
return ServerResponseEntity.success(shopCompanyVO);
}
@PutMapping("/update_acct_protocol_no")
@PutMapping("/updateAcctProtocolNo")
@Operation(summary = "更新店铺账户协议编号")
@Parameters({
@Parameter(name = "signAcctType", description = "签约类型 1.个人 2.法人 3.企业"),

View File

@ -31,7 +31,7 @@ import java.util.Objects;
* @author lth
*/
@RestController("multishopShopDetailController")
@RequestMapping("/m/apply_shop/shop_detail")
@RequestMapping("/m/applyShop/shopDetail")
@Tag(name = "multishop-店铺信息")
public class ShopDetailController {
@ -133,7 +133,7 @@ public class ShopDetailController {
return ServerResponseEntity.success();
}
@PostMapping("/audit_apply")
@PostMapping("/auditApply")
@Operation(summary = "店铺重新申请上线", description = "店铺重新申请上线")
public ServerResponseEntity<Void> auditApply(@RequestBody OfflineHandleEventDTO offlineHandleEventDTO) {
Long shopId = AuthUserContext.get().getTenantId();

View File

@ -33,7 +33,7 @@ import java.util.Objects;
* @author chiley
*/
@RestController("multishopRechargeController")
@RequestMapping("/m/shop_recharge")
@RequestMapping("/m/shopRecharge")
@Tag(name = "multishop-商家余额充值")
public class ShopRechargeController {
@ -125,7 +125,7 @@ public class ShopRechargeController {
}
@Operation(summary = "重新发送充值支付验证码--暂不调用,采用微信正扫不需要该接口", description = "通联独有")
@PostMapping("/resend_pay_sms")
@PostMapping("/resendPaySms")
public ServerResponseEntity<Void> resendPaySms(@RequestBody AllinpayRechargeDTO rechargeDTO) {
if (Objects.isNull(rechargeDTO.getBizOrderNo())) {
throw new LuckException("充值订单号不能为空");

View File

@ -23,7 +23,7 @@ import java.util.Objects;
* @date 2022-06-22 17:09:12
*/
@RestController("multishopShopSubstituteSalesController")
@RequestMapping("/m/shop_substitute_sales")
@RequestMapping("/m/substituteSales")
@Tag(name = "代销设置表")
public class ShopSubstituteSalesController {

View File

@ -38,7 +38,7 @@ import java.util.Objects;
* @author tmerclub
* @date 2020/09/02
*/
@RequestMapping("/m/shop_user")
@RequestMapping("/m/shopUser")
@RestController
@Tag(name = "店铺用户信息")
public class ShopUserController {

View File

@ -21,7 +21,7 @@ import java.util.Objects;
* @author lth
*/
@RestController("multishopShopUserRegisterController")
@RequestMapping("/ua/shop_user_register")
@RequestMapping("/ua/shopUserRegister")
@Tag(name = "multishop-商家注册")
public class ShopUserRegisterController {

View File

@ -21,7 +21,7 @@ import java.util.Objects;
* @author tmerclub
*/
@RestController("multishopShopWithdrawCashController")
@RequestMapping("/m/shop_withdraw_cash")
@RequestMapping("/m/shopWithdrawApply")
@Tag(name = "multishop-商家提现申请信息")
public class ShopWithdrawCashController {
@ -68,7 +68,7 @@ public class ShopWithdrawCashController {
}
@Operation(summary = "重新发送提现支付验证码", description = "通联独有")
@PostMapping("/resend_pay_sms")
@PostMapping("/resendPaySms")
public ServerResponseEntity<Void> resendPaySms(@RequestBody AllinpayShopWithdrawCashDTO allinpayShopWithdrawCashDTO) {
if (Objects.isNull(allinpayShopWithdrawCashDTO.getBizOrderNo())) {
throw new LuckException("提现订单号不能为空");

View File

@ -28,7 +28,7 @@ import java.util.Objects;
* @date 2022/9/14 14:32
*/
@RestController("platformCompanyAuditingController")
@RequestMapping("/p/shop_company_auditing")
@RequestMapping("/p/shopCompanyAuditing")
@Tag(name = "platform-审核店铺工商信息")
@Slf4j
public class CompanyAuditingController {

View File

@ -40,7 +40,7 @@ import java.util.Objects;
* @date 2021-02-01 17:10:35
*/
@RestController("platformShopAuditingController")
@RequestMapping("/p/shop_auditing")
@RequestMapping("/p/shopAuditing")
@Tag(name = "platform-平台审核信息")
public class ShopAuditingController {

View File

@ -27,7 +27,7 @@ import java.util.Objects;
* @Date 2021/4/26 10:09
*/
@RestController
@RequestMapping("/p/shop_bank_card")
@RequestMapping("/p/shopBankCard")
@Tag(name = "platform-店铺银行卡信息")
public class ShopBankCardController {
@ -47,9 +47,9 @@ public class ShopBankCardController {
return ServerResponseEntity.success(shopBankCardVOList);
}
@PostMapping("/allinpay_save_and_apply_shop")
@PostMapping("/allinpaySave")
@Operation(summary = "通联支付--批量保存店铺银行卡信息并提交店铺审核信息", description = "批量保存店铺银行卡信息并提交店铺审核信息")
public ServerResponseEntity<Void> allinpaySaveAndApplyShop(@Valid @RequestBody AllinpayShopBankCardDTO allinpayShopBankCardDTO) {
public ServerResponseEntity<Void> allinpaySave(@Valid @RequestBody AllinpayShopBankCardDTO allinpayShopBankCardDTO) {
Long shopId = allinpayShopBankCardDTO.getShopId();
if (Objects.isNull(shopId)) {
throw new LuckException("店铺id不能为空");

View File

@ -40,7 +40,7 @@ import java.util.Objects;
* @date 2020-12-05 15:50:25
*/
@RestController("platformShopDetailController")
@RequestMapping("/p/shop_detail")
@RequestMapping("/p/shopDetail")
@Tag(name = "platform-店铺信息")
public class ShopDetailController {
@ -114,7 +114,7 @@ public class ShopDetailController {
return ServerResponseEntity.success();
}
@PutMapping("/update_password")
@PutMapping("/updatePassword")
@Operation(summary = "更新店铺商家的登陆密码", description = "更新店铺商家的登陆密码")
public ServerResponseEntity<Void> updatePassword(@RequestBody ShopAccountDTO shopAccountDTO) {
// 暂时的home的店铺id

View File

@ -25,7 +25,7 @@ import java.util.Objects;
* @Author lth
* @Date 2021/5/12 20:27
*/
@RequestMapping("/s/apply_shop/shop_user")
@RequestMapping("/s/applyShop/shopUser")
@RestController("supplierShopUserController")
@Tag(name = "supplier-店铺用户信息")
public class ApplyShopUserController {

View File

@ -41,16 +41,16 @@ public class SupplierCompanyController {
@Autowired
private SupplierDetailService supplierDetailService;
@GetMapping("/check_credit_code")
@GetMapping("/checkCreditCode")
@Operation(summary = "检查统一信用码是否已存在", description = "检查统一信用码是否已存在")
public ServerResponseEntity<Boolean> checkCreditCode(@RequestParam("creditCode") String creditCode, @RequestParam("supplierId") Long supplierId) {
Boolean res = supplierCompanyService.checkCreditCode(creditCode, supplierId);
return ServerResponseEntity.success(res);
}
@PutMapping("/update_id_card_status")
@PutMapping("/updateCardCtatus")
@Operation(summary = "更新影印件状态", description = "通联独有")
public ServerResponseEntity<Integer> updateIdCardStatus(@RequestParam("supplierId") Long supplierId) {
public ServerResponseEntity<Integer> updateCardStatus(@RequestParam("supplierId") Long supplierId) {
if (!supplierAllinpayService.getIsAllinpay()) {
return ServerResponseEntity.success();
}
@ -84,7 +84,7 @@ public class SupplierCompanyController {
return ServerResponseEntity.success();
}
@PutMapping("/upload_id_card")
@PutMapping("/uploadCard")
@Operation(summary = "重新上传影印件", description = "通联独有")
public ServerResponseEntity<String> uploadIdCard(@RequestBody SupplierCompanyDTO supplierCompanyDTO) {
if (!supplierAllinpayService.getIsAllinpay()) {

View File

@ -120,7 +120,7 @@ public class SupplierDetailController {
return ServerResponseEntity.success();
}
@PutMapping("/update_password")
@PutMapping("/updatePassword")
@Operation(summary = "更新供应商账户的登录密码", description = "更新供应商账户的登录密码")
public ServerResponseEntity<Void> updatePassword(@RequestBody SupplierAccountDTO supplierAccountDTO) {
if (Objects.equals(supplierAccountDTO.getSupplierId(), Constant.ON_LINE_SUPPLIER_ID) && BooleanUtil.isFalse(permission)) {

View File

@ -30,7 +30,7 @@ public class CompanyAuditingController {
private SupplierCompanyAuditingService supplierCompanyAuditingService;
@PostMapping("/apply_change_company_info")
@PostMapping("/applyChangeCompanyInfo")
@Operation(summary = "申请变更工商信息", description = "申请变更工商信息")
public ServerResponseEntity<Void> applyChangeCompanyInfo(@RequestBody @Valid SupplierCompanyDTO supplierCompanyDTO) {
Long supplierId = AuthUserContext.get().getTenantId();

View File

@ -123,16 +123,16 @@ public class SupplierBankCardController {
return ServerResponseEntity.success();
}
@PutMapping("/set_primary")
@PutMapping("/setPrimary")
@Operation(summary = "设置为主账号", description = "设置为主账号")
public ServerResponseEntity<Void> setPrimary(@RequestParam("supplierBankCardId") Long supplierBankCardId) {
supplierBankCardService.setPrimaryBySupplierId(supplierBankCardId, AuthUserContext.get().getTenantId());
return ServerResponseEntity.success();
}
@PutMapping("/set_not_primary")
@PutMapping("/cancelPrimary")
@Operation(summary = "取消主账号", description = "取消主账号")
public ServerResponseEntity<Void> setNotPrimary(@RequestParam("supplierBankCardId") Long supplierBankCardId) {
public ServerResponseEntity<Void> cancelPrimary(@RequestParam("supplierBankCardId") Long supplierBankCardId) {
supplierBankCardService.setNotPrimaryBySupplierId(supplierBankCardId, AuthUserContext.get().getTenantId());
return ServerResponseEntity.success();
}

View File

@ -112,7 +112,7 @@ public class SupplierCompanyController {
return ServerResponseEntity.success(supplierCompanyService.getSupplierCompanyBySupplierIdAndStatus(supplierId, status));
}
@PutMapping("/update_acct_protocol_no")
@PutMapping("/updateAcctProtocolNo")
@Operation(summary = "更新供应商账户协议编号")
@Parameters({
@Parameter(name = "signAcctType", description = "签约类型 1.个人 2.法人 3.企业"),

View File

@ -134,7 +134,7 @@ public class SupplierDetailController {
return ServerResponseEntity.success();
}
@PostMapping("/audit_apply")
@PostMapping("/auditApply")
@Operation(summary = "供应商重新申请上线", description = "供应商重新申请上线")
public ServerResponseEntity<Void> auditApply(@RequestBody OfflineHandleEventDTO offlineHandleEventDTO) {
Long supplierId = AuthUserContext.get().getTenantId();

View File

@ -70,7 +70,7 @@ public class SupplierWithdrawCashController {
}
@Operation(summary = "重新发送提现支付验证码", description = "通联独有")
@PostMapping("/resend_pay_sms")
@PostMapping("/resendPaySms")
public ServerResponseEntity<Void> resendPaySms(@RequestBody AllinpaySupplierWithdrawCashDTO allinpaySupplierWithdrawCashDTO) {
if (Objects.isNull(allinpaySupplierWithdrawCashDTO.getBizOrderNo())) {
throw new LuckException("提现订单号不能为空");

View File

@ -91,7 +91,7 @@ public class LoginController {
return doLogin(authenticationDTO, LoginType.PASSWORD.value());
}
@PostMapping("/ua/login_with_code")
@PostMapping("/ua/loginByCode")
@Operation(summary = "手机号+验证码登录(用于前端登录)", description = "通过手机号+验证码登录,还要携带用户的类型,也就是用户所在的系统")
public ServerResponseEntity<TokenInfoVO> loginWithCode(@Valid @RequestBody LoginCodeDTO loginCode) {
// 该接口是用户端在pch5小程序使用
@ -142,7 +142,7 @@ public class LoginController {
return threeInOneLogin(mobile, maCodeAuthenticationDTO.getTempUid(), SocialType.MA.value());
}
@PostMapping("/ua/admin_login")
@PostMapping("/ua/login")
@Operation(summary = "账号密码 + 验证码登录(用于后台登录)", description = "通过账号/手机号/用户名密码登录,还要携带用户的类型,也就是用户所在的系统")
public ServerResponseEntity<TokenInfoVO> login(
@Valid @RequestBody CaptchaAuthenticationDTO captchaAuthenticationDTO) {

View File

@ -48,7 +48,7 @@ public class PasswordController {
public static final String CHECK_UPDATE_SMS_FLAG = "checkUpdatePwdSmsFlag";
@PutMapping("/update_password")
@PutMapping("/updatePassword")
@Operation(summary = "更新密码", description = "更新当前用户的密码, 更新密码之后要退出登录清理token")
public ServerResponseEntity<TokenInfoVO> updatePassword(@Valid @RequestBody UpdatePasswordDTO updatePasswordDTO) {
UidInfoBO uidInfoBO = AuthUserContext.get();
@ -74,7 +74,7 @@ public class PasswordController {
return ServerResponseEntity.success();
}
@PutMapping("/ua/forget_password")
@PutMapping("/ua/forgetPassword")
@Operation(summary = "忘记密码", description = "通过验证码修改密码更新密码之后要退出登录清理token")
public ServerResponseEntity<TokenInfoVO> password(@Valid @RequestBody ForgetPasswordDTO forgetPasswordDTO) {

View File

@ -46,7 +46,7 @@ public class StationLoginController {
private StationFeignClient stationFeignClient;
@PostMapping("/ua/station_login")
@PostMapping("/ua/stationLogin")
@Operation(summary = "自提点账号密码(用于前端登录)", description = "通过账号/手机号/用户名密码登录")
public ServerResponseEntity<TokenInfoVO> login(@Valid @RequestBody AuthenticationDTO authenticationDTO) {
authenticationDTO.setSysType(SysTypeEnum.STATION.value());

View File

@ -19,14 +19,14 @@ import org.springframework.web.bind.annotation.RestController;
*/
@Tag(name = "微信小程序接口")
@RestController
@RequestMapping("/ua/wx_mnp")
@RequestMapping("/ua/wxMnp")
public class WxMnpController {
@Autowired
private WxConfig wxConfig;
@Operation(summary = "获取小程序urlLink")
@GetMapping("/generate_url_link")
@GetMapping("/generateUrlLink")
public ServerResponseEntity<String> generateUrlLink(GenerateUrlLinkRequest generateUrlLinkRequest) {
WxMaService wxMaService = wxConfig.getWxMaService();
String urlLink;

View File

@ -35,7 +35,7 @@ import java.util.Objects;
* @date 2021/01/29
*/
@RestController("adminPasswordController")
@RequestMapping("/mp/password")
@RequestMapping("/mp/changePassword")
@Tag(name = "管理后台密码修改")
public class PasswordController {
@ -60,7 +60,7 @@ public class PasswordController {
private Boolean permission;
@PutMapping("/update_password")
@PutMapping("/updatePassword")
@Operation(summary = "更新密码", description = "更新当前用户的密码, 更新密码之后要退出登录清理token")
public ServerResponseEntity<TokenInfoVO> updatePassword(@Valid @RequestBody UpdatePasswordDTO updatePasswordDTO) {
UidInfoBO uidInfoBO = AuthUserContext.get();
@ -101,7 +101,7 @@ public class PasswordController {
return ServerResponseEntity.success();
}
@PutMapping("/ua/forget_password")
@PutMapping("/ua/forgetPassword")
@Operation(summary = "忘记密码", description = "通过验证码修改密码更新密码之后要退出登录清理token")
public ServerResponseEntity<TokenInfoVO> password(@Valid @RequestBody ForgetPasswordDTO forgetPasswordDTO) {

View File

@ -28,7 +28,7 @@ public class OssController {
@Autowired
private AttachFileService attachFileService;
@GetMapping("/get_batch_pre_sign_url")
@GetMapping("/getBatchPreSignUrl")
@Operation(summary = "批量获取预签名url(s3协议)")
@Parameter(name = "fileNames", description = "文件名集合")
public ServerResponseEntity<List<PreSignUrlVO>> getBatchPreSignUrl(@RequestParam List<String> fileNames) {

View File

@ -33,7 +33,7 @@ import java.util.Objects;
*/
@RestController
@RequestMapping("/ua/qrcode_ticket")
@RequestMapping("/ua/qrcodeTicket")
@Tag(name = "二维码数据")
public class QrcodeTicketController {
@ -45,7 +45,7 @@ public class QrcodeTicketController {
/**
* 小程序二维码
*/
@GetMapping("/mini_qrcode")
@GetMapping("/smallQrcode")
@Operation(summary = "小程序二维码获取", description = "获取小程序二维码,返回二维码图片流,小程序跳到二维码的页面之后," +
"需要根据获取的scene请求获取线上保存的content为什么要这么麻烦以为scene的内容有限只能在数据库保存")
@Parameters({
@ -79,7 +79,7 @@ public class QrcodeTicketController {
/**
* 根据Ticket获取content
*/
@GetMapping("/get_content")
@GetMapping("/getContent")
@Operation(summary = "根据Ticket获取保存的内容", description = "小程序里的scene就是你要的Ticket咯")
@Parameters(@Parameter(name = "ticket", description = "小程序里的scene就是你要的Ticket咯", required = true))
public ServerResponseEntity<QrcodeTicketVO> getContent(String ticket) {

View File

@ -32,7 +32,7 @@ import java.util.Objects;
* @date 2020-11-21 10:21:40
*/
@RestController("adminAttachFileController")
@RequestMapping("/mp/attach_file")
@RequestMapping("/mp/attachFile")
@Tag(name = "admin-上传文件记录表")
public class AttachFileController {
@ -65,7 +65,7 @@ public class AttachFileController {
/**
* 更改文件名或分组
*/
@PutMapping("/update_file")
@PutMapping("/updateFile")
@Operation(summary = "更新文件记录", description = "更新文件记录")
public ServerResponseEntity<Boolean> updateFileName(@RequestBody AttachFileDTO attachFileDto) {
if (Objects.isNull(attachFileDto.getFileName())) {

View File

@ -24,7 +24,7 @@ import java.util.Objects;
* @date 2020-12-04 16:15:02
*/
@RestController("adminAttachFileGroupController")
@RequestMapping("/mp/attach_file_group")
@RequestMapping("/mp/attachFileGroup")
@Tag(name = "admin-文件分组")
public class AttachFileGroupController {
@Autowired

View File

@ -32,7 +32,7 @@ import java.util.Objects;
* @date 2020-05-12 08:21:24
*/
@RestController("adminNotifyLogController")
@RequestMapping("/mp/notify_log")
@RequestMapping("/mp/notifyLog")
@Tag(name = "商家端和供应商端消息通知")
public class NotifyLogController {
@ -43,7 +43,7 @@ public class NotifyLogController {
/**
* 查询用户未读消息数量
*/
@GetMapping("/unread_count")
@GetMapping("/unreadCount")
@Operation(summary = "查询用户未读消息数量", description = "查询用户未读消息数量")
public ServerResponseEntity<Integer> getNotifyCount() {
Long tenantId = AuthUserContext.get().getTenantId();
@ -54,7 +54,7 @@ public class NotifyLogController {
/**
* 查询未读消息列表
*/
@GetMapping("/unread_count_list")
@GetMapping("/getUnReadCountList")
@Operation(summary = "查询消息列表", description = "查询消息列表")
@Parameter(name = "status", description = "状态 0未读 1已读 不传查询全部按照已读未读排序")
public ServerResponseEntity<PageVO<NotifyLogVO>> getUnReadCountList(@Valid PageDTO page, NotifyLogDTO notifyLogDTO) {
@ -91,7 +91,7 @@ public class NotifyLogController {
return ServerResponseEntity.success(notifyLogVO);
}
@PutMapping("/is_read")
@PutMapping("/isRead")
@Operation(summary = "批量设置消息为已读状态 ", description = "批量设置消息为已读状态")
@Parameters({
@Parameter(name = "logIds", description = "消息id", required = true),

View File

@ -27,7 +27,7 @@ import java.util.Objects;
* @date 2022-10-24 13:48:38
*/
@RestController("adminNotifyTemplateRemindController")
@RequestMapping("/mp/notify_template_remind")
@RequestMapping("/mp/notifyRemind")
@Tag(name = "商家端和供应商端消息提醒设置")
public class NotifyTemplateRemindController {

View File

@ -19,14 +19,14 @@ import org.springframework.web.bind.annotation.RestController;
* @date 2020-11-21 10:21:40
*/
@RestController("appAttachFileController")
@RequestMapping("/attach_file")
@RequestMapping("/attachFile")
@Tag(name = "app-文件记录表")
public class AttachFileController {
@Autowired
private AttachFileService attachFileService;
@GetMapping("/get_file_by_id")
@GetMapping("/getFileById")
@Operation(summary = "根据文件id获取文件信息")
public ServerResponseEntity<AttachFileVO> getFileById(Long fileId) {
AttachFileVO attachFileVO = attachFileService.getById(fileId);

View File

@ -31,7 +31,7 @@ import java.util.Objects;
* @date 2020-05-12 08:21:24
*/
@RestController("appNotifyLogController")
@RequestMapping("/notify_log")
@RequestMapping("/notifyLog")
@Tag(name = "消息通知")
public class NotifyLogController {
@ -43,7 +43,7 @@ public class NotifyLogController {
/**
* 查询用户未读消息数量
*/
@GetMapping("/unread_count")
@GetMapping("/unreadCount")
@Operation(summary = "查询用户未读消息数量", description = "查询用户未读消息数量")
public ServerResponseEntity<Integer> getNotifyCount() {
Long userId = AuthUserContext.get().getUserId();
@ -57,7 +57,7 @@ public class NotifyLogController {
/**
* 查询未读消息列表
*/
@GetMapping("/unread_count_list")
@GetMapping("/getUnReadCountList")
@Operation(summary = "查询消息列表", description = "查询消息列表")
@Parameter(name = "status", description = "状态 0未读 1已读 不传查询全部按照已读未读排序")
public ServerResponseEntity<PageVO<NotifyLogVO>> getUnReadCountList(@Valid PageDTO page, Integer status) {

View File

@ -19,7 +19,7 @@ import org.springframework.web.bind.annotation.*;
* @date 2022-10-24 13:48:38
*/
@RestController("appNotifyTemplateRemindController")
@RequestMapping("/notify_template_remind")
@RequestMapping("/notifyRemind")
@Tag(name = "消息提醒设置")
public class NotifyTemplateRemindController {

View File

@ -23,7 +23,7 @@ import java.util.Objects;
* @Date 2021/6/1 15:20
*/
@RestController("multishopAttachFileController")
@RequestMapping("/m/attach_file")
@RequestMapping("/m/attachFile")
@Tag(name = "multishop-上传文件记录表")
public class AttachFileController {
@ -31,7 +31,7 @@ public class AttachFileController {
private AttachFileService attachFileService;
@DeleteMapping("/delete_by_ids")
@DeleteMapping("/deleteByIds")
@Operation(summary = "根据文件id列表批量删除文件记录", description = "根据文件id列表批量删除文件记录")
public ServerResponseEntity<Void> deleteByIds(@RequestBody List<Long> ids) {
Long shopId = AuthUserContext.get().getTenantId();
@ -39,7 +39,7 @@ public class AttachFileController {
return ServerResponseEntity.success();
}
@PutMapping("/batch_move")
@PutMapping("/batchMove")
@Operation(summary = "根据文件id列表与分组id批量移动文件", description = "根据文件id列表与分组id批量移动文件")
public ServerResponseEntity<Void> batchMove(@RequestBody List<Long> ids, @RequestParam(value = "groupId", required = false, defaultValue = "") Long groupId) {
Long shopId = AuthUserContext.get().getTenantId();
@ -48,7 +48,7 @@ public class AttachFileController {
return ServerResponseEntity.success();
}
@GetMapping("/get_file_by_id")
@GetMapping("/getFileById")
@Operation(summary = "根据文件id获取文件信息")
public ServerResponseEntity<AttachFileVO> getFileById(Long fileId) {
AttachFileVO attachFileVO = attachFileService.getById(fileId);
@ -59,7 +59,7 @@ public class AttachFileController {
return ServerResponseEntity.success(attachFileVO);
}
@PostMapping("/save_pdf_file")
@PostMapping("/savePdfFile")
@Operation(summary = "保存商家发票")
public ServerResponseEntity<AttachFileVO> savePdfFile(@RequestBody AttachFileDTO attachFileDTO) {
AttachFile attachFile = BeanUtil.map(attachFileDTO, AttachFile.class);

View File

@ -42,7 +42,7 @@ public class SmsController {
private ShopUserFeignClient shopUserFeignClient;
public static final String CHECK_UPDATE_SMS_FLAG = "checkUpdatePwdSmsFlag";
@PutMapping("/send_withdraw_code")
@PutMapping("/sendWithdrawCode")
@Operation(summary = "给商家手机号发送申请提现验证码", description = "给商家手机号发送申请提现验证码,返回商家手机号")
public ServerResponseEntity<String> applyShopSms() {
Integer sysType = AuthUserContext.get().getSysType();
@ -54,9 +54,9 @@ public class SmsController {
return ServerResponseEntity.success(merchantInfoRes.getData().getPhone());
}
@PutMapping("/send_auth_shop_user_code")
@PutMapping("/sendAuthShopUserCode")
@Operation(summary = "发送认证店铺员工/子账号验证码", description = "发送认证店铺员工/子账号验证码")
public ServerResponseEntity<Void> sendAuthShopUserSms(@RequestBody SendAndCheckSmsDTO sendAndCheckSmsDTO) {
public ServerResponseEntity<Void> sendAuthShopUserCode(@RequestBody SendAndCheckSmsDTO sendAndCheckSmsDTO) {
String phone = sendAndCheckSmsDTO.getMobile();
if (StrUtil.isBlank(phone) || !PrincipalUtil.isMobile(phone)) {
throw new LuckException("手机号格式不正确");
@ -68,7 +68,7 @@ public class SmsController {
/**
* 发送忘记密码验证码接口
*/
@PostMapping("/ua/update_pwd")
@PostMapping("/ua/sendUpdatePwdCode")
@Operation(summary = "发送忘记密码验证码接口", description = "发送忘记密码验证码接口")
public ServerResponseEntity<Void> sendUpdatePwdCode(@RequestBody SendAndCheckSmsDTO sendSmsParam) {
if (Objects.equals(shopUserFeignClient.countAccoutByMobile(sendSmsParam.getMobile()).getData(), 0)) {
@ -79,9 +79,9 @@ public class SmsController {
return ServerResponseEntity.success();
}
@PutMapping("/ua/check_update_pwd")
@PutMapping("/ua/checkUpdatePwd")
@Operation(summary = "校验用户忘记密码时的验证码", description = "校验验证码返回校验成功的标识")
public ServerResponseEntity<String> checkUpdatePwdSms(@Valid @RequestBody SendAndCheckSmsDTO sendAndCheckSmsDto) {
public ServerResponseEntity<String> checkUpdatePwd(@Valid @RequestBody SendAndCheckSmsDTO sendAndCheckSmsDto) {
// 每个ip每分钟只能发十个注册的验证码免得接口被利用
String mobile = sendAndCheckSmsDto.getMobile();
if (!smsLogService.checkValidCode(mobile, sendAndCheckSmsDto.getValidCode(), SendTypeEnum.UPDATE_PASSWORD)) {

View File

@ -17,14 +17,14 @@ import java.util.List;
* @Date 2021/6/1 15:45
*/
@RestController("platformAttachFileController")
@RequestMapping("/p/attach_file")
@RequestMapping("/p/attachFile")
@Tag(name = "platform-上传文件记录表")
public class AttachFileController {
@Autowired
private AttachFileService attachFileService;
@DeleteMapping("/delete_by_ids")
@DeleteMapping("/deleteByIds")
@Operation(summary = "根据文件id列表批量删除文件记录", description = "根据文件id列表批量删除文件记录")
public ServerResponseEntity<Void> deleteByIds(@RequestBody List<Long> ids) {
Long shopId = Constant.PLATFORM_SHOP_ID;
@ -32,7 +32,7 @@ public class AttachFileController {
return ServerResponseEntity.success();
}
@PutMapping("/batch_move")
@PutMapping("/batchMove")
@Operation(summary = "根据文件id列表与分组id批量移动文件", description = "根据文件id列表与分组id批量移动文件")
public ServerResponseEntity<Void> batchMove(@RequestBody List<Long> ids, @RequestParam(value = "groupId", required = false, defaultValue = "") Long groupId) {
Long shopId = Constant.PLATFORM_SHOP_ID;

View File

@ -25,7 +25,7 @@ import java.util.Objects;
* @date 2021-05-14 09:35:32
*/
@RestController("platformNotifyLogController")
@RequestMapping("/p/notify_log")
@RequestMapping("/p/notifyLog")
@Tag(name = "消息日志")
public class NotifyLogController {

View File

@ -30,7 +30,7 @@ import java.util.Objects;
* @date 2021-05-14 09:35:32
*/
@RestController("platformNotifyTemplateController")
@RequestMapping("/p/notify_template")
@RequestMapping("/p/notifyTemplate")
@Tag(name = "platform-消息通知配置")
public class NotifyTemplateController {

View File

@ -28,7 +28,7 @@ import java.util.Objects;
* @date 2021-05-20 11:09:53
*/
@RestController("platformNotifyTemplateTagController")
@RequestMapping("/p/notify_template_tag")
@RequestMapping("/p/notifyTemplate_tag")
@Tag(name = "platform-标签消息")
public class NotifyTemplateTagController {

View File

@ -29,7 +29,7 @@ import java.util.Objects;
* @Date 2021/6/1 15:20
*/
@RestController("supplierAttachFileController")
@RequestMapping("/s/attach_file")
@RequestMapping("/s/attachFile")
@Tag(name = "supplier-上传文件记录表")
public class AttachFileController {
@ -39,7 +39,7 @@ public class AttachFileController {
private Boolean permission;
@DeleteMapping("/delete_by_ids")
@DeleteMapping("/deleteByIds")
@Operation(summary = "根据文件id列表批量删除文件记录", description = "根据文件id列表批量删除文件记录")
public ServerResponseEntity<Void> deleteByIds(@RequestBody List<Long> ids) {
Long shopId = AuthUserContext.get().getTenantId();
@ -47,7 +47,7 @@ public class AttachFileController {
return ServerResponseEntity.success();
}
@PutMapping("/batch_move")
@PutMapping("/batchMove")
@Operation(summary = "根据文件id列表与分组id批量移动文件", description = "根据文件id列表与分组id批量移动文件")
public ServerResponseEntity<Void> batchMove(@RequestBody List<Long> ids, @RequestParam(value = "groupId", required = false, defaultValue = "") Long groupId) {
Long shopId = AuthUserContext.get().getTenantId();
@ -56,7 +56,7 @@ public class AttachFileController {
return ServerResponseEntity.success();
}
@GetMapping("/get_file_by_id")
@GetMapping("/getFileById")
@Operation(summary = "根据文件id获取文件信息")
public ServerResponseEntity<AttachFileVO> getFileById(Long fileId) {
AttachFileVO attachFileVO = attachFileService.getById(fileId);
@ -67,7 +67,7 @@ public class AttachFileController {
return ServerResponseEntity.success(attachFileVO);
}
@PostMapping("/save_pdf_file")
@PostMapping("/savePdfFile")
@Operation(summary = "保存商家发票")
public ServerResponseEntity<AttachFileVO> savePdfFile(@RequestBody AttachFileDTO attachFileDTO) {
AttachFile attachFile = BeanUtil.map(attachFileDTO, AttachFile.class);

View File

@ -44,9 +44,9 @@ public class SmsController {
public static final String UPDATE_PWD_SMS_FLAG = "updatePwdSmsFlag";
@PutMapping("/send_withdraw_code")
@PutMapping("/sendWithdrawCode")
@Operation(summary = "给供应商手机号发送申请提现验证码", description = "给供应商手机号发送申请提现验证码,返回供应商手机号")
public ServerResponseEntity<String> applyShopSms() {
public ServerResponseEntity<String> sendWithdrawCode() {
Long shopId = AuthUserContext.get().getTenantId();
Integer sysType = AuthUserContext.get().getSysType();
ServerResponseEntity<AuthAccountVO> supplierInfoRes = accountFeignClient.getAccountInfoByTenantId(shopId, sysType);
@ -57,9 +57,9 @@ public class SmsController {
return ServerResponseEntity.success(supplierInfoRes.getData().getPhone());
}
@PutMapping("/send_auth_shop_user_code")
@PutMapping("/sendAuthShopUserCode")
@Operation(summary = "发送认证店铺员工/子账号验证码", description = "发送认证店铺员工/子账号验证码")
public ServerResponseEntity<Void> sendAuthShopUserSms(@RequestBody SendAndCheckSmsDTO sendAndCheckSmsDTO) {
public ServerResponseEntity<Void> sendAuthShopUserCode(@RequestBody SendAndCheckSmsDTO sendAndCheckSmsDTO) {
String phone = sendAndCheckSmsDTO.getMobile();
if (StrUtil.isBlank(phone) || !PrincipalUtil.isMobile(phone)) {
throw new LuckException("手机号格式不正确");
@ -71,7 +71,7 @@ public class SmsController {
/**
* 发送忘记密码验证码接口
*/
@PostMapping("/ua/update_pwd")
@PostMapping("/ua/sendUpdatePwdCode")
@Operation(summary = "发送忘记密码验证码接口", description = "发送忘记密码验证码接口")
public ServerResponseEntity<Void> sendUpdatePwdCode(@RequestBody SendAndCheckSmsDTO sendSmsParam) {
if (Objects.equals(supplierUserFeignClient.countAccoutByMobile(sendSmsParam.getMobile()).getData(), 0)) {
@ -82,9 +82,9 @@ public class SmsController {
return ServerResponseEntity.success();
}
@PutMapping("/ua/check_update_pwd")
@PutMapping("/ua/checkUpdatePwd")
@Operation(summary = "校验用户忘记密码时的验证码", description = "校验验证码返回校验成功的标识")
public ServerResponseEntity<String> checkUpdatePwdSms(@Valid @RequestBody SendAndCheckSmsDTO sendAndCheckSmsDto) {
public ServerResponseEntity<String> checkUpdatePwd(@Valid @RequestBody SendAndCheckSmsDTO sendAndCheckSmsDto) {
// 每个ip每分钟只能发十个注册的验证码免得接口被利用
if (!smsLogService.checkValidCode(sendAndCheckSmsDto.getMobile(), sendAndCheckSmsDto.getValidCode(), SendTypeEnum.UPDATE_PASSWORD)) {
// 验证码有误或已过期

View File

@ -60,7 +60,7 @@ public interface AuthConfigAdapter {
/**
* 退出登录uri
*/
String LOGIN_OUT_URI = "/ma/login_out";
String LOGIN_OUT_URI = "/ma/loginOut";
/**
* 需要授权登陆的路径

View File

@ -32,7 +32,7 @@ import java.util.Objects;
*/
@Tag(name = "顾客分析接口")
@RestController("adminCustomerAnalysisController")
@RequestMapping("/mp/customer_analysis")
@RequestMapping("/mp/customerAnalysis")
public class CustomerAnalysisController {
@Autowired
@ -42,7 +42,7 @@ public class CustomerAnalysisController {
* 会员分析会员概况
*/
@Operation(summary = "会员分析,会员概况", description = "会员分析,会员概况")
@GetMapping("/get_member_survey")
@GetMapping("/getMemberSurvey")
public ServerResponseEntity<MemberSurveyRespVO> getMemberSurvey(MemberReqDTO param) {
MemberSurveyRespVO memberSurveyRespVO = customerAnalysisService.getMemberSurvey(param);
return ServerResponseEntity.success(memberSurveyRespVO);
@ -52,7 +52,7 @@ public class CustomerAnalysisController {
* 会员分析会员人数趋势/ 会员占比趋势
*/
@Operation(summary = "会员分析,会员人数趋势/ 会员占比趋势", description = "会员分析,会员人数趋势/ 会员占比趋势")
@GetMapping("/get_member_trend")
@GetMapping("/getMemberTrend")
public ServerResponseEntity<List<MemberTrendRespVO>> getMemberTrend(MemberReqDTO param) {
List<MemberTrendRespVO> resList = customerAnalysisService.getMemberTrend(param);
return ServerResponseEntity.success(resList);
@ -62,7 +62,7 @@ public class CustomerAnalysisController {
* 会员分析会员贡献价值分析
*/
@Operation(summary = "会员分析,会员贡献价值分析", description = "会员分析,会员贡献价值分析")
@GetMapping("/get_member_vontribute_value")
@GetMapping("/getMemberContributeValue")
public ServerResponseEntity<MemberContributeRespVO> getMemberContributeValue(MemberReqDTO param) {
MemberContributeRespVO contributeRespVO = customerAnalysisService.getMemberContributeValue(param);
return ServerResponseEntity.success(contributeRespVO);
@ -71,7 +71,7 @@ public class CustomerAnalysisController {
/**
* 会员分析新老会员成交分析
*/
@GetMapping("/get_member_deal")
@GetMapping("/getMemberDeal")
@Operation(summary = "会员分析,新老会员成交分析", description = "会员分析,新老会员成交分析")
public ServerResponseEntity<MemberDealRespVO> getMemberDeal(MemberReqDTO param) {
MemberDealRespVO respParam = customerAnalysisService.getMemberDeal(param);
@ -82,7 +82,7 @@ public class CustomerAnalysisController {
* 客户分析客户留存分析
*/
@Operation(summary = "客户分析-客户留存分析", description = "客户分析,客户留存分析,不做周留存数据")
@GetMapping("/get_customer_retained")
@GetMapping("/getCustomerRetained")
public ServerResponseEntity<List<CustomerRetainVO>> getCustomerRetained(CustomerRetainedDTO customerRetainedDTO) {
//
Integer dateType = customerRetainedDTO.getDateType();
@ -97,7 +97,7 @@ public class CustomerAnalysisController {
return ServerResponseEntity.success(respList);
}
@GetMapping("/member_trend_export")
@GetMapping("/memberTrendExport")
@Operation(summary = "导出excel", description = "导出导出会员分析,会员人数趋势/ 会员占比趋势")
public ServerResponseEntity<Void> memberTrendExport(HttpServletResponse response, MemberReqDTO param) {
List<MemberTrendExcelVO> list = customerAnalysisService.listMemberTrend(param);

View File

@ -25,14 +25,14 @@ import java.util.Objects;
* @date 2021-05-21 15:25:19
*/
@RestController
@RequestMapping("/mp/product_analyse")
@RequestMapping("/mp/productAnalyse")
@Tag(name = "admin流量分析—商品分析")
public class ProductAnalyseController {
@Autowired
private ProductAnalyseService productAnalyseService;
@GetMapping("/get_single_prod_trend")
@GetMapping("/getSingleProdTrend")
@Operation(summary = "获得单个商品趋势图")
public ServerResponseEntity<List<SingleProdTrendVO>> getSingleProdTrend(SingleProdTrendDTO singleProdTrendDTO) {
UidInfoBO uidInfoBO = AuthUserContext.get();

View File

@ -89,14 +89,14 @@ public class FormController {
return ServerResponseEntity.success();
}
@GetMapping("/get_form_item")
@GetMapping("/getFormItem")
@Operation(summary = "获取报表项列表", description = "获取报表项列表")
public ServerResponseEntity<List<FormItemVO>> getFormItem() {
List<FormItemVO> formItemEnumList = formService.getFormItem(2, I18nMessage.getLang());
return ServerResponseEntity.success(formItemEnumList);
}
@GetMapping("/form_excel")
@GetMapping("/formExcel")
@Operation(summary = "根据报表id生成对应的报表统计数据", description = "根据报表id生成对应的报表统计数据")
public void formExcel(@RequestParam("formId") Long formId, HttpServletResponse response) {
Form form = formService.getByFormId(formId);
@ -108,7 +108,7 @@ public class FormController {
ExcelUtil.soleExcel(response, list, form.getFormName(), FormExcelVO.MERGE_ROW_INDEX, FormExcelVO.MERGE_COLUMN_INDEX, excelParam.getFormItemNames(), FormExcelVO.class);
}
@GetMapping("/get_recommend_form_list")
@GetMapping("/getRecommendFormList")
@Operation(summary = "获取全部推荐报表", description = "获取全部推荐报表")
public ServerResponseEntity<List<FormVO>> getRecommendFormList() {
List<FormVO> formList = formService.getRecommendFormList();

View File

@ -24,14 +24,14 @@ import org.springframework.web.bind.annotation.RestController;
* @date 2021-05-21 15:25:19
*/
@RestController("multishopProductAnalyseController")
@RequestMapping("/m/product_analyse")
@RequestMapping("/m/productAnalyse")
@Tag(name = "流量分析—商品分析")
public class ProductAnalyseController {
@Autowired
private ProductAnalyseService productAnalyseService;
@GetMapping("/get_product_effect")
@GetMapping("/getProductEffect")
@Operation(summary = "获取商家端商品洞察数据", description = "获取商品洞察数据")
public ServerResponseEntity<PageVO<ProdEffectRespVO>> getProductEffect(@Valid PageDTO pageDTO, ProdEffectDTO prodEffectDTO) {
prodEffectDTO.setShopId(AuthUserContext.get().getTenantId());

View File

@ -28,7 +28,7 @@ import java.util.List;
* @date 2021-06-02
*/
@RestController
@RequestMapping("/p/flow_analysis")
@RequestMapping("/p/flowAnalysis")
@Tag(name = "platform-流量概括")
public class FlowAnalysisController {
@ -51,7 +51,7 @@ public class FlowAnalysisController {
/**
* 流量总览
*/
@GetMapping("/flow_all")
@GetMapping("/flowAll")
@Operation(summary = "流量总览", description = "流量总览")
public ServerResponseEntity<FlowAnalysisVO> page(FlowAnalysisDTO flowAnalysisDTO) {
//获取时间范围内的统计数据
@ -62,7 +62,7 @@ public class FlowAnalysisController {
/**
* 流量趋势
*/
@GetMapping("/flow_trend")
@GetMapping("/flowTrend")
@Operation(summary = "流量趋势", description = "流量趋势")
public ServerResponseEntity<List<FlowAnalysisVO>> flowTrend(FlowAnalysisDTO flowAnalysisDTO) {
// 获取开始和结束时间
@ -73,14 +73,14 @@ public class FlowAnalysisController {
/**
* 流量来源构成
*/
@GetMapping("/flow_sour")
@GetMapping("/flowSour")
@Operation(summary = "流量来源构成", description = "流量来源构成")
public ServerResponseEntity<List<FlowAnalysisVO>> flowSour(FlowAnalysisDTO flowAnalysisDTO) {
List<FlowAnalysisVO> flowAnalysisDtoList = flowUserAnalysisService.flowSour(flowAnalysisDTO);
return ServerResponseEntity.success(flowAnalysisDtoList);
}
@GetMapping("/analysis_data_export")
@GetMapping("/analysisDataExport")
@Operation(summary = "导出excel", description = "导出流量总览")
public ServerResponseEntity<Void> analysisDataExport(HttpServletResponse response, FlowAnalysisDTO flowAnalysisDTO) {
List<FlowAnalysisDataExcelVO> list = flowUserAnalysisService.listFlowAnalysisDataExcel(flowAnalysisDTO);
@ -88,14 +88,14 @@ public class FlowAnalysisController {
return ServerResponseEntity.success();
}
@GetMapping("/flow_trend_export")
@GetMapping("/flowTrendExport")
@Operation(summary = "导出excel", description = "导出流量趋势")
public ServerResponseEntity<Void> flowTrendExport(HttpServletResponse response, FlowAnalysisDTO flowAnalysisDTO) {
flowUserAnalysisService.exportFlowTrend(response, flowAnalysisDTO);
return ServerResponseEntity.success();
}
@GetMapping("/flow_sour_export")
@GetMapping("/flowSourExport")
@Operation(summary = "导出excel", description = "导出成交转换")
public ServerResponseEntity<Void> flowSourExport(HttpServletResponse response, FlowAnalysisDTO flowAnalysisDTO) {
List<FlowSourDataExcelVO> list = flowUserAnalysisService.listFlowSourDataExcel(flowAnalysisDTO);

View File

@ -105,7 +105,7 @@ public class FormController {
return ServerResponseEntity.success();
}
@GetMapping("/get_form_item")
@GetMapping("/getFormItem")
@Operation(summary = "获取报表项列表", description = "获取报表项列表")
@Parameter(name = "type", description = "1:平台端 2商家端")
public ServerResponseEntity<List<FormItemVO>> getFormItem(@RequestParam("type") Integer type) {
@ -113,7 +113,7 @@ public class FormController {
return ServerResponseEntity.success(formItemEnumList);
}
@GetMapping("/form_excel")
@GetMapping("/formExcel")
@Operation(summary = "生成报表", description = "生成报表")
public void formExcel(@RequestParam("formId") Long formId, HttpServletResponse response) {
Form form = formService.getByFormId(formId);
@ -125,14 +125,14 @@ public class FormController {
ExcelUtil.soleExcel(response, list, form.getFormName(), FormExcelVO.MERGE_ROW_INDEX, FormExcelVO.MERGE_COLUMN_INDEX, excelParam.getFormItemNames(), FormExcelVO.class);
}
@GetMapping("/get_recommend_form_page")
@GetMapping("/getRecommendFormPage")
@Operation(summary = "分页获取推荐报表", description = "分页获取推荐报表")
public ServerResponseEntity<PageVO<Form>> getRecommendFormPage(FormDTO form, PageDTO page) {
PageVO<Form> formPage = formService.getRecommendFormPage(page, form);
return ServerResponseEntity.success(formPage);
}
@GetMapping("/get_recommend_form_list")
@GetMapping("/getRecommendFormList")
@Operation(summary = "获取推荐报表", description = "获取推荐报表")
public ServerResponseEntity<List<FormVO>> getRecommendFormList() {
List<FormVO> formList = formService.getRecommendFormList();

View File

@ -33,21 +33,21 @@ import java.util.List;
* @date 2021-05-21 15:25:19
*/
@RestController("platformProductAnalyseController")
@RequestMapping("/p/product_analyse")
@RequestMapping("/p/productAnalyse")
@Tag(name = "platform-商品分析")
public class ProductAnalyseController {
@Autowired
private ProductAnalyseService productAnalyseService;
@GetMapping("/get_product_effect")
@GetMapping("/getProductEffect")
@Operation(summary = "获取平台端商品洞察数据", description = "获取商品洞察数据")
public ServerResponseEntity<PageVO<ProdEffectRespVO>> getProductEffect(@Valid PageDTO pageDTO, ProdEffectDTO prodEffectDTO) {
prodEffectDTO.setLang(I18nMessage.getLang());
return ServerResponseEntity.success(productAnalyseService.getProductEffect(pageDTO,prodEffectDTO));
}
@GetMapping("/prod_effect_export")
@GetMapping("/prodEffectExport")
@Operation(summary = "导出excel", description = "导出商品洞察数据")
public ServerResponseEntity<Void> prodEffectExport(HttpServletResponse response, ProdEffectDTO prodEffectDTO) {
prodEffectDTO.setLang(I18nMessage.getLang());
@ -59,13 +59,13 @@ public class ProductAnalyseController {
return ServerResponseEntity.success();
}
@GetMapping("/list_shop_ranking_by_flow")
@GetMapping("/shopRankIngByFlow")
@Operation(summary = "获取店铺流量排行榜", description = "获取店铺流量排行榜")
@Parameters({
@Parameter(name = "dayCount", description = "天数(几天内的排行榜)"),
@Parameter(name = "limit", description = "排行榜条数")
})
public ServerResponseEntity<List<ShopFlowInfoVO>> listShopRankIngByFlow(@RequestParam(value = "dayCount", defaultValue = "30") Integer dayCount,
public ServerResponseEntity<List<ShopFlowInfoVO>> shopRankIngByFlow(@RequestParam(value = "dayCount", defaultValue = "30") Integer dayCount,
@RequestParam(value = "limit", defaultValue = "10") Integer limit) {
List<ShopFlowInfoVO> shopFlowInfoVOList = productAnalyseService.listShopRankIngByFlow(DateUtil.endOfDay(DateUtil.date()), dayCount, limit);
return ServerResponseEntity.success(shopFlowInfoVOList);

View File

@ -25,21 +25,21 @@ import java.util.List;
* @date 2021-05-21 15:25:19
*/
@RestController("platformUserVisitAnalysisController")
@RequestMapping("/p/user_visit_analysis")
@RequestMapping("/p/userVisitAnalysis")
@Tag(name = "platform-用户访问统计")
public class UserVisitAnalysisController {
@Autowired
private UserVisitAnalysisService userVisitAnalysisService;
@GetMapping("/get_user_analysis_data")
@GetMapping("/getUserAnalysisData")
@Operation(summary = "获取访客分析数据", description = "获取访客分析数据")
public ServerResponseEntity<FlowUserAnalysisVO> getUserAnalysisData(FlowAnalysisDTO flowAnalysisDTO) {
FlowUserAnalysisVO flowUserAnalysisVO = userVisitAnalysisService.getUserAnalysisData(flowAnalysisDTO);
return ServerResponseEntity.success(flowUserAnalysisVO);
}
@GetMapping("/user_analysis_data_export")
@GetMapping("/userAnalysisDataExport")
@Operation(summary = "导出excel", description = "导出会员分析数据-地图")
public ServerResponseEntity<Void> userAnalysisDataExport(HttpServletResponse response, FlowAnalysisDTO flowAnalysisDTO) {
List<UserAnalysisDataExcelVO> list = userVisitAnalysisService.listUserAnalysisDataExcel(flowAnalysisDTO);

View File

@ -27,14 +27,14 @@ import org.springframework.web.bind.annotation.RestController;
*/
@RestController("supplierProductAnalyseController")
@RequestMapping("/s/product_analyse")
@RequestMapping("/s/productAnalyse")
@Tag(name = "supplier-商品分析")
public class ProductAnalyseController {
@Autowired
private ProductAnalyseService productAnalyseService;
@GetMapping("/get_product_effect")
@GetMapping("/getProductEffect")
@Operation(summary = "获取商家端商品洞察数据", description = "获取商品洞察数据")
public ServerResponseEntity<PageVO<ProdEffectRespVO>> getProductEffect(@Valid PageDTO pageDTO, ProdEffectDTO prodEffectDTO) {
prodEffectDTO.setShopId(AuthUserContext.get().getTenantId());
@ -42,12 +42,12 @@ public class ProductAnalyseController {
return ServerResponseEntity.success(productAnalyseService.getProductEffect(pageDTO, prodEffectDTO));
}
@GetMapping("/get_shop_product_flow_info")
@GetMapping("/getShopProductFlowInfo")
@Operation(summary = "获取供应商店铺流量信息和近30天的商品访问流量排行榜", description = "获取店铺商品浏览量、新老访客数量和近30天的商品访问流量排行榜")
@Parameters({
@Parameter(name = "dayCount", description = "天数(几天内的排行榜)"),
@Parameter(name = "limit", description = "排行榜条数")})
public ServerResponseEntity<ShopFlowInfoVO> getShopFlowInfoAndProdRankIng(@RequestParam(value = "dayCount", defaultValue = "30") Integer dayCount,
public ServerResponseEntity<ShopFlowInfoVO> getShopProductFlowInfo(@RequestParam(value = "dayCount", defaultValue = "30") Integer dayCount,
@RequestParam(value = "limit", defaultValue = "5") Integer limit){
return ServerResponseEntity.success(productAnalyseService.getSupplierFlowInfoAndProdRankIng(dayCount, limit));
}

View File

@ -31,7 +31,7 @@ import java.util.Objects;
* @date 2021-03-19 11:26:37
*/
@RestController("adminGroupActivityController")
@RequestMapping("/mp/group_activity")
@RequestMapping("/mp/groupActivity")
@Tag(name = "admin-拼团活动表")
public class GroupActivityController {
@ -59,7 +59,7 @@ public class GroupActivityController {
* @param groupActivityDTO 拼团活动表
* @return 分页数据
*/
@GetMapping("/platform_page")
@GetMapping("/platformPage")
public ServerResponseEntity<PageVO<GroupActivityVO>> platformPage(PageDTO pageDTO, GroupActivityDTO groupActivityDTO) {
if (!Objects.equals(Constant.PLATFORM_SHOP_ID, AuthUserContext.get().getTenantId())) {
throw new LuckException(ResponseEnum.UNAUTHORIZED);
@ -200,7 +200,7 @@ public class GroupActivityController {
return ServerResponseEntity.success();
}
@GetMapping("/get_offline_handle_event/{groupActivityId}")
@GetMapping("/getOfflineHandleEvent/{groupActivityId}")
@Operation(summary = "获取最新下线的事件", description = "获取最新下线的事件")
public ServerResponseEntity<OfflineHandleEventVO> getOfflineHandleEvent(@PathVariable Long groupActivityId) {
return ServerResponseEntity.success(groupActivityService.getOfflineHandleEvent(groupActivityId));
@ -216,7 +216,7 @@ public class GroupActivityController {
return ServerResponseEntity.success();
}
@PostMapping("/audit_apply")
@PostMapping("/auditApply")
@Operation(summary = "违规活动提交审核", description = "违规活动提交审核")
public ServerResponseEntity<Void> auditApply(@RequestBody OfflineHandleEventDTO offlineHandleEventDto) {
groupActivityService.auditApply(offlineHandleEventDto);

View File

@ -29,7 +29,7 @@ import java.util.Objects;
* @date 2021-03-20 10:39:31
*/
@RestController("appGroupActivityController")
@RequestMapping("/ua/group_activity")
@RequestMapping("/ua/groupActivity")
@Tag(name = "app-拼团活动表")
public class GroupActivityController {
@ -70,7 +70,7 @@ public class GroupActivityController {
return ServerResponseEntity.success(groupActivity);
}
@GetMapping("/join_group_list")
@GetMapping("/joinGroupList")
@Operation(summary = "可加入的团列表", description = "只显示最近n个团列表(默认10)")
public ServerResponseEntity<List<AppGroupTeamVO>> joinGroupList(
@Parameter(description = "拼团活动ID", required = true) @RequestParam("groupActivityId") Long groupActivityId,

View File

@ -56,7 +56,7 @@ import java.util.Objects;
* @date 2021-04-07 10:39:32
*/
@RestController("appGroupOrderController")
@RequestMapping("/group_order")
@RequestMapping("/groupOrder")
@Tag(name = "拼团订单表")
public class GroupOrderController {

View File

@ -32,7 +32,7 @@ import java.util.Objects;
* @date 2021-03-20 10:39:32
*/
@RestController("appGroupTeamController")
@RequestMapping("/group_team")
@RequestMapping("/groupTeam")
@Tag(name = "app-拼团团队表")
public class GroupTeamController {
@ -95,7 +95,7 @@ public class GroupTeamController {
return ServerResponseEntity.success(infoVo);
}
@GetMapping("/join_users")
@GetMapping("/joinGroupUsers")
@Operation(summary = "参团的用户列表", description = "参团的用户列表")
public ServerResponseEntity<List<MongoAppGroupUserVO>> joinGroupUsers(
@Parameter(description = "拼团团队ID", required = true) @RequestParam("groupTeamId") Long groupTeamId) {

View File

@ -23,7 +23,7 @@ import org.springframework.web.bind.annotation.*;
* @date 2023-03-23 17:43:40
*/
@RestController("multishopImMsgBizSkillsController")
@RequestMapping("/m/im_msg_biz_skills")
@RequestMapping("/m/imMsgBizSkills")
@Tag(name = "店铺自动回复接口")
public class ImMsgBizSkillsController {

Some files were not shown because too many files have changed in this diff Show More