Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterCheckHTTPServer(s *http.Server, srv CheckHTTPServer)
- func RegisterCheckServer(s grpc.ServiceRegistrar, srv CheckServer)
- type BatchDeleteChecksReply
- func (*BatchDeleteChecksReply) Descriptor() ([]byte, []int)deprecated
- func (x *BatchDeleteChecksReply) GetCode() int32
- func (x *BatchDeleteChecksReply) GetMsg() string
- func (*BatchDeleteChecksReply) ProtoMessage()
- func (x *BatchDeleteChecksReply) ProtoReflect() protoreflect.Message
- func (x *BatchDeleteChecksReply) Reset()
- func (x *BatchDeleteChecksReply) String() string
- type BatchDeleteChecksRequest
- func (*BatchDeleteChecksRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BatchDeleteChecksRequest) GetCheckIds() []int64
- func (*BatchDeleteChecksRequest) ProtoMessage()
- func (x *BatchDeleteChecksRequest) ProtoReflect() protoreflect.Message
- func (x *BatchDeleteChecksRequest) Reset()
- func (x *BatchDeleteChecksRequest) String() string
- type BatchSubmitChecksReply
- func (*BatchSubmitChecksReply) Descriptor() ([]byte, []int)deprecated
- func (x *BatchSubmitChecksReply) GetCode() int32
- func (x *BatchSubmitChecksReply) GetMsg() string
- func (*BatchSubmitChecksReply) ProtoMessage()
- func (x *BatchSubmitChecksReply) ProtoReflect() protoreflect.Message
- func (x *BatchSubmitChecksReply) Reset()
- func (x *BatchSubmitChecksReply) String() string
- type BatchSubmitChecksRequest
- func (*BatchSubmitChecksRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BatchSubmitChecksRequest) GetChecks() []*ListOrGetCheck
- func (*BatchSubmitChecksRequest) ProtoMessage()
- func (x *BatchSubmitChecksRequest) ProtoReflect() protoreflect.Message
- func (x *BatchSubmitChecksRequest) Reset()
- func (x *BatchSubmitChecksRequest) String() string
- type CheckClient
- type CheckHTTPClient
- type CheckHTTPClientImpl
- func (c *CheckHTTPClientImpl) BatchDeleteChecks(ctx context.Context, in *BatchDeleteChecksRequest, opts ...http.CallOption) (*BatchDeleteChecksReply, error)
- func (c *CheckHTTPClientImpl) BatchSubmitChecks(ctx context.Context, in *BatchSubmitChecksRequest, opts ...http.CallOption) (*BatchSubmitChecksReply, error)
- func (c *CheckHTTPClientImpl) DeleteCheck(ctx context.Context, in *DeleteCheckRequest, opts ...http.CallOption) (*DeleteCheckReply, error)
- func (c *CheckHTTPClientImpl) GetCheckById(ctx context.Context, in *GetCheckByIdRequest, opts ...http.CallOption) (*GetCheckByIdReply, error)
- func (c *CheckHTTPClientImpl) ListChecks(ctx context.Context, in *ListChecksRequest, opts ...http.CallOption) (*ListChecksReply, error)
- func (c *CheckHTTPClientImpl) SubmitCheck(ctx context.Context, in *SubmitCheckRequest, opts ...http.CallOption) (*SubmitCheckReply, error)
- func (c *CheckHTTPClientImpl) UpdateCheck(ctx context.Context, in *UpdateCheckRequest, opts ...http.CallOption) (*UpdateCheckReply, error)
- type CheckHTTPServer
- type CheckServer
- type CreateCheckReply
- func (*CreateCheckReply) Descriptor() ([]byte, []int)deprecated
- func (x *CreateCheckReply) GetCheckId() int64
- func (x *CreateCheckReply) GetCode() int32
- func (x *CreateCheckReply) GetMsg() string
- func (*CreateCheckReply) ProtoMessage()
- func (x *CreateCheckReply) ProtoReflect() protoreflect.Message
- func (x *CreateCheckReply) Reset()
- func (x *CreateCheckReply) String() string
- type CreateCheckRequest
- func (*CreateCheckRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateCheckRequest) GetPostId() int64
- func (*CreateCheckRequest) ProtoMessage()
- func (x *CreateCheckRequest) ProtoReflect() protoreflect.Message
- func (x *CreateCheckRequest) Reset()
- func (x *CreateCheckRequest) String() string
- type DeleteCheckReply
- func (*DeleteCheckReply) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteCheckReply) GetCode() int32
- func (x *DeleteCheckReply) GetMsg() string
- func (*DeleteCheckReply) ProtoMessage()
- func (x *DeleteCheckReply) ProtoReflect() protoreflect.Message
- func (x *DeleteCheckReply) Reset()
- func (x *DeleteCheckReply) String() string
- type DeleteCheckRequest
- func (*DeleteCheckRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteCheckRequest) GetCheckId() int64
- func (*DeleteCheckRequest) ProtoMessage()
- func (x *DeleteCheckRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteCheckRequest) Reset()
- func (x *DeleteCheckRequest) String() string
- type GetCheckByIdReply
- func (*GetCheckByIdReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetCheckByIdReply) GetCode() int32
- func (x *GetCheckByIdReply) GetData() *ListOrGetCheck
- func (x *GetCheckByIdReply) GetMsg() string
- func (*GetCheckByIdReply) ProtoMessage()
- func (x *GetCheckByIdReply) ProtoReflect() protoreflect.Message
- func (x *GetCheckByIdReply) Reset()
- func (x *GetCheckByIdReply) String() string
- type GetCheckByIdRequest
- func (*GetCheckByIdRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetCheckByIdRequest) GetCheckId() int64
- func (*GetCheckByIdRequest) ProtoMessage()
- func (x *GetCheckByIdRequest) ProtoReflect() protoreflect.Message
- func (x *GetCheckByIdRequest) Reset()
- func (x *GetCheckByIdRequest) String() string
- type ListChecksReply
- func (*ListChecksReply) Descriptor() ([]byte, []int)deprecated
- func (x *ListChecksReply) GetCode() int32
- func (x *ListChecksReply) GetData() []*ListOrGetCheck
- func (x *ListChecksReply) GetMsg() string
- func (*ListChecksReply) ProtoMessage()
- func (x *ListChecksReply) ProtoReflect() protoreflect.Message
- func (x *ListChecksReply) Reset()
- func (x *ListChecksReply) String() string
- type ListChecksRequest
- func (*ListChecksRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListChecksRequest) GetPage() int32
- func (x *ListChecksRequest) GetSize() int64
- func (x *ListChecksRequest) GetStatus() string
- func (*ListChecksRequest) ProtoMessage()
- func (x *ListChecksRequest) ProtoReflect() protoreflect.Message
- func (x *ListChecksRequest) Reset()
- func (x *ListChecksRequest) String() string
- type ListOrGetCheck
- func (*ListOrGetCheck) Descriptor() ([]byte, []int)deprecated
- func (x *ListOrGetCheck) GetContent() string
- func (x *ListOrGetCheck) GetCreatedAt() int64
- func (x *ListOrGetCheck) GetId() int64
- func (x *ListOrGetCheck) GetPostId() int64
- func (x *ListOrGetCheck) GetRemark() string
- func (x *ListOrGetCheck) GetStatus() string
- func (x *ListOrGetCheck) GetTitle() string
- func (x *ListOrGetCheck) GetUpdatedAt() int64
- func (x *ListOrGetCheck) GetUserId() int64
- func (*ListOrGetCheck) ProtoMessage()
- func (x *ListOrGetCheck) ProtoReflect() protoreflect.Message
- func (x *ListOrGetCheck) Reset()
- func (x *ListOrGetCheck) String() string
- type SubmitCheckReply
- func (*SubmitCheckReply) Descriptor() ([]byte, []int)deprecated
- func (x *SubmitCheckReply) GetCode() int32
- func (x *SubmitCheckReply) GetMsg() string
- func (*SubmitCheckReply) ProtoMessage()
- func (x *SubmitCheckReply) ProtoReflect() protoreflect.Message
- func (x *SubmitCheckReply) Reset()
- func (x *SubmitCheckReply) String() string
- type SubmitCheckRequest
- func (*SubmitCheckRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SubmitCheckRequest) GetApproved() bool
- func (x *SubmitCheckRequest) GetCheckId() int64
- func (x *SubmitCheckRequest) GetPostId() int64
- func (*SubmitCheckRequest) ProtoMessage()
- func (x *SubmitCheckRequest) ProtoReflect() protoreflect.Message
- func (x *SubmitCheckRequest) Reset()
- func (x *SubmitCheckRequest) String() string
- type UnimplementedCheckServer
- func (UnimplementedCheckServer) BatchDeleteChecks(context.Context, *BatchDeleteChecksRequest) (*BatchDeleteChecksReply, error)
- func (UnimplementedCheckServer) BatchSubmitChecks(context.Context, *BatchSubmitChecksRequest) (*BatchSubmitChecksReply, error)
- func (UnimplementedCheckServer) CreateCheck(context.Context, *CreateCheckRequest) (*CreateCheckReply, error)
- func (UnimplementedCheckServer) DeleteCheck(context.Context, *DeleteCheckRequest) (*DeleteCheckReply, error)
- func (UnimplementedCheckServer) GetCheckById(context.Context, *GetCheckByIdRequest) (*GetCheckByIdReply, error)
- func (UnimplementedCheckServer) ListChecks(context.Context, *ListChecksRequest) (*ListChecksReply, error)
- func (UnimplementedCheckServer) SubmitCheck(context.Context, *SubmitCheckRequest) (*SubmitCheckReply, error)
- func (UnimplementedCheckServer) UpdateCheck(context.Context, *UpdateCheckRequest) (*UpdateCheckReply, error)
- type UnsafeCheckServer
- type UpdateCheckReply
- func (*UpdateCheckReply) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateCheckReply) GetCode() int32
- func (x *UpdateCheckReply) GetMsg() string
- func (*UpdateCheckReply) ProtoMessage()
- func (x *UpdateCheckReply) ProtoReflect() protoreflect.Message
- func (x *UpdateCheckReply) Reset()
- func (x *UpdateCheckReply) String() string
- type UpdateCheckRequest
- func (*UpdateCheckRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateCheckRequest) GetCheck() *ListOrGetCheck
- func (*UpdateCheckRequest) ProtoMessage()
- func (x *UpdateCheckRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateCheckRequest) Reset()
- func (x *UpdateCheckRequest) String() string
Constants ¶
const ( Check_CreateCheck_FullMethodName = "/api.check.v1.Check/CreateCheck" Check_DeleteCheck_FullMethodName = "/api.check.v1.Check/DeleteCheck" Check_UpdateCheck_FullMethodName = "/api.check.v1.Check/UpdateCheck" Check_GetCheckById_FullMethodName = "/api.check.v1.Check/GetCheckById" Check_ListChecks_FullMethodName = "/api.check.v1.Check/ListChecks" Check_SubmitCheck_FullMethodName = "/api.check.v1.Check/SubmitCheck" Check_BatchDeleteChecks_FullMethodName = "/api.check.v1.Check/BatchDeleteChecks" Check_BatchSubmitChecks_FullMethodName = "/api.check.v1.Check/BatchSubmitChecks" )
const OperationCheckBatchDeleteChecks = "/api.check.v1.Check/BatchDeleteChecks"
const OperationCheckBatchSubmitChecks = "/api.check.v1.Check/BatchSubmitChecks"
const OperationCheckDeleteCheck = "/api.check.v1.Check/DeleteCheck"
const OperationCheckGetCheckById = "/api.check.v1.Check/GetCheckById"
const OperationCheckListChecks = "/api.check.v1.Check/ListChecks"
const OperationCheckSubmitCheck = "/api.check.v1.Check/SubmitCheck"
const OperationCheckUpdateCheck = "/api.check.v1.Check/UpdateCheck"
Variables ¶
var Check_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.check.v1.Check", HandlerType: (*CheckServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateCheck", Handler: _Check_CreateCheck_Handler, }, { MethodName: "DeleteCheck", Handler: _Check_DeleteCheck_Handler, }, { MethodName: "UpdateCheck", Handler: _Check_UpdateCheck_Handler, }, { MethodName: "GetCheckById", Handler: _Check_GetCheckById_Handler, }, { MethodName: "ListChecks", Handler: _Check_ListChecks_Handler, }, { MethodName: "SubmitCheck", Handler: _Check_SubmitCheck_Handler, }, { MethodName: "BatchDeleteChecks", Handler: _Check_BatchDeleteChecks_Handler, }, { MethodName: "BatchSubmitChecks", Handler: _Check_BatchSubmitChecks_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/check/v1/check.proto", }
Check_ServiceDesc is the grpc.ServiceDesc for Check service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_api_check_v1_check_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCheckHTTPServer ¶
func RegisterCheckHTTPServer(s *http.Server, srv CheckHTTPServer)
func RegisterCheckServer ¶
func RegisterCheckServer(s grpc.ServiceRegistrar, srv CheckServer)
Types ¶
type BatchDeleteChecksReply ¶
type BatchDeleteChecksReply struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*BatchDeleteChecksReply) Descriptor
deprecated
func (*BatchDeleteChecksReply) Descriptor() ([]byte, []int)
Deprecated: Use BatchDeleteChecksReply.ProtoReflect.Descriptor instead.
func (*BatchDeleteChecksReply) GetCode ¶
func (x *BatchDeleteChecksReply) GetCode() int32
func (*BatchDeleteChecksReply) GetMsg ¶
func (x *BatchDeleteChecksReply) GetMsg() string
func (*BatchDeleteChecksReply) ProtoMessage ¶
func (*BatchDeleteChecksReply) ProtoMessage()
func (*BatchDeleteChecksReply) ProtoReflect ¶
func (x *BatchDeleteChecksReply) ProtoReflect() protoreflect.Message
func (*BatchDeleteChecksReply) Reset ¶
func (x *BatchDeleteChecksReply) Reset()
func (*BatchDeleteChecksReply) String ¶
func (x *BatchDeleteChecksReply) String() string
type BatchDeleteChecksRequest ¶
type BatchDeleteChecksRequest struct { CheckIds []int64 `protobuf:"varint,1,rep,packed,name=checkIds,proto3" json:"checkIds,omitempty"` // contains filtered or unexported fields }
func (*BatchDeleteChecksRequest) Descriptor
deprecated
func (*BatchDeleteChecksRequest) Descriptor() ([]byte, []int)
Deprecated: Use BatchDeleteChecksRequest.ProtoReflect.Descriptor instead.
func (*BatchDeleteChecksRequest) GetCheckIds ¶
func (x *BatchDeleteChecksRequest) GetCheckIds() []int64
func (*BatchDeleteChecksRequest) ProtoMessage ¶
func (*BatchDeleteChecksRequest) ProtoMessage()
func (*BatchDeleteChecksRequest) ProtoReflect ¶
func (x *BatchDeleteChecksRequest) ProtoReflect() protoreflect.Message
func (*BatchDeleteChecksRequest) Reset ¶
func (x *BatchDeleteChecksRequest) Reset()
func (*BatchDeleteChecksRequest) String ¶
func (x *BatchDeleteChecksRequest) String() string
type BatchSubmitChecksReply ¶
type BatchSubmitChecksReply struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*BatchSubmitChecksReply) Descriptor
deprecated
func (*BatchSubmitChecksReply) Descriptor() ([]byte, []int)
Deprecated: Use BatchSubmitChecksReply.ProtoReflect.Descriptor instead.
func (*BatchSubmitChecksReply) GetCode ¶
func (x *BatchSubmitChecksReply) GetCode() int32
func (*BatchSubmitChecksReply) GetMsg ¶
func (x *BatchSubmitChecksReply) GetMsg() string
func (*BatchSubmitChecksReply) ProtoMessage ¶
func (*BatchSubmitChecksReply) ProtoMessage()
func (*BatchSubmitChecksReply) ProtoReflect ¶
func (x *BatchSubmitChecksReply) ProtoReflect() protoreflect.Message
func (*BatchSubmitChecksReply) Reset ¶
func (x *BatchSubmitChecksReply) Reset()
func (*BatchSubmitChecksReply) String ¶
func (x *BatchSubmitChecksReply) String() string
type BatchSubmitChecksRequest ¶
type BatchSubmitChecksRequest struct { Checks []*ListOrGetCheck `protobuf:"bytes,1,rep,name=checks,proto3" json:"checks,omitempty"` // contains filtered or unexported fields }
func (*BatchSubmitChecksRequest) Descriptor
deprecated
func (*BatchSubmitChecksRequest) Descriptor() ([]byte, []int)
Deprecated: Use BatchSubmitChecksRequest.ProtoReflect.Descriptor instead.
func (*BatchSubmitChecksRequest) GetChecks ¶
func (x *BatchSubmitChecksRequest) GetChecks() []*ListOrGetCheck
func (*BatchSubmitChecksRequest) ProtoMessage ¶
func (*BatchSubmitChecksRequest) ProtoMessage()
func (*BatchSubmitChecksRequest) ProtoReflect ¶
func (x *BatchSubmitChecksRequest) ProtoReflect() protoreflect.Message
func (*BatchSubmitChecksRequest) Reset ¶
func (x *BatchSubmitChecksRequest) Reset()
func (*BatchSubmitChecksRequest) String ¶
func (x *BatchSubmitChecksRequest) String() string
type CheckClient ¶
type CheckClient interface { CreateCheck(ctx context.Context, in *CreateCheckRequest, opts ...grpc.CallOption) (*CreateCheckReply, error) DeleteCheck(ctx context.Context, in *DeleteCheckRequest, opts ...grpc.CallOption) (*DeleteCheckReply, error) UpdateCheck(ctx context.Context, in *UpdateCheckRequest, opts ...grpc.CallOption) (*UpdateCheckReply, error) GetCheckById(ctx context.Context, in *GetCheckByIdRequest, opts ...grpc.CallOption) (*GetCheckByIdReply, error) ListChecks(ctx context.Context, in *ListChecksRequest, opts ...grpc.CallOption) (*ListChecksReply, error) SubmitCheck(ctx context.Context, in *SubmitCheckRequest, opts ...grpc.CallOption) (*SubmitCheckReply, error) BatchDeleteChecks(ctx context.Context, in *BatchDeleteChecksRequest, opts ...grpc.CallOption) (*BatchDeleteChecksReply, error) BatchSubmitChecks(ctx context.Context, in *BatchSubmitChecksRequest, opts ...grpc.CallOption) (*BatchSubmitChecksReply, error) }
CheckClient is the client API for Check 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 NewCheckClient ¶
func NewCheckClient(cc grpc.ClientConnInterface) CheckClient
type CheckHTTPClient ¶
type CheckHTTPClient interface { BatchDeleteChecks(ctx context.Context, req *BatchDeleteChecksRequest, opts ...http.CallOption) (rsp *BatchDeleteChecksReply, err error) BatchSubmitChecks(ctx context.Context, req *BatchSubmitChecksRequest, opts ...http.CallOption) (rsp *BatchSubmitChecksReply, err error) DeleteCheck(ctx context.Context, req *DeleteCheckRequest, opts ...http.CallOption) (rsp *DeleteCheckReply, err error) GetCheckById(ctx context.Context, req *GetCheckByIdRequest, opts ...http.CallOption) (rsp *GetCheckByIdReply, err error) ListChecks(ctx context.Context, req *ListChecksRequest, opts ...http.CallOption) (rsp *ListChecksReply, err error) SubmitCheck(ctx context.Context, req *SubmitCheckRequest, opts ...http.CallOption) (rsp *SubmitCheckReply, err error) UpdateCheck(ctx context.Context, req *UpdateCheckRequest, opts ...http.CallOption) (rsp *UpdateCheckReply, err error) }
func NewCheckHTTPClient ¶
func NewCheckHTTPClient(client *http.Client) CheckHTTPClient
type CheckHTTPClientImpl ¶
type CheckHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*CheckHTTPClientImpl) BatchDeleteChecks ¶
func (c *CheckHTTPClientImpl) BatchDeleteChecks(ctx context.Context, in *BatchDeleteChecksRequest, opts ...http.CallOption) (*BatchDeleteChecksReply, error)
func (*CheckHTTPClientImpl) BatchSubmitChecks ¶
func (c *CheckHTTPClientImpl) BatchSubmitChecks(ctx context.Context, in *BatchSubmitChecksRequest, opts ...http.CallOption) (*BatchSubmitChecksReply, error)
func (*CheckHTTPClientImpl) DeleteCheck ¶
func (c *CheckHTTPClientImpl) DeleteCheck(ctx context.Context, in *DeleteCheckRequest, opts ...http.CallOption) (*DeleteCheckReply, error)
func (*CheckHTTPClientImpl) GetCheckById ¶
func (c *CheckHTTPClientImpl) GetCheckById(ctx context.Context, in *GetCheckByIdRequest, opts ...http.CallOption) (*GetCheckByIdReply, error)
func (*CheckHTTPClientImpl) ListChecks ¶
func (c *CheckHTTPClientImpl) ListChecks(ctx context.Context, in *ListChecksRequest, opts ...http.CallOption) (*ListChecksReply, error)
func (*CheckHTTPClientImpl) SubmitCheck ¶
func (c *CheckHTTPClientImpl) SubmitCheck(ctx context.Context, in *SubmitCheckRequest, opts ...http.CallOption) (*SubmitCheckReply, error)
func (*CheckHTTPClientImpl) UpdateCheck ¶
func (c *CheckHTTPClientImpl) UpdateCheck(ctx context.Context, in *UpdateCheckRequest, opts ...http.CallOption) (*UpdateCheckReply, error)
type CheckHTTPServer ¶
type CheckHTTPServer interface { BatchDeleteChecks(context.Context, *BatchDeleteChecksRequest) (*BatchDeleteChecksReply, error) BatchSubmitChecks(context.Context, *BatchSubmitChecksRequest) (*BatchSubmitChecksReply, error) DeleteCheck(context.Context, *DeleteCheckRequest) (*DeleteCheckReply, error) GetCheckById(context.Context, *GetCheckByIdRequest) (*GetCheckByIdReply, error) ListChecks(context.Context, *ListChecksRequest) (*ListChecksReply, error) SubmitCheck(context.Context, *SubmitCheckRequest) (*SubmitCheckReply, error) UpdateCheck(context.Context, *UpdateCheckRequest) (*UpdateCheckReply, error) }
type CheckServer ¶
type CheckServer interface { CreateCheck(context.Context, *CreateCheckRequest) (*CreateCheckReply, error) DeleteCheck(context.Context, *DeleteCheckRequest) (*DeleteCheckReply, error) UpdateCheck(context.Context, *UpdateCheckRequest) (*UpdateCheckReply, error) GetCheckById(context.Context, *GetCheckByIdRequest) (*GetCheckByIdReply, error) ListChecks(context.Context, *ListChecksRequest) (*ListChecksReply, error) SubmitCheck(context.Context, *SubmitCheckRequest) (*SubmitCheckReply, error) BatchDeleteChecks(context.Context, *BatchDeleteChecksRequest) (*BatchDeleteChecksReply, error) BatchSubmitChecks(context.Context, *BatchSubmitChecksRequest) (*BatchSubmitChecksReply, error) // contains filtered or unexported methods }
CheckServer is the server API for Check service. All implementations must embed UnimplementedCheckServer for forward compatibility
type CreateCheckReply ¶
type CreateCheckReply struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` CheckId int64 `protobuf:"varint,3,opt,name=checkId,proto3" json:"checkId,omitempty"` // contains filtered or unexported fields }
func (*CreateCheckReply) Descriptor
deprecated
func (*CreateCheckReply) Descriptor() ([]byte, []int)
Deprecated: Use CreateCheckReply.ProtoReflect.Descriptor instead.
func (*CreateCheckReply) GetCheckId ¶
func (x *CreateCheckReply) GetCheckId() int64
func (*CreateCheckReply) GetCode ¶
func (x *CreateCheckReply) GetCode() int32
func (*CreateCheckReply) GetMsg ¶
func (x *CreateCheckReply) GetMsg() string
func (*CreateCheckReply) ProtoMessage ¶
func (*CreateCheckReply) ProtoMessage()
func (*CreateCheckReply) ProtoReflect ¶
func (x *CreateCheckReply) ProtoReflect() protoreflect.Message
func (*CreateCheckReply) Reset ¶
func (x *CreateCheckReply) Reset()
func (*CreateCheckReply) String ¶
func (x *CreateCheckReply) String() string
type CreateCheckRequest ¶
type CreateCheckRequest struct { PostId int64 `protobuf:"varint,1,opt,name=postId,proto3" json:"postId,omitempty"` // contains filtered or unexported fields }
func (*CreateCheckRequest) Descriptor
deprecated
func (*CreateCheckRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateCheckRequest.ProtoReflect.Descriptor instead.
func (*CreateCheckRequest) GetPostId ¶
func (x *CreateCheckRequest) GetPostId() int64
func (*CreateCheckRequest) ProtoMessage ¶
func (*CreateCheckRequest) ProtoMessage()
func (*CreateCheckRequest) ProtoReflect ¶
func (x *CreateCheckRequest) ProtoReflect() protoreflect.Message
func (*CreateCheckRequest) Reset ¶
func (x *CreateCheckRequest) Reset()
func (*CreateCheckRequest) String ¶
func (x *CreateCheckRequest) String() string
type DeleteCheckReply ¶
type DeleteCheckReply struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*DeleteCheckReply) Descriptor
deprecated
func (*DeleteCheckReply) Descriptor() ([]byte, []int)
Deprecated: Use DeleteCheckReply.ProtoReflect.Descriptor instead.
func (*DeleteCheckReply) GetCode ¶
func (x *DeleteCheckReply) GetCode() int32
func (*DeleteCheckReply) GetMsg ¶
func (x *DeleteCheckReply) GetMsg() string
func (*DeleteCheckReply) ProtoMessage ¶
func (*DeleteCheckReply) ProtoMessage()
func (*DeleteCheckReply) ProtoReflect ¶
func (x *DeleteCheckReply) ProtoReflect() protoreflect.Message
func (*DeleteCheckReply) Reset ¶
func (x *DeleteCheckReply) Reset()
func (*DeleteCheckReply) String ¶
func (x *DeleteCheckReply) String() string
type DeleteCheckRequest ¶
type DeleteCheckRequest struct { CheckId int64 `protobuf:"varint,1,opt,name=checkId,proto3" json:"checkId,omitempty"` // contains filtered or unexported fields }
func (*DeleteCheckRequest) Descriptor
deprecated
func (*DeleteCheckRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteCheckRequest.ProtoReflect.Descriptor instead.
func (*DeleteCheckRequest) GetCheckId ¶
func (x *DeleteCheckRequest) GetCheckId() int64
func (*DeleteCheckRequest) ProtoMessage ¶
func (*DeleteCheckRequest) ProtoMessage()
func (*DeleteCheckRequest) ProtoReflect ¶
func (x *DeleteCheckRequest) ProtoReflect() protoreflect.Message
func (*DeleteCheckRequest) Reset ¶
func (x *DeleteCheckRequest) Reset()
func (*DeleteCheckRequest) String ¶
func (x *DeleteCheckRequest) String() string
type GetCheckByIdReply ¶
type GetCheckByIdReply struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Data *ListOrGetCheck `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*GetCheckByIdReply) Descriptor
deprecated
func (*GetCheckByIdReply) Descriptor() ([]byte, []int)
Deprecated: Use GetCheckByIdReply.ProtoReflect.Descriptor instead.
func (*GetCheckByIdReply) GetCode ¶
func (x *GetCheckByIdReply) GetCode() int32
func (*GetCheckByIdReply) GetData ¶
func (x *GetCheckByIdReply) GetData() *ListOrGetCheck
func (*GetCheckByIdReply) GetMsg ¶
func (x *GetCheckByIdReply) GetMsg() string
func (*GetCheckByIdReply) ProtoMessage ¶
func (*GetCheckByIdReply) ProtoMessage()
func (*GetCheckByIdReply) ProtoReflect ¶
func (x *GetCheckByIdReply) ProtoReflect() protoreflect.Message
func (*GetCheckByIdReply) Reset ¶
func (x *GetCheckByIdReply) Reset()
func (*GetCheckByIdReply) String ¶
func (x *GetCheckByIdReply) String() string
type GetCheckByIdRequest ¶
type GetCheckByIdRequest struct { CheckId int64 `protobuf:"varint,1,opt,name=checkId,proto3" json:"checkId,omitempty"` // contains filtered or unexported fields }
func (*GetCheckByIdRequest) Descriptor
deprecated
func (*GetCheckByIdRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCheckByIdRequest.ProtoReflect.Descriptor instead.
func (*GetCheckByIdRequest) GetCheckId ¶
func (x *GetCheckByIdRequest) GetCheckId() int64
func (*GetCheckByIdRequest) ProtoMessage ¶
func (*GetCheckByIdRequest) ProtoMessage()
func (*GetCheckByIdRequest) ProtoReflect ¶
func (x *GetCheckByIdRequest) ProtoReflect() protoreflect.Message
func (*GetCheckByIdRequest) Reset ¶
func (x *GetCheckByIdRequest) Reset()
func (*GetCheckByIdRequest) String ¶
func (x *GetCheckByIdRequest) String() string
type ListChecksReply ¶
type ListChecksReply struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Data []*ListOrGetCheck `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*ListChecksReply) Descriptor
deprecated
func (*ListChecksReply) Descriptor() ([]byte, []int)
Deprecated: Use ListChecksReply.ProtoReflect.Descriptor instead.
func (*ListChecksReply) GetCode ¶
func (x *ListChecksReply) GetCode() int32
func (*ListChecksReply) GetData ¶
func (x *ListChecksReply) GetData() []*ListOrGetCheck
func (*ListChecksReply) GetMsg ¶
func (x *ListChecksReply) GetMsg() string
func (*ListChecksReply) ProtoMessage ¶
func (*ListChecksReply) ProtoMessage()
func (*ListChecksReply) ProtoReflect ¶
func (x *ListChecksReply) ProtoReflect() protoreflect.Message
func (*ListChecksReply) Reset ¶
func (x *ListChecksReply) Reset()
func (*ListChecksReply) String ¶
func (x *ListChecksReply) String() string
type ListChecksRequest ¶
type ListChecksRequest struct { Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` Status string `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*ListChecksRequest) Descriptor
deprecated
func (*ListChecksRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListChecksRequest.ProtoReflect.Descriptor instead.
func (*ListChecksRequest) GetPage ¶
func (x *ListChecksRequest) GetPage() int32
func (*ListChecksRequest) GetSize ¶
func (x *ListChecksRequest) GetSize() int64
func (*ListChecksRequest) GetStatus ¶
func (x *ListChecksRequest) GetStatus() string
func (*ListChecksRequest) ProtoMessage ¶
func (*ListChecksRequest) ProtoMessage()
func (*ListChecksRequest) ProtoReflect ¶
func (x *ListChecksRequest) ProtoReflect() protoreflect.Message
func (*ListChecksRequest) Reset ¶
func (x *ListChecksRequest) Reset()
func (*ListChecksRequest) String ¶
func (x *ListChecksRequest) String() string
type ListOrGetCheck ¶
type ListOrGetCheck struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 审核ID PostId int64 `protobuf:"varint,2,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty"` // 帖子ID Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` // 审核内容 Title string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"` // 审核标签 UserId int64 `protobuf:"varint,5,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 提交审核的用户ID Status string `protobuf:"bytes,6,opt,name=status,proto3" json:"status,omitempty"` // 审核状态 Remark string `protobuf:"bytes,7,opt,name=remark,proto3" json:"remark,omitempty"` // 审核备注 CreatedAt int64 `protobuf:"varint,8,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // 创建时间 UpdatedAt int64 `protobuf:"varint,9,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // 更新时间 // contains filtered or unexported fields }
func (*ListOrGetCheck) Descriptor
deprecated
func (*ListOrGetCheck) Descriptor() ([]byte, []int)
Deprecated: Use ListOrGetCheck.ProtoReflect.Descriptor instead.
func (*ListOrGetCheck) GetContent ¶
func (x *ListOrGetCheck) GetContent() string
func (*ListOrGetCheck) GetCreatedAt ¶
func (x *ListOrGetCheck) GetCreatedAt() int64
func (*ListOrGetCheck) GetId ¶
func (x *ListOrGetCheck) GetId() int64
func (*ListOrGetCheck) GetPostId ¶
func (x *ListOrGetCheck) GetPostId() int64
func (*ListOrGetCheck) GetRemark ¶
func (x *ListOrGetCheck) GetRemark() string
func (*ListOrGetCheck) GetStatus ¶
func (x *ListOrGetCheck) GetStatus() string
func (*ListOrGetCheck) GetTitle ¶
func (x *ListOrGetCheck) GetTitle() string
func (*ListOrGetCheck) GetUpdatedAt ¶
func (x *ListOrGetCheck) GetUpdatedAt() int64
func (*ListOrGetCheck) GetUserId ¶
func (x *ListOrGetCheck) GetUserId() int64
func (*ListOrGetCheck) ProtoMessage ¶
func (*ListOrGetCheck) ProtoMessage()
func (*ListOrGetCheck) ProtoReflect ¶
func (x *ListOrGetCheck) ProtoReflect() protoreflect.Message
func (*ListOrGetCheck) Reset ¶
func (x *ListOrGetCheck) Reset()
func (*ListOrGetCheck) String ¶
func (x *ListOrGetCheck) String() string
type SubmitCheckReply ¶
type SubmitCheckReply struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*SubmitCheckReply) Descriptor
deprecated
func (*SubmitCheckReply) Descriptor() ([]byte, []int)
Deprecated: Use SubmitCheckReply.ProtoReflect.Descriptor instead.
func (*SubmitCheckReply) GetCode ¶
func (x *SubmitCheckReply) GetCode() int32
func (*SubmitCheckReply) GetMsg ¶
func (x *SubmitCheckReply) GetMsg() string
func (*SubmitCheckReply) ProtoMessage ¶
func (*SubmitCheckReply) ProtoMessage()
func (*SubmitCheckReply) ProtoReflect ¶
func (x *SubmitCheckReply) ProtoReflect() protoreflect.Message
func (*SubmitCheckReply) Reset ¶
func (x *SubmitCheckReply) Reset()
func (*SubmitCheckReply) String ¶
func (x *SubmitCheckReply) String() string
type SubmitCheckRequest ¶
type SubmitCheckRequest struct { CheckId int64 `protobuf:"varint,1,opt,name=checkId,proto3" json:"checkId,omitempty"` PostId int64 `protobuf:"varint,2,opt,name=postId,proto3" json:"postId,omitempty"` Approved bool `protobuf:"varint,3,opt,name=approved,proto3" json:"approved,omitempty"` // contains filtered or unexported fields }
func (*SubmitCheckRequest) Descriptor
deprecated
func (*SubmitCheckRequest) Descriptor() ([]byte, []int)
Deprecated: Use SubmitCheckRequest.ProtoReflect.Descriptor instead.
func (*SubmitCheckRequest) GetApproved ¶
func (x *SubmitCheckRequest) GetApproved() bool
func (*SubmitCheckRequest) GetCheckId ¶
func (x *SubmitCheckRequest) GetCheckId() int64
func (*SubmitCheckRequest) GetPostId ¶
func (x *SubmitCheckRequest) GetPostId() int64
func (*SubmitCheckRequest) ProtoMessage ¶
func (*SubmitCheckRequest) ProtoMessage()
func (*SubmitCheckRequest) ProtoReflect ¶
func (x *SubmitCheckRequest) ProtoReflect() protoreflect.Message
func (*SubmitCheckRequest) Reset ¶
func (x *SubmitCheckRequest) Reset()
func (*SubmitCheckRequest) String ¶
func (x *SubmitCheckRequest) String() string
type UnimplementedCheckServer ¶
type UnimplementedCheckServer struct { }
UnimplementedCheckServer must be embedded to have forward compatible implementations.
func (UnimplementedCheckServer) BatchDeleteChecks ¶
func (UnimplementedCheckServer) BatchDeleteChecks(context.Context, *BatchDeleteChecksRequest) (*BatchDeleteChecksReply, error)
func (UnimplementedCheckServer) BatchSubmitChecks ¶
func (UnimplementedCheckServer) BatchSubmitChecks(context.Context, *BatchSubmitChecksRequest) (*BatchSubmitChecksReply, error)
func (UnimplementedCheckServer) CreateCheck ¶
func (UnimplementedCheckServer) CreateCheck(context.Context, *CreateCheckRequest) (*CreateCheckReply, error)
func (UnimplementedCheckServer) DeleteCheck ¶
func (UnimplementedCheckServer) DeleteCheck(context.Context, *DeleteCheckRequest) (*DeleteCheckReply, error)
func (UnimplementedCheckServer) GetCheckById ¶
func (UnimplementedCheckServer) GetCheckById(context.Context, *GetCheckByIdRequest) (*GetCheckByIdReply, error)
func (UnimplementedCheckServer) ListChecks ¶
func (UnimplementedCheckServer) ListChecks(context.Context, *ListChecksRequest) (*ListChecksReply, error)
func (UnimplementedCheckServer) SubmitCheck ¶
func (UnimplementedCheckServer) SubmitCheck(context.Context, *SubmitCheckRequest) (*SubmitCheckReply, error)
func (UnimplementedCheckServer) UpdateCheck ¶
func (UnimplementedCheckServer) UpdateCheck(context.Context, *UpdateCheckRequest) (*UpdateCheckReply, error)
type UnsafeCheckServer ¶
type UnsafeCheckServer interface {
// contains filtered or unexported methods
}
UnsafeCheckServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CheckServer will result in compilation errors.
type UpdateCheckReply ¶
type UpdateCheckReply struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*UpdateCheckReply) Descriptor
deprecated
func (*UpdateCheckReply) Descriptor() ([]byte, []int)
Deprecated: Use UpdateCheckReply.ProtoReflect.Descriptor instead.
func (*UpdateCheckReply) GetCode ¶
func (x *UpdateCheckReply) GetCode() int32
func (*UpdateCheckReply) GetMsg ¶
func (x *UpdateCheckReply) GetMsg() string
func (*UpdateCheckReply) ProtoMessage ¶
func (*UpdateCheckReply) ProtoMessage()
func (*UpdateCheckReply) ProtoReflect ¶
func (x *UpdateCheckReply) ProtoReflect() protoreflect.Message
func (*UpdateCheckReply) Reset ¶
func (x *UpdateCheckReply) Reset()
func (*UpdateCheckReply) String ¶
func (x *UpdateCheckReply) String() string
type UpdateCheckRequest ¶
type UpdateCheckRequest struct { Check *ListOrGetCheck `protobuf:"bytes,1,opt,name=check,proto3" json:"check,omitempty"` // contains filtered or unexported fields }
func (*UpdateCheckRequest) Descriptor
deprecated
func (*UpdateCheckRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateCheckRequest.ProtoReflect.Descriptor instead.
func (*UpdateCheckRequest) GetCheck ¶
func (x *UpdateCheckRequest) GetCheck() *ListOrGetCheck
func (*UpdateCheckRequest) ProtoMessage ¶
func (*UpdateCheckRequest) ProtoMessage()
func (*UpdateCheckRequest) ProtoReflect ¶
func (x *UpdateCheckRequest) ProtoReflect() protoreflect.Message
func (*UpdateCheckRequest) Reset ¶
func (x *UpdateCheckRequest) Reset()
func (*UpdateCheckRequest) String ¶
func (x *UpdateCheckRequest) String() string