Class DictRpcHandler

java.lang.Object
io.github.xezzon.zeroweb.dict.DictRpcHandler
All Implemented Interfaces:
RpcTrait, DictImporter

@Component public class DictRpcHandler extends Object implements DictImporter, RpcTrait
以 RPC 调用的方式实现字典导入功能,针对 zeroweb-service-admin 以外的服务。
Author:
xezzon
  • Constructor Details

    • DictRpcHandler

      public DictRpcHandler()
  • Method Details

    • getCountDownLatch

      @TestOnly public CountDownLatch getCountDownLatch()
    • importDict

      public void importDict(io.github.xezzon.zeroweb.dict.DictImportReqList reqList)
      Description copied from interface: DictImporter
      批量导入字典 逐个判断。如果字典已存在则跳过,否则新增
      Specified by:
      importDict in interface DictImporter
      Parameters:
      reqList - 字典列表