Class DictGrpcEndpoint

java.lang.Object
io.github.xezzon.zeroweb.dict.DictGrpc.DictImplBase
io.github.xezzon.zeroweb.dict.internal.DictGrpcEndpoint
All Implemented Interfaces:
io.github.xezzon.zeroweb.dict.DictGrpc.AsyncService, io.grpc.BindableService

@GrpcService public class DictGrpcEndpoint extends io.github.xezzon.zeroweb.dict.DictGrpc.DictImplBase
字典管理 gRPC 接口
Author:
xezzon
  • Constructor Summary

    Constructors
    Constructor
    Description
    依赖注入
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    getDictListByTag(io.github.xezzon.zeroweb.dict.DictReq request, io.grpc.stub.StreamObserver<io.github.xezzon.zeroweb.dict.DictListResp> responseObserver)
    查询指定字典目下所有字典项的列表(服务间接口)
    void
    importDict(io.github.xezzon.zeroweb.dict.DictImportReqList request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
    导入字典数据(服务间接口)

    Methods inherited from class io.github.xezzon.zeroweb.dict.DictGrpc.DictImplBase

    bindService

    Methods inherited from class Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DictGrpcEndpoint

      public DictGrpcEndpoint(DictService dictService)
      依赖注入
      Parameters:
      dictService - 字典管理服务
  • Method Details

    • getDictListByTag

      public void getDictListByTag(io.github.xezzon.zeroweb.dict.DictReq request, io.grpc.stub.StreamObserver<io.github.xezzon.zeroweb.dict.DictListResp> responseObserver)
      查询指定字典目下所有字典项的列表(服务间接口)
      Parameters:
      request - 字典请求对象,包含字典目编码
      responseObserver - 响应观察者,用于返回结果
    • importDict

      public void importDict(io.github.xezzon.zeroweb.dict.DictImportReqList request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
      导入字典数据(服务间接口)
      Parameters:
      request - 字典导入请求列表
      responseObserver - 响应观察者,用于返回结果