Documentation ¶
Index ¶
- Variables
- func RegisterExperimentServiceServer(s grpc.ServiceRegistrar, srv ExperimentServiceServer)
- type CommonHead
- type CommonRsp
- func (*CommonRsp) Descriptor() ([]byte, []int)deprecated
- func (x *CommonRsp) GetCode() uint32
- func (x *CommonRsp) GetMsg() string
- func (*CommonRsp) ProtoMessage()
- func (x *CommonRsp) ProtoReflect() protoreflect.Message
- func (x *CommonRsp) Reset()
- func (x *CommonRsp) String() string
- func (this *CommonRsp) Validate() error
- type CreateExperimentReq
- func (*CreateExperimentReq) Descriptor() ([]byte, []int)deprecated
- func (x *CreateExperimentReq) GetCurType() int32
- func (x *CreateExperimentReq) GetDescription() string
- func (x *CreateExperimentReq) GetExperimentTime() int32
- func (x *CreateExperimentReq) GetParticipantNum() int32
- func (x *CreateExperimentReq) GetPrice() int64
- func (x *CreateExperimentReq) GetRequestId() string
- func (x *CreateExperimentReq) GetResearcherId() int64
- func (x *CreateExperimentReq) GetTitle() string
- func (x *CreateExperimentReq) GetUrl() string
- func (*CreateExperimentReq) ProtoMessage()
- func (x *CreateExperimentReq) ProtoReflect() protoreflect.Message
- func (x *CreateExperimentReq) Reset()
- func (x *CreateExperimentReq) String() string
- func (this *CreateExperimentReq) Validate() error
- type CreateExperimentResp
- func (*CreateExperimentResp) Descriptor() ([]byte, []int)deprecated
- func (x *CreateExperimentResp) GetCommonRsp() *CommonRsp
- func (x *CreateExperimentResp) GetExperimentId() string
- func (*CreateExperimentResp) ProtoMessage()
- func (x *CreateExperimentResp) ProtoReflect() protoreflect.Message
- func (x *CreateExperimentResp) Reset()
- func (x *CreateExperimentResp) String() string
- func (this *CreateExperimentResp) Validate() error
- type CreateSubjectRecordReq
- func (*CreateSubjectRecordReq) Descriptor() ([]byte, []int)deprecated
- func (x *CreateSubjectRecordReq) GetExperimentId() string
- func (x *CreateSubjectRecordReq) GetParticipantId() int64
- func (x *CreateSubjectRecordReq) GetRequestId() string
- func (*CreateSubjectRecordReq) ProtoMessage()
- func (x *CreateSubjectRecordReq) ProtoReflect() protoreflect.Message
- func (x *CreateSubjectRecordReq) Reset()
- func (x *CreateSubjectRecordReq) String() string
- func (this *CreateSubjectRecordReq) Validate() error
- type CreateSubjectRecordResp
- func (*CreateSubjectRecordResp) Descriptor() ([]byte, []int)deprecated
- func (x *CreateSubjectRecordResp) GetCommonRsp() *CommonRsp
- func (x *CreateSubjectRecordResp) GetSubjectRecordId() string
- func (*CreateSubjectRecordResp) ProtoMessage()
- func (x *CreateSubjectRecordResp) ProtoReflect() protoreflect.Message
- func (x *CreateSubjectRecordResp) Reset()
- func (x *CreateSubjectRecordResp) String() string
- func (this *CreateSubjectRecordResp) Validate() error
- type ExperimentInfo
- func (*ExperimentInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ExperimentInfo) GetCreateTime() string
- func (x *ExperimentInfo) GetCurType() int32
- func (x *ExperimentInfo) GetDescription() string
- func (x *ExperimentInfo) GetExperimentId() string
- func (x *ExperimentInfo) GetExperimentTime() int32
- func (x *ExperimentInfo) GetParticipantNum() int32
- func (x *ExperimentInfo) GetPrice() int64
- func (x *ExperimentInfo) GetResearcherId() int64
- func (x *ExperimentInfo) GetState() ExperimentState
- func (x *ExperimentInfo) GetSubjectRecordsNum() int32
- func (x *ExperimentInfo) GetTitle() string
- func (x *ExperimentInfo) GetUpdateTime() string
- func (x *ExperimentInfo) GetUrl() string
- func (*ExperimentInfo) ProtoMessage()
- func (x *ExperimentInfo) ProtoReflect() protoreflect.Message
- func (x *ExperimentInfo) Reset()
- func (x *ExperimentInfo) String() string
- func (this *ExperimentInfo) Validate() error
- type ExperimentServiceClient
- type ExperimentServiceServer
- type ExperimentState
- func (ExperimentState) Descriptor() protoreflect.EnumDescriptor
- func (x ExperimentState) Enum() *ExperimentState
- func (ExperimentState) EnumDescriptor() ([]byte, []int)deprecated
- func (x ExperimentState) Number() protoreflect.EnumNumber
- func (x ExperimentState) String() string
- func (ExperimentState) Type() protoreflect.EnumType
- type GenderType
- type QueryExperimentListReq
- func (*QueryExperimentListReq) Descriptor() ([]byte, []int)deprecated
- func (x *QueryExperimentListReq) GetEndTime() int64
- func (x *QueryExperimentListReq) GetMinPrice() int64
- func (x *QueryExperimentListReq) GetOnlySeeMyself() int32
- func (x *QueryExperimentListReq) GetPageIndex() int32
- func (x *QueryExperimentListReq) GetPageSize() int32
- func (x *QueryExperimentListReq) GetRequestId() string
- func (x *QueryExperimentListReq) GetResearcherId() int64
- func (*QueryExperimentListReq) ProtoMessage()
- func (x *QueryExperimentListReq) ProtoReflect() protoreflect.Message
- func (x *QueryExperimentListReq) Reset()
- func (x *QueryExperimentListReq) String() string
- func (this *QueryExperimentListReq) Validate() error
- type QueryExperimentListResp
- func (*QueryExperimentListResp) Descriptor() ([]byte, []int)deprecated
- func (x *QueryExperimentListResp) GetCommonRsp() *CommonRsp
- func (x *QueryExperimentListResp) GetExpInfoList() []*ExperimentInfo
- func (x *QueryExperimentListResp) GetTotalNum() int32
- func (*QueryExperimentListResp) ProtoMessage()
- func (x *QueryExperimentListResp) ProtoReflect() protoreflect.Message
- func (x *QueryExperimentListResp) Reset()
- func (x *QueryExperimentListResp) String() string
- func (this *QueryExperimentListResp) Validate() error
- type QueryExperimentReq
- func (*QueryExperimentReq) Descriptor() ([]byte, []int)deprecated
- func (x *QueryExperimentReq) GetExperimentId() string
- func (x *QueryExperimentReq) GetRequestId() string
- func (x *QueryExperimentReq) GetResearcherId() int64
- func (*QueryExperimentReq) ProtoMessage()
- func (x *QueryExperimentReq) ProtoReflect() protoreflect.Message
- func (x *QueryExperimentReq) Reset()
- func (x *QueryExperimentReq) String() string
- func (this *QueryExperimentReq) Validate() error
- type QueryExperimentResp
- func (*QueryExperimentResp) Descriptor() ([]byte, []int)deprecated
- func (x *QueryExperimentResp) GetCommonRsp() *CommonRsp
- func (x *QueryExperimentResp) GetExpInfo() *ExperimentInfo
- func (x *QueryExperimentResp) GetSubjectRecords() []*SubjectRecordInfo
- func (x *QueryExperimentResp) GetSubscribe() int32
- func (*QueryExperimentResp) ProtoMessage()
- func (x *QueryExperimentResp) ProtoReflect() protoreflect.Message
- func (x *QueryExperimentResp) Reset()
- func (x *QueryExperimentResp) String() string
- func (this *QueryExperimentResp) Validate() error
- type QuerySubjectRecordListReq
- func (*QuerySubjectRecordListReq) Descriptor() ([]byte, []int)deprecated
- func (x *QuerySubjectRecordListReq) GetExperimentId() string
- func (x *QuerySubjectRecordListReq) GetPageIndex() int32
- func (x *QuerySubjectRecordListReq) GetPageSize() int32
- func (x *QuerySubjectRecordListReq) GetRequestId() string
- func (*QuerySubjectRecordListReq) ProtoMessage()
- func (x *QuerySubjectRecordListReq) ProtoReflect() protoreflect.Message
- func (x *QuerySubjectRecordListReq) Reset()
- func (x *QuerySubjectRecordListReq) String() string
- func (this *QuerySubjectRecordListReq) Validate() error
- type QuerySubjectRecordListResp
- func (*QuerySubjectRecordListResp) Descriptor() ([]byte, []int)deprecated
- func (x *QuerySubjectRecordListResp) GetCommonRsp() *CommonRsp
- func (x *QuerySubjectRecordListResp) GetFinishPcts() float32
- func (x *QuerySubjectRecordListResp) GetSubjectRecordList() []*SubjectRecordInfo
- func (x *QuerySubjectRecordListResp) GetTotalNum() int32
- func (*QuerySubjectRecordListResp) ProtoMessage()
- func (x *QuerySubjectRecordListResp) ProtoReflect() protoreflect.Message
- func (x *QuerySubjectRecordListResp) Reset()
- func (x *QuerySubjectRecordListResp) String() string
- func (this *QuerySubjectRecordListResp) Validate() error
- type QuerySubjectRecordReq
- func (*QuerySubjectRecordReq) Descriptor() ([]byte, []int)deprecated
- func (x *QuerySubjectRecordReq) GetRequestId() string
- func (x *QuerySubjectRecordReq) GetSubjectRecordId() string
- func (*QuerySubjectRecordReq) ProtoMessage()
- func (x *QuerySubjectRecordReq) ProtoReflect() protoreflect.Message
- func (x *QuerySubjectRecordReq) Reset()
- func (x *QuerySubjectRecordReq) String() string
- func (this *QuerySubjectRecordReq) Validate() error
- type QuerySubjectRecordResp
- func (*QuerySubjectRecordResp) Descriptor() ([]byte, []int)deprecated
- func (x *QuerySubjectRecordResp) GetCommonRsp() *CommonRsp
- func (x *QuerySubjectRecordResp) GetSubjectRecord() *SubjectRecordInfo
- func (*QuerySubjectRecordResp) ProtoMessage()
- func (x *QuerySubjectRecordResp) ProtoReflect() protoreflect.Message
- func (x *QuerySubjectRecordResp) Reset()
- func (x *QuerySubjectRecordResp) String() string
- func (this *QuerySubjectRecordResp) Validate() error
- type SubjectRecordInfo
- func (*SubjectRecordInfo) Descriptor() ([]byte, []int)deprecated
- func (x *SubjectRecordInfo) GetCreateTime() string
- func (x *SubjectRecordInfo) GetExperimentId() string
- func (x *SubjectRecordInfo) GetParticipantId() int64
- func (x *SubjectRecordInfo) GetState() SubjectRecordState
- func (x *SubjectRecordInfo) GetSubjectRecordId() string
- func (x *SubjectRecordInfo) GetTimeTaken() int64
- func (x *SubjectRecordInfo) GetUserInfo() *UserInfo
- func (*SubjectRecordInfo) ProtoMessage()
- func (x *SubjectRecordInfo) ProtoReflect() protoreflect.Message
- func (x *SubjectRecordInfo) Reset()
- func (x *SubjectRecordInfo) String() string
- func (this *SubjectRecordInfo) Validate() error
- type SubjectRecordState
- func (SubjectRecordState) Descriptor() protoreflect.EnumDescriptor
- func (x SubjectRecordState) Enum() *SubjectRecordState
- func (SubjectRecordState) EnumDescriptor() ([]byte, []int)deprecated
- func (x SubjectRecordState) Number() protoreflect.EnumNumber
- func (x SubjectRecordState) String() string
- func (SubjectRecordState) Type() protoreflect.EnumType
- type UnimplementedExperimentServiceServer
- func (UnimplementedExperimentServiceServer) CreateExperiment(context.Context, *CreateExperimentReq) (*CreateExperimentResp, error)
- func (UnimplementedExperimentServiceServer) CreateSubjectRecord(context.Context, *CreateSubjectRecordReq) (*CreateSubjectRecordResp, error)
- func (UnimplementedExperimentServiceServer) QueryExperiment(context.Context, *QueryExperimentReq) (*QueryExperimentResp, error)
- func (UnimplementedExperimentServiceServer) QueryExperimentList(context.Context, *QueryExperimentListReq) (*QueryExperimentListResp, error)
- func (UnimplementedExperimentServiceServer) QuerySubjectRecord(context.Context, *QuerySubjectRecordReq) (*QuerySubjectRecordResp, error)
- func (UnimplementedExperimentServiceServer) QuerySubjectRecordList(context.Context, *QuerySubjectRecordListReq) (*QuerySubjectRecordListResp, error)
- func (UnimplementedExperimentServiceServer) UpdateExperiment(context.Context, *UpdateExperimentReq) (*UpdateExperimentResp, error)
- func (UnimplementedExperimentServiceServer) UpdateSubjectRecord(context.Context, *UpdateSubjectRecordReq) (*UpdateSubjectRecordResp, error)
- type UnsafeExperimentServiceServer
- type UpdateExperimentReq
- func (*UpdateExperimentReq) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateExperimentReq) GetCurType() int32
- func (x *UpdateExperimentReq) GetDescription() string
- func (x *UpdateExperimentReq) GetEndTime() int64
- func (x *UpdateExperimentReq) GetExperimentId() string
- func (x *UpdateExperimentReq) GetExperimentTime() int32
- func (x *UpdateExperimentReq) GetParticipantNum() int32
- func (x *UpdateExperimentReq) GetPrice() int64
- func (x *UpdateExperimentReq) GetRequestId() string
- func (x *UpdateExperimentReq) GetResearcherId() int64
- func (x *UpdateExperimentReq) GetState() ExperimentState
- func (x *UpdateExperimentReq) GetTitle() string
- func (*UpdateExperimentReq) ProtoMessage()
- func (x *UpdateExperimentReq) ProtoReflect() protoreflect.Message
- func (x *UpdateExperimentReq) Reset()
- func (x *UpdateExperimentReq) String() string
- func (this *UpdateExperimentReq) Validate() error
- type UpdateExperimentResp
- func (*UpdateExperimentResp) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateExperimentResp) GetCommonRsp() *CommonRsp
- func (x *UpdateExperimentResp) GetExperimentId() string
- func (*UpdateExperimentResp) ProtoMessage()
- func (x *UpdateExperimentResp) ProtoReflect() protoreflect.Message
- func (x *UpdateExperimentResp) Reset()
- func (x *UpdateExperimentResp) String() string
- func (this *UpdateExperimentResp) Validate() error
- type UpdateSubjectRecordReq
- func (*UpdateSubjectRecordReq) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateSubjectRecordReq) GetEndTime() int64
- func (x *UpdateSubjectRecordReq) GetRequestId() string
- func (x *UpdateSubjectRecordReq) GetState() SubjectRecordState
- func (x *UpdateSubjectRecordReq) GetSubjectRecordId() string
- func (x *UpdateSubjectRecordReq) GetUserId() int64
- func (*UpdateSubjectRecordReq) ProtoMessage()
- func (x *UpdateSubjectRecordReq) ProtoReflect() protoreflect.Message
- func (x *UpdateSubjectRecordReq) Reset()
- func (x *UpdateSubjectRecordReq) String() string
- func (this *UpdateSubjectRecordReq) Validate() error
- type UpdateSubjectRecordResp
- func (*UpdateSubjectRecordResp) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateSubjectRecordResp) GetCommonRsp() *CommonRsp
- func (x *UpdateSubjectRecordResp) GetSubjectRecordId() string
- func (*UpdateSubjectRecordResp) ProtoMessage()
- func (x *UpdateSubjectRecordResp) ProtoReflect() protoreflect.Message
- func (x *UpdateSubjectRecordResp) Reset()
- func (x *UpdateSubjectRecordResp) String() string
- func (this *UpdateSubjectRecordResp) Validate() error
- type UserInfo
- func (*UserInfo) Descriptor() ([]byte, []int)deprecated
- func (x *UserInfo) GetEmail() string
- func (x *UserInfo) GetExtra() string
- func (x *UserInfo) GetGender() GenderType
- func (x *UserInfo) GetPhoneNumber() string
- func (x *UserInfo) GetUid() int64
- func (x *UserInfo) GetUserName() string
- func (x *UserInfo) GetUserType() UserType
- func (*UserInfo) ProtoMessage()
- func (x *UserInfo) ProtoReflect() protoreflect.Message
- func (x *UserInfo) Reset()
- func (x *UserInfo) String() string
- func (this *UserInfo) Validate() error
- type UserType
Constants ¶
This section is empty.
Variables ¶
var ( UserType_name = map[int32]string{ 0: "USER_TYPE_RESEARCHER", 1: "USER_TYPE_PARTICIPANT", } UserType_value = map[string]int32{ "USER_TYPE_RESEARCHER": 0, "USER_TYPE_PARTICIPANT": 1, } )
Enum value maps for UserType.
var ( GenderType_name = map[int32]string{ 0: "GENDER_TYPE_INVALID", 1: "GENDER_TYPE_MAN", 2: "GENDER_TYPE_WOMAN", } GenderType_value = map[string]int32{ "GENDER_TYPE_INVALID": 0, "GENDER_TYPE_MAN": 1, "GENDER_TYPE_WOMAN": 2, } )
Enum value maps for GenderType.
var ( SubjectRecordState_name = map[int32]string{ 0: "SUBJECTRECORD_INIT", 1: "SUBJECTRECORD_FINISHED", 2: "SUBJECTRECORD_APPROVED", 3: "SUBJECTRECORD_TIMEOUT", 4: "SUBJECTRECORD_RETURNED", } SubjectRecordState_value = map[string]int32{ "SUBJECTRECORD_INIT": 0, "SUBJECTRECORD_FINISHED": 1, "SUBJECTRECORD_APPROVED": 2, "SUBJECTRECORD_TIMEOUT": 3, "SUBJECTRECORD_RETURNED": 4, } )
Enum value maps for SubjectRecordState.
var ( ExperimentState_name = map[int32]string{ 0: "EXP_DRAFT", 1: "EXP_PUBLISHED", 2: "EXP_FINISHED", 3: "EXP_DELETED", } ExperimentState_value = map[string]int32{ "EXP_DRAFT": 0, "EXP_PUBLISHED": 1, "EXP_FINISHED": 2, "EXP_DELETED": 3, } )
Enum value maps for ExperimentState.
var ExperimentService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "grpc.psychological_experiment.experiment_server.ExperimentService", HandlerType: (*ExperimentServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateExperiment", Handler: _ExperimentService_CreateExperiment_Handler, }, { MethodName: "UpdateExperiment", Handler: _ExperimentService_UpdateExperiment_Handler, }, { MethodName: "QueryExperiment", Handler: _ExperimentService_QueryExperiment_Handler, }, { MethodName: "QueryExperimentList", Handler: _ExperimentService_QueryExperimentList_Handler, }, { MethodName: "CreateSubjectRecord", Handler: _ExperimentService_CreateSubjectRecord_Handler, }, { MethodName: "UpdateSubjectRecord", Handler: _ExperimentService_UpdateSubjectRecord_Handler, }, { MethodName: "QuerySubjectRecord", Handler: _ExperimentService_QuerySubjectRecord_Handler, }, { MethodName: "QuerySubjectRecordList", Handler: _ExperimentService_QuerySubjectRecordList_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "experiment_server/experiment_server.proto", }
ExperimentService_ServiceDesc is the grpc.ServiceDesc for ExperimentService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_experiment_server_experiment_server_proto protoreflect.FileDescriptor
Functions ¶
func RegisterExperimentServiceServer ¶
func RegisterExperimentServiceServer(s grpc.ServiceRegistrar, srv ExperimentServiceServer)
Types ¶
type CommonHead ¶
type CommonHead struct { // token 用户标识 Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*CommonHead) Descriptor
deprecated
func (*CommonHead) Descriptor() ([]byte, []int)
Deprecated: Use CommonHead.ProtoReflect.Descriptor instead.
func (*CommonHead) GetToken ¶
func (x *CommonHead) GetToken() string
func (*CommonHead) ProtoMessage ¶
func (*CommonHead) ProtoMessage()
func (*CommonHead) ProtoReflect ¶
func (x *CommonHead) ProtoReflect() protoreflect.Message
func (*CommonHead) Reset ¶
func (x *CommonHead) Reset()
func (*CommonHead) String ¶
func (x *CommonHead) String() string
func (*CommonHead) Validate ¶
func (this *CommonHead) Validate() error
type CommonRsp ¶
type CommonRsp struct { // error_code Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` // msg Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*CommonRsp) Descriptor
deprecated
func (*CommonRsp) ProtoMessage ¶
func (*CommonRsp) ProtoMessage()
func (*CommonRsp) ProtoReflect ¶
func (x *CommonRsp) ProtoReflect() protoreflect.Message
type CreateExperimentReq ¶
type CreateExperimentReq struct { RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` ResearcherId int64 `protobuf:"varint,4,opt,name=researcher_id,json=researcherId,proto3" json:"researcher_id,omitempty"` ExperimentTime int32 `protobuf:"varint,5,opt,name=experiment_time,json=experimentTime,proto3" json:"experiment_time,omitempty"` ParticipantNum int32 `protobuf:"varint,6,opt,name=participant_num,json=participantNum,proto3" json:"participant_num,omitempty"` Price int64 `protobuf:"varint,7,opt,name=price,proto3" json:"price,omitempty"` CurType int32 `protobuf:"varint,8,opt,name=cur_type,json=curType,proto3" json:"cur_type,omitempty"` Url string `protobuf:"bytes,9,opt,name=url,proto3" json:"url,omitempty"` // contains filtered or unexported fields }
func (*CreateExperimentReq) Descriptor
deprecated
func (*CreateExperimentReq) Descriptor() ([]byte, []int)
Deprecated: Use CreateExperimentReq.ProtoReflect.Descriptor instead.
func (*CreateExperimentReq) GetCurType ¶
func (x *CreateExperimentReq) GetCurType() int32
func (*CreateExperimentReq) GetDescription ¶
func (x *CreateExperimentReq) GetDescription() string
func (*CreateExperimentReq) GetExperimentTime ¶
func (x *CreateExperimentReq) GetExperimentTime() int32
func (*CreateExperimentReq) GetParticipantNum ¶
func (x *CreateExperimentReq) GetParticipantNum() int32
func (*CreateExperimentReq) GetPrice ¶
func (x *CreateExperimentReq) GetPrice() int64
func (*CreateExperimentReq) GetRequestId ¶
func (x *CreateExperimentReq) GetRequestId() string
func (*CreateExperimentReq) GetResearcherId ¶
func (x *CreateExperimentReq) GetResearcherId() int64
func (*CreateExperimentReq) GetTitle ¶
func (x *CreateExperimentReq) GetTitle() string
func (*CreateExperimentReq) GetUrl ¶
func (x *CreateExperimentReq) GetUrl() string
func (*CreateExperimentReq) ProtoMessage ¶
func (*CreateExperimentReq) ProtoMessage()
func (*CreateExperimentReq) ProtoReflect ¶
func (x *CreateExperimentReq) ProtoReflect() protoreflect.Message
func (*CreateExperimentReq) Reset ¶
func (x *CreateExperimentReq) Reset()
func (*CreateExperimentReq) String ¶
func (x *CreateExperimentReq) String() string
func (*CreateExperimentReq) Validate ¶
func (this *CreateExperimentReq) Validate() error
type CreateExperimentResp ¶
type CreateExperimentResp struct { CommonRsp *CommonRsp `protobuf:"bytes,1,opt,name=common_rsp,json=commonRsp,proto3" json:"common_rsp,omitempty"` ExperimentId string `protobuf:"bytes,2,opt,name=experiment_id,json=experimentId,proto3" json:"experiment_id,omitempty"` // contains filtered or unexported fields }
func (*CreateExperimentResp) Descriptor
deprecated
func (*CreateExperimentResp) Descriptor() ([]byte, []int)
Deprecated: Use CreateExperimentResp.ProtoReflect.Descriptor instead.
func (*CreateExperimentResp) GetCommonRsp ¶
func (x *CreateExperimentResp) GetCommonRsp() *CommonRsp
func (*CreateExperimentResp) GetExperimentId ¶
func (x *CreateExperimentResp) GetExperimentId() string
func (*CreateExperimentResp) ProtoMessage ¶
func (*CreateExperimentResp) ProtoMessage()
func (*CreateExperimentResp) ProtoReflect ¶
func (x *CreateExperimentResp) ProtoReflect() protoreflect.Message
func (*CreateExperimentResp) Reset ¶
func (x *CreateExperimentResp) Reset()
func (*CreateExperimentResp) String ¶
func (x *CreateExperimentResp) String() string
func (*CreateExperimentResp) Validate ¶
func (this *CreateExperimentResp) Validate() error
type CreateSubjectRecordReq ¶
type CreateSubjectRecordReq struct { RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` ExperimentId string `protobuf:"bytes,2,opt,name=experiment_id,json=experimentId,proto3" json:"experiment_id,omitempty"` ParticipantId int64 `protobuf:"varint,3,opt,name=participant_id,json=participantId,proto3" json:"participant_id,omitempty"` // 被实id // contains filtered or unexported fields }
func (*CreateSubjectRecordReq) Descriptor
deprecated
func (*CreateSubjectRecordReq) Descriptor() ([]byte, []int)
Deprecated: Use CreateSubjectRecordReq.ProtoReflect.Descriptor instead.
func (*CreateSubjectRecordReq) GetExperimentId ¶
func (x *CreateSubjectRecordReq) GetExperimentId() string
func (*CreateSubjectRecordReq) GetParticipantId ¶
func (x *CreateSubjectRecordReq) GetParticipantId() int64
func (*CreateSubjectRecordReq) GetRequestId ¶
func (x *CreateSubjectRecordReq) GetRequestId() string
func (*CreateSubjectRecordReq) ProtoMessage ¶
func (*CreateSubjectRecordReq) ProtoMessage()
func (*CreateSubjectRecordReq) ProtoReflect ¶
func (x *CreateSubjectRecordReq) ProtoReflect() protoreflect.Message
func (*CreateSubjectRecordReq) Reset ¶
func (x *CreateSubjectRecordReq) Reset()
func (*CreateSubjectRecordReq) String ¶
func (x *CreateSubjectRecordReq) String() string
func (*CreateSubjectRecordReq) Validate ¶
func (this *CreateSubjectRecordReq) Validate() error
type CreateSubjectRecordResp ¶
type CreateSubjectRecordResp struct { CommonRsp *CommonRsp `protobuf:"bytes,1,opt,name=common_rsp,json=commonRsp,proto3" json:"common_rsp,omitempty"` SubjectRecordId string `protobuf:"bytes,2,opt,name=subject_record_id,json=subjectRecordId,proto3" json:"subject_record_id,omitempty"` // 被试记录id // contains filtered or unexported fields }
func (*CreateSubjectRecordResp) Descriptor
deprecated
func (*CreateSubjectRecordResp) Descriptor() ([]byte, []int)
Deprecated: Use CreateSubjectRecordResp.ProtoReflect.Descriptor instead.
func (*CreateSubjectRecordResp) GetCommonRsp ¶
func (x *CreateSubjectRecordResp) GetCommonRsp() *CommonRsp
func (*CreateSubjectRecordResp) GetSubjectRecordId ¶
func (x *CreateSubjectRecordResp) GetSubjectRecordId() string
func (*CreateSubjectRecordResp) ProtoMessage ¶
func (*CreateSubjectRecordResp) ProtoMessage()
func (*CreateSubjectRecordResp) ProtoReflect ¶
func (x *CreateSubjectRecordResp) ProtoReflect() protoreflect.Message
func (*CreateSubjectRecordResp) Reset ¶
func (x *CreateSubjectRecordResp) Reset()
func (*CreateSubjectRecordResp) String ¶
func (x *CreateSubjectRecordResp) String() string
func (*CreateSubjectRecordResp) Validate ¶
func (this *CreateSubjectRecordResp) Validate() error
type ExperimentInfo ¶
type ExperimentInfo struct { ExperimentId string `protobuf:"bytes,1,opt,name=experiment_id,json=experimentId,proto3" json:"experiment_id,omitempty"` // 实验id Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` // 实验标题 Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // 实验描述 ResearcherId int64 `protobuf:"varint,4,opt,name=researcher_id,json=researcherId,proto3" json:"researcher_id,omitempty"` // 主试id ExperimentTime int32 `protobuf:"varint,5,opt,name=experiment_time,json=experimentTime,proto3" json:"experiment_time,omitempty"` // 实验时间/min ParticipantNum int32 `protobuf:"varint,6,opt,name=participant_num,json=participantNum,proto3" json:"participant_num,omitempty"` // 实验所需人数 State ExperimentState `` // 状态 0-草稿箱 1-已发布 2-已完成 3-已删除 /* 133-byte string literal not displayed */ CreateTime string `protobuf:"bytes,8,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // 发布时间 UpdateTime string `protobuf:"bytes,9,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // 更新时间 SubjectRecordsNum int32 `protobuf:"varint,10,opt,name=subject_records_num,json=subjectRecordsNum,proto3" json:"subject_records_num,omitempty"` // 被试记录数 CurType int32 `protobuf:"varint,11,opt,name=cur_type,json=curType,proto3" json:"cur_type,omitempty"` // 币种代码 Price int64 `protobuf:"varint,12,opt,name=price,proto3" json:"price,omitempty"` // 实验费用 Url string `protobuf:"bytes,13,opt,name=url,proto3" json:"url,omitempty"` // 实验url // contains filtered or unexported fields }
func (*ExperimentInfo) Descriptor
deprecated
func (*ExperimentInfo) Descriptor() ([]byte, []int)
Deprecated: Use ExperimentInfo.ProtoReflect.Descriptor instead.
func (*ExperimentInfo) GetCreateTime ¶
func (x *ExperimentInfo) GetCreateTime() string
func (*ExperimentInfo) GetCurType ¶
func (x *ExperimentInfo) GetCurType() int32
func (*ExperimentInfo) GetDescription ¶
func (x *ExperimentInfo) GetDescription() string
func (*ExperimentInfo) GetExperimentId ¶
func (x *ExperimentInfo) GetExperimentId() string
func (*ExperimentInfo) GetExperimentTime ¶
func (x *ExperimentInfo) GetExperimentTime() int32
func (*ExperimentInfo) GetParticipantNum ¶
func (x *ExperimentInfo) GetParticipantNum() int32
func (*ExperimentInfo) GetPrice ¶
func (x *ExperimentInfo) GetPrice() int64
func (*ExperimentInfo) GetResearcherId ¶
func (x *ExperimentInfo) GetResearcherId() int64
func (*ExperimentInfo) GetState ¶
func (x *ExperimentInfo) GetState() ExperimentState
func (*ExperimentInfo) GetSubjectRecordsNum ¶
func (x *ExperimentInfo) GetSubjectRecordsNum() int32
func (*ExperimentInfo) GetTitle ¶
func (x *ExperimentInfo) GetTitle() string
func (*ExperimentInfo) GetUpdateTime ¶
func (x *ExperimentInfo) GetUpdateTime() string
func (*ExperimentInfo) GetUrl ¶
func (x *ExperimentInfo) GetUrl() string
func (*ExperimentInfo) ProtoMessage ¶
func (*ExperimentInfo) ProtoMessage()
func (*ExperimentInfo) ProtoReflect ¶
func (x *ExperimentInfo) ProtoReflect() protoreflect.Message
func (*ExperimentInfo) Reset ¶
func (x *ExperimentInfo) Reset()
func (*ExperimentInfo) String ¶
func (x *ExperimentInfo) String() string
func (*ExperimentInfo) Validate ¶
func (this *ExperimentInfo) Validate() error
type ExperimentServiceClient ¶
type ExperimentServiceClient interface { // 主试 CreateExperiment(ctx context.Context, in *CreateExperimentReq, opts ...grpc.CallOption) (*CreateExperimentResp, error) UpdateExperiment(ctx context.Context, in *UpdateExperimentReq, opts ...grpc.CallOption) (*UpdateExperimentResp, error) QueryExperiment(ctx context.Context, in *QueryExperimentReq, opts ...grpc.CallOption) (*QueryExperimentResp, error) QueryExperimentList(ctx context.Context, in *QueryExperimentListReq, opts ...grpc.CallOption) (*QueryExperimentListResp, error) // 被试记录 CreateSubjectRecord(ctx context.Context, in *CreateSubjectRecordReq, opts ...grpc.CallOption) (*CreateSubjectRecordResp, error) UpdateSubjectRecord(ctx context.Context, in *UpdateSubjectRecordReq, opts ...grpc.CallOption) (*UpdateSubjectRecordResp, error) QuerySubjectRecord(ctx context.Context, in *QuerySubjectRecordReq, opts ...grpc.CallOption) (*QuerySubjectRecordResp, error) QuerySubjectRecordList(ctx context.Context, in *QuerySubjectRecordListReq, opts ...grpc.CallOption) (*QuerySubjectRecordListResp, error) }
ExperimentServiceClient is the client API for ExperimentService 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 NewExperimentServiceClient ¶
func NewExperimentServiceClient(cc grpc.ClientConnInterface) ExperimentServiceClient
type ExperimentServiceServer ¶
type ExperimentServiceServer interface { // 主试 CreateExperiment(context.Context, *CreateExperimentReq) (*CreateExperimentResp, error) UpdateExperiment(context.Context, *UpdateExperimentReq) (*UpdateExperimentResp, error) QueryExperiment(context.Context, *QueryExperimentReq) (*QueryExperimentResp, error) QueryExperimentList(context.Context, *QueryExperimentListReq) (*QueryExperimentListResp, error) // 被试记录 CreateSubjectRecord(context.Context, *CreateSubjectRecordReq) (*CreateSubjectRecordResp, error) UpdateSubjectRecord(context.Context, *UpdateSubjectRecordReq) (*UpdateSubjectRecordResp, error) QuerySubjectRecord(context.Context, *QuerySubjectRecordReq) (*QuerySubjectRecordResp, error) QuerySubjectRecordList(context.Context, *QuerySubjectRecordListReq) (*QuerySubjectRecordListResp, error) }
ExperimentServiceServer is the server API for ExperimentService service. All implementations should embed UnimplementedExperimentServiceServer for forward compatibility
type ExperimentState ¶
type ExperimentState int32
const ( ExperimentState_EXP_DRAFT ExperimentState = 0 ExperimentState_EXP_PUBLISHED ExperimentState = 1 ExperimentState_EXP_FINISHED ExperimentState = 2 ExperimentState_EXP_DELETED ExperimentState = 3 )
func (ExperimentState) Descriptor ¶
func (ExperimentState) Descriptor() protoreflect.EnumDescriptor
func (ExperimentState) Enum ¶
func (x ExperimentState) Enum() *ExperimentState
func (ExperimentState) EnumDescriptor
deprecated
func (ExperimentState) EnumDescriptor() ([]byte, []int)
Deprecated: Use ExperimentState.Descriptor instead.
func (ExperimentState) Number ¶
func (x ExperimentState) Number() protoreflect.EnumNumber
func (ExperimentState) String ¶
func (x ExperimentState) String() string
func (ExperimentState) Type ¶
func (ExperimentState) Type() protoreflect.EnumType
type GenderType ¶
type GenderType int32
const ( GenderType_GENDER_TYPE_INVALID GenderType = 0 // man GenderType_GENDER_TYPE_MAN GenderType = 1 // woman GenderType_GENDER_TYPE_WOMAN GenderType = 2 )
func (GenderType) Descriptor ¶
func (GenderType) Descriptor() protoreflect.EnumDescriptor
func (GenderType) Enum ¶
func (x GenderType) Enum() *GenderType
func (GenderType) EnumDescriptor
deprecated
func (GenderType) EnumDescriptor() ([]byte, []int)
Deprecated: Use GenderType.Descriptor instead.
func (GenderType) Number ¶
func (x GenderType) Number() protoreflect.EnumNumber
func (GenderType) String ¶
func (x GenderType) String() string
func (GenderType) Type ¶
func (GenderType) Type() protoreflect.EnumType
type QueryExperimentListReq ¶
type QueryExperimentListReq struct { RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` ResearcherId int64 `protobuf:"varint,2,opt,name=researcher_id,json=researcherId,proto3" json:"researcher_id,omitempty"` // 主试id PageIndex int32 `protobuf:"varint,3,opt,name=page_index,json=pageIndex,proto3" json:"page_index,omitempty"` PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` EndTime int64 `protobuf:"varint,5,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` MinPrice int64 `protobuf:"varint,6,opt,name=min_price,json=minPrice,proto3" json:"min_price,omitempty"` OnlySeeMyself int32 `protobuf:"varint,7,opt,name=only_see_myself,json=onlySeeMyself,proto3" json:"only_see_myself,omitempty"` // contains filtered or unexported fields }
func (*QueryExperimentListReq) Descriptor
deprecated
func (*QueryExperimentListReq) Descriptor() ([]byte, []int)
Deprecated: Use QueryExperimentListReq.ProtoReflect.Descriptor instead.
func (*QueryExperimentListReq) GetEndTime ¶
func (x *QueryExperimentListReq) GetEndTime() int64
func (*QueryExperimentListReq) GetMinPrice ¶
func (x *QueryExperimentListReq) GetMinPrice() int64
func (*QueryExperimentListReq) GetOnlySeeMyself ¶
func (x *QueryExperimentListReq) GetOnlySeeMyself() int32
func (*QueryExperimentListReq) GetPageIndex ¶
func (x *QueryExperimentListReq) GetPageIndex() int32
func (*QueryExperimentListReq) GetPageSize ¶
func (x *QueryExperimentListReq) GetPageSize() int32
func (*QueryExperimentListReq) GetRequestId ¶
func (x *QueryExperimentListReq) GetRequestId() string
func (*QueryExperimentListReq) GetResearcherId ¶
func (x *QueryExperimentListReq) GetResearcherId() int64
func (*QueryExperimentListReq) ProtoMessage ¶
func (*QueryExperimentListReq) ProtoMessage()
func (*QueryExperimentListReq) ProtoReflect ¶
func (x *QueryExperimentListReq) ProtoReflect() protoreflect.Message
func (*QueryExperimentListReq) Reset ¶
func (x *QueryExperimentListReq) Reset()
func (*QueryExperimentListReq) String ¶
func (x *QueryExperimentListReq) String() string
func (*QueryExperimentListReq) Validate ¶
func (this *QueryExperimentListReq) Validate() error
type QueryExperimentListResp ¶
type QueryExperimentListResp struct { CommonRsp *CommonRsp `protobuf:"bytes,1,opt,name=common_rsp,json=commonRsp,proto3" json:"common_rsp,omitempty"` TotalNum int32 `protobuf:"varint,2,opt,name=total_num,json=totalNum,proto3" json:"total_num,omitempty"` ExpInfoList []*ExperimentInfo `protobuf:"bytes,3,rep,name=exp_info_list,json=expInfoList,proto3" json:"exp_info_list,omitempty"` // contains filtered or unexported fields }
func (*QueryExperimentListResp) Descriptor
deprecated
func (*QueryExperimentListResp) Descriptor() ([]byte, []int)
Deprecated: Use QueryExperimentListResp.ProtoReflect.Descriptor instead.
func (*QueryExperimentListResp) GetCommonRsp ¶
func (x *QueryExperimentListResp) GetCommonRsp() *CommonRsp
func (*QueryExperimentListResp) GetExpInfoList ¶
func (x *QueryExperimentListResp) GetExpInfoList() []*ExperimentInfo
func (*QueryExperimentListResp) GetTotalNum ¶
func (x *QueryExperimentListResp) GetTotalNum() int32
func (*QueryExperimentListResp) ProtoMessage ¶
func (*QueryExperimentListResp) ProtoMessage()
func (*QueryExperimentListResp) ProtoReflect ¶
func (x *QueryExperimentListResp) ProtoReflect() protoreflect.Message
func (*QueryExperimentListResp) Reset ¶
func (x *QueryExperimentListResp) Reset()
func (*QueryExperimentListResp) String ¶
func (x *QueryExperimentListResp) String() string
func (*QueryExperimentListResp) Validate ¶
func (this *QueryExperimentListResp) Validate() error
type QueryExperimentReq ¶
type QueryExperimentReq struct { RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` ExperimentId string `protobuf:"bytes,2,opt,name=experiment_id,json=experimentId,proto3" json:"experiment_id,omitempty"` // 实验id ResearcherId int64 `protobuf:"varint,3,opt,name=researcher_id,json=researcherId,proto3" json:"researcher_id,omitempty"` // contains filtered or unexported fields }
func (*QueryExperimentReq) Descriptor
deprecated
func (*QueryExperimentReq) Descriptor() ([]byte, []int)
Deprecated: Use QueryExperimentReq.ProtoReflect.Descriptor instead.
func (*QueryExperimentReq) GetExperimentId ¶
func (x *QueryExperimentReq) GetExperimentId() string
func (*QueryExperimentReq) GetRequestId ¶
func (x *QueryExperimentReq) GetRequestId() string
func (*QueryExperimentReq) GetResearcherId ¶
func (x *QueryExperimentReq) GetResearcherId() int64
func (*QueryExperimentReq) ProtoMessage ¶
func (*QueryExperimentReq) ProtoMessage()
func (*QueryExperimentReq) ProtoReflect ¶
func (x *QueryExperimentReq) ProtoReflect() protoreflect.Message
func (*QueryExperimentReq) Reset ¶
func (x *QueryExperimentReq) Reset()
func (*QueryExperimentReq) String ¶
func (x *QueryExperimentReq) String() string
func (*QueryExperimentReq) Validate ¶
func (this *QueryExperimentReq) Validate() error
type QueryExperimentResp ¶
type QueryExperimentResp struct { CommonRsp *CommonRsp `protobuf:"bytes,1,opt,name=common_rsp,json=commonRsp,proto3" json:"common_rsp,omitempty"` ExpInfo *ExperimentInfo `protobuf:"bytes,2,opt,name=exp_info,json=expInfo,proto3" json:"exp_info,omitempty"` SubjectRecords []*SubjectRecordInfo `protobuf:"bytes,3,rep,name=subject_records,json=subjectRecords,proto3" json:"subject_records,omitempty"` Subscribe int32 `protobuf:"varint,4,opt,name=subscribe,proto3" json:"subscribe,omitempty"` // // contains filtered or unexported fields }
func (*QueryExperimentResp) Descriptor
deprecated
func (*QueryExperimentResp) Descriptor() ([]byte, []int)
Deprecated: Use QueryExperimentResp.ProtoReflect.Descriptor instead.
func (*QueryExperimentResp) GetCommonRsp ¶
func (x *QueryExperimentResp) GetCommonRsp() *CommonRsp
func (*QueryExperimentResp) GetExpInfo ¶
func (x *QueryExperimentResp) GetExpInfo() *ExperimentInfo
func (*QueryExperimentResp) GetSubjectRecords ¶
func (x *QueryExperimentResp) GetSubjectRecords() []*SubjectRecordInfo
func (*QueryExperimentResp) GetSubscribe ¶
func (x *QueryExperimentResp) GetSubscribe() int32
func (*QueryExperimentResp) ProtoMessage ¶
func (*QueryExperimentResp) ProtoMessage()
func (*QueryExperimentResp) ProtoReflect ¶
func (x *QueryExperimentResp) ProtoReflect() protoreflect.Message
func (*QueryExperimentResp) Reset ¶
func (x *QueryExperimentResp) Reset()
func (*QueryExperimentResp) String ¶
func (x *QueryExperimentResp) String() string
func (*QueryExperimentResp) Validate ¶
func (this *QueryExperimentResp) Validate() error
type QuerySubjectRecordListReq ¶
type QuerySubjectRecordListReq struct { RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` ExperimentId string `protobuf:"bytes,2,opt,name=experiment_id,json=experimentId,proto3" json:"experiment_id,omitempty"` PageIndex int32 `protobuf:"varint,3,opt,name=page_index,json=pageIndex,proto3" json:"page_index,omitempty"` PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // contains filtered or unexported fields }
func (*QuerySubjectRecordListReq) Descriptor
deprecated
func (*QuerySubjectRecordListReq) Descriptor() ([]byte, []int)
Deprecated: Use QuerySubjectRecordListReq.ProtoReflect.Descriptor instead.
func (*QuerySubjectRecordListReq) GetExperimentId ¶
func (x *QuerySubjectRecordListReq) GetExperimentId() string
func (*QuerySubjectRecordListReq) GetPageIndex ¶
func (x *QuerySubjectRecordListReq) GetPageIndex() int32
func (*QuerySubjectRecordListReq) GetPageSize ¶
func (x *QuerySubjectRecordListReq) GetPageSize() int32
func (*QuerySubjectRecordListReq) GetRequestId ¶
func (x *QuerySubjectRecordListReq) GetRequestId() string
func (*QuerySubjectRecordListReq) ProtoMessage ¶
func (*QuerySubjectRecordListReq) ProtoMessage()
func (*QuerySubjectRecordListReq) ProtoReflect ¶
func (x *QuerySubjectRecordListReq) ProtoReflect() protoreflect.Message
func (*QuerySubjectRecordListReq) Reset ¶
func (x *QuerySubjectRecordListReq) Reset()
func (*QuerySubjectRecordListReq) String ¶
func (x *QuerySubjectRecordListReq) String() string
func (*QuerySubjectRecordListReq) Validate ¶
func (this *QuerySubjectRecordListReq) Validate() error
type QuerySubjectRecordListResp ¶
type QuerySubjectRecordListResp struct { CommonRsp *CommonRsp `protobuf:"bytes,1,opt,name=common_rsp,json=commonRsp,proto3" json:"common_rsp,omitempty"` TotalNum int32 `protobuf:"varint,2,opt,name=total_num,json=totalNum,proto3" json:"total_num,omitempty"` SubjectRecordList []*SubjectRecordInfo `protobuf:"bytes,3,rep,name=subject_record_list,json=subjectRecordList,proto3" json:"subject_record_list,omitempty"` FinishPcts float32 `protobuf:"fixed32,4,opt,name=finish_pcts,json=finishPcts,proto3" json:"finish_pcts,omitempty"` // contains filtered or unexported fields }
func (*QuerySubjectRecordListResp) Descriptor
deprecated
func (*QuerySubjectRecordListResp) Descriptor() ([]byte, []int)
Deprecated: Use QuerySubjectRecordListResp.ProtoReflect.Descriptor instead.
func (*QuerySubjectRecordListResp) GetCommonRsp ¶
func (x *QuerySubjectRecordListResp) GetCommonRsp() *CommonRsp
func (*QuerySubjectRecordListResp) GetFinishPcts ¶
func (x *QuerySubjectRecordListResp) GetFinishPcts() float32
func (*QuerySubjectRecordListResp) GetSubjectRecordList ¶
func (x *QuerySubjectRecordListResp) GetSubjectRecordList() []*SubjectRecordInfo
func (*QuerySubjectRecordListResp) GetTotalNum ¶
func (x *QuerySubjectRecordListResp) GetTotalNum() int32
func (*QuerySubjectRecordListResp) ProtoMessage ¶
func (*QuerySubjectRecordListResp) ProtoMessage()
func (*QuerySubjectRecordListResp) ProtoReflect ¶
func (x *QuerySubjectRecordListResp) ProtoReflect() protoreflect.Message
func (*QuerySubjectRecordListResp) Reset ¶
func (x *QuerySubjectRecordListResp) Reset()
func (*QuerySubjectRecordListResp) String ¶
func (x *QuerySubjectRecordListResp) String() string
func (*QuerySubjectRecordListResp) Validate ¶
func (this *QuerySubjectRecordListResp) Validate() error
type QuerySubjectRecordReq ¶
type QuerySubjectRecordReq struct { RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` SubjectRecordId string `protobuf:"bytes,2,opt,name=subject_record_id,json=subjectRecordId,proto3" json:"subject_record_id,omitempty"` // contains filtered or unexported fields }
func (*QuerySubjectRecordReq) Descriptor
deprecated
func (*QuerySubjectRecordReq) Descriptor() ([]byte, []int)
Deprecated: Use QuerySubjectRecordReq.ProtoReflect.Descriptor instead.
func (*QuerySubjectRecordReq) GetRequestId ¶
func (x *QuerySubjectRecordReq) GetRequestId() string
func (*QuerySubjectRecordReq) GetSubjectRecordId ¶
func (x *QuerySubjectRecordReq) GetSubjectRecordId() string
func (*QuerySubjectRecordReq) ProtoMessage ¶
func (*QuerySubjectRecordReq) ProtoMessage()
func (*QuerySubjectRecordReq) ProtoReflect ¶
func (x *QuerySubjectRecordReq) ProtoReflect() protoreflect.Message
func (*QuerySubjectRecordReq) Reset ¶
func (x *QuerySubjectRecordReq) Reset()
func (*QuerySubjectRecordReq) String ¶
func (x *QuerySubjectRecordReq) String() string
func (*QuerySubjectRecordReq) Validate ¶
func (this *QuerySubjectRecordReq) Validate() error
type QuerySubjectRecordResp ¶
type QuerySubjectRecordResp struct { CommonRsp *CommonRsp `protobuf:"bytes,1,opt,name=common_rsp,json=commonRsp,proto3" json:"common_rsp,omitempty"` SubjectRecord *SubjectRecordInfo `protobuf:"bytes,2,opt,name=subject_record,json=subjectRecord,proto3" json:"subject_record,omitempty"` // contains filtered or unexported fields }
func (*QuerySubjectRecordResp) Descriptor
deprecated
func (*QuerySubjectRecordResp) Descriptor() ([]byte, []int)
Deprecated: Use QuerySubjectRecordResp.ProtoReflect.Descriptor instead.
func (*QuerySubjectRecordResp) GetCommonRsp ¶
func (x *QuerySubjectRecordResp) GetCommonRsp() *CommonRsp
func (*QuerySubjectRecordResp) GetSubjectRecord ¶
func (x *QuerySubjectRecordResp) GetSubjectRecord() *SubjectRecordInfo
func (*QuerySubjectRecordResp) ProtoMessage ¶
func (*QuerySubjectRecordResp) ProtoMessage()
func (*QuerySubjectRecordResp) ProtoReflect ¶
func (x *QuerySubjectRecordResp) ProtoReflect() protoreflect.Message
func (*QuerySubjectRecordResp) Reset ¶
func (x *QuerySubjectRecordResp) Reset()
func (*QuerySubjectRecordResp) String ¶
func (x *QuerySubjectRecordResp) String() string
func (*QuerySubjectRecordResp) Validate ¶
func (this *QuerySubjectRecordResp) Validate() error
type SubjectRecordInfo ¶
type SubjectRecordInfo struct { SubjectRecordId string `protobuf:"bytes,1,opt,name=subject_record_id,json=subjectRecordId,proto3" json:"subject_record_id,omitempty"` // 被试记录id ExperimentId string `protobuf:"bytes,2,opt,name=experiment_id,json=experimentId,proto3" json:"experiment_id,omitempty"` // 实验id ParticipantId int64 `protobuf:"varint,3,opt,name=participant_id,json=participantId,proto3" json:"participant_id,omitempty"` // 被实id TimeTaken int64 `protobuf:"varint,4,opt,name=time_taken,json=timeTaken,proto3" json:"time_taken,omitempty"` // 实验耗时 State SubjectRecordState `` // 被试记录状态 /* 136-byte string literal not displayed */ UserInfo *UserInfo `protobuf:"bytes,6,opt,name=userInfo,proto3" json:"userInfo,omitempty"` CreateTime string `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // contains filtered or unexported fields }
func (*SubjectRecordInfo) Descriptor
deprecated
func (*SubjectRecordInfo) Descriptor() ([]byte, []int)
Deprecated: Use SubjectRecordInfo.ProtoReflect.Descriptor instead.
func (*SubjectRecordInfo) GetCreateTime ¶
func (x *SubjectRecordInfo) GetCreateTime() string
func (*SubjectRecordInfo) GetExperimentId ¶
func (x *SubjectRecordInfo) GetExperimentId() string
func (*SubjectRecordInfo) GetParticipantId ¶
func (x *SubjectRecordInfo) GetParticipantId() int64
func (*SubjectRecordInfo) GetState ¶
func (x *SubjectRecordInfo) GetState() SubjectRecordState
func (*SubjectRecordInfo) GetSubjectRecordId ¶
func (x *SubjectRecordInfo) GetSubjectRecordId() string
func (*SubjectRecordInfo) GetTimeTaken ¶
func (x *SubjectRecordInfo) GetTimeTaken() int64
func (*SubjectRecordInfo) GetUserInfo ¶
func (x *SubjectRecordInfo) GetUserInfo() *UserInfo
func (*SubjectRecordInfo) ProtoMessage ¶
func (*SubjectRecordInfo) ProtoMessage()
func (*SubjectRecordInfo) ProtoReflect ¶
func (x *SubjectRecordInfo) ProtoReflect() protoreflect.Message
func (*SubjectRecordInfo) Reset ¶
func (x *SubjectRecordInfo) Reset()
func (*SubjectRecordInfo) String ¶
func (x *SubjectRecordInfo) String() string
func (*SubjectRecordInfo) Validate ¶
func (this *SubjectRecordInfo) Validate() error
type SubjectRecordState ¶
type SubjectRecordState int32
const ( SubjectRecordState_SUBJECTRECORD_INIT SubjectRecordState = 0 // 初始态 SubjectRecordState_SUBJECTRECORD_FINISHED SubjectRecordState = 1 // 完成 SubjectRecordState_SUBJECTRECORD_APPROVED SubjectRecordState = 2 // 同意 SubjectRecordState_SUBJECTRECORD_TIMEOUT SubjectRecordState = 3 // 超时 SubjectRecordState_SUBJECTRECORD_RETURNED SubjectRecordState = 4 // 回绝 )
func (SubjectRecordState) Descriptor ¶
func (SubjectRecordState) Descriptor() protoreflect.EnumDescriptor
func (SubjectRecordState) Enum ¶
func (x SubjectRecordState) Enum() *SubjectRecordState
func (SubjectRecordState) EnumDescriptor
deprecated
func (SubjectRecordState) EnumDescriptor() ([]byte, []int)
Deprecated: Use SubjectRecordState.Descriptor instead.
func (SubjectRecordState) Number ¶
func (x SubjectRecordState) Number() protoreflect.EnumNumber
func (SubjectRecordState) String ¶
func (x SubjectRecordState) String() string
func (SubjectRecordState) Type ¶
func (SubjectRecordState) Type() protoreflect.EnumType
type UnimplementedExperimentServiceServer ¶
type UnimplementedExperimentServiceServer struct { }
UnimplementedExperimentServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedExperimentServiceServer) CreateExperiment ¶
func (UnimplementedExperimentServiceServer) CreateExperiment(context.Context, *CreateExperimentReq) (*CreateExperimentResp, error)
func (UnimplementedExperimentServiceServer) CreateSubjectRecord ¶
func (UnimplementedExperimentServiceServer) CreateSubjectRecord(context.Context, *CreateSubjectRecordReq) (*CreateSubjectRecordResp, error)
func (UnimplementedExperimentServiceServer) QueryExperiment ¶
func (UnimplementedExperimentServiceServer) QueryExperiment(context.Context, *QueryExperimentReq) (*QueryExperimentResp, error)
func (UnimplementedExperimentServiceServer) QueryExperimentList ¶
func (UnimplementedExperimentServiceServer) QueryExperimentList(context.Context, *QueryExperimentListReq) (*QueryExperimentListResp, error)
func (UnimplementedExperimentServiceServer) QuerySubjectRecord ¶
func (UnimplementedExperimentServiceServer) QuerySubjectRecord(context.Context, *QuerySubjectRecordReq) (*QuerySubjectRecordResp, error)
func (UnimplementedExperimentServiceServer) QuerySubjectRecordList ¶
func (UnimplementedExperimentServiceServer) QuerySubjectRecordList(context.Context, *QuerySubjectRecordListReq) (*QuerySubjectRecordListResp, error)
func (UnimplementedExperimentServiceServer) UpdateExperiment ¶
func (UnimplementedExperimentServiceServer) UpdateExperiment(context.Context, *UpdateExperimentReq) (*UpdateExperimentResp, error)
func (UnimplementedExperimentServiceServer) UpdateSubjectRecord ¶
func (UnimplementedExperimentServiceServer) UpdateSubjectRecord(context.Context, *UpdateSubjectRecordReq) (*UpdateSubjectRecordResp, error)
type UnsafeExperimentServiceServer ¶
type UnsafeExperimentServiceServer interface {
// contains filtered or unexported methods
}
UnsafeExperimentServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ExperimentServiceServer will result in compilation errors.
type UpdateExperimentReq ¶
type UpdateExperimentReq struct { RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` ExperimentId string `protobuf:"bytes,2,opt,name=experiment_id,json=experimentId,proto3" json:"experiment_id,omitempty"` // 实验id Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` // 实验标题 Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` // 实验描述 ResearcherId int64 `protobuf:"varint,5,opt,name=researcher_id,json=researcherId,proto3" json:"researcher_id,omitempty"` // 主试id ExperimentTime int32 `protobuf:"varint,6,opt,name=experiment_time,json=experimentTime,proto3" json:"experiment_time,omitempty"` // 实验时间/min ParticipantNum int32 `protobuf:"varint,7,opt,name=participant_num,json=participantNum,proto3" json:"participant_num,omitempty"` // 实验所需人数 State ExperimentState `` // 状态 0-草稿箱 1-已发布 2-已完成 3-已删除 /* 133-byte string literal not displayed */ Price int64 `protobuf:"varint,9,opt,name=price,proto3" json:"price,omitempty"` CurType int32 `protobuf:"varint,10,opt,name=cur_type,json=curType,proto3" json:"cur_type,omitempty"` EndTime int64 `protobuf:"varint,11,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // contains filtered or unexported fields }
func (*UpdateExperimentReq) Descriptor
deprecated
func (*UpdateExperimentReq) Descriptor() ([]byte, []int)
Deprecated: Use UpdateExperimentReq.ProtoReflect.Descriptor instead.
func (*UpdateExperimentReq) GetCurType ¶
func (x *UpdateExperimentReq) GetCurType() int32
func (*UpdateExperimentReq) GetDescription ¶
func (x *UpdateExperimentReq) GetDescription() string
func (*UpdateExperimentReq) GetEndTime ¶
func (x *UpdateExperimentReq) GetEndTime() int64
func (*UpdateExperimentReq) GetExperimentId ¶
func (x *UpdateExperimentReq) GetExperimentId() string
func (*UpdateExperimentReq) GetExperimentTime ¶
func (x *UpdateExperimentReq) GetExperimentTime() int32
func (*UpdateExperimentReq) GetParticipantNum ¶
func (x *UpdateExperimentReq) GetParticipantNum() int32
func (*UpdateExperimentReq) GetPrice ¶
func (x *UpdateExperimentReq) GetPrice() int64
func (*UpdateExperimentReq) GetRequestId ¶
func (x *UpdateExperimentReq) GetRequestId() string
func (*UpdateExperimentReq) GetResearcherId ¶
func (x *UpdateExperimentReq) GetResearcherId() int64
func (*UpdateExperimentReq) GetState ¶
func (x *UpdateExperimentReq) GetState() ExperimentState
func (*UpdateExperimentReq) GetTitle ¶
func (x *UpdateExperimentReq) GetTitle() string
func (*UpdateExperimentReq) ProtoMessage ¶
func (*UpdateExperimentReq) ProtoMessage()
func (*UpdateExperimentReq) ProtoReflect ¶
func (x *UpdateExperimentReq) ProtoReflect() protoreflect.Message
func (*UpdateExperimentReq) Reset ¶
func (x *UpdateExperimentReq) Reset()
func (*UpdateExperimentReq) String ¶
func (x *UpdateExperimentReq) String() string
func (*UpdateExperimentReq) Validate ¶
func (this *UpdateExperimentReq) Validate() error
type UpdateExperimentResp ¶
type UpdateExperimentResp struct { CommonRsp *CommonRsp `protobuf:"bytes,1,opt,name=common_rsp,json=commonRsp,proto3" json:"common_rsp,omitempty"` ExperimentId string `protobuf:"bytes,2,opt,name=experiment_id,json=experimentId,proto3" json:"experiment_id,omitempty"` // contains filtered or unexported fields }
func (*UpdateExperimentResp) Descriptor
deprecated
func (*UpdateExperimentResp) Descriptor() ([]byte, []int)
Deprecated: Use UpdateExperimentResp.ProtoReflect.Descriptor instead.
func (*UpdateExperimentResp) GetCommonRsp ¶
func (x *UpdateExperimentResp) GetCommonRsp() *CommonRsp
func (*UpdateExperimentResp) GetExperimentId ¶
func (x *UpdateExperimentResp) GetExperimentId() string
func (*UpdateExperimentResp) ProtoMessage ¶
func (*UpdateExperimentResp) ProtoMessage()
func (*UpdateExperimentResp) ProtoReflect ¶
func (x *UpdateExperimentResp) ProtoReflect() protoreflect.Message
func (*UpdateExperimentResp) Reset ¶
func (x *UpdateExperimentResp) Reset()
func (*UpdateExperimentResp) String ¶
func (x *UpdateExperimentResp) String() string
func (*UpdateExperimentResp) Validate ¶
func (this *UpdateExperimentResp) Validate() error
type UpdateSubjectRecordReq ¶
type UpdateSubjectRecordReq struct { RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` SubjectRecordId string `protobuf:"bytes,2,opt,name=subject_record_id,json=subjectRecordId,proto3" json:"subject_record_id,omitempty"` // 被试id UserId int64 `protobuf:"varint,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户id State SubjectRecordState `` /* 136-byte string literal not displayed */ EndTime int64 `protobuf:"varint,5,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // contains filtered or unexported fields }
func (*UpdateSubjectRecordReq) Descriptor
deprecated
func (*UpdateSubjectRecordReq) Descriptor() ([]byte, []int)
Deprecated: Use UpdateSubjectRecordReq.ProtoReflect.Descriptor instead.
func (*UpdateSubjectRecordReq) GetEndTime ¶
func (x *UpdateSubjectRecordReq) GetEndTime() int64
func (*UpdateSubjectRecordReq) GetRequestId ¶
func (x *UpdateSubjectRecordReq) GetRequestId() string
func (*UpdateSubjectRecordReq) GetState ¶
func (x *UpdateSubjectRecordReq) GetState() SubjectRecordState
func (*UpdateSubjectRecordReq) GetSubjectRecordId ¶
func (x *UpdateSubjectRecordReq) GetSubjectRecordId() string
func (*UpdateSubjectRecordReq) GetUserId ¶
func (x *UpdateSubjectRecordReq) GetUserId() int64
func (*UpdateSubjectRecordReq) ProtoMessage ¶
func (*UpdateSubjectRecordReq) ProtoMessage()
func (*UpdateSubjectRecordReq) ProtoReflect ¶
func (x *UpdateSubjectRecordReq) ProtoReflect() protoreflect.Message
func (*UpdateSubjectRecordReq) Reset ¶
func (x *UpdateSubjectRecordReq) Reset()
func (*UpdateSubjectRecordReq) String ¶
func (x *UpdateSubjectRecordReq) String() string
func (*UpdateSubjectRecordReq) Validate ¶
func (this *UpdateSubjectRecordReq) Validate() error
type UpdateSubjectRecordResp ¶
type UpdateSubjectRecordResp struct { CommonRsp *CommonRsp `protobuf:"bytes,1,opt,name=common_rsp,json=commonRsp,proto3" json:"common_rsp,omitempty"` SubjectRecordId string `protobuf:"bytes,2,opt,name=subject_record_id,json=subjectRecordId,proto3" json:"subject_record_id,omitempty"` // contains filtered or unexported fields }
func (*UpdateSubjectRecordResp) Descriptor
deprecated
func (*UpdateSubjectRecordResp) Descriptor() ([]byte, []int)
Deprecated: Use UpdateSubjectRecordResp.ProtoReflect.Descriptor instead.
func (*UpdateSubjectRecordResp) GetCommonRsp ¶
func (x *UpdateSubjectRecordResp) GetCommonRsp() *CommonRsp
func (*UpdateSubjectRecordResp) GetSubjectRecordId ¶
func (x *UpdateSubjectRecordResp) GetSubjectRecordId() string
func (*UpdateSubjectRecordResp) ProtoMessage ¶
func (*UpdateSubjectRecordResp) ProtoMessage()
func (*UpdateSubjectRecordResp) ProtoReflect ¶
func (x *UpdateSubjectRecordResp) ProtoReflect() protoreflect.Message
func (*UpdateSubjectRecordResp) Reset ¶
func (x *UpdateSubjectRecordResp) Reset()
func (*UpdateSubjectRecordResp) String ¶
func (x *UpdateSubjectRecordResp) String() string
func (*UpdateSubjectRecordResp) Validate ¶
func (this *UpdateSubjectRecordResp) Validate() error
type UserInfo ¶
type UserInfo struct { // email Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` // phone number PhoneNumber string `protobuf:"bytes,2,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"` // user name UserName string `protobuf:"bytes,3,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` // gender Gender GenderType `` /* 130-byte string literal not displayed */ // user type UserType UserType `` /* 148-byte string literal not displayed */ // custom user form Extra string `protobuf:"bytes,6,opt,name=extra,proto3" json:"extra,omitempty"` // user id Uid int64 `protobuf:"varint,7,opt,name=uid,proto3" json:"uid,omitempty"` // contains filtered or unexported fields }
func (*UserInfo) Descriptor
deprecated
func (*UserInfo) GetGender ¶
func (x *UserInfo) GetGender() GenderType
func (*UserInfo) GetPhoneNumber ¶
func (*UserInfo) GetUserName ¶
func (*UserInfo) GetUserType ¶
func (*UserInfo) ProtoMessage ¶
func (*UserInfo) ProtoMessage()
func (*UserInfo) ProtoReflect ¶
func (x *UserInfo) ProtoReflect() protoreflect.Message
type UserType ¶
type UserType int32
func (UserType) Descriptor ¶
func (UserType) Descriptor() protoreflect.EnumDescriptor
func (UserType) EnumDescriptor
deprecated
func (UserType) Number ¶
func (x UserType) Number() protoreflect.EnumNumber
func (UserType) Type ¶
func (UserType) Type() protoreflect.EnumType