配置文件
This commit is contained in:
@@ -5,6 +5,7 @@ import com.czg.account.service.ShopCouponService;
|
|||||||
import com.czg.account.vo.UserCouponVo;
|
import com.czg.account.vo.UserCouponVo;
|
||||||
import com.czg.resp.CzgResult;
|
import com.czg.resp.CzgResult;
|
||||||
import com.czg.sa.StpKit;
|
import com.czg.sa.StpKit;
|
||||||
|
import com.czg.utils.AssertUtil;
|
||||||
import com.mybatisflex.core.paginate.Page;
|
import com.mybatisflex.core.paginate.Page;
|
||||||
import jakarta.annotation.Resource;
|
import jakarta.annotation.Resource;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
@@ -44,6 +45,7 @@ public class UserShopCouponController {
|
|||||||
*/
|
*/
|
||||||
@GetMapping("/findCoupon")
|
@GetMapping("/findCoupon")
|
||||||
public CzgResult<List<UserCouponVo>> findCoupon(@RequestHeader String shopId, @RequestParam Long shopUserId, @RequestParam(required = false) Integer type) {
|
public CzgResult<List<UserCouponVo>> findCoupon(@RequestHeader String shopId, @RequestParam Long shopUserId, @RequestParam(required = false) Integer type) {
|
||||||
|
AssertUtil.isBlank(shopId, "店铺Id不能为空");
|
||||||
return CzgResult.success(couponService.findCoupon(Long.parseLong(shopId), shopUserId, type));
|
return CzgResult.success(couponService.findCoupon(Long.parseLong(shopId), shopUserId, type));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,11 +32,10 @@ dubbo:
|
|||||||
registry:
|
registry:
|
||||||
address: nacos://121.40.109.122:8848 # Nacos 服务地址
|
address: nacos://121.40.109.122:8848 # Nacos 服务地址
|
||||||
group: server-dev
|
group: server-dev
|
||||||
# namespace: 237e1905-0a66-4375-9bb6-a51c3c034aca
|
|
||||||
protocol:
|
protocol:
|
||||||
port: 9101
|
|
||||||
threads: 20
|
threads: 20
|
||||||
# threadpool: fixed
|
name: dubbo
|
||||||
|
serialization: fastjson2
|
||||||
|
|
||||||
|
|
||||||
seata:
|
seata:
|
||||||
|
|||||||
@@ -33,11 +33,10 @@ dubbo:
|
|||||||
registry:
|
registry:
|
||||||
address: nacos://121.40.109.122:8848 # Nacos 服务地址
|
address: nacos://121.40.109.122:8848 # Nacos 服务地址
|
||||||
group: server-test
|
group: server-test
|
||||||
namespace: 237e1905-0a66-4375-9bb6-a51c3c034aca
|
|
||||||
protocol:
|
protocol:
|
||||||
port: 9101
|
|
||||||
threads: 20
|
threads: 20
|
||||||
threadpool: fixed
|
name: dubbo
|
||||||
|
serialization: fastjson2
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -34,11 +34,10 @@ dubbo:
|
|||||||
registry:
|
registry:
|
||||||
address: nacos://121.40.109.122:8848 # Nacos 服务地址
|
address: nacos://121.40.109.122:8848 # Nacos 服务地址
|
||||||
group: server-dev
|
group: server-dev
|
||||||
namespace: 237e1905-0a66-4375-9bb6-a51c3c034aca
|
|
||||||
protocol:
|
protocol:
|
||||||
port: 9201
|
|
||||||
threads: 20
|
threads: 20
|
||||||
threadpool: fixed
|
name: dubbo
|
||||||
|
serialization: fastjson2
|
||||||
|
|
||||||
seata:
|
seata:
|
||||||
application-id: order-server
|
application-id: order-server
|
||||||
|
|||||||
@@ -39,6 +39,8 @@ dubbo:
|
|||||||
protocol:
|
protocol:
|
||||||
port: 9201
|
port: 9201
|
||||||
threads: 20
|
threads: 20
|
||||||
|
name: dubbo
|
||||||
|
serialization: hessian2
|
||||||
threadpool: fixed
|
threadpool: fixed
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -39,11 +39,10 @@ dubbo:
|
|||||||
registry:
|
registry:
|
||||||
address: nacos://121.40.109.122:8848 # Nacos 服务地址
|
address: nacos://121.40.109.122:8848 # Nacos 服务地址
|
||||||
group: server-dev
|
group: server-dev
|
||||||
namespace: 237e1905-0a66-4375-9bb6-a51c3c034aca
|
|
||||||
protocol:
|
protocol:
|
||||||
port: 9301
|
|
||||||
threads: 20
|
threads: 20
|
||||||
threadpool: fixed
|
name: dubbo
|
||||||
|
serialization: fastjson2
|
||||||
|
|
||||||
seata:
|
seata:
|
||||||
application-id: product-server
|
application-id: product-server
|
||||||
|
|||||||
@@ -28,12 +28,10 @@ dubbo:
|
|||||||
registry:
|
registry:
|
||||||
address: nacos://121.40.109.122:8848 # Nacos 服务地址
|
address: nacos://121.40.109.122:8848 # Nacos 服务地址
|
||||||
group: server-test
|
group: server-test
|
||||||
namespace: 237e1905-0a66-4375-9bb6-a51c3c034aca
|
|
||||||
protocol:
|
protocol:
|
||||||
port: 9301
|
|
||||||
threads: 20
|
threads: 20
|
||||||
threadpool: fixed
|
name: dubbo
|
||||||
|
serialization: fastjson2
|
||||||
|
|
||||||
seata:
|
seata:
|
||||||
application-id: product-server
|
application-id: product-server
|
||||||
|
|||||||
@@ -34,11 +34,10 @@ dubbo:
|
|||||||
registry:
|
registry:
|
||||||
address: nacos://121.40.109.122:8848 # Nacos 服务地址
|
address: nacos://121.40.109.122:8848 # Nacos 服务地址
|
||||||
group: server-dev
|
group: server-dev
|
||||||
# namespace: 237e1905-0a66-4375-9bb6-a51c3c034aca
|
|
||||||
protocol:
|
protocol:
|
||||||
port: 9401
|
|
||||||
threads: 20
|
threads: 20
|
||||||
# threadpool: fixed
|
name: dubbo
|
||||||
|
serialization: fastjson2
|
||||||
|
|
||||||
seata:
|
seata:
|
||||||
application-id: system-server
|
application-id: system-server
|
||||||
|
|||||||
@@ -34,11 +34,10 @@ dubbo:
|
|||||||
registry:
|
registry:
|
||||||
address: nacos://121.40.109.122:8848 # Nacos 服务地址
|
address: nacos://121.40.109.122:8848 # Nacos 服务地址
|
||||||
group: server-test
|
group: server-test
|
||||||
namespace: 237e1905-0a66-4375-9bb6-a51c3c034aca
|
|
||||||
protocol:
|
protocol:
|
||||||
port: 9401
|
|
||||||
threads: 20
|
threads: 20
|
||||||
threadpool: fixed
|
name: dubbo
|
||||||
|
serialization: fastjson2
|
||||||
|
|
||||||
|
|
||||||
seata:
|
seata:
|
||||||
|
|||||||
Reference in New Issue
Block a user