v1

package
v0.0.0-...-2981145 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2022 License: MIT Imports: 28 Imported by: 0

Documentation

Overview

Package v1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var Box_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "golayout.v1.Box",
	HandlerType: (*BoxServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Ping",
			Handler:    _Box_Ping_Handler,
		},
		{
			MethodName: "FormListQuestionType",
			Handler:    _Box_FormListQuestionType_Handler,
		},
		{
			MethodName: "FormGet",
			Handler:    _Box_FormGet_Handler,
		},
		{
			MethodName: "FormSave",
			Handler:    _Box_FormSave_Handler,
		},
		{
			MethodName: "FormAnswerSave",
			Handler:    _Box_FormAnswerSave_Handler,
		},
		{
			MethodName: "FormList",
			Handler:    _Box_FormList_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/v1/box.proto",
}

Box_ServiceDesc is the grpc.ServiceDesc for Box service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_api_v1_box_proto protoreflect.FileDescriptor

Functions

func RegisterBoxHandler

func RegisterBoxHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterBoxHandler registers the http handlers for service Box to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterBoxHandlerClient

func RegisterBoxHandlerClient(ctx context.Context, mux *runtime.ServeMux, client BoxClient) error

RegisterBoxHandlerClient registers the http handlers for service Box to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "BoxClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "BoxClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "BoxClient" to call the correct interceptors.

func RegisterBoxHandlerFromEndpoint

func RegisterBoxHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterBoxHandlerFromEndpoint is same as RegisterBoxHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterBoxHandlerServer

func RegisterBoxHandlerServer(ctx context.Context, mux *runtime.ServeMux, server BoxServer) error

RegisterBoxHandlerServer registers the http handlers for service Box to "mux". UnaryRPC :call BoxServer 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 RegisterBoxHandlerFromEndpoint instead.

func RegisterBoxServer

func RegisterBoxServer(s grpc.ServiceRegistrar, srv BoxServer)

Types

type BoxClient

type BoxClient interface {
	Ping(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*Result, error)
	FormListQuestionType(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*FormListQuestionTypeResp, error)
	FormGet(ctx context.Context, in *FormGetReq, opts ...grpc.CallOption) (*FormGetResp, error)
	FormSave(ctx context.Context, in *FormSaveReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	FormAnswerSave(ctx context.Context, in *FormSaveReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	FormList(ctx context.Context, in *FormListReq, opts ...grpc.CallOption) (*FormListResp, error)
}

BoxClient is the client API for Box 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 NewBoxClient

func NewBoxClient(cc grpc.ClientConnInterface) BoxClient

type BoxServer

type BoxServer interface {
	Ping(context.Context, *emptypb.Empty) (*Result, error)
	FormListQuestionType(context.Context, *emptypb.Empty) (*FormListQuestionTypeResp, error)
	FormGet(context.Context, *FormGetReq) (*FormGetResp, error)
	FormSave(context.Context, *FormSaveReq) (*emptypb.Empty, error)
	FormAnswerSave(context.Context, *FormSaveReq) (*emptypb.Empty, error)
	FormList(context.Context, *FormListReq) (*FormListResp, error)
	// contains filtered or unexported methods
}

BoxServer is the server API for Box service. All implementations must embed UnimplementedBoxServer for forward compatibility

type FormGetReq

type FormGetReq struct {
	Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	// contains filtered or unexported fields
}

func (*FormGetReq) Descriptor deprecated

func (*FormGetReq) Descriptor() ([]byte, []int)

Deprecated: Use FormGetReq.ProtoReflect.Descriptor instead.

func (*FormGetReq) GetUuid

func (x *FormGetReq) GetUuid() string

func (*FormGetReq) ProtoMessage

func (*FormGetReq) ProtoMessage()

func (*FormGetReq) ProtoReflect

func (x *FormGetReq) ProtoReflect() protoreflect.Message

func (*FormGetReq) Reset

func (x *FormGetReq) Reset()

func (*FormGetReq) String

func (x *FormGetReq) String() string

func (*FormGetReq) Validate

func (m *FormGetReq) Validate() error

Validate checks the field values on FormGetReq with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type FormGetReqValidationError

type FormGetReqValidationError struct {
	// contains filtered or unexported fields
}

FormGetReqValidationError is the validation error returned by FormGetReq.Validate if the designated constraints aren't met.

func (FormGetReqValidationError) Cause

func (e FormGetReqValidationError) Cause() error

Cause function returns cause value.

func (FormGetReqValidationError) Error

Error satisfies the builtin error interface

func (FormGetReqValidationError) ErrorName

func (e FormGetReqValidationError) ErrorName() string

ErrorName returns error name.

func (FormGetReqValidationError) Field

Field function returns field value.

func (FormGetReqValidationError) Key

Key function returns key value.

func (FormGetReqValidationError) Reason

func (e FormGetReqValidationError) Reason() string

Reason function returns reason value.

type FormGetResp

type FormGetResp struct {
	Form *FormStruct `protobuf:"bytes,1,opt,name=form,proto3" json:"form,omitempty"`
	// contains filtered or unexported fields
}

func (*FormGetResp) Descriptor deprecated

func (*FormGetResp) Descriptor() ([]byte, []int)

Deprecated: Use FormGetResp.ProtoReflect.Descriptor instead.

func (*FormGetResp) GetForm

func (x *FormGetResp) GetForm() *FormStruct

func (*FormGetResp) ProtoMessage

func (*FormGetResp) ProtoMessage()

func (*FormGetResp) ProtoReflect

func (x *FormGetResp) ProtoReflect() protoreflect.Message

func (*FormGetResp) Reset

func (x *FormGetResp) Reset()

func (*FormGetResp) String

func (x *FormGetResp) String() string

func (*FormGetResp) Validate

func (m *FormGetResp) Validate() error

Validate checks the field values on FormGetResp with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type FormGetRespValidationError

type FormGetRespValidationError struct {
	// contains filtered or unexported fields
}

FormGetRespValidationError is the validation error returned by FormGetResp.Validate if the designated constraints aren't met.

func (FormGetRespValidationError) Cause

Cause function returns cause value.

func (FormGetRespValidationError) Error

Error satisfies the builtin error interface

func (FormGetRespValidationError) ErrorName

func (e FormGetRespValidationError) ErrorName() string

ErrorName returns error name.

func (FormGetRespValidationError) Field

Field function returns field value.

func (FormGetRespValidationError) Key

Key function returns key value.

func (FormGetRespValidationError) Reason

Reason function returns reason value.

type FormItemContent

type FormItemContent struct {
	ContentTitle string                    `protobuf:"bytes,1,opt,name=content_title,json=contentTitle,proto3" json:"content_title,omitempty"`
	ContentType  string                    `protobuf:"bytes,2,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"`
	ContentUuid  string                    `protobuf:"bytes,3,opt,name=content_uuid,json=contentUuid,proto3" json:"content_uuid,omitempty"`
	Options      []*FormItemContentOptions `protobuf:"bytes,4,rep,name=options,proto3" json:"options,omitempty"`
	Extend       *FormItemContentExtend    `protobuf:"bytes,5,opt,name=extend,proto3" json:"extend,omitempty"`
	UserAnswer   *UserAnswer               `protobuf:"bytes,6,opt,name=user_answer,json=userAnswer,proto3" json:"user_answer,omitempty"`
	// contains filtered or unexported fields
}

func (*FormItemContent) Descriptor deprecated

func (*FormItemContent) Descriptor() ([]byte, []int)

Deprecated: Use FormItemContent.ProtoReflect.Descriptor instead.

func (*FormItemContent) GetContentTitle

func (x *FormItemContent) GetContentTitle() string

func (*FormItemContent) GetContentType

func (x *FormItemContent) GetContentType() string

func (*FormItemContent) GetContentUuid

func (x *FormItemContent) GetContentUuid() string

func (*FormItemContent) GetExtend

func (x *FormItemContent) GetExtend() *FormItemContentExtend

func (*FormItemContent) GetOptions

func (x *FormItemContent) GetOptions() []*FormItemContentOptions

func (*FormItemContent) GetUserAnswer

func (x *FormItemContent) GetUserAnswer() *UserAnswer

func (*FormItemContent) ProtoMessage

func (*FormItemContent) ProtoMessage()

func (*FormItemContent) ProtoReflect

func (x *FormItemContent) ProtoReflect() protoreflect.Message

func (*FormItemContent) Reset

func (x *FormItemContent) Reset()

func (*FormItemContent) String

func (x *FormItemContent) String() string

func (*FormItemContent) Validate

func (m *FormItemContent) Validate() error

Validate checks the field values on FormItemContent with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type FormItemContentExtend

type FormItemContentExtend struct {
	Require bool `protobuf:"varint,1,opt,name=require,proto3" json:"require,omitempty"`
	// contains filtered or unexported fields
}

func (*FormItemContentExtend) Descriptor deprecated

func (*FormItemContentExtend) Descriptor() ([]byte, []int)

Deprecated: Use FormItemContentExtend.ProtoReflect.Descriptor instead.

func (*FormItemContentExtend) GetRequire

func (x *FormItemContentExtend) GetRequire() bool

func (*FormItemContentExtend) ProtoMessage

func (*FormItemContentExtend) ProtoMessage()

func (*FormItemContentExtend) ProtoReflect

func (x *FormItemContentExtend) ProtoReflect() protoreflect.Message

func (*FormItemContentExtend) Reset

func (x *FormItemContentExtend) Reset()

func (*FormItemContentExtend) String

func (x *FormItemContentExtend) String() string

func (*FormItemContentExtend) Validate

func (m *FormItemContentExtend) Validate() error

Validate checks the field values on FormItemContentExtend with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type FormItemContentExtendValidationError

type FormItemContentExtendValidationError struct {
	// contains filtered or unexported fields
}

FormItemContentExtendValidationError is the validation error returned by FormItemContentExtend.Validate if the designated constraints aren't met.

func (FormItemContentExtendValidationError) Cause

Cause function returns cause value.

func (FormItemContentExtendValidationError) Error

Error satisfies the builtin error interface

func (FormItemContentExtendValidationError) ErrorName

ErrorName returns error name.

func (FormItemContentExtendValidationError) Field

Field function returns field value.

func (FormItemContentExtendValidationError) Key

Key function returns key value.

func (FormItemContentExtendValidationError) Reason

Reason function returns reason value.

type FormItemContentOptions

type FormItemContentOptions struct {
	OptionType    string                         `protobuf:"bytes,1,opt,name=option_type,json=optionType,proto3" json:"option_type,omitempty"`
	OptionValue   string                         `protobuf:"bytes,2,opt,name=option_value,json=optionValue,proto3" json:"option_value,omitempty"`
	OptionContent *FormItemContentOptionsContent `protobuf:"bytes,3,opt,name=option_content,json=optionContent,proto3" json:"option_content,omitempty"`
	// contains filtered or unexported fields
}

func (*FormItemContentOptions) Descriptor deprecated

func (*FormItemContentOptions) Descriptor() ([]byte, []int)

Deprecated: Use FormItemContentOptions.ProtoReflect.Descriptor instead.

func (*FormItemContentOptions) GetOptionContent

func (*FormItemContentOptions) GetOptionType

func (x *FormItemContentOptions) GetOptionType() string

func (*FormItemContentOptions) GetOptionValue

func (x *FormItemContentOptions) GetOptionValue() string

func (*FormItemContentOptions) ProtoMessage

func (*FormItemContentOptions) ProtoMessage()

func (*FormItemContentOptions) ProtoReflect

func (x *FormItemContentOptions) ProtoReflect() protoreflect.Message

func (*FormItemContentOptions) Reset

func (x *FormItemContentOptions) Reset()

func (*FormItemContentOptions) String

func (x *FormItemContentOptions) String() string

func (*FormItemContentOptions) Validate

func (m *FormItemContentOptions) Validate() error

Validate checks the field values on FormItemContentOptions with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type FormItemContentOptionsContent

type FormItemContentOptionsContent struct {
	Text    string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
	Explain string `protobuf:"bytes,2,opt,name=explain,proto3" json:"explain,omitempty"`
	Img     string `protobuf:"bytes,3,opt,name=img,proto3" json:"img,omitempty"`
	// contains filtered or unexported fields
}

func (*FormItemContentOptionsContent) Descriptor deprecated

func (*FormItemContentOptionsContent) Descriptor() ([]byte, []int)

Deprecated: Use FormItemContentOptionsContent.ProtoReflect.Descriptor instead.

func (*FormItemContentOptionsContent) GetExplain

func (x *FormItemContentOptionsContent) GetExplain() string

func (*FormItemContentOptionsContent) GetImg

func (*FormItemContentOptionsContent) GetText

func (*FormItemContentOptionsContent) ProtoMessage

func (*FormItemContentOptionsContent) ProtoMessage()

func (*FormItemContentOptionsContent) ProtoReflect

func (*FormItemContentOptionsContent) Reset

func (x *FormItemContentOptionsContent) Reset()

func (*FormItemContentOptionsContent) String

func (*FormItemContentOptionsContent) Validate

func (m *FormItemContentOptionsContent) Validate() error

Validate checks the field values on FormItemContentOptionsContent with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type FormItemContentOptionsContentValidationError

type FormItemContentOptionsContentValidationError struct {
	// contains filtered or unexported fields
}

FormItemContentOptionsContentValidationError is the validation error returned by FormItemContentOptionsContent.Validate if the designated constraints aren't met.

func (FormItemContentOptionsContentValidationError) Cause

Cause function returns cause value.

func (FormItemContentOptionsContentValidationError) Error

Error satisfies the builtin error interface

func (FormItemContentOptionsContentValidationError) ErrorName

ErrorName returns error name.

func (FormItemContentOptionsContentValidationError) Field

Field function returns field value.

func (FormItemContentOptionsContentValidationError) Key

Key function returns key value.

func (FormItemContentOptionsContentValidationError) Reason

Reason function returns reason value.

type FormItemContentOptionsValidationError

type FormItemContentOptionsValidationError struct {
	// contains filtered or unexported fields
}

FormItemContentOptionsValidationError is the validation error returned by FormItemContentOptions.Validate if the designated constraints aren't met.

func (FormItemContentOptionsValidationError) Cause

Cause function returns cause value.

func (FormItemContentOptionsValidationError) Error

Error satisfies the builtin error interface

func (FormItemContentOptionsValidationError) ErrorName

ErrorName returns error name.

func (FormItemContentOptionsValidationError) Field

Field function returns field value.

func (FormItemContentOptionsValidationError) Key

Key function returns key value.

func (FormItemContentOptionsValidationError) Reason

Reason function returns reason value.

type FormItemContentValidationError

type FormItemContentValidationError struct {
	// contains filtered or unexported fields
}

FormItemContentValidationError is the validation error returned by FormItemContent.Validate if the designated constraints aren't met.

func (FormItemContentValidationError) Cause

Cause function returns cause value.

func (FormItemContentValidationError) Error

Error satisfies the builtin error interface

func (FormItemContentValidationError) ErrorName

func (e FormItemContentValidationError) ErrorName() string

ErrorName returns error name.

func (FormItemContentValidationError) Field

Field function returns field value.

func (FormItemContentValidationError) Key

Key function returns key value.

func (FormItemContentValidationError) Reason

Reason function returns reason value.

type FormItems

type FormItems struct {
	Content          *FormItemContent `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
	QuestionTypeName string           `protobuf:"bytes,2,opt,name=question_type_name,json=questionTypeName,proto3" json:"question_type_name,omitempty"`
	// contains filtered or unexported fields
}

func (*FormItems) Descriptor deprecated

func (*FormItems) Descriptor() ([]byte, []int)

Deprecated: Use FormItems.ProtoReflect.Descriptor instead.

func (*FormItems) GetContent

func (x *FormItems) GetContent() *FormItemContent

func (*FormItems) GetQuestionTypeName

func (x *FormItems) GetQuestionTypeName() string

func (*FormItems) ProtoMessage

func (*FormItems) ProtoMessage()

func (*FormItems) ProtoReflect

func (x *FormItems) ProtoReflect() protoreflect.Message

func (*FormItems) Reset

func (x *FormItems) Reset()

func (*FormItems) String

func (x *FormItems) String() string

func (*FormItems) Validate

func (m *FormItems) Validate() error

Validate checks the field values on FormItems with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type FormItemsValidationError

type FormItemsValidationError struct {
	// contains filtered or unexported fields
}

FormItemsValidationError is the validation error returned by FormItems.Validate if the designated constraints aren't met.

func (FormItemsValidationError) Cause

func (e FormItemsValidationError) Cause() error

Cause function returns cause value.

func (FormItemsValidationError) Error

func (e FormItemsValidationError) Error() string

Error satisfies the builtin error interface

func (FormItemsValidationError) ErrorName

func (e FormItemsValidationError) ErrorName() string

ErrorName returns error name.

func (FormItemsValidationError) Field

func (e FormItemsValidationError) Field() string

Field function returns field value.

func (FormItemsValidationError) Key

Key function returns key value.

func (FormItemsValidationError) Reason

func (e FormItemsValidationError) Reason() string

Reason function returns reason value.

type FormListQuestionTypeResp

type FormListQuestionTypeResp struct {
	List []*FormItems `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

func (*FormListQuestionTypeResp) Descriptor deprecated

func (*FormListQuestionTypeResp) Descriptor() ([]byte, []int)

Deprecated: Use FormListQuestionTypeResp.ProtoReflect.Descriptor instead.

func (*FormListQuestionTypeResp) GetList

func (x *FormListQuestionTypeResp) GetList() []*FormItems

func (*FormListQuestionTypeResp) ProtoMessage

func (*FormListQuestionTypeResp) ProtoMessage()

func (*FormListQuestionTypeResp) ProtoReflect

func (x *FormListQuestionTypeResp) ProtoReflect() protoreflect.Message

func (*FormListQuestionTypeResp) Reset

func (x *FormListQuestionTypeResp) Reset()

func (*FormListQuestionTypeResp) String

func (x *FormListQuestionTypeResp) String() string

func (*FormListQuestionTypeResp) Validate

func (m *FormListQuestionTypeResp) Validate() error

Validate checks the field values on FormListQuestionTypeResp with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type FormListQuestionTypeRespValidationError

type FormListQuestionTypeRespValidationError struct {
	// contains filtered or unexported fields
}

FormListQuestionTypeRespValidationError is the validation error returned by FormListQuestionTypeResp.Validate if the designated constraints aren't met.

func (FormListQuestionTypeRespValidationError) Cause

Cause function returns cause value.

func (FormListQuestionTypeRespValidationError) Error

Error satisfies the builtin error interface

func (FormListQuestionTypeRespValidationError) ErrorName

ErrorName returns error name.

func (FormListQuestionTypeRespValidationError) Field

Field function returns field value.

func (FormListQuestionTypeRespValidationError) Key

Key function returns key value.

func (FormListQuestionTypeRespValidationError) Reason

Reason function returns reason value.

type FormListReq

type FormListReq struct {
	// contains filtered or unexported fields
}

func (*FormListReq) Descriptor deprecated

func (*FormListReq) Descriptor() ([]byte, []int)

Deprecated: Use FormListReq.ProtoReflect.Descriptor instead.

func (*FormListReq) ProtoMessage

func (*FormListReq) ProtoMessage()

func (*FormListReq) ProtoReflect

func (x *FormListReq) ProtoReflect() protoreflect.Message

func (*FormListReq) Reset

func (x *FormListReq) Reset()

func (*FormListReq) String

func (x *FormListReq) String() string

func (*FormListReq) Validate

func (m *FormListReq) Validate() error

Validate checks the field values on FormListReq with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type FormListReqValidationError

type FormListReqValidationError struct {
	// contains filtered or unexported fields
}

FormListReqValidationError is the validation error returned by FormListReq.Validate if the designated constraints aren't met.

func (FormListReqValidationError) Cause

Cause function returns cause value.

func (FormListReqValidationError) Error

Error satisfies the builtin error interface

func (FormListReqValidationError) ErrorName

func (e FormListReqValidationError) ErrorName() string

ErrorName returns error name.

func (FormListReqValidationError) Field

Field function returns field value.

func (FormListReqValidationError) Key

Key function returns key value.

func (FormListReqValidationError) Reason

Reason function returns reason value.

type FormListResp

type FormListResp struct {
	List []*FormListResp_FormList `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

func (*FormListResp) Descriptor deprecated

func (*FormListResp) Descriptor() ([]byte, []int)

Deprecated: Use FormListResp.ProtoReflect.Descriptor instead.

func (*FormListResp) GetList

func (x *FormListResp) GetList() []*FormListResp_FormList

func (*FormListResp) ProtoMessage

func (*FormListResp) ProtoMessage()

func (*FormListResp) ProtoReflect

func (x *FormListResp) ProtoReflect() protoreflect.Message

func (*FormListResp) Reset

func (x *FormListResp) Reset()

func (*FormListResp) String

func (x *FormListResp) String() string

func (*FormListResp) Validate

func (m *FormListResp) Validate() error

Validate checks the field values on FormListResp with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type FormListRespValidationError

type FormListRespValidationError struct {
	// contains filtered or unexported fields
}

FormListRespValidationError is the validation error returned by FormListResp.Validate if the designated constraints aren't met.

func (FormListRespValidationError) Cause

Cause function returns cause value.

func (FormListRespValidationError) Error

Error satisfies the builtin error interface

func (FormListRespValidationError) ErrorName

func (e FormListRespValidationError) ErrorName() string

ErrorName returns error name.

func (FormListRespValidationError) Field

Field function returns field value.

func (FormListRespValidationError) Key

Key function returns key value.

func (FormListRespValidationError) Reason

Reason function returns reason value.

type FormListResp_FormList

type FormListResp_FormList struct {
	Uuid      string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	FormTitle string `protobuf:"bytes,2,opt,name=form_title,json=formTitle,proto3" json:"form_title,omitempty"`
	SubTitle  string `protobuf:"bytes,3,opt,name=sub_title,json=subTitle,proto3" json:"sub_title,omitempty"`
	// contains filtered or unexported fields
}

func (*FormListResp_FormList) Descriptor deprecated

func (*FormListResp_FormList) Descriptor() ([]byte, []int)

Deprecated: Use FormListResp_FormList.ProtoReflect.Descriptor instead.

func (*FormListResp_FormList) GetFormTitle

func (x *FormListResp_FormList) GetFormTitle() string

func (*FormListResp_FormList) GetSubTitle

func (x *FormListResp_FormList) GetSubTitle() string

func (*FormListResp_FormList) GetUuid

func (x *FormListResp_FormList) GetUuid() string

func (*FormListResp_FormList) ProtoMessage

func (*FormListResp_FormList) ProtoMessage()

func (*FormListResp_FormList) ProtoReflect

func (x *FormListResp_FormList) ProtoReflect() protoreflect.Message

func (*FormListResp_FormList) Reset

func (x *FormListResp_FormList) Reset()

func (*FormListResp_FormList) String

func (x *FormListResp_FormList) String() string

func (*FormListResp_FormList) Validate

func (m *FormListResp_FormList) Validate() error

Validate checks the field values on FormListResp_FormList with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type FormListResp_FormListValidationError

type FormListResp_FormListValidationError struct {
	// contains filtered or unexported fields
}

FormListResp_FormListValidationError is the validation error returned by FormListResp_FormList.Validate if the designated constraints aren't met.

func (FormListResp_FormListValidationError) Cause

Cause function returns cause value.

func (FormListResp_FormListValidationError) Error

Error satisfies the builtin error interface

func (FormListResp_FormListValidationError) ErrorName

ErrorName returns error name.

func (FormListResp_FormListValidationError) Field

Field function returns field value.

func (FormListResp_FormListValidationError) Key

Key function returns key value.

func (FormListResp_FormListValidationError) Reason

Reason function returns reason value.

type FormSaveReq

type FormSaveReq struct {
	Form *FormStruct `protobuf:"bytes,1,opt,name=form,proto3" json:"form,omitempty"`
	// contains filtered or unexported fields
}

func (*FormSaveReq) Descriptor deprecated

func (*FormSaveReq) Descriptor() ([]byte, []int)

Deprecated: Use FormSaveReq.ProtoReflect.Descriptor instead.

func (*FormSaveReq) GetForm

func (x *FormSaveReq) GetForm() *FormStruct

func (*FormSaveReq) ProtoMessage

func (*FormSaveReq) ProtoMessage()

func (*FormSaveReq) ProtoReflect

func (x *FormSaveReq) ProtoReflect() protoreflect.Message

func (*FormSaveReq) Reset

func (x *FormSaveReq) Reset()

func (*FormSaveReq) String

func (x *FormSaveReq) String() string

func (*FormSaveReq) Validate

func (m *FormSaveReq) Validate() error

Validate checks the field values on FormSaveReq with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type FormSaveReqValidationError

type FormSaveReqValidationError struct {
	// contains filtered or unexported fields
}

FormSaveReqValidationError is the validation error returned by FormSaveReq.Validate if the designated constraints aren't met.

func (FormSaveReqValidationError) Cause

Cause function returns cause value.

func (FormSaveReqValidationError) Error

Error satisfies the builtin error interface

func (FormSaveReqValidationError) ErrorName

func (e FormSaveReqValidationError) ErrorName() string

ErrorName returns error name.

func (FormSaveReqValidationError) Field

Field function returns field value.

func (FormSaveReqValidationError) Key

Key function returns key value.

func (FormSaveReqValidationError) Reason

Reason function returns reason value.

type FormStruct

type FormStruct struct {
	FormTitle string       `protobuf:"bytes,1,opt,name=form_title,json=formTitle,proto3" json:"form_title,omitempty"`
	SubTitle  string       `protobuf:"bytes,2,opt,name=sub_title,json=subTitle,proto3" json:"sub_title,omitempty"`
	FormUuid  string       `protobuf:"bytes,3,opt,name=form_uuid,json=formUuid,proto3" json:"form_uuid,omitempty"`
	Items     []*FormItems `protobuf:"bytes,4,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

表单结构 -----------

func (*FormStruct) Descriptor deprecated

func (*FormStruct) Descriptor() ([]byte, []int)

Deprecated: Use FormStruct.ProtoReflect.Descriptor instead.

func (*FormStruct) GetFormTitle

func (x *FormStruct) GetFormTitle() string

func (*FormStruct) GetFormUuid

func (x *FormStruct) GetFormUuid() string

func (*FormStruct) GetItems

func (x *FormStruct) GetItems() []*FormItems

func (*FormStruct) GetSubTitle

func (x *FormStruct) GetSubTitle() string

func (*FormStruct) ProtoMessage

func (*FormStruct) ProtoMessage()

func (*FormStruct) ProtoReflect

func (x *FormStruct) ProtoReflect() protoreflect.Message

func (*FormStruct) Reset

func (x *FormStruct) Reset()

func (*FormStruct) String

func (x *FormStruct) String() string

func (*FormStruct) Validate

func (m *FormStruct) Validate() error

Validate checks the field values on FormStruct with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type FormStructValidationError

type FormStructValidationError struct {
	// contains filtered or unexported fields
}

FormStructValidationError is the validation error returned by FormStruct.Validate if the designated constraints aren't met.

func (FormStructValidationError) Cause

func (e FormStructValidationError) Cause() error

Cause function returns cause value.

func (FormStructValidationError) Error

Error satisfies the builtin error interface

func (FormStructValidationError) ErrorName

func (e FormStructValidationError) ErrorName() string

ErrorName returns error name.

func (FormStructValidationError) Field

Field function returns field value.

func (FormStructValidationError) Key

Key function returns key value.

func (FormStructValidationError) Reason

func (e FormStructValidationError) Reason() string

Reason function returns reason value.

type Result

type Result struct {
	Code    int64      `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message string     `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Data    *anypb.Any `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*Result) Descriptor deprecated

func (*Result) Descriptor() ([]byte, []int)

Deprecated: Use Result.ProtoReflect.Descriptor instead.

func (*Result) GetCode

func (x *Result) GetCode() int64

func (*Result) GetData

func (x *Result) GetData() *anypb.Any

func (*Result) GetMessage

func (x *Result) GetMessage() string

func (*Result) ProtoMessage

func (*Result) ProtoMessage()

func (*Result) ProtoReflect

func (x *Result) ProtoReflect() protoreflect.Message

func (*Result) Reset

func (x *Result) Reset()

func (*Result) String

func (x *Result) String() string

func (*Result) Validate

func (m *Result) Validate() error

Validate checks the field values on Result with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type ResultValidationError

type ResultValidationError struct {
	// contains filtered or unexported fields
}

ResultValidationError is the validation error returned by Result.Validate if the designated constraints aren't met.

func (ResultValidationError) Cause

func (e ResultValidationError) Cause() error

Cause function returns cause value.

func (ResultValidationError) Error

func (e ResultValidationError) Error() string

Error satisfies the builtin error interface

func (ResultValidationError) ErrorName

func (e ResultValidationError) ErrorName() string

ErrorName returns error name.

func (ResultValidationError) Field

func (e ResultValidationError) Field() string

Field function returns field value.

func (ResultValidationError) Key

func (e ResultValidationError) Key() bool

Key function returns key value.

func (ResultValidationError) Reason

func (e ResultValidationError) Reason() string

Reason function returns reason value.

type UnimplementedBoxServer

type UnimplementedBoxServer struct {
}

UnimplementedBoxServer must be embedded to have forward compatible implementations.

func (UnimplementedBoxServer) FormAnswerSave

func (UnimplementedBoxServer) FormGet

func (UnimplementedBoxServer) FormList

func (UnimplementedBoxServer) FormListQuestionType

func (UnimplementedBoxServer) FormSave

func (UnimplementedBoxServer) Ping

type UnsafeBoxServer

type UnsafeBoxServer interface {
	// contains filtered or unexported methods
}

UnsafeBoxServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BoxServer will result in compilation errors.

type UserAnswer

type UserAnswer struct {
	Other    string   `protobuf:"bytes,1,opt,name=other,proto3" json:"other,omitempty"`
	Select   string   `protobuf:"bytes,2,opt,name=select,proto3" json:"select,omitempty"`
	ArrValue []string `protobuf:"bytes,3,rep,name=arr_value,json=arrValue,proto3" json:"arr_value,omitempty"`
	// contains filtered or unexported fields
}

func (*UserAnswer) Descriptor deprecated

func (*UserAnswer) Descriptor() ([]byte, []int)

Deprecated: Use UserAnswer.ProtoReflect.Descriptor instead.

func (*UserAnswer) GetArrValue

func (x *UserAnswer) GetArrValue() []string

func (*UserAnswer) GetOther

func (x *UserAnswer) GetOther() string

func (*UserAnswer) GetSelect

func (x *UserAnswer) GetSelect() string

func (*UserAnswer) ProtoMessage

func (*UserAnswer) ProtoMessage()

func (*UserAnswer) ProtoReflect

func (x *UserAnswer) ProtoReflect() protoreflect.Message

func (*UserAnswer) Reset

func (x *UserAnswer) Reset()

func (*UserAnswer) String

func (x *UserAnswer) String() string

func (*UserAnswer) Validate

func (m *UserAnswer) Validate() error

Validate checks the field values on UserAnswer with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type UserAnswerValidationError

type UserAnswerValidationError struct {
	// contains filtered or unexported fields
}

UserAnswerValidationError is the validation error returned by UserAnswer.Validate if the designated constraints aren't met.

func (UserAnswerValidationError) Cause

func (e UserAnswerValidationError) Cause() error

Cause function returns cause value.

func (UserAnswerValidationError) Error

Error satisfies the builtin error interface

func (UserAnswerValidationError) ErrorName

func (e UserAnswerValidationError) ErrorName() string

ErrorName returns error name.

func (UserAnswerValidationError) Field

Field function returns field value.

func (UserAnswerValidationError) Key

Key function returns key value.

func (UserAnswerValidationError) Reason

func (e UserAnswerValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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