Documentation ¶
Overview ¶
Package healthv1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterHealthServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterHealthServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client HealthServiceClient) error
- func RegisterHealthServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterHealthServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server HealthServiceServer) error
- func RegisterHealthServiceServer(s grpc.ServiceRegistrar, srv HealthServiceServer)
- type CheckinRecord
- func (*CheckinRecord) Descriptor() ([]byte, []int)deprecated
- func (x *CheckinRecord) GetCity() string
- func (x *CheckinRecord) GetContent() *structpb.Struct
- func (x *CheckinRecord) GetCountry() string
- func (x *CheckinRecord) GetCreatedAt() int64
- func (x *CheckinRecord) GetCreator() string
- func (x *CheckinRecord) GetId() int32
- func (x *CheckinRecord) GetModified() int64
- func (x *CheckinRecord) GetModifier() string
- func (x *CheckinRecord) GetProvince() string
- func (x *CheckinRecord) GetReportTime() int64
- func (x *CheckinRecord) GetSchoolId() string
- func (x *CheckinRecord) GetStaffId() string
- func (x *CheckinRecord) GetStaffName() string
- func (x *CheckinRecord) GetStaffType() string
- func (x *CheckinRecord) GetUnit() string
- func (*CheckinRecord) ProtoMessage()
- func (x *CheckinRecord) ProtoReflect() protoreflect.Message
- func (x *CheckinRecord) Reset()
- func (x *CheckinRecord) String() string
- type GetCheckinPhoneResponse
- func (*GetCheckinPhoneResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetCheckinPhoneResponse) GetData() *GetCheckinPhoneResponse_Data
- func (x *GetCheckinPhoneResponse) GetError() int32
- func (x *GetCheckinPhoneResponse) GetMsg() string
- func (*GetCheckinPhoneResponse) ProtoMessage()
- func (x *GetCheckinPhoneResponse) ProtoReflect() protoreflect.Message
- func (x *GetCheckinPhoneResponse) Reset()
- func (x *GetCheckinPhoneResponse) String() string
- type GetCheckinPhoneResponse_Data
- func (*GetCheckinPhoneResponse_Data) Descriptor() ([]byte, []int)deprecated
- func (x *GetCheckinPhoneResponse_Data) GetPhone() string
- func (x *GetCheckinPhoneResponse_Data) GetStaffID() string
- func (*GetCheckinPhoneResponse_Data) ProtoMessage()
- func (x *GetCheckinPhoneResponse_Data) ProtoReflect() protoreflect.Message
- func (x *GetCheckinPhoneResponse_Data) Reset()
- func (x *GetCheckinPhoneResponse_Data) String() string
- type GetCheckinRecordRequest
- func (*GetCheckinRecordRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetCheckinRecordRequest) GetDate() string
- func (*GetCheckinRecordRequest) ProtoMessage()
- func (x *GetCheckinRecordRequest) ProtoReflect() protoreflect.Message
- func (x *GetCheckinRecordRequest) Reset()
- func (x *GetCheckinRecordRequest) String() string
- type GetCheckinRecordResponse
- func (*GetCheckinRecordResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetCheckinRecordResponse) GetData() *CheckinRecord
- func (x *GetCheckinRecordResponse) GetError() int32
- func (x *GetCheckinRecordResponse) GetMsg() string
- func (*GetCheckinRecordResponse) ProtoMessage()
- func (x *GetCheckinRecordResponse) ProtoReflect() protoreflect.Message
- func (x *GetCheckinRecordResponse) Reset()
- func (x *GetCheckinRecordResponse) String() string
- type GetCheckinRecordsResponse
- func (*GetCheckinRecordsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetCheckinRecordsResponse) GetData() []*CheckinRecord
- func (x *GetCheckinRecordsResponse) GetError() int32
- func (x *GetCheckinRecordsResponse) GetMsg() string
- func (*GetCheckinRecordsResponse) ProtoMessage()
- func (x *GetCheckinRecordsResponse) ProtoReflect() protoreflect.Message
- func (x *GetCheckinRecordsResponse) Reset()
- func (x *GetCheckinRecordsResponse) String() string
- type GetHealthCodeResponse
- func (*GetHealthCodeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetHealthCodeResponse) GetData() *HealthCodeRaw
- func (x *GetHealthCodeResponse) GetError() int32
- func (x *GetHealthCodeResponse) GetMsg() string
- func (*GetHealthCodeResponse) ProtoMessage()
- func (x *GetHealthCodeResponse) ProtoReflect() protoreflect.Message
- func (x *GetHealthCodeResponse) Reset()
- func (x *GetHealthCodeResponse) String() string
- type GetNucleicAcidTestLatestResponse
- func (*GetNucleicAcidTestLatestResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetNucleicAcidTestLatestResponse) GetData() *NucleicAcidTest
- func (x *GetNucleicAcidTestLatestResponse) GetError() int32
- func (x *GetNucleicAcidTestLatestResponse) GetMsg() string
- func (*GetNucleicAcidTestLatestResponse) ProtoMessage()
- func (x *GetNucleicAcidTestLatestResponse) ProtoReflect() protoreflect.Message
- func (x *GetNucleicAcidTestLatestResponse) Reset()
- func (x *GetNucleicAcidTestLatestResponse) String() string
- type GetNucleicAcidTestsResponse
- func (*GetNucleicAcidTestsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetNucleicAcidTestsResponse) GetData() *GetNucleicAcidTestsResponse_Data
- func (x *GetNucleicAcidTestsResponse) GetError() int32
- func (x *GetNucleicAcidTestsResponse) GetMsg() string
- func (*GetNucleicAcidTestsResponse) ProtoMessage()
- func (x *GetNucleicAcidTestsResponse) ProtoReflect() protoreflect.Message
- func (x *GetNucleicAcidTestsResponse) Reset()
- func (x *GetNucleicAcidTestsResponse) String() string
- type GetNucleicAcidTestsResponse_Data
- func (*GetNucleicAcidTestsResponse_Data) Descriptor() ([]byte, []int)deprecated
- func (x *GetNucleicAcidTestsResponse_Data) GetItems() []*NucleicAcidTest
- func (*GetNucleicAcidTestsResponse_Data) ProtoMessage()
- func (x *GetNucleicAcidTestsResponse_Data) ProtoReflect() protoreflect.Message
- func (x *GetNucleicAcidTestsResponse_Data) Reset()
- func (x *GetNucleicAcidTestsResponse_Data) String() string
- type GetVaccineRecordsResponse
- func (*GetVaccineRecordsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetVaccineRecordsResponse) GetData() *GetVaccineRecordsResponse_Data
- func (x *GetVaccineRecordsResponse) GetError() int32
- func (x *GetVaccineRecordsResponse) GetMsg() string
- func (*GetVaccineRecordsResponse) ProtoMessage()
- func (x *GetVaccineRecordsResponse) ProtoReflect() protoreflect.Message
- func (x *GetVaccineRecordsResponse) Reset()
- func (x *GetVaccineRecordsResponse) String() string
- type GetVaccineRecordsResponse_Data
- func (*GetVaccineRecordsResponse_Data) Descriptor() ([]byte, []int)deprecated
- func (x *GetVaccineRecordsResponse_Data) GetItems() []*VaccineRecord
- func (*GetVaccineRecordsResponse_Data) ProtoMessage()
- func (x *GetVaccineRecordsResponse_Data) ProtoReflect() protoreflect.Message
- func (x *GetVaccineRecordsResponse_Data) Reset()
- func (x *GetVaccineRecordsResponse_Data) String() string
- type HealthCode
- func (*HealthCode) Descriptor() ([]byte, []int)deprecated
- func (x *HealthCode) GetApplyTime() *timestamppb.Timestamp
- func (x *HealthCode) GetCodeId() string
- func (x *HealthCode) GetComment() string
- func (x *HealthCode) GetGrantTime() *timestamppb.Timestamp
- func (x *HealthCode) GetName() string
- func (x *HealthCode) GetRegion() string
- func (x *HealthCode) GetStatus() string
- func (x *HealthCode) GetUpdateTime() *timestamppb.Timestamp
- func (*HealthCode) ProtoMessage()
- func (x *HealthCode) ProtoReflect() protoreflect.Message
- func (x *HealthCode) Reset()
- func (x *HealthCode) String() string
- type HealthCodeRaw
- func (*HealthCodeRaw) Descriptor() ([]byte, []int)deprecated
- func (x *HealthCodeRaw) GetCodeStatus() string
- func (x *HealthCodeRaw) GetFirstApplyTime() string
- func (x *HealthCodeRaw) GetFirstGrantTime() string
- func (x *HealthCodeRaw) GetLastUpdateTime() string
- func (x *HealthCodeRaw) GetLocation() string
- func (x *HealthCodeRaw) GetPhoneNum() string
- func (x *HealthCodeRaw) GetReason() string
- func (x *HealthCodeRaw) GetServerUpdateTime() string
- func (x *HealthCodeRaw) GetStaffId() string
- func (x *HealthCodeRaw) GetStaffName() string
- func (*HealthCodeRaw) ProtoMessage()
- func (x *HealthCodeRaw) ProtoReflect() protoreflect.Message
- func (x *HealthCodeRaw) Reset()
- func (x *HealthCodeRaw) String() string
- type HealthServiceClient
- type HealthServiceServer
- type NucleicAcidTest
- func (*NucleicAcidTest) Descriptor() ([]byte, []int)deprecated
- func (x *NucleicAcidTest) GetReportTime() *timestamppb.Timestamp
- func (x *NucleicAcidTest) GetResult() string
- func (x *NucleicAcidTest) GetTestUnitName() string
- func (*NucleicAcidTest) ProtoMessage()
- func (x *NucleicAcidTest) ProtoReflect() protoreflect.Message
- func (x *NucleicAcidTest) Reset()
- func (x *NucleicAcidTest) String() string
- type PostCheckinPhoneRequest
- func (*PostCheckinPhoneRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PostCheckinPhoneRequest) GetPhone() string
- func (*PostCheckinPhoneRequest) ProtoMessage()
- func (x *PostCheckinPhoneRequest) ProtoReflect() protoreflect.Message
- func (x *PostCheckinPhoneRequest) Reset()
- func (x *PostCheckinPhoneRequest) String() string
- type PostCheckinPhoneResponse
- func (*PostCheckinPhoneResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PostCheckinPhoneResponse) GetError() int32
- func (x *PostCheckinPhoneResponse) GetMessage() string
- func (x *PostCheckinPhoneResponse) GetMsg() string
- func (*PostCheckinPhoneResponse) ProtoMessage()
- func (x *PostCheckinPhoneResponse) ProtoReflect() protoreflect.Message
- func (x *PostCheckinPhoneResponse) Reset()
- func (x *PostCheckinPhoneResponse) String() string
- type PostCheckinRecordBody
- func (*PostCheckinRecordBody) Descriptor() ([]byte, []int)deprecated
- func (x *PostCheckinRecordBody) GetAnswerJsonStr() string
- func (x *PostCheckinRecordBody) GetCity() string
- func (x *PostCheckinRecordBody) GetCountry() string
- func (x *PostCheckinRecordBody) GetName() string
- func (x *PostCheckinRecordBody) GetProvince() string
- func (x *PostCheckinRecordBody) GetTimestamp() int32
- func (*PostCheckinRecordBody) ProtoMessage()
- func (x *PostCheckinRecordBody) ProtoReflect() protoreflect.Message
- func (x *PostCheckinRecordBody) Reset()
- func (x *PostCheckinRecordBody) String() string
- type PostCheckinRecordRequest
- func (*PostCheckinRecordRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PostCheckinRecordRequest) GetContent() *PostCheckinRecordBody
- func (x *PostCheckinRecordRequest) GetSign() string
- func (*PostCheckinRecordRequest) ProtoMessage()
- func (x *PostCheckinRecordRequest) ProtoReflect() protoreflect.Message
- func (x *PostCheckinRecordRequest) Reset()
- func (x *PostCheckinRecordRequest) String() string
- type PostCheckinRecordResponse
- func (*PostCheckinRecordResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PostCheckinRecordResponse) GetData() *PostCheckinRecordResponse_Data
- func (x *PostCheckinRecordResponse) GetError() int32
- func (x *PostCheckinRecordResponse) GetMsg() string
- func (*PostCheckinRecordResponse) ProtoMessage()
- func (x *PostCheckinRecordResponse) ProtoReflect() protoreflect.Message
- func (x *PostCheckinRecordResponse) Reset()
- func (x *PostCheckinRecordResponse) String() string
- type PostCheckinRecordResponse_Data
- func (*PostCheckinRecordResponse_Data) Descriptor() ([]byte, []int)deprecated
- func (x *PostCheckinRecordResponse_Data) GetCode() int32
- func (x *PostCheckinRecordResponse_Data) GetData() string
- func (x *PostCheckinRecordResponse_Data) GetMessage() string
- func (*PostCheckinRecordResponse_Data) ProtoMessage()
- func (x *PostCheckinRecordResponse_Data) ProtoReflect() protoreflect.Message
- func (x *PostCheckinRecordResponse_Data) Reset()
- func (x *PostCheckinRecordResponse_Data) String() string
- type UnimplementedHealthServiceServer
- func (UnimplementedHealthServiceServer) GetCheckinPhone(context.Context, *emptypb.Empty) (*GetCheckinPhoneResponse, error)
- func (UnimplementedHealthServiceServer) GetCheckinRecord(context.Context, *GetCheckinRecordRequest) (*GetCheckinRecordResponse, error)
- func (UnimplementedHealthServiceServer) GetCheckinRecords(context.Context, *emptypb.Empty) (*GetCheckinRecordsResponse, error)
- func (UnimplementedHealthServiceServer) GetHealthCode(context.Context, *emptypb.Empty) (*GetHealthCodeResponse, error)
- func (UnimplementedHealthServiceServer) GetNucleicAcidTestLatest(context.Context, *emptypb.Empty) (*GetNucleicAcidTestLatestResponse, error)
- func (UnimplementedHealthServiceServer) GetNucleicAcidTests(context.Context, *emptypb.Empty) (*GetNucleicAcidTestsResponse, error)
- func (UnimplementedHealthServiceServer) GetVaccineRecords(context.Context, *emptypb.Empty) (*GetVaccineRecordsResponse, error)
- func (UnimplementedHealthServiceServer) PostCheckinPhone(context.Context, *PostCheckinPhoneRequest) (*PostCheckinPhoneResponse, error)
- func (UnimplementedHealthServiceServer) PostCheckinRecord(context.Context, *PostCheckinRecordRequest) (*PostCheckinRecordResponse, error)
- type UnsafeHealthServiceServer
- type VaccineRecord
- func (*VaccineRecord) Descriptor() ([]byte, []int)deprecated
- func (x *VaccineRecord) GetBatch() string
- func (x *VaccineRecord) GetInoculationOrder() string
- func (x *VaccineRecord) GetInoculationTime() *timestamppb.Timestamp
- func (x *VaccineRecord) GetMaxInoculationTime() string
- func (x *VaccineRecord) GetProducerName() string
- func (x *VaccineRecord) GetTypeName() string
- func (x *VaccineRecord) GetVacName() string
- func (*VaccineRecord) ProtoMessage()
- func (x *VaccineRecord) ProtoReflect() protoreflect.Message
- func (x *VaccineRecord) Reset()
- func (x *VaccineRecord) String() string
Constants ¶
const ( HealthService_GetCheckinRecord_FullMethodName = "/campusapis.health.v1.HealthService/GetCheckinRecord" HealthService_GetCheckinRecords_FullMethodName = "/campusapis.health.v1.HealthService/GetCheckinRecords" HealthService_PostCheckinRecord_FullMethodName = "/campusapis.health.v1.HealthService/PostCheckinRecord" HealthService_GetCheckinPhone_FullMethodName = "/campusapis.health.v1.HealthService/GetCheckinPhone" HealthService_PostCheckinPhone_FullMethodName = "/campusapis.health.v1.HealthService/PostCheckinPhone" HealthService_GetHealthCode_FullMethodName = "/campusapis.health.v1.HealthService/GetHealthCode" HealthService_GetVaccineRecords_FullMethodName = "/campusapis.health.v1.HealthService/GetVaccineRecords" HealthService_GetNucleicAcidTests_FullMethodName = "/campusapis.health.v1.HealthService/GetNucleicAcidTests" HealthService_GetNucleicAcidTestLatest_FullMethodName = "/campusapis.health.v1.HealthService/GetNucleicAcidTestLatest" )
Variables ¶
var File_campusapis_health_v1_health_proto protoreflect.FileDescriptor
var HealthService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "campusapis.health.v1.HealthService", HandlerType: (*HealthServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetCheckinRecord", Handler: _HealthService_GetCheckinRecord_Handler, }, { MethodName: "GetCheckinRecords", Handler: _HealthService_GetCheckinRecords_Handler, }, { MethodName: "PostCheckinRecord", Handler: _HealthService_PostCheckinRecord_Handler, }, { MethodName: "GetCheckinPhone", Handler: _HealthService_GetCheckinPhone_Handler, }, { MethodName: "PostCheckinPhone", Handler: _HealthService_PostCheckinPhone_Handler, }, { MethodName: "GetHealthCode", Handler: _HealthService_GetHealthCode_Handler, }, { MethodName: "GetVaccineRecords", Handler: _HealthService_GetVaccineRecords_Handler, }, { MethodName: "GetNucleicAcidTests", Handler: _HealthService_GetNucleicAcidTests_Handler, }, { MethodName: "GetNucleicAcidTestLatest", Handler: _HealthService_GetNucleicAcidTestLatest_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "campusapis/health/v1/health.proto", }
HealthService_ServiceDesc is the grpc.ServiceDesc for HealthService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterHealthServiceHandler ¶
func RegisterHealthServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterHealthServiceHandler registers the http handlers for service HealthService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterHealthServiceHandlerClient ¶
func RegisterHealthServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client HealthServiceClient) error
RegisterHealthServiceHandlerClient registers the http handlers for service HealthService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "HealthServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "HealthServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "HealthServiceClient" to call the correct interceptors.
func RegisterHealthServiceHandlerFromEndpoint ¶
func RegisterHealthServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterHealthServiceHandlerFromEndpoint is same as RegisterHealthServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterHealthServiceHandlerServer ¶
func RegisterHealthServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server HealthServiceServer) error
RegisterHealthServiceHandlerServer registers the http handlers for service HealthService to "mux". UnaryRPC :call HealthServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterHealthServiceHandlerFromEndpoint instead.
func RegisterHealthServiceServer ¶
func RegisterHealthServiceServer(s grpc.ServiceRegistrar, srv HealthServiceServer)
Types ¶
type CheckinRecord ¶
type CheckinRecord struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 姓名 Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` // 创建时间 CreatedAt int64 `protobuf:"varint,3,opt,name=createdAt,proto3" json:"createdAt,omitempty"` // 修改时间 可能为空 Modified int64 `protobuf:"varint,4,opt,name=modified,proto3" json:"modified,omitempty"` // 修改者姓名 Modifier string `protobuf:"bytes,5,opt,name=modifier,proto3" json:"modifier,omitempty"` // 健康打卡内容JSON Content *structpb.Struct `protobuf:"bytes,6,opt,name=content,proto3" json:"content,omitempty"` // 打卡时间 ReportTime int64 `protobuf:"varint,7,opt,name=reportTime,proto3" json:"reportTime,omitempty"` // 打卡省级行政区划码 Province string `protobuf:"bytes,8,opt,name=province,proto3" json:"province,omitempty"` // 打卡市级行政区划码 City string `protobuf:"bytes,9,opt,name=city,proto3" json:"city,omitempty"` // 打卡区级行政区划码 Country string `protobuf:"bytes,10,opt,name=country,proto3" json:"country,omitempty"` // 学号 StaffId string `protobuf:"bytes,11,opt,name=staffId,proto3" json:"staffId,omitempty"` // 学生姓名 StaffName string `protobuf:"bytes,12,opt,name=staffName,proto3" json:"staffName,omitempty"` // 学生类型 1:研究生 2:本科生 StaffType string `protobuf:"bytes,13,opt,name=staffType,proto3" json:"staffType,omitempty"` // 学院名称 Unit string `protobuf:"bytes,14,opt,name=unit,proto3" json:"unit,omitempty"` // 记录索引ID SchoolId string `protobuf:"bytes,15,opt,name=schoolId,proto3" json:"schoolId,omitempty"` // contains filtered or unexported fields }
健康打卡记录
func (*CheckinRecord) Descriptor
deprecated
func (*CheckinRecord) Descriptor() ([]byte, []int)
Deprecated: Use CheckinRecord.ProtoReflect.Descriptor instead.
func (*CheckinRecord) GetCity ¶
func (x *CheckinRecord) GetCity() string
func (*CheckinRecord) GetContent ¶
func (x *CheckinRecord) GetContent() *structpb.Struct
func (*CheckinRecord) GetCountry ¶
func (x *CheckinRecord) GetCountry() string
func (*CheckinRecord) GetCreatedAt ¶
func (x *CheckinRecord) GetCreatedAt() int64
func (*CheckinRecord) GetCreator ¶
func (x *CheckinRecord) GetCreator() string
func (*CheckinRecord) GetId ¶
func (x *CheckinRecord) GetId() int32
func (*CheckinRecord) GetModified ¶
func (x *CheckinRecord) GetModified() int64
func (*CheckinRecord) GetModifier ¶
func (x *CheckinRecord) GetModifier() string
func (*CheckinRecord) GetProvince ¶
func (x *CheckinRecord) GetProvince() string
func (*CheckinRecord) GetReportTime ¶
func (x *CheckinRecord) GetReportTime() int64
func (*CheckinRecord) GetSchoolId ¶
func (x *CheckinRecord) GetSchoolId() string
func (*CheckinRecord) GetStaffId ¶
func (x *CheckinRecord) GetStaffId() string
func (*CheckinRecord) GetStaffName ¶
func (x *CheckinRecord) GetStaffName() string
func (*CheckinRecord) GetStaffType ¶
func (x *CheckinRecord) GetStaffType() string
func (*CheckinRecord) GetUnit ¶
func (x *CheckinRecord) GetUnit() string
func (*CheckinRecord) ProtoMessage ¶
func (*CheckinRecord) ProtoMessage()
func (*CheckinRecord) ProtoReflect ¶
func (x *CheckinRecord) ProtoReflect() protoreflect.Message
func (*CheckinRecord) Reset ¶
func (x *CheckinRecord) Reset()
func (*CheckinRecord) String ¶
func (x *CheckinRecord) String() string
type GetCheckinPhoneResponse ¶
type GetCheckinPhoneResponse struct { Error int32 `protobuf:"varint,1,opt,name=error,proto3" json:"error,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Data *GetCheckinPhoneResponse_Data `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*GetCheckinPhoneResponse) Descriptor
deprecated
func (*GetCheckinPhoneResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetCheckinPhoneResponse.ProtoReflect.Descriptor instead.
func (*GetCheckinPhoneResponse) GetData ¶
func (x *GetCheckinPhoneResponse) GetData() *GetCheckinPhoneResponse_Data
func (*GetCheckinPhoneResponse) GetError ¶
func (x *GetCheckinPhoneResponse) GetError() int32
func (*GetCheckinPhoneResponse) GetMsg ¶
func (x *GetCheckinPhoneResponse) GetMsg() string
func (*GetCheckinPhoneResponse) ProtoMessage ¶
func (*GetCheckinPhoneResponse) ProtoMessage()
func (*GetCheckinPhoneResponse) ProtoReflect ¶
func (x *GetCheckinPhoneResponse) ProtoReflect() protoreflect.Message
func (*GetCheckinPhoneResponse) Reset ¶
func (x *GetCheckinPhoneResponse) Reset()
func (*GetCheckinPhoneResponse) String ¶
func (x *GetCheckinPhoneResponse) String() string
type GetCheckinPhoneResponse_Data ¶
type GetCheckinPhoneResponse_Data struct { Phone string `protobuf:"bytes,1,opt,name=Phone,proto3" json:"Phone,omitempty"` StaffID string `protobuf:"bytes,2,opt,name=StaffID,proto3" json:"StaffID,omitempty"` // contains filtered or unexported fields }
func (*GetCheckinPhoneResponse_Data) Descriptor
deprecated
func (*GetCheckinPhoneResponse_Data) Descriptor() ([]byte, []int)
Deprecated: Use GetCheckinPhoneResponse_Data.ProtoReflect.Descriptor instead.
func (*GetCheckinPhoneResponse_Data) GetPhone ¶
func (x *GetCheckinPhoneResponse_Data) GetPhone() string
func (*GetCheckinPhoneResponse_Data) GetStaffID ¶
func (x *GetCheckinPhoneResponse_Data) GetStaffID() string
func (*GetCheckinPhoneResponse_Data) ProtoMessage ¶
func (*GetCheckinPhoneResponse_Data) ProtoMessage()
func (*GetCheckinPhoneResponse_Data) ProtoReflect ¶
func (x *GetCheckinPhoneResponse_Data) ProtoReflect() protoreflect.Message
func (*GetCheckinPhoneResponse_Data) Reset ¶
func (x *GetCheckinPhoneResponse_Data) Reset()
func (*GetCheckinPhoneResponse_Data) String ¶
func (x *GetCheckinPhoneResponse_Data) String() string
type GetCheckinRecordRequest ¶
type GetCheckinRecordRequest struct { // 日期,格式:yyyy-MM-dd Date string `protobuf:"bytes,1,opt,name=date,proto3" json:"date,omitempty"` // contains filtered or unexported fields }
func (*GetCheckinRecordRequest) Descriptor
deprecated
func (*GetCheckinRecordRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCheckinRecordRequest.ProtoReflect.Descriptor instead.
func (*GetCheckinRecordRequest) GetDate ¶
func (x *GetCheckinRecordRequest) GetDate() string
func (*GetCheckinRecordRequest) ProtoMessage ¶
func (*GetCheckinRecordRequest) ProtoMessage()
func (*GetCheckinRecordRequest) ProtoReflect ¶
func (x *GetCheckinRecordRequest) ProtoReflect() protoreflect.Message
func (*GetCheckinRecordRequest) Reset ¶
func (x *GetCheckinRecordRequest) Reset()
func (*GetCheckinRecordRequest) String ¶
func (x *GetCheckinRecordRequest) String() string
type GetCheckinRecordResponse ¶
type GetCheckinRecordResponse struct { Error int32 `protobuf:"varint,1,opt,name=error,proto3" json:"error,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Data *CheckinRecord `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*GetCheckinRecordResponse) Descriptor
deprecated
func (*GetCheckinRecordResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetCheckinRecordResponse.ProtoReflect.Descriptor instead.
func (*GetCheckinRecordResponse) GetData ¶
func (x *GetCheckinRecordResponse) GetData() *CheckinRecord
func (*GetCheckinRecordResponse) GetError ¶
func (x *GetCheckinRecordResponse) GetError() int32
func (*GetCheckinRecordResponse) GetMsg ¶
func (x *GetCheckinRecordResponse) GetMsg() string
func (*GetCheckinRecordResponse) ProtoMessage ¶
func (*GetCheckinRecordResponse) ProtoMessage()
func (*GetCheckinRecordResponse) ProtoReflect ¶
func (x *GetCheckinRecordResponse) ProtoReflect() protoreflect.Message
func (*GetCheckinRecordResponse) Reset ¶
func (x *GetCheckinRecordResponse) Reset()
func (*GetCheckinRecordResponse) String ¶
func (x *GetCheckinRecordResponse) String() string
type GetCheckinRecordsResponse ¶
type GetCheckinRecordsResponse struct { Error int32 `protobuf:"varint,1,opt,name=error,proto3" json:"error,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Data []*CheckinRecord `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*GetCheckinRecordsResponse) Descriptor
deprecated
func (*GetCheckinRecordsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetCheckinRecordsResponse.ProtoReflect.Descriptor instead.
func (*GetCheckinRecordsResponse) GetData ¶
func (x *GetCheckinRecordsResponse) GetData() []*CheckinRecord
func (*GetCheckinRecordsResponse) GetError ¶
func (x *GetCheckinRecordsResponse) GetError() int32
func (*GetCheckinRecordsResponse) GetMsg ¶
func (x *GetCheckinRecordsResponse) GetMsg() string
func (*GetCheckinRecordsResponse) ProtoMessage ¶
func (*GetCheckinRecordsResponse) ProtoMessage()
func (*GetCheckinRecordsResponse) ProtoReflect ¶
func (x *GetCheckinRecordsResponse) ProtoReflect() protoreflect.Message
func (*GetCheckinRecordsResponse) Reset ¶
func (x *GetCheckinRecordsResponse) Reset()
func (*GetCheckinRecordsResponse) String ¶
func (x *GetCheckinRecordsResponse) String() string
type GetHealthCodeResponse ¶
type GetHealthCodeResponse struct { Error int32 `protobuf:"varint,1,opt,name=error,proto3" json:"error,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Data *HealthCodeRaw `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
健康码老
func (*GetHealthCodeResponse) Descriptor
deprecated
func (*GetHealthCodeResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetHealthCodeResponse.ProtoReflect.Descriptor instead.
func (*GetHealthCodeResponse) GetData ¶
func (x *GetHealthCodeResponse) GetData() *HealthCodeRaw
func (*GetHealthCodeResponse) GetError ¶
func (x *GetHealthCodeResponse) GetError() int32
func (*GetHealthCodeResponse) GetMsg ¶
func (x *GetHealthCodeResponse) GetMsg() string
func (*GetHealthCodeResponse) ProtoMessage ¶
func (*GetHealthCodeResponse) ProtoMessage()
func (*GetHealthCodeResponse) ProtoReflect ¶
func (x *GetHealthCodeResponse) ProtoReflect() protoreflect.Message
func (*GetHealthCodeResponse) Reset ¶
func (x *GetHealthCodeResponse) Reset()
func (*GetHealthCodeResponse) String ¶
func (x *GetHealthCodeResponse) String() string
type GetNucleicAcidTestLatestResponse ¶
type GetNucleicAcidTestLatestResponse struct { Error int32 `protobuf:"varint,1,opt,name=error,proto3" json:"error,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Data *NucleicAcidTest `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
最新核酸检测返回体
func (*GetNucleicAcidTestLatestResponse) Descriptor
deprecated
func (*GetNucleicAcidTestLatestResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetNucleicAcidTestLatestResponse.ProtoReflect.Descriptor instead.
func (*GetNucleicAcidTestLatestResponse) GetData ¶
func (x *GetNucleicAcidTestLatestResponse) GetData() *NucleicAcidTest
func (*GetNucleicAcidTestLatestResponse) GetError ¶
func (x *GetNucleicAcidTestLatestResponse) GetError() int32
func (*GetNucleicAcidTestLatestResponse) GetMsg ¶
func (x *GetNucleicAcidTestLatestResponse) GetMsg() string
func (*GetNucleicAcidTestLatestResponse) ProtoMessage ¶
func (*GetNucleicAcidTestLatestResponse) ProtoMessage()
func (*GetNucleicAcidTestLatestResponse) ProtoReflect ¶
func (x *GetNucleicAcidTestLatestResponse) ProtoReflect() protoreflect.Message
func (*GetNucleicAcidTestLatestResponse) Reset ¶
func (x *GetNucleicAcidTestLatestResponse) Reset()
func (*GetNucleicAcidTestLatestResponse) String ¶
func (x *GetNucleicAcidTestLatestResponse) String() string
type GetNucleicAcidTestsResponse ¶
type GetNucleicAcidTestsResponse struct { Error int32 `protobuf:"varint,1,opt,name=error,proto3" json:"error,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Data *GetNucleicAcidTestsResponse_Data `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
历史核酸检测返回体
func (*GetNucleicAcidTestsResponse) Descriptor
deprecated
func (*GetNucleicAcidTestsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetNucleicAcidTestsResponse.ProtoReflect.Descriptor instead.
func (*GetNucleicAcidTestsResponse) GetData ¶
func (x *GetNucleicAcidTestsResponse) GetData() *GetNucleicAcidTestsResponse_Data
func (*GetNucleicAcidTestsResponse) GetError ¶
func (x *GetNucleicAcidTestsResponse) GetError() int32
func (*GetNucleicAcidTestsResponse) GetMsg ¶
func (x *GetNucleicAcidTestsResponse) GetMsg() string
func (*GetNucleicAcidTestsResponse) ProtoMessage ¶
func (*GetNucleicAcidTestsResponse) ProtoMessage()
func (*GetNucleicAcidTestsResponse) ProtoReflect ¶
func (x *GetNucleicAcidTestsResponse) ProtoReflect() protoreflect.Message
func (*GetNucleicAcidTestsResponse) Reset ¶
func (x *GetNucleicAcidTestsResponse) Reset()
func (*GetNucleicAcidTestsResponse) String ¶
func (x *GetNucleicAcidTestsResponse) String() string
type GetNucleicAcidTestsResponse_Data ¶
type GetNucleicAcidTestsResponse_Data struct { Items []*NucleicAcidTest `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` // contains filtered or unexported fields }
func (*GetNucleicAcidTestsResponse_Data) Descriptor
deprecated
func (*GetNucleicAcidTestsResponse_Data) Descriptor() ([]byte, []int)
Deprecated: Use GetNucleicAcidTestsResponse_Data.ProtoReflect.Descriptor instead.
func (*GetNucleicAcidTestsResponse_Data) GetItems ¶
func (x *GetNucleicAcidTestsResponse_Data) GetItems() []*NucleicAcidTest
func (*GetNucleicAcidTestsResponse_Data) ProtoMessage ¶
func (*GetNucleicAcidTestsResponse_Data) ProtoMessage()
func (*GetNucleicAcidTestsResponse_Data) ProtoReflect ¶
func (x *GetNucleicAcidTestsResponse_Data) ProtoReflect() protoreflect.Message
func (*GetNucleicAcidTestsResponse_Data) Reset ¶
func (x *GetNucleicAcidTestsResponse_Data) Reset()
func (*GetNucleicAcidTestsResponse_Data) String ¶
func (x *GetNucleicAcidTestsResponse_Data) String() string
type GetVaccineRecordsResponse ¶
type GetVaccineRecordsResponse struct { Error int32 `protobuf:"varint,1,opt,name=error,proto3" json:"error,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Data *GetVaccineRecordsResponse_Data `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
疫苗接种记录返回
func (*GetVaccineRecordsResponse) Descriptor
deprecated
func (*GetVaccineRecordsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetVaccineRecordsResponse.ProtoReflect.Descriptor instead.
func (*GetVaccineRecordsResponse) GetData ¶
func (x *GetVaccineRecordsResponse) GetData() *GetVaccineRecordsResponse_Data
func (*GetVaccineRecordsResponse) GetError ¶
func (x *GetVaccineRecordsResponse) GetError() int32
func (*GetVaccineRecordsResponse) GetMsg ¶
func (x *GetVaccineRecordsResponse) GetMsg() string
func (*GetVaccineRecordsResponse) ProtoMessage ¶
func (*GetVaccineRecordsResponse) ProtoMessage()
func (*GetVaccineRecordsResponse) ProtoReflect ¶
func (x *GetVaccineRecordsResponse) ProtoReflect() protoreflect.Message
func (*GetVaccineRecordsResponse) Reset ¶
func (x *GetVaccineRecordsResponse) Reset()
func (*GetVaccineRecordsResponse) String ¶
func (x *GetVaccineRecordsResponse) String() string
type GetVaccineRecordsResponse_Data ¶
type GetVaccineRecordsResponse_Data struct { Items []*VaccineRecord `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` // contains filtered or unexported fields }
func (*GetVaccineRecordsResponse_Data) Descriptor
deprecated
func (*GetVaccineRecordsResponse_Data) Descriptor() ([]byte, []int)
Deprecated: Use GetVaccineRecordsResponse_Data.ProtoReflect.Descriptor instead.
func (*GetVaccineRecordsResponse_Data) GetItems ¶
func (x *GetVaccineRecordsResponse_Data) GetItems() []*VaccineRecord
func (*GetVaccineRecordsResponse_Data) ProtoMessage ¶
func (*GetVaccineRecordsResponse_Data) ProtoMessage()
func (*GetVaccineRecordsResponse_Data) ProtoReflect ¶
func (x *GetVaccineRecordsResponse_Data) ProtoReflect() protoreflect.Message
func (*GetVaccineRecordsResponse_Data) Reset ¶
func (x *GetVaccineRecordsResponse_Data) Reset()
func (*GetVaccineRecordsResponse_Data) String ¶
func (x *GetVaccineRecordsResponse_Data) String() string
type HealthCode ¶
type HealthCode struct { CodeId string `protobuf:"bytes,1,opt,name=codeId,proto3" json:"codeId,omitempty"` ApplyTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=applyTime,proto3" json:"applyTime,omitempty"` GrantTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=grantTime,proto3" json:"grantTime,omitempty"` UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=updateTime,proto3" json:"updateTime,omitempty"` Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` Region string `protobuf:"bytes,6,opt,name=region,proto3" json:"region,omitempty"` Status string `protobuf:"bytes,7,opt,name=status,proto3" json:"status,omitempty"` Comment string `protobuf:"bytes,8,opt,name=comment,proto3" json:"comment,omitempty"` // contains filtered or unexported fields }
健康码
func (*HealthCode) Descriptor
deprecated
func (*HealthCode) Descriptor() ([]byte, []int)
Deprecated: Use HealthCode.ProtoReflect.Descriptor instead.
func (*HealthCode) GetApplyTime ¶
func (x *HealthCode) GetApplyTime() *timestamppb.Timestamp
func (*HealthCode) GetCodeId ¶
func (x *HealthCode) GetCodeId() string
func (*HealthCode) GetComment ¶
func (x *HealthCode) GetComment() string
func (*HealthCode) GetGrantTime ¶
func (x *HealthCode) GetGrantTime() *timestamppb.Timestamp
func (*HealthCode) GetName ¶
func (x *HealthCode) GetName() string
func (*HealthCode) GetRegion ¶
func (x *HealthCode) GetRegion() string
func (*HealthCode) GetStatus ¶
func (x *HealthCode) GetStatus() string
func (*HealthCode) GetUpdateTime ¶
func (x *HealthCode) GetUpdateTime() *timestamppb.Timestamp
func (*HealthCode) ProtoMessage ¶
func (*HealthCode) ProtoMessage()
func (*HealthCode) ProtoReflect ¶
func (x *HealthCode) ProtoReflect() protoreflect.Message
func (*HealthCode) Reset ¶
func (x *HealthCode) Reset()
func (*HealthCode) String ¶
func (x *HealthCode) String() string
type HealthCodeRaw ¶
type HealthCodeRaw struct { StaffId string `protobuf:"bytes,1,opt,name=staffId,proto3" json:"staffId,omitempty"` StaffName string `protobuf:"bytes,2,opt,name=staffName,proto3" json:"staffName,omitempty"` PhoneNum string `protobuf:"bytes,3,opt,name=phoneNum,proto3" json:"phoneNum,omitempty"` // 健康码 CodeStatus string `protobuf:"bytes,4,opt,name=codeStatus,proto3" json:"codeStatus,omitempty"` // 健康码地区 Location string `protobuf:"bytes,5,opt,name=location,proto3" json:"location,omitempty"` // 健康码红码黄码原因 Reason string `protobuf:"bytes,6,opt,name=reason,proto3" json:"reason,omitempty"` // 第一次申请时间 FirstApplyTime string `protobuf:"bytes,7,opt,name=firstApplyTime,proto3" json:"firstApplyTime,omitempty"` // 第一次下发时间 FirstGrantTime string `protobuf:"bytes,8,opt,name=firstGrantTime,proto3" json:"firstGrantTime,omitempty"` // 最后一次更新时间 LastUpdateTime string `protobuf:"bytes,9,opt,name=lastUpdateTime,proto3" json:"lastUpdateTime,omitempty"` // 服务器更新时间(服务器获取到的时间) // 通常是每日更新一次 ServerUpdateTime string `protobuf:"bytes,10,opt,name=serverUpdateTime,proto3" json:"serverUpdateTime,omitempty"` // contains filtered or unexported fields }
func (*HealthCodeRaw) Descriptor
deprecated
func (*HealthCodeRaw) Descriptor() ([]byte, []int)
Deprecated: Use HealthCodeRaw.ProtoReflect.Descriptor instead.
func (*HealthCodeRaw) GetCodeStatus ¶
func (x *HealthCodeRaw) GetCodeStatus() string
func (*HealthCodeRaw) GetFirstApplyTime ¶
func (x *HealthCodeRaw) GetFirstApplyTime() string
func (*HealthCodeRaw) GetFirstGrantTime ¶
func (x *HealthCodeRaw) GetFirstGrantTime() string
func (*HealthCodeRaw) GetLastUpdateTime ¶
func (x *HealthCodeRaw) GetLastUpdateTime() string
func (*HealthCodeRaw) GetLocation ¶
func (x *HealthCodeRaw) GetLocation() string
func (*HealthCodeRaw) GetPhoneNum ¶
func (x *HealthCodeRaw) GetPhoneNum() string
func (*HealthCodeRaw) GetReason ¶
func (x *HealthCodeRaw) GetReason() string
func (*HealthCodeRaw) GetServerUpdateTime ¶
func (x *HealthCodeRaw) GetServerUpdateTime() string
func (*HealthCodeRaw) GetStaffId ¶
func (x *HealthCodeRaw) GetStaffId() string
func (*HealthCodeRaw) GetStaffName ¶
func (x *HealthCodeRaw) GetStaffName() string
func (*HealthCodeRaw) ProtoMessage ¶
func (*HealthCodeRaw) ProtoMessage()
func (*HealthCodeRaw) ProtoReflect ¶
func (x *HealthCodeRaw) ProtoReflect() protoreflect.Message
func (*HealthCodeRaw) Reset ¶
func (x *HealthCodeRaw) Reset()
func (*HealthCodeRaw) String ¶
func (x *HealthCodeRaw) String() string
type HealthServiceClient ¶
type HealthServiceClient interface { // 获取指定日期健康打卡记录 GetCheckinRecord(ctx context.Context, in *GetCheckinRecordRequest, opts ...grpc.CallOption) (*GetCheckinRecordResponse, error) // 获取历史健康打卡记录 GetCheckinRecords(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetCheckinRecordsResponse, error) // 提交今日健康打卡 PostCheckinRecord(ctx context.Context, in *PostCheckinRecordRequest, opts ...grpc.CallOption) (*PostCheckinRecordResponse, error) // 获取健康打卡平台的手机号 GetCheckinPhone(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetCheckinPhoneResponse, error) // 更新健康打卡平台的手机号 PostCheckinPhone(ctx context.Context, in *PostCheckinPhoneRequest, opts ...grpc.CallOption) (*PostCheckinPhoneResponse, error) // 获取当前健康码 GetHealthCode(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetHealthCodeResponse, error) // 获取疫苗接种记录 GetVaccineRecords(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetVaccineRecordsResponse, error) // 获取历史核酸检测记录 GetNucleicAcidTests(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetNucleicAcidTestsResponse, error) // 获取最新核酸检测记录 GetNucleicAcidTestLatest(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetNucleicAcidTestLatestResponse, error) }
HealthServiceClient is the client API for HealthService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewHealthServiceClient ¶
func NewHealthServiceClient(cc grpc.ClientConnInterface) HealthServiceClient
type HealthServiceServer ¶
type HealthServiceServer interface { // 获取指定日期健康打卡记录 GetCheckinRecord(context.Context, *GetCheckinRecordRequest) (*GetCheckinRecordResponse, error) // 获取历史健康打卡记录 GetCheckinRecords(context.Context, *emptypb.Empty) (*GetCheckinRecordsResponse, error) // 提交今日健康打卡 PostCheckinRecord(context.Context, *PostCheckinRecordRequest) (*PostCheckinRecordResponse, error) // 获取健康打卡平台的手机号 GetCheckinPhone(context.Context, *emptypb.Empty) (*GetCheckinPhoneResponse, error) // 更新健康打卡平台的手机号 PostCheckinPhone(context.Context, *PostCheckinPhoneRequest) (*PostCheckinPhoneResponse, error) // 获取当前健康码 GetHealthCode(context.Context, *emptypb.Empty) (*GetHealthCodeResponse, error) // 获取疫苗接种记录 GetVaccineRecords(context.Context, *emptypb.Empty) (*GetVaccineRecordsResponse, error) // 获取历史核酸检测记录 GetNucleicAcidTests(context.Context, *emptypb.Empty) (*GetNucleicAcidTestsResponse, error) // 获取最新核酸检测记录 GetNucleicAcidTestLatest(context.Context, *emptypb.Empty) (*GetNucleicAcidTestLatestResponse, error) // contains filtered or unexported methods }
HealthServiceServer is the server API for HealthService service. All implementations must embed UnimplementedHealthServiceServer for forward compatibility
type NucleicAcidTest ¶
type NucleicAcidTest struct { // 检测机构名称 TestUnitName string `protobuf:"bytes,1,opt,name=testUnitName,proto3" json:"testUnitName,omitempty"` // 报告时间 ReportTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=reportTime,proto3" json:"reportTime,omitempty"` // 检测结果,枚举:阴性 阳性 Result string `protobuf:"bytes,3,opt,name=result,proto3" json:"result,omitempty"` // contains filtered or unexported fields }
func (*NucleicAcidTest) Descriptor
deprecated
func (*NucleicAcidTest) Descriptor() ([]byte, []int)
Deprecated: Use NucleicAcidTest.ProtoReflect.Descriptor instead.
func (*NucleicAcidTest) GetReportTime ¶
func (x *NucleicAcidTest) GetReportTime() *timestamppb.Timestamp
func (*NucleicAcidTest) GetResult ¶
func (x *NucleicAcidTest) GetResult() string
func (*NucleicAcidTest) GetTestUnitName ¶
func (x *NucleicAcidTest) GetTestUnitName() string
func (*NucleicAcidTest) ProtoMessage ¶
func (*NucleicAcidTest) ProtoMessage()
func (*NucleicAcidTest) ProtoReflect ¶
func (x *NucleicAcidTest) ProtoReflect() protoreflect.Message
func (*NucleicAcidTest) Reset ¶
func (x *NucleicAcidTest) Reset()
func (*NucleicAcidTest) String ¶
func (x *NucleicAcidTest) String() string
type PostCheckinPhoneRequest ¶
type PostCheckinPhoneRequest struct { Phone string `protobuf:"bytes,1,opt,name=phone,proto3" json:"phone,omitempty"` // contains filtered or unexported fields }
func (*PostCheckinPhoneRequest) Descriptor
deprecated
func (*PostCheckinPhoneRequest) Descriptor() ([]byte, []int)
Deprecated: Use PostCheckinPhoneRequest.ProtoReflect.Descriptor instead.
func (*PostCheckinPhoneRequest) GetPhone ¶
func (x *PostCheckinPhoneRequest) GetPhone() string
func (*PostCheckinPhoneRequest) ProtoMessage ¶
func (*PostCheckinPhoneRequest) ProtoMessage()
func (*PostCheckinPhoneRequest) ProtoReflect ¶
func (x *PostCheckinPhoneRequest) ProtoReflect() protoreflect.Message
func (*PostCheckinPhoneRequest) Reset ¶
func (x *PostCheckinPhoneRequest) Reset()
func (*PostCheckinPhoneRequest) String ¶
func (x *PostCheckinPhoneRequest) String() string
type PostCheckinPhoneResponse ¶
type PostCheckinPhoneResponse struct { Error int32 `protobuf:"varint,1,opt,name=error,proto3" json:"error,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*PostCheckinPhoneResponse) Descriptor
deprecated
func (*PostCheckinPhoneResponse) Descriptor() ([]byte, []int)
Deprecated: Use PostCheckinPhoneResponse.ProtoReflect.Descriptor instead.
func (*PostCheckinPhoneResponse) GetError ¶
func (x *PostCheckinPhoneResponse) GetError() int32
func (*PostCheckinPhoneResponse) GetMessage ¶
func (x *PostCheckinPhoneResponse) GetMessage() string
func (*PostCheckinPhoneResponse) GetMsg ¶
func (x *PostCheckinPhoneResponse) GetMsg() string
func (*PostCheckinPhoneResponse) ProtoMessage ¶
func (*PostCheckinPhoneResponse) ProtoMessage()
func (*PostCheckinPhoneResponse) ProtoReflect ¶
func (x *PostCheckinPhoneResponse) ProtoReflect() protoreflect.Message
func (*PostCheckinPhoneResponse) Reset ¶
func (x *PostCheckinPhoneResponse) Reset()
func (*PostCheckinPhoneResponse) String ¶
func (x *PostCheckinPhoneResponse) String() string
type PostCheckinRecordBody ¶
type PostCheckinRecordBody struct { // 学生姓名 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // 签名时间戳 Timestamp int32 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // 省级行政区划码 Province string `protobuf:"bytes,3,opt,name=province,proto3" json:"province,omitempty"` // 市级行政区划码 City string `protobuf:"bytes,4,opt,name=city,proto3" json:"city,omitempty"` // 县级行政区划码 Country string `protobuf:"bytes,5,opt,name=country,proto3" json:"country,omitempty"` // 健康打卡内容JSON,处理为json字符串 // 如 `{"ques1": "xxxx", "ques2": "xxx"}` AnswerJsonStr string `protobuf:"bytes,6,opt,name=answerJsonStr,proto3" json:"answerJsonStr,omitempty"` // contains filtered or unexported fields }
func (*PostCheckinRecordBody) Descriptor
deprecated
func (*PostCheckinRecordBody) Descriptor() ([]byte, []int)
Deprecated: Use PostCheckinRecordBody.ProtoReflect.Descriptor instead.
func (*PostCheckinRecordBody) GetAnswerJsonStr ¶
func (x *PostCheckinRecordBody) GetAnswerJsonStr() string
func (*PostCheckinRecordBody) GetCity ¶
func (x *PostCheckinRecordBody) GetCity() string
func (*PostCheckinRecordBody) GetCountry ¶
func (x *PostCheckinRecordBody) GetCountry() string
func (*PostCheckinRecordBody) GetName ¶
func (x *PostCheckinRecordBody) GetName() string
func (*PostCheckinRecordBody) GetProvince ¶
func (x *PostCheckinRecordBody) GetProvince() string
func (*PostCheckinRecordBody) GetTimestamp ¶
func (x *PostCheckinRecordBody) GetTimestamp() int32
func (*PostCheckinRecordBody) ProtoMessage ¶
func (*PostCheckinRecordBody) ProtoMessage()
func (*PostCheckinRecordBody) ProtoReflect ¶
func (x *PostCheckinRecordBody) ProtoReflect() protoreflect.Message
func (*PostCheckinRecordBody) Reset ¶
func (x *PostCheckinRecordBody) Reset()
func (*PostCheckinRecordBody) String ¶
func (x *PostCheckinRecordBody) String() string
type PostCheckinRecordRequest ¶
type PostCheckinRecordRequest struct { // 签名 放置在query中 Sign string `protobuf:"bytes,1,opt,name=sign,proto3" json:"sign,omitempty"` Content *PostCheckinRecordBody `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
func (*PostCheckinRecordRequest) Descriptor
deprecated
func (*PostCheckinRecordRequest) Descriptor() ([]byte, []int)
Deprecated: Use PostCheckinRecordRequest.ProtoReflect.Descriptor instead.
func (*PostCheckinRecordRequest) GetContent ¶
func (x *PostCheckinRecordRequest) GetContent() *PostCheckinRecordBody
func (*PostCheckinRecordRequest) GetSign ¶
func (x *PostCheckinRecordRequest) GetSign() string
func (*PostCheckinRecordRequest) ProtoMessage ¶
func (*PostCheckinRecordRequest) ProtoMessage()
func (*PostCheckinRecordRequest) ProtoReflect ¶
func (x *PostCheckinRecordRequest) ProtoReflect() protoreflect.Message
func (*PostCheckinRecordRequest) Reset ¶
func (x *PostCheckinRecordRequest) Reset()
func (*PostCheckinRecordRequest) String ¶
func (x *PostCheckinRecordRequest) String() string
type PostCheckinRecordResponse ¶
type PostCheckinRecordResponse struct { Error int32 `protobuf:"varint,1,opt,name=error,proto3" json:"error,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Data *PostCheckinRecordResponse_Data `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*PostCheckinRecordResponse) Descriptor
deprecated
func (*PostCheckinRecordResponse) Descriptor() ([]byte, []int)
Deprecated: Use PostCheckinRecordResponse.ProtoReflect.Descriptor instead.
func (*PostCheckinRecordResponse) GetData ¶
func (x *PostCheckinRecordResponse) GetData() *PostCheckinRecordResponse_Data
func (*PostCheckinRecordResponse) GetError ¶
func (x *PostCheckinRecordResponse) GetError() int32
func (*PostCheckinRecordResponse) GetMsg ¶
func (x *PostCheckinRecordResponse) GetMsg() string
func (*PostCheckinRecordResponse) ProtoMessage ¶
func (*PostCheckinRecordResponse) ProtoMessage()
func (*PostCheckinRecordResponse) ProtoReflect ¶
func (x *PostCheckinRecordResponse) ProtoReflect() protoreflect.Message
func (*PostCheckinRecordResponse) Reset ¶
func (x *PostCheckinRecordResponse) Reset()
func (*PostCheckinRecordResponse) String ¶
func (x *PostCheckinRecordResponse) String() string
type PostCheckinRecordResponse_Data ¶
type PostCheckinRecordResponse_Data struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Data string `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
学校健康打卡服务返回值
func (*PostCheckinRecordResponse_Data) Descriptor
deprecated
func (*PostCheckinRecordResponse_Data) Descriptor() ([]byte, []int)
Deprecated: Use PostCheckinRecordResponse_Data.ProtoReflect.Descriptor instead.
func (*PostCheckinRecordResponse_Data) GetCode ¶
func (x *PostCheckinRecordResponse_Data) GetCode() int32
func (*PostCheckinRecordResponse_Data) GetData ¶
func (x *PostCheckinRecordResponse_Data) GetData() string
func (*PostCheckinRecordResponse_Data) GetMessage ¶
func (x *PostCheckinRecordResponse_Data) GetMessage() string
func (*PostCheckinRecordResponse_Data) ProtoMessage ¶
func (*PostCheckinRecordResponse_Data) ProtoMessage()
func (*PostCheckinRecordResponse_Data) ProtoReflect ¶
func (x *PostCheckinRecordResponse_Data) ProtoReflect() protoreflect.Message
func (*PostCheckinRecordResponse_Data) Reset ¶
func (x *PostCheckinRecordResponse_Data) Reset()
func (*PostCheckinRecordResponse_Data) String ¶
func (x *PostCheckinRecordResponse_Data) String() string
type UnimplementedHealthServiceServer ¶
type UnimplementedHealthServiceServer struct { }
UnimplementedHealthServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedHealthServiceServer) GetCheckinPhone ¶
func (UnimplementedHealthServiceServer) GetCheckinPhone(context.Context, *emptypb.Empty) (*GetCheckinPhoneResponse, error)
func (UnimplementedHealthServiceServer) GetCheckinRecord ¶
func (UnimplementedHealthServiceServer) GetCheckinRecord(context.Context, *GetCheckinRecordRequest) (*GetCheckinRecordResponse, error)
func (UnimplementedHealthServiceServer) GetCheckinRecords ¶
func (UnimplementedHealthServiceServer) GetCheckinRecords(context.Context, *emptypb.Empty) (*GetCheckinRecordsResponse, error)
func (UnimplementedHealthServiceServer) GetHealthCode ¶
func (UnimplementedHealthServiceServer) GetHealthCode(context.Context, *emptypb.Empty) (*GetHealthCodeResponse, error)
func (UnimplementedHealthServiceServer) GetNucleicAcidTestLatest ¶
func (UnimplementedHealthServiceServer) GetNucleicAcidTestLatest(context.Context, *emptypb.Empty) (*GetNucleicAcidTestLatestResponse, error)
func (UnimplementedHealthServiceServer) GetNucleicAcidTests ¶
func (UnimplementedHealthServiceServer) GetNucleicAcidTests(context.Context, *emptypb.Empty) (*GetNucleicAcidTestsResponse, error)
func (UnimplementedHealthServiceServer) GetVaccineRecords ¶
func (UnimplementedHealthServiceServer) GetVaccineRecords(context.Context, *emptypb.Empty) (*GetVaccineRecordsResponse, error)
func (UnimplementedHealthServiceServer) PostCheckinPhone ¶
func (UnimplementedHealthServiceServer) PostCheckinPhone(context.Context, *PostCheckinPhoneRequest) (*PostCheckinPhoneResponse, error)
func (UnimplementedHealthServiceServer) PostCheckinRecord ¶
func (UnimplementedHealthServiceServer) PostCheckinRecord(context.Context, *PostCheckinRecordRequest) (*PostCheckinRecordResponse, error)
type UnsafeHealthServiceServer ¶
type UnsafeHealthServiceServer interface {
// contains filtered or unexported methods
}
UnsafeHealthServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to HealthServiceServer will result in compilation errors.
type VaccineRecord ¶
type VaccineRecord struct { // 疫苗种类,例:非免疫规划疫苗 TypeName string `protobuf:"bytes,1,opt,name=typeName,proto3" json:"typeName,omitempty"` // 疫苗名称 VacName string `protobuf:"bytes,2,opt,name=vacName,proto3" json:"vacName,omitempty"` // 疫苗生产厂家 ProducerName string `protobuf:"bytes,3,opt,name=producerName,proto3" json:"producerName,omitempty"` // 接种时间 InoculationTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=inoculationTime,proto3" json:"inoculationTime,omitempty"` // 疫苗批次号 Batch string `protobuf:"bytes,5,opt,name=batch,proto3" json:"batch,omitempty"` // 剂次 InoculationOrder string `protobuf:"bytes,6,opt,name=inoculationOrder,proto3" json:"inoculationOrder,omitempty"` // 该疫苗最大接种次数 MaxInoculationTime string `protobuf:"bytes,7,opt,name=maxInoculationTime,proto3" json:"maxInoculationTime,omitempty"` // contains filtered or unexported fields }
疫苗接种记录
func (*VaccineRecord) Descriptor
deprecated
func (*VaccineRecord) Descriptor() ([]byte, []int)
Deprecated: Use VaccineRecord.ProtoReflect.Descriptor instead.
func (*VaccineRecord) GetBatch ¶
func (x *VaccineRecord) GetBatch() string
func (*VaccineRecord) GetInoculationOrder ¶
func (x *VaccineRecord) GetInoculationOrder() string
func (*VaccineRecord) GetInoculationTime ¶
func (x *VaccineRecord) GetInoculationTime() *timestamppb.Timestamp
func (*VaccineRecord) GetMaxInoculationTime ¶
func (x *VaccineRecord) GetMaxInoculationTime() string
func (*VaccineRecord) GetProducerName ¶
func (x *VaccineRecord) GetProducerName() string
func (*VaccineRecord) GetTypeName ¶
func (x *VaccineRecord) GetTypeName() string
func (*VaccineRecord) GetVacName ¶
func (x *VaccineRecord) GetVacName() string
func (*VaccineRecord) ProtoMessage ¶
func (*VaccineRecord) ProtoMessage()
func (*VaccineRecord) ProtoReflect ¶
func (x *VaccineRecord) ProtoReflect() protoreflect.Message
func (*VaccineRecord) Reset ¶
func (x *VaccineRecord) Reset()
func (*VaccineRecord) String ¶
func (x *VaccineRecord) String() string