IPosStoreOmgService.java 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. package com.ruoyi.system.service;
  2. import com.ruoyi.system.domain.PosStoreOmg;
  3. import com.ruoyi.system.domain.dto.StoreOmgCredentialDto;
  4. import com.ruoyi.system.domain.vo.PosStoreOmgVo;
  5. import java.util.List;
  6. /**
  7. * 门店 OMG(歐買尬) 支付凭证 Service。
  8. *
  9. * <p>纯 DB 操作;OMG 联网验证(QueryTradeInfo 探测)由 Controller 层完成(避免 system→admin 反向依赖)。
  10. *
  11. * @author ruoyi
  12. * @date 2026-07-29
  13. */
  14. public interface IPosStoreOmgService {
  15. /** 取门店已开通且启用的 OMG 凭证(发起支付用)。无则 null。 */
  16. PosStoreOmg getEnabledCredential(Long storeId);
  17. /** 按 OMG 商店代号反查已启用凭证(回调用)。无则 null。 */
  18. PosStoreOmg getEnabledCredentialByMerchantId(String merchantId);
  19. /** 凭证管理列表(配合 PageHelper 分页)。 */
  20. List<PosStoreOmgVo> selectOmgStoreList(PosStoreOmgVo query);
  21. /** 门店 OMG 凭证详情。 */
  22. PosStoreOmgVo selectOmgStoreDetail(Long storeId);
  23. /** 发起申请 0→1。 */
  24. int apply(Long storeId);
  25. /** 录入凭证并标记已开通(Controller 验证通过后调)。 */
  26. int enableWithCredentials(StoreOmgCredentialDto dto);
  27. /** 停用/恢复(仅已开通)。 */
  28. int toggleEnable(Long storeId);
  29. /** 重置为申请中(凭证作废/重新申请)。 */
  30. int reset(Long storeId);
  31. /** 记录最近一次凭证验证结果。 */
  32. int recordVerifyResult(Long storeId, String result);
  33. /** 设置启用支付方式(本期固定 ALL)。 */
  34. int setEnabledPayments(Long storeId, String payments);
  35. }