nats-const-pay.go 989 B

123456789101112131415161718192021222324252627282930
  1. package comm
  2. import "fmt"
  3. const (
  4. CommPayMallCreateQrApi = "comm.pay.multiPay.createqr"
  5. CommPaySku3dCreateQrApi = "comm.pay.singlePay.createqr"
  6. // cloud
  7. CommPayCloudCreateQrApi = "comm.pay.singlePay.createqr"
  8. // refund
  9. CommPayMallRefundApi = "comm.pay.multiPay.refund"
  10. // refundquery
  11. CommPayMallRefundQueryApi = "comm.pay.multiPay.refundQuery"
  12. )
  13. func NewAppPaySuccSubject(app string) string {
  14. return fmt.Sprintf("%s-pay-succ#%s.paysucc#%s-paysucc-queue", app, app, app)
  15. }
  16. func NewAppPayFailSubject(app string) string {
  17. return fmt.Sprintf("%s-pay-fail#%s.payfail#%s-payfail-queue", app, app, app)
  18. }
  19. var CommPayCloudSuccMsgSubject = NewAppPaySuccSubject("cloud")
  20. var CommPayCloudFailMsgSubject = NewAppPayFailSubject("cloud")
  21. var CommPaySku3dSuccMsgSubject = NewAppPaySuccSubject("sku3d")
  22. var CommPaySku3dFailMsgSubject = NewAppPayFailSubject("sku3d")
  23. var CommPayMallSuccMsgSubject = NewAppPaySuccSubject("mall")
  24. var CommPayMallFailMsgSubject = NewAppPayFailSubject("mall")