healthv1

package
v0.0.0-...-a9153d3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 3, 2024 License: MIT Imports: 19 Imported by: 1

Documentation

Overview

Package healthv1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
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

View Source
var File_campusapis_health_v1_health_proto protoreflect.FileDescriptor
View Source
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 (*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 (*GetCheckinPhoneResponse_Data) Reset

func (x *GetCheckinPhoneResponse_Data) Reset()

func (*GetCheckinPhoneResponse_Data) 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 (*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 (*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 (*GetNucleicAcidTestLatestResponse) GetError

func (*GetNucleicAcidTestLatestResponse) GetMsg

func (*GetNucleicAcidTestLatestResponse) ProtoMessage

func (*GetNucleicAcidTestLatestResponse) ProtoMessage()

func (*GetNucleicAcidTestLatestResponse) ProtoReflect

func (*GetNucleicAcidTestLatestResponse) Reset

func (*GetNucleicAcidTestLatestResponse) 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 (*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 (*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 (*GetNucleicAcidTestsResponse_Data) ProtoMessage

func (*GetNucleicAcidTestsResponse_Data) ProtoMessage()

func (*GetNucleicAcidTestsResponse_Data) ProtoReflect

func (*GetNucleicAcidTestsResponse_Data) Reset

func (*GetNucleicAcidTestsResponse_Data) 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 (*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 (*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 (*GetVaccineRecordsResponse_Data) ProtoMessage

func (*GetVaccineRecordsResponse_Data) ProtoMessage()

func (*GetVaccineRecordsResponse_Data) ProtoReflect

func (*GetVaccineRecordsResponse_Data) Reset

func (x *GetVaccineRecordsResponse_Data) Reset()

func (*GetVaccineRecordsResponse_Data) 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.

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 (*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 (*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 (*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 (*PostCheckinRecordResponse_Data) GetData

func (*PostCheckinRecordResponse_Data) GetMessage

func (x *PostCheckinRecordResponse_Data) GetMessage() string

func (*PostCheckinRecordResponse_Data) ProtoMessage

func (*PostCheckinRecordResponse_Data) ProtoMessage()

func (*PostCheckinRecordResponse_Data) ProtoReflect

func (*PostCheckinRecordResponse_Data) Reset

func (x *PostCheckinRecordResponse_Data) Reset()

func (*PostCheckinRecordResponse_Data) String

type UnimplementedHealthServiceServer

type UnimplementedHealthServiceServer struct {
}

UnimplementedHealthServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedHealthServiceServer) GetCheckinPhone

func (UnimplementedHealthServiceServer) GetCheckinRecord

func (UnimplementedHealthServiceServer) GetCheckinRecords

func (UnimplementedHealthServiceServer) GetHealthCode

func (UnimplementedHealthServiceServer) GetNucleicAcidTestLatest

func (UnimplementedHealthServiceServer) GetNucleicAcidTests

func (UnimplementedHealthServiceServer) GetVaccineRecords

func (UnimplementedHealthServiceServer) PostCheckinPhone

func (UnimplementedHealthServiceServer) PostCheckinRecord

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL