Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterProjectCodeApiServer(s grpc.ServiceRegistrar, srv ProjectCodeApiServer)
- type AddCommentRequest
- func (*AddCommentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddCommentRequest) GetContent() string
- func (x *AddCommentRequest) GetContentType() CONTENT_TYPE
- func (x *AddCommentRequest) GetProjectId() string
- func (x *AddCommentRequest) GetSessionId() string
- func (x *AddCommentRequest) GetThreadId() string
- func (*AddCommentRequest) ProtoMessage()
- func (x *AddCommentRequest) ProtoReflect() protoreflect.Message
- func (x *AddCommentRequest) Reset()
- func (x *AddCommentRequest) String() string
- type AddCommentResponse
- func (*AddCommentResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AddCommentResponse) GetCode() AddCommentResponse_CODE
- func (x *AddCommentResponse) GetCommentId() string
- func (x *AddCommentResponse) GetErrMsg() string
- func (*AddCommentResponse) ProtoMessage()
- func (x *AddCommentResponse) ProtoReflect() protoreflect.Message
- func (x *AddCommentResponse) Reset()
- func (x *AddCommentResponse) String() string
- type AddCommentResponse_CODE
- func (AddCommentResponse_CODE) Descriptor() protoreflect.EnumDescriptor
- func (x AddCommentResponse_CODE) Enum() *AddCommentResponse_CODE
- func (AddCommentResponse_CODE) EnumDescriptor() ([]byte, []int)deprecated
- func (x AddCommentResponse_CODE) Number() protoreflect.EnumNumber
- func (x AddCommentResponse_CODE) String() string
- func (AddCommentResponse_CODE) Type() protoreflect.EnumType
- type CONTENT_TYPE
- func (CONTENT_TYPE) Descriptor() protoreflect.EnumDescriptor
- func (x CONTENT_TYPE) Enum() *CONTENT_TYPE
- func (CONTENT_TYPE) EnumDescriptor() ([]byte, []int)deprecated
- func (x CONTENT_TYPE) Number() protoreflect.EnumNumber
- func (x CONTENT_TYPE) String() string
- func (CONTENT_TYPE) Type() protoreflect.EnumType
- type Comment
- func (*Comment) Descriptor() ([]byte, []int)deprecated
- func (x *Comment) GetCanRemove() bool
- func (x *Comment) GetCanUpdate() bool
- func (x *Comment) GetCommentId() string
- func (x *Comment) GetContent() string
- func (x *Comment) GetContentType() CONTENT_TYPE
- func (x *Comment) GetCreateTime() int64
- func (x *Comment) GetThreadId() string
- func (x *Comment) GetUpdateTime() int64
- func (x *Comment) GetUserDisplayName() string
- func (x *Comment) GetUserId() string
- func (x *Comment) GetUserLogoUri() string
- func (*Comment) ProtoMessage()
- func (x *Comment) ProtoReflect() protoreflect.Message
- func (x *Comment) Reset()
- func (x *Comment) String() string
- type CommentUser
- func (*CommentUser) Descriptor() ([]byte, []int)deprecated
- func (x *CommentUser) GetCommentDisplayName() string
- func (x *CommentUser) GetCommentLogoUri() string
- func (x *CommentUser) GetCommentUserId() string
- func (*CommentUser) ProtoMessage()
- func (x *CommentUser) ProtoReflect() protoreflect.Message
- func (x *CommentUser) Reset()
- func (x *CommentUser) String() string
- type GetCommentRequest
- func (*GetCommentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetCommentRequest) GetCommentId() string
- func (x *GetCommentRequest) GetProjectId() string
- func (x *GetCommentRequest) GetSessionId() string
- func (*GetCommentRequest) ProtoMessage()
- func (x *GetCommentRequest) ProtoReflect() protoreflect.Message
- func (x *GetCommentRequest) Reset()
- func (x *GetCommentRequest) String() string
- type GetCommentResponse
- func (*GetCommentResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetCommentResponse) GetCode() GetCommentResponse_CODE
- func (x *GetCommentResponse) GetComment() *Comment
- func (x *GetCommentResponse) GetErrMsg() string
- func (*GetCommentResponse) ProtoMessage()
- func (x *GetCommentResponse) ProtoReflect() protoreflect.Message
- func (x *GetCommentResponse) Reset()
- func (x *GetCommentResponse) String() string
- type GetCommentResponse_CODE
- func (GetCommentResponse_CODE) Descriptor() protoreflect.EnumDescriptor
- func (x GetCommentResponse_CODE) Enum() *GetCommentResponse_CODE
- func (GetCommentResponse_CODE) EnumDescriptor() ([]byte, []int)deprecated
- func (x GetCommentResponse_CODE) Number() protoreflect.EnumNumber
- func (x GetCommentResponse_CODE) String() string
- func (GetCommentResponse_CODE) Type() protoreflect.EnumType
- type ListCommentRequest
- func (*ListCommentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListCommentRequest) GetProjectId() string
- func (x *ListCommentRequest) GetSessionId() string
- func (x *ListCommentRequest) GetThreadId() string
- func (*ListCommentRequest) ProtoMessage()
- func (x *ListCommentRequest) ProtoReflect() protoreflect.Message
- func (x *ListCommentRequest) Reset()
- func (x *ListCommentRequest) String() string
- type ListCommentResponse
- func (*ListCommentResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListCommentResponse) GetCode() ListCommentResponse_CODE
- func (x *ListCommentResponse) GetCommentList() []*Comment
- func (x *ListCommentResponse) GetErrMsg() string
- func (*ListCommentResponse) ProtoMessage()
- func (x *ListCommentResponse) ProtoReflect() protoreflect.Message
- func (x *ListCommentResponse) Reset()
- func (x *ListCommentResponse) String() string
- type ListCommentResponse_CODE
- func (ListCommentResponse_CODE) Descriptor() protoreflect.EnumDescriptor
- func (x ListCommentResponse_CODE) Enum() *ListCommentResponse_CODE
- func (ListCommentResponse_CODE) EnumDescriptor() ([]byte, []int)deprecated
- func (x ListCommentResponse_CODE) Number() protoreflect.EnumNumber
- func (x ListCommentResponse_CODE) String() string
- func (ListCommentResponse_CODE) Type() protoreflect.EnumType
- type ListThreadRequest
- func (*ListThreadRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListThreadRequest) GetLimit() uint32
- func (x *ListThreadRequest) GetOffset() uint32
- func (x *ListThreadRequest) GetProjectId() string
- func (x *ListThreadRequest) GetSessionId() string
- func (*ListThreadRequest) ProtoMessage()
- func (x *ListThreadRequest) ProtoReflect() protoreflect.Message
- func (x *ListThreadRequest) Reset()
- func (x *ListThreadRequest) String() string
- type ListThreadResponse
- func (*ListThreadResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListThreadResponse) GetCode() ListThreadResponse_CODE
- func (x *ListThreadResponse) GetErrMsg() string
- func (x *ListThreadResponse) GetThreadList() []*ThreadInfo
- func (x *ListThreadResponse) GetTotalCount() uint32
- func (*ListThreadResponse) ProtoMessage()
- func (x *ListThreadResponse) ProtoReflect() protoreflect.Message
- func (x *ListThreadResponse) Reset()
- func (x *ListThreadResponse) String() string
- type ListThreadResponse_CODE
- func (ListThreadResponse_CODE) Descriptor() protoreflect.EnumDescriptor
- func (x ListThreadResponse_CODE) Enum() *ListThreadResponse_CODE
- func (ListThreadResponse_CODE) EnumDescriptor() ([]byte, []int)deprecated
- func (x ListThreadResponse_CODE) Number() protoreflect.EnumNumber
- func (x ListThreadResponse_CODE) String() string
- func (ListThreadResponse_CODE) Type() protoreflect.EnumType
- type ProjectCodeApiClient
- type ProjectCodeApiServer
- type RemoveCommentRequest
- func (*RemoveCommentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveCommentRequest) GetCommentId() string
- func (x *RemoveCommentRequest) GetProjectId() string
- func (x *RemoveCommentRequest) GetSessionId() string
- func (*RemoveCommentRequest) ProtoMessage()
- func (x *RemoveCommentRequest) ProtoReflect() protoreflect.Message
- func (x *RemoveCommentRequest) Reset()
- func (x *RemoveCommentRequest) String() string
- type RemoveCommentResponse
- func (*RemoveCommentResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveCommentResponse) GetCode() RemoveCommentResponse_CODE
- func (x *RemoveCommentResponse) GetErrMsg() string
- func (*RemoveCommentResponse) ProtoMessage()
- func (x *RemoveCommentResponse) ProtoReflect() protoreflect.Message
- func (x *RemoveCommentResponse) Reset()
- func (x *RemoveCommentResponse) String() string
- type RemoveCommentResponse_CODE
- func (RemoveCommentResponse_CODE) Descriptor() protoreflect.EnumDescriptor
- func (x RemoveCommentResponse_CODE) Enum() *RemoveCommentResponse_CODE
- func (RemoveCommentResponse_CODE) EnumDescriptor() ([]byte, []int)deprecated
- func (x RemoveCommentResponse_CODE) Number() protoreflect.EnumNumber
- func (x RemoveCommentResponse_CODE) String() string
- func (RemoveCommentResponse_CODE) Type() protoreflect.EnumType
- type ThreadInfo
- func (*ThreadInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ThreadInfo) GetCommentCount() uint32
- func (x *ThreadInfo) GetCommentUserList() []*CommentUser
- func (x *ThreadInfo) GetCreateTime() int64
- func (x *ThreadInfo) GetLastComment() *Comment
- func (x *ThreadInfo) GetThreadId() string
- func (x *ThreadInfo) GetUpdateTime() int64
- func (*ThreadInfo) ProtoMessage()
- func (x *ThreadInfo) ProtoReflect() protoreflect.Message
- func (x *ThreadInfo) Reset()
- func (x *ThreadInfo) String() string
- type UnimplementedProjectCodeApiServer
- func (UnimplementedProjectCodeApiServer) AddComment(context.Context, *AddCommentRequest) (*AddCommentResponse, error)
- func (UnimplementedProjectCodeApiServer) GetComment(context.Context, *GetCommentRequest) (*GetCommentResponse, error)
- func (UnimplementedProjectCodeApiServer) ListComment(context.Context, *ListCommentRequest) (*ListCommentResponse, error)
- func (UnimplementedProjectCodeApiServer) ListThread(context.Context, *ListThreadRequest) (*ListThreadResponse, error)
- func (UnimplementedProjectCodeApiServer) RemoveComment(context.Context, *RemoveCommentRequest) (*RemoveCommentResponse, error)
- func (UnimplementedProjectCodeApiServer) UpdateComment(context.Context, *UpdateCommentRequest) (*UpdateCommentResponse, error)
- type UnsafeProjectCodeApiServer
- type UpdateCommentRequest
- func (*UpdateCommentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateCommentRequest) GetCommentId() string
- func (x *UpdateCommentRequest) GetContent() string
- func (x *UpdateCommentRequest) GetContentType() CONTENT_TYPE
- func (x *UpdateCommentRequest) GetProjectId() string
- func (x *UpdateCommentRequest) GetSessionId() string
- func (*UpdateCommentRequest) ProtoMessage()
- func (x *UpdateCommentRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateCommentRequest) Reset()
- func (x *UpdateCommentRequest) String() string
- type UpdateCommentResponse
- func (*UpdateCommentResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateCommentResponse) GetCode() UpdateCommentResponse_CODE
- func (x *UpdateCommentResponse) GetErrMsg() string
- func (*UpdateCommentResponse) ProtoMessage()
- func (x *UpdateCommentResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateCommentResponse) Reset()
- func (x *UpdateCommentResponse) String() string
- type UpdateCommentResponse_CODE
- func (UpdateCommentResponse_CODE) Descriptor() protoreflect.EnumDescriptor
- func (x UpdateCommentResponse_CODE) Enum() *UpdateCommentResponse_CODE
- func (UpdateCommentResponse_CODE) EnumDescriptor() ([]byte, []int)deprecated
- func (x UpdateCommentResponse_CODE) Number() protoreflect.EnumNumber
- func (x UpdateCommentResponse_CODE) String() string
- func (UpdateCommentResponse_CODE) Type() protoreflect.EnumType
Constants ¶
const ( ProjectCodeApi_ListThread_FullMethodName = "/project_code_api.ProjectCodeApi/listThread" ProjectCodeApi_AddComment_FullMethodName = "/project_code_api.ProjectCodeApi/addComment" ProjectCodeApi_UpdateComment_FullMethodName = "/project_code_api.ProjectCodeApi/updateComment" ProjectCodeApi_ListComment_FullMethodName = "/project_code_api.ProjectCodeApi/listComment" ProjectCodeApi_GetComment_FullMethodName = "/project_code_api.ProjectCodeApi/getComment" ProjectCodeApi_RemoveComment_FullMethodName = "/project_code_api.ProjectCodeApi/removeComment" )
Variables ¶
var ( CONTENT_TYPE_name = map[int32]string{ 0: "CONTENT_TYPE_MARKDOWN", 1: "CONTENT_TYPE_TEXT", } CONTENT_TYPE_value = map[string]int32{ "CONTENT_TYPE_MARKDOWN": 0, "CONTENT_TYPE_TEXT": 1, } )
Enum value maps for CONTENT_TYPE.
var ( ListThreadResponse_CODE_name = map[int32]string{ 0: "CODE_OK", 1: "CODE_WRONG_SESSION", 2: "CODE_NO_PROJECT", 3: "CODE_NO_PERMISSION", } ListThreadResponse_CODE_value = map[string]int32{ "CODE_OK": 0, "CODE_WRONG_SESSION": 1, "CODE_NO_PROJECT": 2, "CODE_NO_PERMISSION": 3, } )
Enum value maps for ListThreadResponse_CODE.
var ( AddCommentResponse_CODE_name = map[int32]string{ 0: "CODE_OK", 1: "CODE_WRONG_SESSION", 2: "CODE_NO_PROJECT", 3: "CODE_NO_PERMISSION", } AddCommentResponse_CODE_value = map[string]int32{ "CODE_OK": 0, "CODE_WRONG_SESSION": 1, "CODE_NO_PROJECT": 2, "CODE_NO_PERMISSION": 3, } )
Enum value maps for AddCommentResponse_CODE.
var ( UpdateCommentResponse_CODE_name = map[int32]string{ 0: "CODE_OK", 1: "CODE_WRONG_SESSION", 2: "CODE_NO_PROJECT", 3: "CODE_NO_PERMISSION", 4: "CODE_NO_COMMENT", } UpdateCommentResponse_CODE_value = map[string]int32{ "CODE_OK": 0, "CODE_WRONG_SESSION": 1, "CODE_NO_PROJECT": 2, "CODE_NO_PERMISSION": 3, "CODE_NO_COMMENT": 4, } )
Enum value maps for UpdateCommentResponse_CODE.
var ( ListCommentResponse_CODE_name = map[int32]string{ 0: "CODE_OK", 1: "CODE_WRONG_SESSION", 2: "CODE_NO_PROJECT", 3: "CODE_NO_PERMISSION", } ListCommentResponse_CODE_value = map[string]int32{ "CODE_OK": 0, "CODE_WRONG_SESSION": 1, "CODE_NO_PROJECT": 2, "CODE_NO_PERMISSION": 3, } )
Enum value maps for ListCommentResponse_CODE.
var ( GetCommentResponse_CODE_name = map[int32]string{ 0: "CODE_OK", 1: "CODE_WRONG_SESSION", 2: "CODE_NO_PROJECT", 3: "CODE_NO_PERMISSION", 4: "CODE_NO_COMMENT", } GetCommentResponse_CODE_value = map[string]int32{ "CODE_OK": 0, "CODE_WRONG_SESSION": 1, "CODE_NO_PROJECT": 2, "CODE_NO_PERMISSION": 3, "CODE_NO_COMMENT": 4, } )
Enum value maps for GetCommentResponse_CODE.
var ( RemoveCommentResponse_CODE_name = map[int32]string{ 0: "CODE_OK", 1: "CODE_WRONG_SESSION", 2: "CODE_NO_PROJECT", 3: "CODE_NO_PERMISSION", 4: "CODE_NO_COMMENT", } RemoveCommentResponse_CODE_value = map[string]int32{ "CODE_OK": 0, "CODE_WRONG_SESSION": 1, "CODE_NO_PROJECT": 2, "CODE_NO_PERMISSION": 3, "CODE_NO_COMMENT": 4, } )
Enum value maps for RemoveCommentResponse_CODE.
var File_project_code_api_proto protoreflect.FileDescriptor
var ProjectCodeApi_ServiceDesc = grpc.ServiceDesc{ ServiceName: "project_code_api.ProjectCodeApi", HandlerType: (*ProjectCodeApiServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "listThread", Handler: _ProjectCodeApi_ListThread_Handler, }, { MethodName: "addComment", Handler: _ProjectCodeApi_AddComment_Handler, }, { MethodName: "updateComment", Handler: _ProjectCodeApi_UpdateComment_Handler, }, { MethodName: "listComment", Handler: _ProjectCodeApi_ListComment_Handler, }, { MethodName: "getComment", Handler: _ProjectCodeApi_GetComment_Handler, }, { MethodName: "removeComment", Handler: _ProjectCodeApi_RemoveComment_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "project_code_api.proto", }
ProjectCodeApi_ServiceDesc is the grpc.ServiceDesc for ProjectCodeApi service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterProjectCodeApiServer ¶
func RegisterProjectCodeApiServer(s grpc.ServiceRegistrar, srv ProjectCodeApiServer)
Types ¶
type AddCommentRequest ¶
type AddCommentRequest struct {
SessionId string `protobuf:"bytes,1,opt,name=sessionId,proto3" json:"sessionId,omitempty"`
ProjectId string `protobuf:"bytes,2,opt,name=projectId,proto3" json:"projectId,omitempty"`
ThreadId string `protobuf:"bytes,3,opt,name=threadId,proto3" json:"threadId,omitempty"`
ContentType CONTENT_TYPE `protobuf:"varint,4,opt,name=contentType,proto3,enum=project_code_api.CONTENT_TYPE" json:"contentType,omitempty"`
Content string `protobuf:"bytes,5,opt,name=content,proto3" json:"content,omitempty"`
// contains filtered or unexported fields
}
func (*AddCommentRequest) Descriptor
deprecated
func (*AddCommentRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddCommentRequest.ProtoReflect.Descriptor instead.
func (*AddCommentRequest) GetContent ¶
func (x *AddCommentRequest) GetContent() string
func (*AddCommentRequest) GetContentType ¶
func (x *AddCommentRequest) GetContentType() CONTENT_TYPE
func (*AddCommentRequest) GetProjectId ¶
func (x *AddCommentRequest) GetProjectId() string
func (*AddCommentRequest) GetSessionId ¶
func (x *AddCommentRequest) GetSessionId() string
func (*AddCommentRequest) GetThreadId ¶
func (x *AddCommentRequest) GetThreadId() string
func (*AddCommentRequest) ProtoMessage ¶
func (*AddCommentRequest) ProtoMessage()
func (*AddCommentRequest) ProtoReflect ¶
func (x *AddCommentRequest) ProtoReflect() protoreflect.Message
func (*AddCommentRequest) Reset ¶
func (x *AddCommentRequest) Reset()
func (*AddCommentRequest) String ¶
func (x *AddCommentRequest) String() string
type AddCommentResponse ¶
type AddCommentResponse struct {
Code AddCommentResponse_CODE `protobuf:"varint,1,opt,name=code,proto3,enum=project_code_api.AddCommentResponse_CODE" json:"code,omitempty"`
ErrMsg string `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"`
CommentId string `protobuf:"bytes,3,opt,name=commentId,proto3" json:"commentId,omitempty"`
// contains filtered or unexported fields
}
func (*AddCommentResponse) Descriptor
deprecated
func (*AddCommentResponse) Descriptor() ([]byte, []int)
Deprecated: Use AddCommentResponse.ProtoReflect.Descriptor instead.
func (*AddCommentResponse) GetCode ¶
func (x *AddCommentResponse) GetCode() AddCommentResponse_CODE
func (*AddCommentResponse) GetCommentId ¶
func (x *AddCommentResponse) GetCommentId() string
func (*AddCommentResponse) GetErrMsg ¶
func (x *AddCommentResponse) GetErrMsg() string
func (*AddCommentResponse) ProtoMessage ¶
func (*AddCommentResponse) ProtoMessage()
func (*AddCommentResponse) ProtoReflect ¶
func (x *AddCommentResponse) ProtoReflect() protoreflect.Message
func (*AddCommentResponse) Reset ¶
func (x *AddCommentResponse) Reset()
func (*AddCommentResponse) String ¶
func (x *AddCommentResponse) String() string
type AddCommentResponse_CODE ¶
type AddCommentResponse_CODE int32
const ( AddCommentResponse_CODE_OK AddCommentResponse_CODE = 0 AddCommentResponse_CODE_WRONG_SESSION AddCommentResponse_CODE = 1 AddCommentResponse_CODE_NO_PROJECT AddCommentResponse_CODE = 2 AddCommentResponse_CODE_NO_PERMISSION AddCommentResponse_CODE = 3 )
func (AddCommentResponse_CODE) Descriptor ¶
func (AddCommentResponse_CODE) Descriptor() protoreflect.EnumDescriptor
func (AddCommentResponse_CODE) Enum ¶
func (x AddCommentResponse_CODE) Enum() *AddCommentResponse_CODE
func (AddCommentResponse_CODE) EnumDescriptor
deprecated
func (AddCommentResponse_CODE) EnumDescriptor() ([]byte, []int)
Deprecated: Use AddCommentResponse_CODE.Descriptor instead.
func (AddCommentResponse_CODE) Number ¶
func (x AddCommentResponse_CODE) Number() protoreflect.EnumNumber
func (AddCommentResponse_CODE) String ¶
func (x AddCommentResponse_CODE) String() string
func (AddCommentResponse_CODE) Type ¶
func (AddCommentResponse_CODE) Type() protoreflect.EnumType
type CONTENT_TYPE ¶
type CONTENT_TYPE int32
const ( CONTENT_TYPE_CONTENT_TYPE_MARKDOWN CONTENT_TYPE = 0 CONTENT_TYPE_CONTENT_TYPE_TEXT CONTENT_TYPE = 1 )
func (CONTENT_TYPE) Descriptor ¶
func (CONTENT_TYPE) Descriptor() protoreflect.EnumDescriptor
func (CONTENT_TYPE) Enum ¶
func (x CONTENT_TYPE) Enum() *CONTENT_TYPE
func (CONTENT_TYPE) EnumDescriptor
deprecated
func (CONTENT_TYPE) EnumDescriptor() ([]byte, []int)
Deprecated: Use CONTENT_TYPE.Descriptor instead.
func (CONTENT_TYPE) Number ¶
func (x CONTENT_TYPE) Number() protoreflect.EnumNumber
func (CONTENT_TYPE) String ¶
func (x CONTENT_TYPE) String() string
func (CONTENT_TYPE) Type ¶
func (CONTENT_TYPE) Type() protoreflect.EnumType
type Comment ¶
type Comment struct {
CommentId string `protobuf:"bytes,1,opt,name=commentId,proto3" json:"commentId,omitempty"`
ThreadId string `protobuf:"bytes,2,opt,name=threadId,proto3" json:"threadId,omitempty"`
ContentType CONTENT_TYPE `protobuf:"varint,3,opt,name=contentType,proto3,enum=project_code_api.CONTENT_TYPE" json:"contentType,omitempty"`
Content string `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"`
UserId string `protobuf:"bytes,5,opt,name=userId,proto3" json:"userId,omitempty"`
UserDisplayName string `protobuf:"bytes,6,opt,name=userDisplayName,proto3" json:"userDisplayName,omitempty"`
UserLogoUri string `protobuf:"bytes,7,opt,name=userLogoUri,proto3" json:"userLogoUri,omitempty"`
CreateTime int64 `protobuf:"varint,8,opt,name=createTime,proto3" json:"createTime,omitempty"`
UpdateTime int64 `protobuf:"varint,9,opt,name=updateTime,proto3" json:"updateTime,omitempty"`
// 权限相关定义
CanUpdate bool `protobuf:"varint,30,opt,name=canUpdate,proto3" json:"canUpdate,omitempty"`
CanRemove bool `protobuf:"varint,31,opt,name=canRemove,proto3" json:"canRemove,omitempty"`
// contains filtered or unexported fields
}
func (*Comment) GetContentType ¶
func (x *Comment) GetContentType() CONTENT_TYPE
func (*Comment) ProtoReflect ¶
func (x *Comment) ProtoReflect() protoreflect.Message
type CommentUser ¶
type CommentUser struct {
CommentUserId string `protobuf:"bytes,1,opt,name=commentUserId,proto3" json:"commentUserId,omitempty"`
CommentDisplayName string `protobuf:"bytes,2,opt,name=commentDisplayName,proto3" json:"commentDisplayName,omitempty"`
CommentLogoUri string `protobuf:"bytes,3,opt,name=commentLogoUri,proto3" json:"commentLogoUri,omitempty"`
// contains filtered or unexported fields
}
func (*CommentUser) Descriptor
deprecated
func (*CommentUser) Descriptor() ([]byte, []int)
Deprecated: Use CommentUser.ProtoReflect.Descriptor instead.
func (*CommentUser) GetCommentDisplayName ¶
func (x *CommentUser) GetCommentDisplayName() string
func (*CommentUser) GetCommentLogoUri ¶
func (x *CommentUser) GetCommentLogoUri() string
func (*CommentUser) GetCommentUserId ¶
func (x *CommentUser) GetCommentUserId() string
func (*CommentUser) ProtoMessage ¶
func (*CommentUser) ProtoMessage()
func (*CommentUser) ProtoReflect ¶
func (x *CommentUser) ProtoReflect() protoreflect.Message
func (*CommentUser) Reset ¶
func (x *CommentUser) Reset()
func (*CommentUser) String ¶
func (x *CommentUser) String() string
type GetCommentRequest ¶
type GetCommentRequest struct {
SessionId string `protobuf:"bytes,1,opt,name=sessionId,proto3" json:"sessionId,omitempty"`
ProjectId string `protobuf:"bytes,2,opt,name=projectId,proto3" json:"projectId,omitempty"`
CommentId string `protobuf:"bytes,3,opt,name=commentId,proto3" json:"commentId,omitempty"`
// contains filtered or unexported fields
}
func (*GetCommentRequest) Descriptor
deprecated
func (*GetCommentRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCommentRequest.ProtoReflect.Descriptor instead.
func (*GetCommentRequest) GetCommentId ¶
func (x *GetCommentRequest) GetCommentId() string
func (*GetCommentRequest) GetProjectId ¶
func (x *GetCommentRequest) GetProjectId() string
func (*GetCommentRequest) GetSessionId ¶
func (x *GetCommentRequest) GetSessionId() string
func (*GetCommentRequest) ProtoMessage ¶
func (*GetCommentRequest) ProtoMessage()
func (*GetCommentRequest) ProtoReflect ¶
func (x *GetCommentRequest) ProtoReflect() protoreflect.Message
func (*GetCommentRequest) Reset ¶
func (x *GetCommentRequest) Reset()
func (*GetCommentRequest) String ¶
func (x *GetCommentRequest) String() string
type GetCommentResponse ¶
type GetCommentResponse struct {
Code GetCommentResponse_CODE `protobuf:"varint,1,opt,name=code,proto3,enum=project_code_api.GetCommentResponse_CODE" json:"code,omitempty"`
ErrMsg string `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"`
Comment *Comment `protobuf:"bytes,3,opt,name=comment,proto3" json:"comment,omitempty"`
// contains filtered or unexported fields
}
func (*GetCommentResponse) Descriptor
deprecated
func (*GetCommentResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetCommentResponse.ProtoReflect.Descriptor instead.
func (*GetCommentResponse) GetCode ¶
func (x *GetCommentResponse) GetCode() GetCommentResponse_CODE
func (*GetCommentResponse) GetComment ¶
func (x *GetCommentResponse) GetComment() *Comment
func (*GetCommentResponse) GetErrMsg ¶
func (x *GetCommentResponse) GetErrMsg() string
func (*GetCommentResponse) ProtoMessage ¶
func (*GetCommentResponse) ProtoMessage()
func (*GetCommentResponse) ProtoReflect ¶
func (x *GetCommentResponse) ProtoReflect() protoreflect.Message
func (*GetCommentResponse) Reset ¶
func (x *GetCommentResponse) Reset()
func (*GetCommentResponse) String ¶
func (x *GetCommentResponse) String() string
type GetCommentResponse_CODE ¶
type GetCommentResponse_CODE int32
const ( GetCommentResponse_CODE_OK GetCommentResponse_CODE = 0 GetCommentResponse_CODE_WRONG_SESSION GetCommentResponse_CODE = 1 GetCommentResponse_CODE_NO_PROJECT GetCommentResponse_CODE = 2 GetCommentResponse_CODE_NO_PERMISSION GetCommentResponse_CODE = 3 GetCommentResponse_CODE_NO_COMMENT GetCommentResponse_CODE = 4 )
func (GetCommentResponse_CODE) Descriptor ¶
func (GetCommentResponse_CODE) Descriptor() protoreflect.EnumDescriptor
func (GetCommentResponse_CODE) Enum ¶
func (x GetCommentResponse_CODE) Enum() *GetCommentResponse_CODE
func (GetCommentResponse_CODE) EnumDescriptor
deprecated
func (GetCommentResponse_CODE) EnumDescriptor() ([]byte, []int)
Deprecated: Use GetCommentResponse_CODE.Descriptor instead.
func (GetCommentResponse_CODE) Number ¶
func (x GetCommentResponse_CODE) Number() protoreflect.EnumNumber
func (GetCommentResponse_CODE) String ¶
func (x GetCommentResponse_CODE) String() string
func (GetCommentResponse_CODE) Type ¶
func (GetCommentResponse_CODE) Type() protoreflect.EnumType
type ListCommentRequest ¶
type ListCommentRequest struct {
SessionId string `protobuf:"bytes,1,opt,name=sessionId,proto3" json:"sessionId,omitempty"`
ProjectId string `protobuf:"bytes,2,opt,name=projectId,proto3" json:"projectId,omitempty"`
ThreadId string `protobuf:"bytes,3,opt,name=threadId,proto3" json:"threadId,omitempty"`
// contains filtered or unexported fields
}
func (*ListCommentRequest) Descriptor
deprecated
func (*ListCommentRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListCommentRequest.ProtoReflect.Descriptor instead.
func (*ListCommentRequest) GetProjectId ¶
func (x *ListCommentRequest) GetProjectId() string
func (*ListCommentRequest) GetSessionId ¶
func (x *ListCommentRequest) GetSessionId() string
func (*ListCommentRequest) GetThreadId ¶
func (x *ListCommentRequest) GetThreadId() string
func (*ListCommentRequest) ProtoMessage ¶
func (*ListCommentRequest) ProtoMessage()
func (*ListCommentRequest) ProtoReflect ¶
func (x *ListCommentRequest) ProtoReflect() protoreflect.Message
func (*ListCommentRequest) Reset ¶
func (x *ListCommentRequest) Reset()
func (*ListCommentRequest) String ¶
func (x *ListCommentRequest) String() string
type ListCommentResponse ¶
type ListCommentResponse struct {
Code ListCommentResponse_CODE `protobuf:"varint,1,opt,name=code,proto3,enum=project_code_api.ListCommentResponse_CODE" json:"code,omitempty"`
ErrMsg string `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"`
CommentList []*Comment `protobuf:"bytes,3,rep,name=commentList,proto3" json:"commentList,omitempty"`
// contains filtered or unexported fields
}
func (*ListCommentResponse) Descriptor
deprecated
func (*ListCommentResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListCommentResponse.ProtoReflect.Descriptor instead.
func (*ListCommentResponse) GetCode ¶
func (x *ListCommentResponse) GetCode() ListCommentResponse_CODE
func (*ListCommentResponse) GetCommentList ¶
func (x *ListCommentResponse) GetCommentList() []*Comment
func (*ListCommentResponse) GetErrMsg ¶
func (x *ListCommentResponse) GetErrMsg() string
func (*ListCommentResponse) ProtoMessage ¶
func (*ListCommentResponse) ProtoMessage()
func (*ListCommentResponse) ProtoReflect ¶
func (x *ListCommentResponse) ProtoReflect() protoreflect.Message
func (*ListCommentResponse) Reset ¶
func (x *ListCommentResponse) Reset()
func (*ListCommentResponse) String ¶
func (x *ListCommentResponse) String() string
type ListCommentResponse_CODE ¶
type ListCommentResponse_CODE int32
const ( ListCommentResponse_CODE_OK ListCommentResponse_CODE = 0 ListCommentResponse_CODE_WRONG_SESSION ListCommentResponse_CODE = 1 ListCommentResponse_CODE_NO_PROJECT ListCommentResponse_CODE = 2 ListCommentResponse_CODE_NO_PERMISSION ListCommentResponse_CODE = 3 )
func (ListCommentResponse_CODE) Descriptor ¶
func (ListCommentResponse_CODE) Descriptor() protoreflect.EnumDescriptor
func (ListCommentResponse_CODE) Enum ¶
func (x ListCommentResponse_CODE) Enum() *ListCommentResponse_CODE
func (ListCommentResponse_CODE) EnumDescriptor
deprecated
func (ListCommentResponse_CODE) EnumDescriptor() ([]byte, []int)
Deprecated: Use ListCommentResponse_CODE.Descriptor instead.
func (ListCommentResponse_CODE) Number ¶
func (x ListCommentResponse_CODE) Number() protoreflect.EnumNumber
func (ListCommentResponse_CODE) String ¶
func (x ListCommentResponse_CODE) String() string
func (ListCommentResponse_CODE) Type ¶
func (ListCommentResponse_CODE) Type() protoreflect.EnumType
type ListThreadRequest ¶
type ListThreadRequest struct {
SessionId string `protobuf:"bytes,1,opt,name=sessionId,proto3" json:"sessionId,omitempty"`
ProjectId string `protobuf:"bytes,2,opt,name=projectId,proto3" json:"projectId,omitempty"`
Offset uint32 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"`
Limit uint32 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"`
// contains filtered or unexported fields
}
func (*ListThreadRequest) Descriptor
deprecated
func (*ListThreadRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListThreadRequest.ProtoReflect.Descriptor instead.
func (*ListThreadRequest) GetLimit ¶
func (x *ListThreadRequest) GetLimit() uint32
func (*ListThreadRequest) GetOffset ¶
func (x *ListThreadRequest) GetOffset() uint32
func (*ListThreadRequest) GetProjectId ¶
func (x *ListThreadRequest) GetProjectId() string
func (*ListThreadRequest) GetSessionId ¶
func (x *ListThreadRequest) GetSessionId() string
func (*ListThreadRequest) ProtoMessage ¶
func (*ListThreadRequest) ProtoMessage()
func (*ListThreadRequest) ProtoReflect ¶
func (x *ListThreadRequest) ProtoReflect() protoreflect.Message
func (*ListThreadRequest) Reset ¶
func (x *ListThreadRequest) Reset()
func (*ListThreadRequest) String ¶
func (x *ListThreadRequest) String() string
type ListThreadResponse ¶
type ListThreadResponse struct {
Code ListThreadResponse_CODE `protobuf:"varint,1,opt,name=code,proto3,enum=project_code_api.ListThreadResponse_CODE" json:"code,omitempty"`
ErrMsg string `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"`
TotalCount uint32 `protobuf:"varint,3,opt,name=totalCount,proto3" json:"totalCount,omitempty"`
ThreadList []*ThreadInfo `protobuf:"bytes,4,rep,name=threadList,proto3" json:"threadList,omitempty"`
// contains filtered or unexported fields
}
func (*ListThreadResponse) Descriptor
deprecated
func (*ListThreadResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListThreadResponse.ProtoReflect.Descriptor instead.
func (*ListThreadResponse) GetCode ¶
func (x *ListThreadResponse) GetCode() ListThreadResponse_CODE
func (*ListThreadResponse) GetErrMsg ¶
func (x *ListThreadResponse) GetErrMsg() string
func (*ListThreadResponse) GetThreadList ¶
func (x *ListThreadResponse) GetThreadList() []*ThreadInfo
func (*ListThreadResponse) GetTotalCount ¶
func (x *ListThreadResponse) GetTotalCount() uint32
func (*ListThreadResponse) ProtoMessage ¶
func (*ListThreadResponse) ProtoMessage()
func (*ListThreadResponse) ProtoReflect ¶
func (x *ListThreadResponse) ProtoReflect() protoreflect.Message
func (*ListThreadResponse) Reset ¶
func (x *ListThreadResponse) Reset()
func (*ListThreadResponse) String ¶
func (x *ListThreadResponse) String() string
type ListThreadResponse_CODE ¶
type ListThreadResponse_CODE int32
const ( ListThreadResponse_CODE_OK ListThreadResponse_CODE = 0 ListThreadResponse_CODE_WRONG_SESSION ListThreadResponse_CODE = 1 ListThreadResponse_CODE_NO_PROJECT ListThreadResponse_CODE = 2 ListThreadResponse_CODE_NO_PERMISSION ListThreadResponse_CODE = 3 )
func (ListThreadResponse_CODE) Descriptor ¶
func (ListThreadResponse_CODE) Descriptor() protoreflect.EnumDescriptor
func (ListThreadResponse_CODE) Enum ¶
func (x ListThreadResponse_CODE) Enum() *ListThreadResponse_CODE
func (ListThreadResponse_CODE) EnumDescriptor
deprecated
func (ListThreadResponse_CODE) EnumDescriptor() ([]byte, []int)
Deprecated: Use ListThreadResponse_CODE.Descriptor instead.
func (ListThreadResponse_CODE) Number ¶
func (x ListThreadResponse_CODE) Number() protoreflect.EnumNumber
func (ListThreadResponse_CODE) String ¶
func (x ListThreadResponse_CODE) String() string
func (ListThreadResponse_CODE) Type ¶
func (ListThreadResponse_CODE) Type() protoreflect.EnumType
type ProjectCodeApiClient ¶
type ProjectCodeApiClient interface {
// 列出评论会话
ListThread(ctx context.Context, in *ListThreadRequest, opts ...grpc.CallOption) (*ListThreadResponse, error)
// 创建代码评论
AddComment(ctx context.Context, in *AddCommentRequest, opts ...grpc.CallOption) (*AddCommentResponse, error)
// 更新代码评论
UpdateComment(ctx context.Context, in *UpdateCommentRequest, opts ...grpc.CallOption) (*UpdateCommentResponse, error)
// 列出代码评论
ListComment(ctx context.Context, in *ListCommentRequest, opts ...grpc.CallOption) (*ListCommentResponse, error)
// 获取单个代码评论
GetComment(ctx context.Context, in *GetCommentRequest, opts ...grpc.CallOption) (*GetCommentResponse, error)
// 删除代码评论
RemoveComment(ctx context.Context, in *RemoveCommentRequest, opts ...grpc.CallOption) (*RemoveCommentResponse, error)
}
ProjectCodeApiClient is the client API for ProjectCodeApi 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 NewProjectCodeApiClient ¶
func NewProjectCodeApiClient(cc grpc.ClientConnInterface) ProjectCodeApiClient
type ProjectCodeApiServer ¶
type ProjectCodeApiServer interface {
// 列出评论会话
ListThread(context.Context, *ListThreadRequest) (*ListThreadResponse, error)
// 创建代码评论
AddComment(context.Context, *AddCommentRequest) (*AddCommentResponse, error)
// 更新代码评论
UpdateComment(context.Context, *UpdateCommentRequest) (*UpdateCommentResponse, error)
// 列出代码评论
ListComment(context.Context, *ListCommentRequest) (*ListCommentResponse, error)
// 获取单个代码评论
GetComment(context.Context, *GetCommentRequest) (*GetCommentResponse, error)
// 删除代码评论
RemoveComment(context.Context, *RemoveCommentRequest) (*RemoveCommentResponse, error)
// contains filtered or unexported methods
}
ProjectCodeApiServer is the server API for ProjectCodeApi service. All implementations must embed UnimplementedProjectCodeApiServer for forward compatibility
type RemoveCommentRequest ¶
type RemoveCommentRequest struct {
SessionId string `protobuf:"bytes,1,opt,name=sessionId,proto3" json:"sessionId,omitempty"`
ProjectId string `protobuf:"bytes,2,opt,name=projectId,proto3" json:"projectId,omitempty"`
CommentId string `protobuf:"bytes,3,opt,name=commentId,proto3" json:"commentId,omitempty"`
// contains filtered or unexported fields
}
func (*RemoveCommentRequest) Descriptor
deprecated
func (*RemoveCommentRequest) Descriptor() ([]byte, []int)
Deprecated: Use RemoveCommentRequest.ProtoReflect.Descriptor instead.
func (*RemoveCommentRequest) GetCommentId ¶
func (x *RemoveCommentRequest) GetCommentId() string
func (*RemoveCommentRequest) GetProjectId ¶
func (x *RemoveCommentRequest) GetProjectId() string
func (*RemoveCommentRequest) GetSessionId ¶
func (x *RemoveCommentRequest) GetSessionId() string
func (*RemoveCommentRequest) ProtoMessage ¶
func (*RemoveCommentRequest) ProtoMessage()
func (*RemoveCommentRequest) ProtoReflect ¶
func (x *RemoveCommentRequest) ProtoReflect() protoreflect.Message
func (*RemoveCommentRequest) Reset ¶
func (x *RemoveCommentRequest) Reset()
func (*RemoveCommentRequest) String ¶
func (x *RemoveCommentRequest) String() string
type RemoveCommentResponse ¶
type RemoveCommentResponse struct {
Code RemoveCommentResponse_CODE `protobuf:"varint,1,opt,name=code,proto3,enum=project_code_api.RemoveCommentResponse_CODE" json:"code,omitempty"`
ErrMsg string `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"`
// contains filtered or unexported fields
}
func (*RemoveCommentResponse) Descriptor
deprecated
func (*RemoveCommentResponse) Descriptor() ([]byte, []int)
Deprecated: Use RemoveCommentResponse.ProtoReflect.Descriptor instead.
func (*RemoveCommentResponse) GetCode ¶
func (x *RemoveCommentResponse) GetCode() RemoveCommentResponse_CODE
func (*RemoveCommentResponse) GetErrMsg ¶
func (x *RemoveCommentResponse) GetErrMsg() string
func (*RemoveCommentResponse) ProtoMessage ¶
func (*RemoveCommentResponse) ProtoMessage()
func (*RemoveCommentResponse) ProtoReflect ¶
func (x *RemoveCommentResponse) ProtoReflect() protoreflect.Message
func (*RemoveCommentResponse) Reset ¶
func (x *RemoveCommentResponse) Reset()
func (*RemoveCommentResponse) String ¶
func (x *RemoveCommentResponse) String() string
type RemoveCommentResponse_CODE ¶
type RemoveCommentResponse_CODE int32
const ( RemoveCommentResponse_CODE_OK RemoveCommentResponse_CODE = 0 RemoveCommentResponse_CODE_WRONG_SESSION RemoveCommentResponse_CODE = 1 RemoveCommentResponse_CODE_NO_PROJECT RemoveCommentResponse_CODE = 2 RemoveCommentResponse_CODE_NO_PERMISSION RemoveCommentResponse_CODE = 3 RemoveCommentResponse_CODE_NO_COMMENT RemoveCommentResponse_CODE = 4 )
func (RemoveCommentResponse_CODE) Descriptor ¶
func (RemoveCommentResponse_CODE) Descriptor() protoreflect.EnumDescriptor
func (RemoveCommentResponse_CODE) Enum ¶
func (x RemoveCommentResponse_CODE) Enum() *RemoveCommentResponse_CODE
func (RemoveCommentResponse_CODE) EnumDescriptor
deprecated
func (RemoveCommentResponse_CODE) EnumDescriptor() ([]byte, []int)
Deprecated: Use RemoveCommentResponse_CODE.Descriptor instead.
func (RemoveCommentResponse_CODE) Number ¶
func (x RemoveCommentResponse_CODE) Number() protoreflect.EnumNumber
func (RemoveCommentResponse_CODE) String ¶
func (x RemoveCommentResponse_CODE) String() string
func (RemoveCommentResponse_CODE) Type ¶
func (RemoveCommentResponse_CODE) Type() protoreflect.EnumType
type ThreadInfo ¶
type ThreadInfo struct {
ThreadId string `protobuf:"bytes,1,opt,name=threadId,proto3" json:"threadId,omitempty"`
CreateTime int64 `protobuf:"varint,2,opt,name=createTime,proto3" json:"createTime,omitempty"`
UpdateTime int64 `protobuf:"varint,3,opt,name=updateTime,proto3" json:"updateTime,omitempty"`
CommentCount uint32 `protobuf:"varint,4,opt,name=commentCount,proto3" json:"commentCount,omitempty"`
CommentUserList []*CommentUser `protobuf:"bytes,5,rep,name=commentUserList,proto3" json:"commentUserList,omitempty"`
LastComment *Comment `protobuf:"bytes,6,opt,name=lastComment,proto3" json:"lastComment,omitempty"`
// contains filtered or unexported fields
}
func (*ThreadInfo) Descriptor
deprecated
func (*ThreadInfo) Descriptor() ([]byte, []int)
Deprecated: Use ThreadInfo.ProtoReflect.Descriptor instead.
func (*ThreadInfo) GetCommentCount ¶
func (x *ThreadInfo) GetCommentCount() uint32
func (*ThreadInfo) GetCommentUserList ¶
func (x *ThreadInfo) GetCommentUserList() []*CommentUser
func (*ThreadInfo) GetCreateTime ¶
func (x *ThreadInfo) GetCreateTime() int64
func (*ThreadInfo) GetLastComment ¶
func (x *ThreadInfo) GetLastComment() *Comment
func (*ThreadInfo) GetThreadId ¶
func (x *ThreadInfo) GetThreadId() string
func (*ThreadInfo) GetUpdateTime ¶
func (x *ThreadInfo) GetUpdateTime() int64
func (*ThreadInfo) ProtoMessage ¶
func (*ThreadInfo) ProtoMessage()
func (*ThreadInfo) ProtoReflect ¶
func (x *ThreadInfo) ProtoReflect() protoreflect.Message
func (*ThreadInfo) Reset ¶
func (x *ThreadInfo) Reset()
func (*ThreadInfo) String ¶
func (x *ThreadInfo) String() string
type UnimplementedProjectCodeApiServer ¶
type UnimplementedProjectCodeApiServer struct {
}
UnimplementedProjectCodeApiServer must be embedded to have forward compatible implementations.
func (UnimplementedProjectCodeApiServer) AddComment ¶
func (UnimplementedProjectCodeApiServer) AddComment(context.Context, *AddCommentRequest) (*AddCommentResponse, error)
func (UnimplementedProjectCodeApiServer) GetComment ¶
func (UnimplementedProjectCodeApiServer) GetComment(context.Context, *GetCommentRequest) (*GetCommentResponse, error)
func (UnimplementedProjectCodeApiServer) ListComment ¶
func (UnimplementedProjectCodeApiServer) ListComment(context.Context, *ListCommentRequest) (*ListCommentResponse, error)
func (UnimplementedProjectCodeApiServer) ListThread ¶
func (UnimplementedProjectCodeApiServer) ListThread(context.Context, *ListThreadRequest) (*ListThreadResponse, error)
func (UnimplementedProjectCodeApiServer) RemoveComment ¶
func (UnimplementedProjectCodeApiServer) RemoveComment(context.Context, *RemoveCommentRequest) (*RemoveCommentResponse, error)
func (UnimplementedProjectCodeApiServer) UpdateComment ¶
func (UnimplementedProjectCodeApiServer) UpdateComment(context.Context, *UpdateCommentRequest) (*UpdateCommentResponse, error)
type UnsafeProjectCodeApiServer ¶
type UnsafeProjectCodeApiServer interface {
// contains filtered or unexported methods
}
UnsafeProjectCodeApiServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ProjectCodeApiServer will result in compilation errors.
type UpdateCommentRequest ¶
type UpdateCommentRequest struct {
SessionId string `protobuf:"bytes,1,opt,name=sessionId,proto3" json:"sessionId,omitempty"`
ProjectId string `protobuf:"bytes,2,opt,name=projectId,proto3" json:"projectId,omitempty"`
CommentId string `protobuf:"bytes,3,opt,name=commentId,proto3" json:"commentId,omitempty"`
ContentType CONTENT_TYPE `protobuf:"varint,4,opt,name=contentType,proto3,enum=project_code_api.CONTENT_TYPE" json:"contentType,omitempty"`
Content string `protobuf:"bytes,5,opt,name=content,proto3" json:"content,omitempty"`
// contains filtered or unexported fields
}
func (*UpdateCommentRequest) Descriptor
deprecated
func (*UpdateCommentRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateCommentRequest.ProtoReflect.Descriptor instead.
func (*UpdateCommentRequest) GetCommentId ¶
func (x *UpdateCommentRequest) GetCommentId() string
func (*UpdateCommentRequest) GetContent ¶
func (x *UpdateCommentRequest) GetContent() string
func (*UpdateCommentRequest) GetContentType ¶
func (x *UpdateCommentRequest) GetContentType() CONTENT_TYPE
func (*UpdateCommentRequest) GetProjectId ¶
func (x *UpdateCommentRequest) GetProjectId() string
func (*UpdateCommentRequest) GetSessionId ¶
func (x *UpdateCommentRequest) GetSessionId() string
func (*UpdateCommentRequest) ProtoMessage ¶
func (*UpdateCommentRequest) ProtoMessage()
func (*UpdateCommentRequest) ProtoReflect ¶
func (x *UpdateCommentRequest) ProtoReflect() protoreflect.Message
func (*UpdateCommentRequest) Reset ¶
func (x *UpdateCommentRequest) Reset()
func (*UpdateCommentRequest) String ¶
func (x *UpdateCommentRequest) String() string
type UpdateCommentResponse ¶
type UpdateCommentResponse struct {
Code UpdateCommentResponse_CODE `protobuf:"varint,1,opt,name=code,proto3,enum=project_code_api.UpdateCommentResponse_CODE" json:"code,omitempty"`
ErrMsg string `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"`
// contains filtered or unexported fields
}
func (*UpdateCommentResponse) Descriptor
deprecated
func (*UpdateCommentResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateCommentResponse.ProtoReflect.Descriptor instead.
func (*UpdateCommentResponse) GetCode ¶
func (x *UpdateCommentResponse) GetCode() UpdateCommentResponse_CODE
func (*UpdateCommentResponse) GetErrMsg ¶
func (x *UpdateCommentResponse) GetErrMsg() string
func (*UpdateCommentResponse) ProtoMessage ¶
func (*UpdateCommentResponse) ProtoMessage()
func (*UpdateCommentResponse) ProtoReflect ¶
func (x *UpdateCommentResponse) ProtoReflect() protoreflect.Message
func (*UpdateCommentResponse) Reset ¶
func (x *UpdateCommentResponse) Reset()
func (*UpdateCommentResponse) String ¶
func (x *UpdateCommentResponse) String() string
type UpdateCommentResponse_CODE ¶
type UpdateCommentResponse_CODE int32
const ( UpdateCommentResponse_CODE_OK UpdateCommentResponse_CODE = 0 UpdateCommentResponse_CODE_WRONG_SESSION UpdateCommentResponse_CODE = 1 UpdateCommentResponse_CODE_NO_PROJECT UpdateCommentResponse_CODE = 2 UpdateCommentResponse_CODE_NO_PERMISSION UpdateCommentResponse_CODE = 3 UpdateCommentResponse_CODE_NO_COMMENT UpdateCommentResponse_CODE = 4 )
func (UpdateCommentResponse_CODE) Descriptor ¶
func (UpdateCommentResponse_CODE) Descriptor() protoreflect.EnumDescriptor
func (UpdateCommentResponse_CODE) Enum ¶
func (x UpdateCommentResponse_CODE) Enum() *UpdateCommentResponse_CODE
func (UpdateCommentResponse_CODE) EnumDescriptor
deprecated
func (UpdateCommentResponse_CODE) EnumDescriptor() ([]byte, []int)
Deprecated: Use UpdateCommentResponse_CODE.Descriptor instead.
func (UpdateCommentResponse_CODE) Number ¶
func (x UpdateCommentResponse_CODE) Number() protoreflect.EnumNumber
func (UpdateCommentResponse_CODE) String ¶
func (x UpdateCommentResponse_CODE) String() string
func (UpdateCommentResponse_CODE) Type ¶
func (UpdateCommentResponse_CODE) Type() protoreflect.EnumType
Source Files
¶
- project_code_api.pb.go
- project_code_api_grpc.pb.go