Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterTeamKnowledgeApiServer(s grpc.ServiceRegistrar, srv TeamKnowledgeApiServer)
- type AGREE_TYPE
- type AgreeRequest
- func (*AgreeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AgreeRequest) GetKnowledgeId() string
- func (x *AgreeRequest) GetSessionId() string
- func (x *AgreeRequest) GetTeamId() string
- func (*AgreeRequest) ProtoMessage()
- func (x *AgreeRequest) ProtoReflect() protoreflect.Message
- func (x *AgreeRequest) Reset()
- func (x *AgreeRequest) String() string
- type AgreeResponse
- func (*AgreeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AgreeResponse) GetCode() AgreeResponse_CODE
- func (x *AgreeResponse) GetErrMsg() string
- func (*AgreeResponse) ProtoMessage()
- func (x *AgreeResponse) ProtoReflect() protoreflect.Message
- func (x *AgreeResponse) Reset()
- func (x *AgreeResponse) String() string
- type AgreeResponse_CODE
- func (AgreeResponse_CODE) Descriptor() protoreflect.EnumDescriptor
- func (x AgreeResponse_CODE) Enum() *AgreeResponse_CODE
- func (AgreeResponse_CODE) EnumDescriptor() ([]byte, []int)deprecated
- func (x AgreeResponse_CODE) Number() protoreflect.EnumNumber
- func (x AgreeResponse_CODE) String() string
- func (AgreeResponse_CODE) Type() protoreflect.EnumType
- type BasicKnowledgeInfo
- func (*BasicKnowledgeInfo) Descriptor() ([]byte, []int)deprecated
- func (x *BasicKnowledgeInfo) GetContent() string
- func (x *BasicKnowledgeInfo) GetKnowledgeName() string
- func (*BasicKnowledgeInfo) ProtoMessage()
- func (x *BasicKnowledgeInfo) ProtoReflect() protoreflect.Message
- func (x *BasicKnowledgeInfo) Reset()
- func (x *BasicKnowledgeInfo) String() string
- type ClearMyVoteRequest
- func (*ClearMyVoteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ClearMyVoteRequest) GetKnowledgeId() string
- func (x *ClearMyVoteRequest) GetSessionId() string
- func (x *ClearMyVoteRequest) GetTeamId() string
- func (*ClearMyVoteRequest) ProtoMessage()
- func (x *ClearMyVoteRequest) ProtoReflect() protoreflect.Message
- func (x *ClearMyVoteRequest) Reset()
- func (x *ClearMyVoteRequest) String() string
- type ClearMyVoteResponse
- func (*ClearMyVoteResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ClearMyVoteResponse) GetCode() ClearMyVoteResponse_CODE
- func (x *ClearMyVoteResponse) GetErrMsg() string
- func (*ClearMyVoteResponse) ProtoMessage()
- func (x *ClearMyVoteResponse) ProtoReflect() protoreflect.Message
- func (x *ClearMyVoteResponse) Reset()
- func (x *ClearMyVoteResponse) String() string
- type ClearMyVoteResponse_CODE
- func (ClearMyVoteResponse_CODE) Descriptor() protoreflect.EnumDescriptor
- func (x ClearMyVoteResponse_CODE) Enum() *ClearMyVoteResponse_CODE
- func (ClearMyVoteResponse_CODE) EnumDescriptor() ([]byte, []int)deprecated
- func (x ClearMyVoteResponse_CODE) Number() protoreflect.EnumNumber
- func (x ClearMyVoteResponse_CODE) String() string
- func (ClearMyVoteResponse_CODE) Type() protoreflect.EnumType
- type CreateRequest
- func (*CreateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRequest) GetBasicInfo() *BasicKnowledgeInfo
- func (x *CreateRequest) GetCateId() string
- func (x *CreateRequest) GetMatchWordList() []string
- func (x *CreateRequest) GetSessionId() string
- func (x *CreateRequest) GetTeamId() string
- func (*CreateRequest) ProtoMessage()
- func (x *CreateRequest) ProtoReflect() protoreflect.Message
- func (x *CreateRequest) Reset()
- func (x *CreateRequest) String() string
- type CreateResponse
- func (*CreateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateResponse) GetCode() CreateResponse_CODE
- func (x *CreateResponse) GetErrMsg() string
- func (x *CreateResponse) GetKnowledgeId() string
- func (*CreateResponse) ProtoMessage()
- func (x *CreateResponse) ProtoReflect() protoreflect.Message
- func (x *CreateResponse) Reset()
- func (x *CreateResponse) String() string
- type CreateResponse_CODE
- func (CreateResponse_CODE) Descriptor() protoreflect.EnumDescriptor
- func (x CreateResponse_CODE) Enum() *CreateResponse_CODE
- func (CreateResponse_CODE) EnumDescriptor() ([]byte, []int)deprecated
- func (x CreateResponse_CODE) Number() protoreflect.EnumNumber
- func (x CreateResponse_CODE) String() string
- func (CreateResponse_CODE) Type() protoreflect.EnumType
- type DisagreeRequest
- func (*DisagreeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DisagreeRequest) GetKnowledgeId() string
- func (x *DisagreeRequest) GetSessionId() string
- func (x *DisagreeRequest) GetTeamId() string
- func (*DisagreeRequest) ProtoMessage()
- func (x *DisagreeRequest) ProtoReflect() protoreflect.Message
- func (x *DisagreeRequest) Reset()
- func (x *DisagreeRequest) String() string
- type DisagreeResponse
- func (*DisagreeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DisagreeResponse) GetCode() DisagreeResponse_CODE
- func (x *DisagreeResponse) GetErrMsg() string
- func (*DisagreeResponse) ProtoMessage()
- func (x *DisagreeResponse) ProtoReflect() protoreflect.Message
- func (x *DisagreeResponse) Reset()
- func (x *DisagreeResponse) String() string
- type DisagreeResponse_CODE
- func (DisagreeResponse_CODE) Descriptor() protoreflect.EnumDescriptor
- func (x DisagreeResponse_CODE) Enum() *DisagreeResponse_CODE
- func (DisagreeResponse_CODE) EnumDescriptor() ([]byte, []int)deprecated
- func (x DisagreeResponse_CODE) Number() protoreflect.EnumNumber
- func (x DisagreeResponse_CODE) String() string
- func (DisagreeResponse_CODE) Type() protoreflect.EnumType
- type ExistRequest
- func (*ExistRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ExistRequest) GetKnowledgeId() string
- func (x *ExistRequest) GetSessionId() string
- func (x *ExistRequest) GetTeamId() string
- func (*ExistRequest) ProtoMessage()
- func (x *ExistRequest) ProtoReflect() protoreflect.Message
- func (x *ExistRequest) Reset()
- func (x *ExistRequest) String() string
- type ExistResponse
- func (*ExistResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ExistResponse) GetCode() ExistResponse_CODE
- func (x *ExistResponse) GetErrMsg() string
- func (x *ExistResponse) GetExist() bool
- func (*ExistResponse) ProtoMessage()
- func (x *ExistResponse) ProtoReflect() protoreflect.Message
- func (x *ExistResponse) Reset()
- func (x *ExistResponse) String() string
- type ExistResponse_CODE
- func (ExistResponse_CODE) Descriptor() protoreflect.EnumDescriptor
- func (x ExistResponse_CODE) Enum() *ExistResponse_CODE
- func (ExistResponse_CODE) EnumDescriptor() ([]byte, []int)deprecated
- func (x ExistResponse_CODE) Number() protoreflect.EnumNumber
- func (x ExistResponse_CODE) String() string
- func (ExistResponse_CODE) Type() protoreflect.EnumType
- type GetRequest
- func (*GetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetRequest) GetKnowledgeId() string
- func (x *GetRequest) GetSessionId() string
- func (x *GetRequest) GetTeamId() string
- func (x *GetRequest) GetWithContent() bool
- func (*GetRequest) ProtoMessage()
- func (x *GetRequest) ProtoReflect() protoreflect.Message
- func (x *GetRequest) Reset()
- func (x *GetRequest) String() string
- type GetResponse
- func (*GetResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetResponse) GetCode() GetResponse_CODE
- func (x *GetResponse) GetErrMsg() string
- func (x *GetResponse) GetKnowledge() *KnowledgeInfo
- func (*GetResponse) ProtoMessage()
- func (x *GetResponse) ProtoReflect() protoreflect.Message
- func (x *GetResponse) Reset()
- func (x *GetResponse) String() string
- type GetResponse_CODE
- func (GetResponse_CODE) Descriptor() protoreflect.EnumDescriptor
- func (x GetResponse_CODE) Enum() *GetResponse_CODE
- func (GetResponse_CODE) EnumDescriptor() ([]byte, []int)deprecated
- func (x GetResponse_CODE) Number() protoreflect.EnumNumber
- func (x GetResponse_CODE) String() string
- func (GetResponse_CODE) Type() protoreflect.EnumType
- type KnowledgeInfo
- func (*KnowledgeInfo) Descriptor() ([]byte, []int)deprecated
- func (x *KnowledgeInfo) GetAgreeCount() uint32
- func (x *KnowledgeInfo) GetBasicInfo() *BasicKnowledgeInfo
- func (x *KnowledgeInfo) GetCateId() string
- func (x *KnowledgeInfo) GetCateName() string
- func (x *KnowledgeInfo) GetCreateDisplayName() string
- func (x *KnowledgeInfo) GetCreateLogoUri() string
- func (x *KnowledgeInfo) GetCreateTime() int64
- func (x *KnowledgeInfo) GetCreateUserId() string
- func (x *KnowledgeInfo) GetDisagreeCount() uint32
- func (x *KnowledgeInfo) GetKnowledgeId() string
- func (x *KnowledgeInfo) GetMatchWordList() []string
- func (x *KnowledgeInfo) GetMyAgreeType() AGREE_TYPE
- func (x *KnowledgeInfo) GetPerm() *Perm
- func (x *KnowledgeInfo) GetUpdateDisplayName() string
- func (x *KnowledgeInfo) GetUpdateLogoUri() string
- func (x *KnowledgeInfo) GetUpdateTime() int64
- func (x *KnowledgeInfo) GetUpdateUserId() string
- func (x *KnowledgeInfo) GetUserPerm() *UserPerm
- func (*KnowledgeInfo) ProtoMessage()
- func (x *KnowledgeInfo) ProtoReflect() protoreflect.Message
- func (x *KnowledgeInfo) Reset()
- func (x *KnowledgeInfo) String() string
- type ListParam
- func (*ListParam) Descriptor() ([]byte, []int)deprecated
- func (x *ListParam) GetCateId() string
- func (x *ListParam) GetFilterByCateId() bool
- func (x *ListParam) GetFilterByKeyword() bool
- func (x *ListParam) GetFilterByMatchWordList() bool
- func (x *ListParam) GetKeyword() string
- func (x *ListParam) GetMatchWordList() []string
- func (*ListParam) ProtoMessage()
- func (x *ListParam) ProtoReflect() protoreflect.Message
- func (x *ListParam) Reset()
- func (x *ListParam) String() string
- type ListRequest
- func (*ListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListRequest) GetLimit() uint32
- func (x *ListRequest) GetListParam() *ListParam
- func (x *ListRequest) GetOffset() uint32
- func (x *ListRequest) GetSessionId() string
- func (x *ListRequest) GetSortBy() SORT_BY
- func (x *ListRequest) GetTeamId() string
- func (x *ListRequest) GetWithContent() bool
- func (*ListRequest) ProtoMessage()
- func (x *ListRequest) ProtoReflect() protoreflect.Message
- func (x *ListRequest) Reset()
- func (x *ListRequest) String() string
- type ListResponse
- func (*ListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListResponse) GetCode() ListResponse_CODE
- func (x *ListResponse) GetErrMsg() string
- func (x *ListResponse) GetKnowledgeList() []*KnowledgeInfo
- func (x *ListResponse) GetTotalCount() uint32
- func (*ListResponse) ProtoMessage()
- func (x *ListResponse) ProtoReflect() protoreflect.Message
- func (x *ListResponse) Reset()
- func (x *ListResponse) String() string
- type ListResponse_CODE
- func (ListResponse_CODE) Descriptor() protoreflect.EnumDescriptor
- func (x ListResponse_CODE) Enum() *ListResponse_CODE
- func (ListResponse_CODE) EnumDescriptor() ([]byte, []int)deprecated
- func (x ListResponse_CODE) Number() protoreflect.EnumNumber
- func (x ListResponse_CODE) String() string
- func (ListResponse_CODE) Type() protoreflect.EnumType
- type MoveRequest
- func (*MoveRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MoveRequest) GetCateId() string
- func (x *MoveRequest) GetKnowledgeId() string
- func (x *MoveRequest) GetSessionId() string
- func (x *MoveRequest) GetTeamId() string
- func (*MoveRequest) ProtoMessage()
- func (x *MoveRequest) ProtoReflect() protoreflect.Message
- func (x *MoveRequest) Reset()
- func (x *MoveRequest) String() string
- type MoveResponse
- func (*MoveResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MoveResponse) GetCode() MoveResponse_CODE
- func (x *MoveResponse) GetErrMsg() string
- func (*MoveResponse) ProtoMessage()
- func (x *MoveResponse) ProtoReflect() protoreflect.Message
- func (x *MoveResponse) Reset()
- func (x *MoveResponse) String() string
- type MoveResponse_CODE
- func (MoveResponse_CODE) Descriptor() protoreflect.EnumDescriptor
- func (x MoveResponse_CODE) Enum() *MoveResponse_CODE
- func (MoveResponse_CODE) EnumDescriptor() ([]byte, []int)deprecated
- func (x MoveResponse_CODE) Number() protoreflect.EnumNumber
- func (x MoveResponse_CODE) String() string
- func (MoveResponse_CODE) Type() protoreflect.EnumType
- type Perm
- func (*Perm) Descriptor() ([]byte, []int)deprecated
- func (x *Perm) GetPermMemberUserIdList() []string
- func (x *Perm) GetRemoveMemberUserIdList() []string
- func (x *Perm) GetUpdateMemberUserIdList() []string
- func (*Perm) ProtoMessage()
- func (x *Perm) ProtoReflect() protoreflect.Message
- func (x *Perm) Reset()
- func (x *Perm) String() string
- type RemoveRequest
- func (*RemoveRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveRequest) GetKnowledgeId() string
- func (x *RemoveRequest) GetSessionId() string
- func (x *RemoveRequest) GetTeamId() string
- func (*RemoveRequest) ProtoMessage()
- func (x *RemoveRequest) ProtoReflect() protoreflect.Message
- func (x *RemoveRequest) Reset()
- func (x *RemoveRequest) String() string
- type RemoveResponse
- func (*RemoveResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveResponse) GetCode() RemoveResponse_CODE
- func (x *RemoveResponse) GetErrMsg() string
- func (*RemoveResponse) ProtoMessage()
- func (x *RemoveResponse) ProtoReflect() protoreflect.Message
- func (x *RemoveResponse) Reset()
- func (x *RemoveResponse) String() string
- type RemoveResponse_CODE
- func (RemoveResponse_CODE) Descriptor() protoreflect.EnumDescriptor
- func (x RemoveResponse_CODE) Enum() *RemoveResponse_CODE
- func (RemoveResponse_CODE) EnumDescriptor() ([]byte, []int)deprecated
- func (x RemoveResponse_CODE) Number() protoreflect.EnumNumber
- func (x RemoveResponse_CODE) String() string
- func (RemoveResponse_CODE) Type() protoreflect.EnumType
- type SORT_BY
- type TeamKnowledgeApiClient
- type TeamKnowledgeApiServer
- type UnimplementedTeamKnowledgeApiServer
- func (UnimplementedTeamKnowledgeApiServer) Agree(context.Context, *AgreeRequest) (*AgreeResponse, error)
- func (UnimplementedTeamKnowledgeApiServer) ClearMyVote(context.Context, *ClearMyVoteRequest) (*ClearMyVoteResponse, error)
- func (UnimplementedTeamKnowledgeApiServer) Create(context.Context, *CreateRequest) (*CreateResponse, error)
- func (UnimplementedTeamKnowledgeApiServer) Disagree(context.Context, *DisagreeRequest) (*DisagreeResponse, error)
- func (UnimplementedTeamKnowledgeApiServer) Exist(context.Context, *ExistRequest) (*ExistResponse, error)
- func (UnimplementedTeamKnowledgeApiServer) Get(context.Context, *GetRequest) (*GetResponse, error)
- func (UnimplementedTeamKnowledgeApiServer) List(context.Context, *ListRequest) (*ListResponse, error)
- func (UnimplementedTeamKnowledgeApiServer) Move(context.Context, *MoveRequest) (*MoveResponse, error)
- func (UnimplementedTeamKnowledgeApiServer) Remove(context.Context, *RemoveRequest) (*RemoveResponse, error)
- func (UnimplementedTeamKnowledgeApiServer) UpdateBasic(context.Context, *UpdateBasicRequest) (*UpdateBasicResponse, error)
- func (UnimplementedTeamKnowledgeApiServer) UpdateMatchWord(context.Context, *UpdateMatchWordRequest) (*UpdateMatchWordResponse, error)
- func (UnimplementedTeamKnowledgeApiServer) UpdatePerm(context.Context, *UpdatePermRequest) (*UpdatePermResponse, error)
- type UnsafeTeamKnowledgeApiServer
- type UpdateBasicRequest
- func (*UpdateBasicRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateBasicRequest) GetBasicInfo() *BasicKnowledgeInfo
- func (x *UpdateBasicRequest) GetKnowledgeId() string
- func (x *UpdateBasicRequest) GetSessionId() string
- func (x *UpdateBasicRequest) GetTeamId() string
- func (x *UpdateBasicRequest) GetWithContent() bool
- func (*UpdateBasicRequest) ProtoMessage()
- func (x *UpdateBasicRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateBasicRequest) Reset()
- func (x *UpdateBasicRequest) String() string
- type UpdateBasicResponse
- func (*UpdateBasicResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateBasicResponse) GetCode() UpdateBasicResponse_CODE
- func (x *UpdateBasicResponse) GetErrMsg() string
- func (*UpdateBasicResponse) ProtoMessage()
- func (x *UpdateBasicResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateBasicResponse) Reset()
- func (x *UpdateBasicResponse) String() string
- type UpdateBasicResponse_CODE
- func (UpdateBasicResponse_CODE) Descriptor() protoreflect.EnumDescriptor
- func (x UpdateBasicResponse_CODE) Enum() *UpdateBasicResponse_CODE
- func (UpdateBasicResponse_CODE) EnumDescriptor() ([]byte, []int)deprecated
- func (x UpdateBasicResponse_CODE) Number() protoreflect.EnumNumber
- func (x UpdateBasicResponse_CODE) String() string
- func (UpdateBasicResponse_CODE) Type() protoreflect.EnumType
- type UpdateMatchWordRequest
- func (*UpdateMatchWordRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateMatchWordRequest) GetKnowledgeId() string
- func (x *UpdateMatchWordRequest) GetMatchWordList() []string
- func (x *UpdateMatchWordRequest) GetSessionId() string
- func (x *UpdateMatchWordRequest) GetTeamId() string
- func (*UpdateMatchWordRequest) ProtoMessage()
- func (x *UpdateMatchWordRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateMatchWordRequest) Reset()
- func (x *UpdateMatchWordRequest) String() string
- type UpdateMatchWordResponse
- func (*UpdateMatchWordResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateMatchWordResponse) GetCode() UpdateMatchWordResponse_CODE
- func (x *UpdateMatchWordResponse) GetErrMsg() string
- func (*UpdateMatchWordResponse) ProtoMessage()
- func (x *UpdateMatchWordResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateMatchWordResponse) Reset()
- func (x *UpdateMatchWordResponse) String() string
- type UpdateMatchWordResponse_CODE
- func (UpdateMatchWordResponse_CODE) Descriptor() protoreflect.EnumDescriptor
- func (x UpdateMatchWordResponse_CODE) Enum() *UpdateMatchWordResponse_CODE
- func (UpdateMatchWordResponse_CODE) EnumDescriptor() ([]byte, []int)deprecated
- func (x UpdateMatchWordResponse_CODE) Number() protoreflect.EnumNumber
- func (x UpdateMatchWordResponse_CODE) String() string
- func (UpdateMatchWordResponse_CODE) Type() protoreflect.EnumType
- type UpdatePermRequest
- func (*UpdatePermRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdatePermRequest) GetKnowledgeId() string
- func (x *UpdatePermRequest) GetPerm() *Perm
- func (x *UpdatePermRequest) GetSessionId() string
- func (x *UpdatePermRequest) GetTeamId() string
- func (*UpdatePermRequest) ProtoMessage()
- func (x *UpdatePermRequest) ProtoReflect() protoreflect.Message
- func (x *UpdatePermRequest) Reset()
- func (x *UpdatePermRequest) String() string
- type UpdatePermResponse
- func (*UpdatePermResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdatePermResponse) GetCode() UpdatePermResponse_CODE
- func (x *UpdatePermResponse) GetErrMsg() string
- func (*UpdatePermResponse) ProtoMessage()
- func (x *UpdatePermResponse) ProtoReflect() protoreflect.Message
- func (x *UpdatePermResponse) Reset()
- func (x *UpdatePermResponse) String() string
- type UpdatePermResponse_CODE
- func (UpdatePermResponse_CODE) Descriptor() protoreflect.EnumDescriptor
- func (x UpdatePermResponse_CODE) Enum() *UpdatePermResponse_CODE
- func (UpdatePermResponse_CODE) EnumDescriptor() ([]byte, []int)deprecated
- func (x UpdatePermResponse_CODE) Number() protoreflect.EnumNumber
- func (x UpdatePermResponse_CODE) String() string
- func (UpdatePermResponse_CODE) Type() protoreflect.EnumType
- type UserPerm
- func (*UserPerm) Descriptor() ([]byte, []int)deprecated
- func (x *UserPerm) GetCanRemove() bool
- func (x *UserPerm) GetCanUpdateBasic() bool
- func (x *UserPerm) GetCanUpdatePerm() bool
- func (*UserPerm) ProtoMessage()
- func (x *UserPerm) ProtoReflect() protoreflect.Message
- func (x *UserPerm) Reset()
- func (x *UserPerm) String() string
Constants ¶
const ( TeamKnowledgeApi_Create_FullMethodName = "/team_knowledge_api.TeamKnowledgeApi/create" TeamKnowledgeApi_UpdateBasic_FullMethodName = "/team_knowledge_api.TeamKnowledgeApi/updateBasic" TeamKnowledgeApi_UpdateMatchWord_FullMethodName = "/team_knowledge_api.TeamKnowledgeApi/updateMatchWord" TeamKnowledgeApi_UpdatePerm_FullMethodName = "/team_knowledge_api.TeamKnowledgeApi/updatePerm" TeamKnowledgeApi_List_FullMethodName = "/team_knowledge_api.TeamKnowledgeApi/list" TeamKnowledgeApi_Get_FullMethodName = "/team_knowledge_api.TeamKnowledgeApi/get" TeamKnowledgeApi_Exist_FullMethodName = "/team_knowledge_api.TeamKnowledgeApi/exist" TeamKnowledgeApi_Remove_FullMethodName = "/team_knowledge_api.TeamKnowledgeApi/remove" TeamKnowledgeApi_Move_FullMethodName = "/team_knowledge_api.TeamKnowledgeApi/move" TeamKnowledgeApi_Agree_FullMethodName = "/team_knowledge_api.TeamKnowledgeApi/agree" TeamKnowledgeApi_Disagree_FullMethodName = "/team_knowledge_api.TeamKnowledgeApi/disagree" TeamKnowledgeApi_ClearMyVote_FullMethodName = "/team_knowledge_api.TeamKnowledgeApi/clearMyVote" )
Variables ¶
var ( SORT_BY_name = map[int32]string{ 0: "SORT_BY_UPDATE_TIME_DESC", 1: "SORT_BY_VOTE_DESC", } SORT_BY_value = map[string]int32{ "SORT_BY_UPDATE_TIME_DESC": 0, "SORT_BY_VOTE_DESC": 1, } )
Enum value maps for SORT_BY.
var ( AGREE_TYPE_name = map[int32]string{ 0: "AGREE_TYPE_NONE", 1: "AGREE_TYPE_AGREE", 2: "AGREE_TYPE_DISAGREE", } AGREE_TYPE_value = map[string]int32{ "AGREE_TYPE_NONE": 0, "AGREE_TYPE_AGREE": 1, "AGREE_TYPE_DISAGREE": 2, } )
Enum value maps for AGREE_TYPE.
var ( CreateResponse_CODE_name = map[int32]string{ 0: "CODE_OK", 1: "CODE_WRONG_SESSION", 2: "CODE_NO_TEAM", 3: "CODE_NO_PERMISSION", 4: "CODE_NO_CATE", } CreateResponse_CODE_value = map[string]int32{ "CODE_OK": 0, "CODE_WRONG_SESSION": 1, "CODE_NO_TEAM": 2, "CODE_NO_PERMISSION": 3, "CODE_NO_CATE": 4, } )
Enum value maps for CreateResponse_CODE.
var ( UpdateBasicResponse_CODE_name = map[int32]string{ 0: "CODE_OK", 1: "CODE_WRONG_SESSION", 2: "CODE_NO_TEAM", 3: "CODE_NO_PERMISSION", 4: "CODE_NO_KNOWLEDGE", } UpdateBasicResponse_CODE_value = map[string]int32{ "CODE_OK": 0, "CODE_WRONG_SESSION": 1, "CODE_NO_TEAM": 2, "CODE_NO_PERMISSION": 3, "CODE_NO_KNOWLEDGE": 4, } )
Enum value maps for UpdateBasicResponse_CODE.
var ( UpdateMatchWordResponse_CODE_name = map[int32]string{ 0: "CODE_OK", 1: "CODE_WRONG_SESSION", 2: "CODE_NO_TEAM", 3: "CODE_NO_PERMISSION", 4: "CODE_NO_KNOWLEDGE", } UpdateMatchWordResponse_CODE_value = map[string]int32{ "CODE_OK": 0, "CODE_WRONG_SESSION": 1, "CODE_NO_TEAM": 2, "CODE_NO_PERMISSION": 3, "CODE_NO_KNOWLEDGE": 4, } )
Enum value maps for UpdateMatchWordResponse_CODE.
var ( UpdatePermResponse_CODE_name = map[int32]string{ 0: "CODE_OK", 1: "CODE_WRONG_SESSION", 2: "CODE_NO_TEAM", 3: "CODE_NO_PERMISSION", 4: "CODE_NO_KNOWLEDGE", 5: "CODE_NOT_TEAM_MEMBER", } UpdatePermResponse_CODE_value = map[string]int32{ "CODE_OK": 0, "CODE_WRONG_SESSION": 1, "CODE_NO_TEAM": 2, "CODE_NO_PERMISSION": 3, "CODE_NO_KNOWLEDGE": 4, "CODE_NOT_TEAM_MEMBER": 5, } )
Enum value maps for UpdatePermResponse_CODE.
var ( ListResponse_CODE_name = map[int32]string{ 0: "CODE_OK", 1: "CODE_WRONG_SESSION", 2: "CODE_NO_TEAM", 3: "CODE_NO_PERMISSION", } ListResponse_CODE_value = map[string]int32{ "CODE_OK": 0, "CODE_WRONG_SESSION": 1, "CODE_NO_TEAM": 2, "CODE_NO_PERMISSION": 3, } )
Enum value maps for ListResponse_CODE.
var ( GetResponse_CODE_name = map[int32]string{ 0: "CODE_OK", 1: "CODE_WRONG_SESSION", 2: "CODE_NO_TEAM", 3: "CODE_NO_PERMISSION", 4: "CODE_NO_KNOWLEDGE", } GetResponse_CODE_value = map[string]int32{ "CODE_OK": 0, "CODE_WRONG_SESSION": 1, "CODE_NO_TEAM": 2, "CODE_NO_PERMISSION": 3, "CODE_NO_KNOWLEDGE": 4, } )
Enum value maps for GetResponse_CODE.
var ( ExistResponse_CODE_name = map[int32]string{ 0: "CODE_OK", 1: "CODE_WRONG_SESSION", 2: "CODE_NO_TEAM", 3: "CODE_NO_PERMISSION", } ExistResponse_CODE_value = map[string]int32{ "CODE_OK": 0, "CODE_WRONG_SESSION": 1, "CODE_NO_TEAM": 2, "CODE_NO_PERMISSION": 3, } )
Enum value maps for ExistResponse_CODE.
var ( RemoveResponse_CODE_name = map[int32]string{ 0: "CODE_OK", 1: "CODE_WRONG_SESSION", 2: "CODE_NO_TEAM", 3: "CODE_NO_PERMISSION", } RemoveResponse_CODE_value = map[string]int32{ "CODE_OK": 0, "CODE_WRONG_SESSION": 1, "CODE_NO_TEAM": 2, "CODE_NO_PERMISSION": 3, } )
Enum value maps for RemoveResponse_CODE.
var ( MoveResponse_CODE_name = map[int32]string{ 0: "CODE_OK", 1: "CODE_WRONG_SESSION", 2: "CODE_NO_TEAM", 3: "CODE_NO_PERMISSION", 4: "CODE_NO_KNOWLEDGE", 5: "CODE_NO_CATE", } MoveResponse_CODE_value = map[string]int32{ "CODE_OK": 0, "CODE_WRONG_SESSION": 1, "CODE_NO_TEAM": 2, "CODE_NO_PERMISSION": 3, "CODE_NO_KNOWLEDGE": 4, "CODE_NO_CATE": 5, } )
Enum value maps for MoveResponse_CODE.
var ( AgreeResponse_CODE_name = map[int32]string{ 0: "CODE_OK", 1: "CODE_WRONG_SESSION", 2: "CODE_NO_TEAM", 3: "CODE_NO_PERMISSION", 4: "CODE_NO_KNOWLEDGE", } AgreeResponse_CODE_value = map[string]int32{ "CODE_OK": 0, "CODE_WRONG_SESSION": 1, "CODE_NO_TEAM": 2, "CODE_NO_PERMISSION": 3, "CODE_NO_KNOWLEDGE": 4, } )
Enum value maps for AgreeResponse_CODE.
var ( DisagreeResponse_CODE_name = map[int32]string{ 0: "CODE_OK", 1: "CODE_WRONG_SESSION", 2: "CODE_NO_TEAM", 3: "CODE_NO_PERMISSION", 4: "CODE_NO_KNOWLEDGE", } DisagreeResponse_CODE_value = map[string]int32{ "CODE_OK": 0, "CODE_WRONG_SESSION": 1, "CODE_NO_TEAM": 2, "CODE_NO_PERMISSION": 3, "CODE_NO_KNOWLEDGE": 4, } )
Enum value maps for DisagreeResponse_CODE.
var ( ClearMyVoteResponse_CODE_name = map[int32]string{ 0: "CODE_OK", 1: "CODE_WRONG_SESSION", 2: "CODE_NO_TEAM", 3: "CODE_NO_PERMISSION", 4: "CODE_NO_KNOWLEDGE", } ClearMyVoteResponse_CODE_value = map[string]int32{ "CODE_OK": 0, "CODE_WRONG_SESSION": 1, "CODE_NO_TEAM": 2, "CODE_NO_PERMISSION": 3, "CODE_NO_KNOWLEDGE": 4, } )
Enum value maps for ClearMyVoteResponse_CODE.
var File_team_knowledge_api_proto protoreflect.FileDescriptor
var TeamKnowledgeApi_ServiceDesc = grpc.ServiceDesc{ ServiceName: "team_knowledge_api.TeamKnowledgeApi", HandlerType: (*TeamKnowledgeApiServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "create", Handler: _TeamKnowledgeApi_Create_Handler, }, { MethodName: "updateBasic", Handler: _TeamKnowledgeApi_UpdateBasic_Handler, }, { MethodName: "updateMatchWord", Handler: _TeamKnowledgeApi_UpdateMatchWord_Handler, }, { MethodName: "updatePerm", Handler: _TeamKnowledgeApi_UpdatePerm_Handler, }, { MethodName: "list", Handler: _TeamKnowledgeApi_List_Handler, }, { MethodName: "get", Handler: _TeamKnowledgeApi_Get_Handler, }, { MethodName: "exist", Handler: _TeamKnowledgeApi_Exist_Handler, }, { MethodName: "remove", Handler: _TeamKnowledgeApi_Remove_Handler, }, { MethodName: "move", Handler: _TeamKnowledgeApi_Move_Handler, }, { MethodName: "agree", Handler: _TeamKnowledgeApi_Agree_Handler, }, { MethodName: "disagree", Handler: _TeamKnowledgeApi_Disagree_Handler, }, { MethodName: "clearMyVote", Handler: _TeamKnowledgeApi_ClearMyVote_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "team_knowledge_api.proto", }
TeamKnowledgeApi_ServiceDesc is the grpc.ServiceDesc for TeamKnowledgeApi service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterTeamKnowledgeApiServer ¶
func RegisterTeamKnowledgeApiServer(s grpc.ServiceRegistrar, srv TeamKnowledgeApiServer)
Types ¶
type AGREE_TYPE ¶
type AGREE_TYPE int32
const ( AGREE_TYPE_AGREE_TYPE_NONE AGREE_TYPE = 0 AGREE_TYPE_AGREE_TYPE_AGREE AGREE_TYPE = 1 AGREE_TYPE_AGREE_TYPE_DISAGREE AGREE_TYPE = 2 )
func (AGREE_TYPE) Descriptor ¶
func (AGREE_TYPE) Descriptor() protoreflect.EnumDescriptor
func (AGREE_TYPE) Enum ¶
func (x AGREE_TYPE) Enum() *AGREE_TYPE
func (AGREE_TYPE) EnumDescriptor
deprecated
func (AGREE_TYPE) EnumDescriptor() ([]byte, []int)
Deprecated: Use AGREE_TYPE.Descriptor instead.
func (AGREE_TYPE) Number ¶
func (x AGREE_TYPE) Number() protoreflect.EnumNumber
func (AGREE_TYPE) String ¶
func (x AGREE_TYPE) String() string
func (AGREE_TYPE) Type ¶
func (AGREE_TYPE) Type() protoreflect.EnumType
type AgreeRequest ¶
type AgreeRequest struct { SessionId string `protobuf:"bytes,1,opt,name=sessionId,proto3" json:"sessionId,omitempty"` TeamId string `protobuf:"bytes,2,opt,name=teamId,proto3" json:"teamId,omitempty"` KnowledgeId string `protobuf:"bytes,3,opt,name=knowledgeId,proto3" json:"knowledgeId,omitempty"` // contains filtered or unexported fields }
func (*AgreeRequest) Descriptor
deprecated
func (*AgreeRequest) Descriptor() ([]byte, []int)
Deprecated: Use AgreeRequest.ProtoReflect.Descriptor instead.
func (*AgreeRequest) GetKnowledgeId ¶
func (x *AgreeRequest) GetKnowledgeId() string
func (*AgreeRequest) GetSessionId ¶
func (x *AgreeRequest) GetSessionId() string
func (*AgreeRequest) GetTeamId ¶
func (x *AgreeRequest) GetTeamId() string
func (*AgreeRequest) ProtoMessage ¶
func (*AgreeRequest) ProtoMessage()
func (*AgreeRequest) ProtoReflect ¶
func (x *AgreeRequest) ProtoReflect() protoreflect.Message
func (*AgreeRequest) Reset ¶
func (x *AgreeRequest) Reset()
func (*AgreeRequest) String ¶
func (x *AgreeRequest) String() string
type AgreeResponse ¶
type AgreeResponse struct { Code AgreeResponse_CODE `protobuf:"varint,1,opt,name=code,proto3,enum=team_knowledge_api.AgreeResponse_CODE" json:"code,omitempty"` ErrMsg string `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"` // contains filtered or unexported fields }
func (*AgreeResponse) Descriptor
deprecated
func (*AgreeResponse) Descriptor() ([]byte, []int)
Deprecated: Use AgreeResponse.ProtoReflect.Descriptor instead.
func (*AgreeResponse) GetCode ¶
func (x *AgreeResponse) GetCode() AgreeResponse_CODE
func (*AgreeResponse) GetErrMsg ¶
func (x *AgreeResponse) GetErrMsg() string
func (*AgreeResponse) ProtoMessage ¶
func (*AgreeResponse) ProtoMessage()
func (*AgreeResponse) ProtoReflect ¶
func (x *AgreeResponse) ProtoReflect() protoreflect.Message
func (*AgreeResponse) Reset ¶
func (x *AgreeResponse) Reset()
func (*AgreeResponse) String ¶
func (x *AgreeResponse) String() string
type AgreeResponse_CODE ¶
type AgreeResponse_CODE int32
const ( AgreeResponse_CODE_OK AgreeResponse_CODE = 0 AgreeResponse_CODE_WRONG_SESSION AgreeResponse_CODE = 1 AgreeResponse_CODE_NO_TEAM AgreeResponse_CODE = 2 AgreeResponse_CODE_NO_PERMISSION AgreeResponse_CODE = 3 AgreeResponse_CODE_NO_KNOWLEDGE AgreeResponse_CODE = 4 )
func (AgreeResponse_CODE) Descriptor ¶
func (AgreeResponse_CODE) Descriptor() protoreflect.EnumDescriptor
func (AgreeResponse_CODE) Enum ¶
func (x AgreeResponse_CODE) Enum() *AgreeResponse_CODE
func (AgreeResponse_CODE) EnumDescriptor
deprecated
func (AgreeResponse_CODE) EnumDescriptor() ([]byte, []int)
Deprecated: Use AgreeResponse_CODE.Descriptor instead.
func (AgreeResponse_CODE) Number ¶
func (x AgreeResponse_CODE) Number() protoreflect.EnumNumber
func (AgreeResponse_CODE) String ¶
func (x AgreeResponse_CODE) String() string
func (AgreeResponse_CODE) Type ¶
func (AgreeResponse_CODE) Type() protoreflect.EnumType
type BasicKnowledgeInfo ¶
type BasicKnowledgeInfo struct { KnowledgeName string `protobuf:"bytes,1,opt,name=knowledgeName,proto3" json:"knowledgeName,omitempty"` Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
func (*BasicKnowledgeInfo) Descriptor
deprecated
func (*BasicKnowledgeInfo) Descriptor() ([]byte, []int)
Deprecated: Use BasicKnowledgeInfo.ProtoReflect.Descriptor instead.
func (*BasicKnowledgeInfo) GetContent ¶
func (x *BasicKnowledgeInfo) GetContent() string
func (*BasicKnowledgeInfo) GetKnowledgeName ¶
func (x *BasicKnowledgeInfo) GetKnowledgeName() string
func (*BasicKnowledgeInfo) ProtoMessage ¶
func (*BasicKnowledgeInfo) ProtoMessage()
func (*BasicKnowledgeInfo) ProtoReflect ¶
func (x *BasicKnowledgeInfo) ProtoReflect() protoreflect.Message
func (*BasicKnowledgeInfo) Reset ¶
func (x *BasicKnowledgeInfo) Reset()
func (*BasicKnowledgeInfo) String ¶
func (x *BasicKnowledgeInfo) String() string
type ClearMyVoteRequest ¶
type ClearMyVoteRequest struct { SessionId string `protobuf:"bytes,1,opt,name=sessionId,proto3" json:"sessionId,omitempty"` TeamId string `protobuf:"bytes,2,opt,name=teamId,proto3" json:"teamId,omitempty"` KnowledgeId string `protobuf:"bytes,3,opt,name=knowledgeId,proto3" json:"knowledgeId,omitempty"` // contains filtered or unexported fields }
func (*ClearMyVoteRequest) Descriptor
deprecated
func (*ClearMyVoteRequest) Descriptor() ([]byte, []int)
Deprecated: Use ClearMyVoteRequest.ProtoReflect.Descriptor instead.
func (*ClearMyVoteRequest) GetKnowledgeId ¶
func (x *ClearMyVoteRequest) GetKnowledgeId() string
func (*ClearMyVoteRequest) GetSessionId ¶
func (x *ClearMyVoteRequest) GetSessionId() string
func (*ClearMyVoteRequest) GetTeamId ¶
func (x *ClearMyVoteRequest) GetTeamId() string
func (*ClearMyVoteRequest) ProtoMessage ¶
func (*ClearMyVoteRequest) ProtoMessage()
func (*ClearMyVoteRequest) ProtoReflect ¶
func (x *ClearMyVoteRequest) ProtoReflect() protoreflect.Message
func (*ClearMyVoteRequest) Reset ¶
func (x *ClearMyVoteRequest) Reset()
func (*ClearMyVoteRequest) String ¶
func (x *ClearMyVoteRequest) String() string
type ClearMyVoteResponse ¶
type ClearMyVoteResponse struct { Code ClearMyVoteResponse_CODE `protobuf:"varint,1,opt,name=code,proto3,enum=team_knowledge_api.ClearMyVoteResponse_CODE" json:"code,omitempty"` ErrMsg string `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"` // contains filtered or unexported fields }
func (*ClearMyVoteResponse) Descriptor
deprecated
func (*ClearMyVoteResponse) Descriptor() ([]byte, []int)
Deprecated: Use ClearMyVoteResponse.ProtoReflect.Descriptor instead.
func (*ClearMyVoteResponse) GetCode ¶
func (x *ClearMyVoteResponse) GetCode() ClearMyVoteResponse_CODE
func (*ClearMyVoteResponse) GetErrMsg ¶
func (x *ClearMyVoteResponse) GetErrMsg() string
func (*ClearMyVoteResponse) ProtoMessage ¶
func (*ClearMyVoteResponse) ProtoMessage()
func (*ClearMyVoteResponse) ProtoReflect ¶
func (x *ClearMyVoteResponse) ProtoReflect() protoreflect.Message
func (*ClearMyVoteResponse) Reset ¶
func (x *ClearMyVoteResponse) Reset()
func (*ClearMyVoteResponse) String ¶
func (x *ClearMyVoteResponse) String() string
type ClearMyVoteResponse_CODE ¶
type ClearMyVoteResponse_CODE int32
const ( ClearMyVoteResponse_CODE_OK ClearMyVoteResponse_CODE = 0 ClearMyVoteResponse_CODE_WRONG_SESSION ClearMyVoteResponse_CODE = 1 ClearMyVoteResponse_CODE_NO_TEAM ClearMyVoteResponse_CODE = 2 ClearMyVoteResponse_CODE_NO_PERMISSION ClearMyVoteResponse_CODE = 3 ClearMyVoteResponse_CODE_NO_KNOWLEDGE ClearMyVoteResponse_CODE = 4 )
func (ClearMyVoteResponse_CODE) Descriptor ¶
func (ClearMyVoteResponse_CODE) Descriptor() protoreflect.EnumDescriptor
func (ClearMyVoteResponse_CODE) Enum ¶
func (x ClearMyVoteResponse_CODE) Enum() *ClearMyVoteResponse_CODE
func (ClearMyVoteResponse_CODE) EnumDescriptor
deprecated
func (ClearMyVoteResponse_CODE) EnumDescriptor() ([]byte, []int)
Deprecated: Use ClearMyVoteResponse_CODE.Descriptor instead.
func (ClearMyVoteResponse_CODE) Number ¶
func (x ClearMyVoteResponse_CODE) Number() protoreflect.EnumNumber
func (ClearMyVoteResponse_CODE) String ¶
func (x ClearMyVoteResponse_CODE) String() string
func (ClearMyVoteResponse_CODE) Type ¶
func (ClearMyVoteResponse_CODE) Type() protoreflect.EnumType
type CreateRequest ¶
type CreateRequest struct { SessionId string `protobuf:"bytes,1,opt,name=sessionId,proto3" json:"sessionId,omitempty"` TeamId string `protobuf:"bytes,2,opt,name=teamId,proto3" json:"teamId,omitempty"` CateId string `protobuf:"bytes,3,opt,name=cateId,proto3" json:"cateId,omitempty"` BasicInfo *BasicKnowledgeInfo `protobuf:"bytes,4,opt,name=basicInfo,proto3" json:"basicInfo,omitempty"` MatchWordList []string `protobuf:"bytes,5,rep,name=matchWordList,proto3" json:"matchWordList,omitempty"` // contains filtered or unexported fields }
func (*CreateRequest) Descriptor
deprecated
func (*CreateRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead.
func (*CreateRequest) GetBasicInfo ¶
func (x *CreateRequest) GetBasicInfo() *BasicKnowledgeInfo
func (*CreateRequest) GetCateId ¶
func (x *CreateRequest) GetCateId() string
func (*CreateRequest) GetMatchWordList ¶
func (x *CreateRequest) GetMatchWordList() []string
func (*CreateRequest) GetSessionId ¶
func (x *CreateRequest) GetSessionId() string
func (*CreateRequest) GetTeamId ¶
func (x *CreateRequest) GetTeamId() string
func (*CreateRequest) ProtoMessage ¶
func (*CreateRequest) ProtoMessage()
func (*CreateRequest) ProtoReflect ¶
func (x *CreateRequest) ProtoReflect() protoreflect.Message
func (*CreateRequest) Reset ¶
func (x *CreateRequest) Reset()
func (*CreateRequest) String ¶
func (x *CreateRequest) String() string
type CreateResponse ¶
type CreateResponse struct { Code CreateResponse_CODE `protobuf:"varint,1,opt,name=code,proto3,enum=team_knowledge_api.CreateResponse_CODE" json:"code,omitempty"` ErrMsg string `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"` KnowledgeId string `protobuf:"bytes,3,opt,name=knowledgeId,proto3" json:"knowledgeId,omitempty"` // contains filtered or unexported fields }
func (*CreateResponse) Descriptor
deprecated
func (*CreateResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateResponse.ProtoReflect.Descriptor instead.
func (*CreateResponse) GetCode ¶
func (x *CreateResponse) GetCode() CreateResponse_CODE
func (*CreateResponse) GetErrMsg ¶
func (x *CreateResponse) GetErrMsg() string
func (*CreateResponse) GetKnowledgeId ¶
func (x *CreateResponse) GetKnowledgeId() string
func (*CreateResponse) ProtoMessage ¶
func (*CreateResponse) ProtoMessage()
func (*CreateResponse) ProtoReflect ¶
func (x *CreateResponse) ProtoReflect() protoreflect.Message
func (*CreateResponse) Reset ¶
func (x *CreateResponse) Reset()
func (*CreateResponse) String ¶
func (x *CreateResponse) String() string
type CreateResponse_CODE ¶
type CreateResponse_CODE int32
const ( CreateResponse_CODE_OK CreateResponse_CODE = 0 CreateResponse_CODE_WRONG_SESSION CreateResponse_CODE = 1 CreateResponse_CODE_NO_TEAM CreateResponse_CODE = 2 CreateResponse_CODE_NO_PERMISSION CreateResponse_CODE = 3 CreateResponse_CODE_NO_CATE CreateResponse_CODE = 4 )
func (CreateResponse_CODE) Descriptor ¶
func (CreateResponse_CODE) Descriptor() protoreflect.EnumDescriptor
func (CreateResponse_CODE) Enum ¶
func (x CreateResponse_CODE) Enum() *CreateResponse_CODE
func (CreateResponse_CODE) EnumDescriptor
deprecated
func (CreateResponse_CODE) EnumDescriptor() ([]byte, []int)
Deprecated: Use CreateResponse_CODE.Descriptor instead.
func (CreateResponse_CODE) Number ¶
func (x CreateResponse_CODE) Number() protoreflect.EnumNumber
func (CreateResponse_CODE) String ¶
func (x CreateResponse_CODE) String() string
func (CreateResponse_CODE) Type ¶
func (CreateResponse_CODE) Type() protoreflect.EnumType
type DisagreeRequest ¶
type DisagreeRequest struct { SessionId string `protobuf:"bytes,1,opt,name=sessionId,proto3" json:"sessionId,omitempty"` TeamId string `protobuf:"bytes,2,opt,name=teamId,proto3" json:"teamId,omitempty"` KnowledgeId string `protobuf:"bytes,3,opt,name=knowledgeId,proto3" json:"knowledgeId,omitempty"` // contains filtered or unexported fields }
func (*DisagreeRequest) Descriptor
deprecated
func (*DisagreeRequest) Descriptor() ([]byte, []int)
Deprecated: Use DisagreeRequest.ProtoReflect.Descriptor instead.
func (*DisagreeRequest) GetKnowledgeId ¶
func (x *DisagreeRequest) GetKnowledgeId() string
func (*DisagreeRequest) GetSessionId ¶
func (x *DisagreeRequest) GetSessionId() string
func (*DisagreeRequest) GetTeamId ¶
func (x *DisagreeRequest) GetTeamId() string
func (*DisagreeRequest) ProtoMessage ¶
func (*DisagreeRequest) ProtoMessage()
func (*DisagreeRequest) ProtoReflect ¶
func (x *DisagreeRequest) ProtoReflect() protoreflect.Message
func (*DisagreeRequest) Reset ¶
func (x *DisagreeRequest) Reset()
func (*DisagreeRequest) String ¶
func (x *DisagreeRequest) String() string
type DisagreeResponse ¶
type DisagreeResponse struct { Code DisagreeResponse_CODE `protobuf:"varint,1,opt,name=code,proto3,enum=team_knowledge_api.DisagreeResponse_CODE" json:"code,omitempty"` ErrMsg string `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"` // contains filtered or unexported fields }
func (*DisagreeResponse) Descriptor
deprecated
func (*DisagreeResponse) Descriptor() ([]byte, []int)
Deprecated: Use DisagreeResponse.ProtoReflect.Descriptor instead.
func (*DisagreeResponse) GetCode ¶
func (x *DisagreeResponse) GetCode() DisagreeResponse_CODE
func (*DisagreeResponse) GetErrMsg ¶
func (x *DisagreeResponse) GetErrMsg() string
func (*DisagreeResponse) ProtoMessage ¶
func (*DisagreeResponse) ProtoMessage()
func (*DisagreeResponse) ProtoReflect ¶
func (x *DisagreeResponse) ProtoReflect() protoreflect.Message
func (*DisagreeResponse) Reset ¶
func (x *DisagreeResponse) Reset()
func (*DisagreeResponse) String ¶
func (x *DisagreeResponse) String() string
type DisagreeResponse_CODE ¶
type DisagreeResponse_CODE int32
const ( DisagreeResponse_CODE_OK DisagreeResponse_CODE = 0 DisagreeResponse_CODE_WRONG_SESSION DisagreeResponse_CODE = 1 DisagreeResponse_CODE_NO_TEAM DisagreeResponse_CODE = 2 DisagreeResponse_CODE_NO_PERMISSION DisagreeResponse_CODE = 3 DisagreeResponse_CODE_NO_KNOWLEDGE DisagreeResponse_CODE = 4 )
func (DisagreeResponse_CODE) Descriptor ¶
func (DisagreeResponse_CODE) Descriptor() protoreflect.EnumDescriptor
func (DisagreeResponse_CODE) Enum ¶
func (x DisagreeResponse_CODE) Enum() *DisagreeResponse_CODE
func (DisagreeResponse_CODE) EnumDescriptor
deprecated
func (DisagreeResponse_CODE) EnumDescriptor() ([]byte, []int)
Deprecated: Use DisagreeResponse_CODE.Descriptor instead.
func (DisagreeResponse_CODE) Number ¶
func (x DisagreeResponse_CODE) Number() protoreflect.EnumNumber
func (DisagreeResponse_CODE) String ¶
func (x DisagreeResponse_CODE) String() string
func (DisagreeResponse_CODE) Type ¶
func (DisagreeResponse_CODE) Type() protoreflect.EnumType
type ExistRequest ¶
type ExistRequest struct { SessionId string `protobuf:"bytes,1,opt,name=sessionId,proto3" json:"sessionId,omitempty"` TeamId string `protobuf:"bytes,2,opt,name=teamId,proto3" json:"teamId,omitempty"` KnowledgeId string `protobuf:"bytes,3,opt,name=knowledgeId,proto3" json:"knowledgeId,omitempty"` // contains filtered or unexported fields }
func (*ExistRequest) Descriptor
deprecated
func (*ExistRequest) Descriptor() ([]byte, []int)
Deprecated: Use ExistRequest.ProtoReflect.Descriptor instead.
func (*ExistRequest) GetKnowledgeId ¶
func (x *ExistRequest) GetKnowledgeId() string
func (*ExistRequest) GetSessionId ¶
func (x *ExistRequest) GetSessionId() string
func (*ExistRequest) GetTeamId ¶
func (x *ExistRequest) GetTeamId() string
func (*ExistRequest) ProtoMessage ¶
func (*ExistRequest) ProtoMessage()
func (*ExistRequest) ProtoReflect ¶
func (x *ExistRequest) ProtoReflect() protoreflect.Message
func (*ExistRequest) Reset ¶
func (x *ExistRequest) Reset()
func (*ExistRequest) String ¶
func (x *ExistRequest) String() string
type ExistResponse ¶
type ExistResponse struct { Code ExistResponse_CODE `protobuf:"varint,1,opt,name=code,proto3,enum=team_knowledge_api.ExistResponse_CODE" json:"code,omitempty"` ErrMsg string `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"` Exist bool `protobuf:"varint,3,opt,name=exist,proto3" json:"exist,omitempty"` // contains filtered or unexported fields }
func (*ExistResponse) Descriptor
deprecated
func (*ExistResponse) Descriptor() ([]byte, []int)
Deprecated: Use ExistResponse.ProtoReflect.Descriptor instead.
func (*ExistResponse) GetCode ¶
func (x *ExistResponse) GetCode() ExistResponse_CODE
func (*ExistResponse) GetErrMsg ¶
func (x *ExistResponse) GetErrMsg() string
func (*ExistResponse) GetExist ¶
func (x *ExistResponse) GetExist() bool
func (*ExistResponse) ProtoMessage ¶
func (*ExistResponse) ProtoMessage()
func (*ExistResponse) ProtoReflect ¶
func (x *ExistResponse) ProtoReflect() protoreflect.Message
func (*ExistResponse) Reset ¶
func (x *ExistResponse) Reset()
func (*ExistResponse) String ¶
func (x *ExistResponse) String() string
type ExistResponse_CODE ¶
type ExistResponse_CODE int32
const ( ExistResponse_CODE_OK ExistResponse_CODE = 0 ExistResponse_CODE_WRONG_SESSION ExistResponse_CODE = 1 ExistResponse_CODE_NO_TEAM ExistResponse_CODE = 2 ExistResponse_CODE_NO_PERMISSION ExistResponse_CODE = 3 )
func (ExistResponse_CODE) Descriptor ¶
func (ExistResponse_CODE) Descriptor() protoreflect.EnumDescriptor
func (ExistResponse_CODE) Enum ¶
func (x ExistResponse_CODE) Enum() *ExistResponse_CODE
func (ExistResponse_CODE) EnumDescriptor
deprecated
func (ExistResponse_CODE) EnumDescriptor() ([]byte, []int)
Deprecated: Use ExistResponse_CODE.Descriptor instead.
func (ExistResponse_CODE) Number ¶
func (x ExistResponse_CODE) Number() protoreflect.EnumNumber
func (ExistResponse_CODE) String ¶
func (x ExistResponse_CODE) String() string
func (ExistResponse_CODE) Type ¶
func (ExistResponse_CODE) Type() protoreflect.EnumType
type GetRequest ¶
type GetRequest struct { SessionId string `protobuf:"bytes,1,opt,name=sessionId,proto3" json:"sessionId,omitempty"` TeamId string `protobuf:"bytes,2,opt,name=teamId,proto3" json:"teamId,omitempty"` KnowledgeId string `protobuf:"bytes,3,opt,name=knowledgeId,proto3" json:"knowledgeId,omitempty"` WithContent bool `protobuf:"varint,4,opt,name=withContent,proto3" json:"withContent,omitempty"` //是否返回内容 // contains filtered or unexported fields }
func (*GetRequest) Descriptor
deprecated
func (*GetRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.
func (*GetRequest) GetKnowledgeId ¶
func (x *GetRequest) GetKnowledgeId() string
func (*GetRequest) GetSessionId ¶
func (x *GetRequest) GetSessionId() string
func (*GetRequest) GetTeamId ¶
func (x *GetRequest) GetTeamId() string
func (*GetRequest) GetWithContent ¶
func (x *GetRequest) GetWithContent() bool
func (*GetRequest) ProtoMessage ¶
func (*GetRequest) ProtoMessage()
func (*GetRequest) ProtoReflect ¶
func (x *GetRequest) ProtoReflect() protoreflect.Message
func (*GetRequest) Reset ¶
func (x *GetRequest) Reset()
func (*GetRequest) String ¶
func (x *GetRequest) String() string
type GetResponse ¶
type GetResponse struct { Code GetResponse_CODE `protobuf:"varint,1,opt,name=code,proto3,enum=team_knowledge_api.GetResponse_CODE" json:"code,omitempty"` ErrMsg string `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"` Knowledge *KnowledgeInfo `protobuf:"bytes,3,opt,name=knowledge,proto3" json:"knowledge,omitempty"` // contains filtered or unexported fields }
func (*GetResponse) Descriptor
deprecated
func (*GetResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.
func (*GetResponse) GetCode ¶
func (x *GetResponse) GetCode() GetResponse_CODE
func (*GetResponse) GetErrMsg ¶
func (x *GetResponse) GetErrMsg() string
func (*GetResponse) GetKnowledge ¶
func (x *GetResponse) GetKnowledge() *KnowledgeInfo
func (*GetResponse) ProtoMessage ¶
func (*GetResponse) ProtoMessage()
func (*GetResponse) ProtoReflect ¶
func (x *GetResponse) ProtoReflect() protoreflect.Message
func (*GetResponse) Reset ¶
func (x *GetResponse) Reset()
func (*GetResponse) String ¶
func (x *GetResponse) String() string
type GetResponse_CODE ¶
type GetResponse_CODE int32
const ( GetResponse_CODE_OK GetResponse_CODE = 0 GetResponse_CODE_WRONG_SESSION GetResponse_CODE = 1 GetResponse_CODE_NO_TEAM GetResponse_CODE = 2 GetResponse_CODE_NO_PERMISSION GetResponse_CODE = 3 GetResponse_CODE_NO_KNOWLEDGE GetResponse_CODE = 4 )
func (GetResponse_CODE) Descriptor ¶
func (GetResponse_CODE) Descriptor() protoreflect.EnumDescriptor
func (GetResponse_CODE) Enum ¶
func (x GetResponse_CODE) Enum() *GetResponse_CODE
func (GetResponse_CODE) EnumDescriptor
deprecated
func (GetResponse_CODE) EnumDescriptor() ([]byte, []int)
Deprecated: Use GetResponse_CODE.Descriptor instead.
func (GetResponse_CODE) Number ¶
func (x GetResponse_CODE) Number() protoreflect.EnumNumber
func (GetResponse_CODE) String ¶
func (x GetResponse_CODE) String() string
func (GetResponse_CODE) Type ¶
func (GetResponse_CODE) Type() protoreflect.EnumType
type KnowledgeInfo ¶
type KnowledgeInfo struct { KnowledgeId string `protobuf:"bytes,1,opt,name=knowledgeId,proto3" json:"knowledgeId,omitempty"` BasicInfo *BasicKnowledgeInfo `protobuf:"bytes,2,opt,name=basicInfo,proto3" json:"basicInfo,omitempty"` MatchWordList []string `protobuf:"bytes,3,rep,name=matchWordList,proto3" json:"matchWordList,omitempty"` Perm *Perm `protobuf:"bytes,4,opt,name=perm,proto3" json:"perm,omitempty"` CateId string `protobuf:"bytes,5,opt,name=cateId,proto3" json:"cateId,omitempty"` CateName string `protobuf:"bytes,6,opt,name=cateName,proto3" json:"cateName,omitempty"` AgreeCount uint32 `protobuf:"varint,7,opt,name=agreeCount,proto3" json:"agreeCount,omitempty"` DisagreeCount uint32 `protobuf:"varint,8,opt,name=disagreeCount,proto3" json:"disagreeCount,omitempty"` CreateUserId string `protobuf:"bytes,20,opt,name=createUserId,proto3" json:"createUserId,omitempty"` CreateDisplayName string `protobuf:"bytes,21,opt,name=createDisplayName,proto3" json:"createDisplayName,omitempty"` CreateLogoUri string `protobuf:"bytes,22,opt,name=createLogoUri,proto3" json:"createLogoUri,omitempty"` CreateTime int64 `protobuf:"varint,23,opt,name=createTime,proto3" json:"createTime,omitempty"` UpdateUserId string `protobuf:"bytes,30,opt,name=updateUserId,proto3" json:"updateUserId,omitempty"` UpdateDisplayName string `protobuf:"bytes,31,opt,name=updateDisplayName,proto3" json:"updateDisplayName,omitempty"` UpdateLogoUri string `protobuf:"bytes,32,opt,name=updateLogoUri,proto3" json:"updateLogoUri,omitempty"` UpdateTime int64 `protobuf:"varint,33,opt,name=updateTime,proto3" json:"updateTime,omitempty"` UserPerm *UserPerm `protobuf:"bytes,50,opt,name=userPerm,proto3" json:"userPerm,omitempty"` MyAgreeType AGREE_TYPE `protobuf:"varint,51,opt,name=myAgreeType,proto3,enum=team_knowledge_api.AGREE_TYPE" json:"myAgreeType,omitempty"` // contains filtered or unexported fields }
func (*KnowledgeInfo) Descriptor
deprecated
func (*KnowledgeInfo) Descriptor() ([]byte, []int)
Deprecated: Use KnowledgeInfo.ProtoReflect.Descriptor instead.
func (*KnowledgeInfo) GetAgreeCount ¶
func (x *KnowledgeInfo) GetAgreeCount() uint32
func (*KnowledgeInfo) GetBasicInfo ¶
func (x *KnowledgeInfo) GetBasicInfo() *BasicKnowledgeInfo
func (*KnowledgeInfo) GetCateId ¶
func (x *KnowledgeInfo) GetCateId() string
func (*KnowledgeInfo) GetCateName ¶
func (x *KnowledgeInfo) GetCateName() string
func (*KnowledgeInfo) GetCreateDisplayName ¶
func (x *KnowledgeInfo) GetCreateDisplayName() string
func (*KnowledgeInfo) GetCreateLogoUri ¶
func (x *KnowledgeInfo) GetCreateLogoUri() string
func (*KnowledgeInfo) GetCreateTime ¶
func (x *KnowledgeInfo) GetCreateTime() int64
func (*KnowledgeInfo) GetCreateUserId ¶
func (x *KnowledgeInfo) GetCreateUserId() string
func (*KnowledgeInfo) GetDisagreeCount ¶
func (x *KnowledgeInfo) GetDisagreeCount() uint32
func (*KnowledgeInfo) GetKnowledgeId ¶
func (x *KnowledgeInfo) GetKnowledgeId() string
func (*KnowledgeInfo) GetMatchWordList ¶
func (x *KnowledgeInfo) GetMatchWordList() []string
func (*KnowledgeInfo) GetMyAgreeType ¶
func (x *KnowledgeInfo) GetMyAgreeType() AGREE_TYPE
func (*KnowledgeInfo) GetPerm ¶
func (x *KnowledgeInfo) GetPerm() *Perm
func (*KnowledgeInfo) GetUpdateDisplayName ¶
func (x *KnowledgeInfo) GetUpdateDisplayName() string
func (*KnowledgeInfo) GetUpdateLogoUri ¶
func (x *KnowledgeInfo) GetUpdateLogoUri() string
func (*KnowledgeInfo) GetUpdateTime ¶
func (x *KnowledgeInfo) GetUpdateTime() int64
func (*KnowledgeInfo) GetUpdateUserId ¶
func (x *KnowledgeInfo) GetUpdateUserId() string
func (*KnowledgeInfo) GetUserPerm ¶
func (x *KnowledgeInfo) GetUserPerm() *UserPerm
func (*KnowledgeInfo) ProtoMessage ¶
func (*KnowledgeInfo) ProtoMessage()
func (*KnowledgeInfo) ProtoReflect ¶
func (x *KnowledgeInfo) ProtoReflect() protoreflect.Message
func (*KnowledgeInfo) Reset ¶
func (x *KnowledgeInfo) Reset()
func (*KnowledgeInfo) String ¶
func (x *KnowledgeInfo) String() string
type ListParam ¶
type ListParam struct { FilterByCateId bool `protobuf:"varint,1,opt,name=filterByCateId,proto3" json:"filterByCateId,omitempty"` CateId string `protobuf:"bytes,2,opt,name=cateId,proto3" json:"cateId,omitempty"` FilterByMatchWordList bool `protobuf:"varint,3,opt,name=filterByMatchWordList,proto3" json:"filterByMatchWordList,omitempty"` MatchWordList []string `protobuf:"bytes,4,rep,name=matchWordList,proto3" json:"matchWordList,omitempty"` FilterByKeyword bool `protobuf:"varint,5,opt,name=filterByKeyword,proto3" json:"filterByKeyword,omitempty"` Keyword string `protobuf:"bytes,6,opt,name=keyword,proto3" json:"keyword,omitempty"` // contains filtered or unexported fields }
func (*ListParam) ProtoReflect ¶
func (x *ListParam) ProtoReflect() protoreflect.Message
type ListRequest ¶
type ListRequest struct { SessionId string `protobuf:"bytes,1,opt,name=sessionId,proto3" json:"sessionId,omitempty"` TeamId string `protobuf:"bytes,2,opt,name=teamId,proto3" json:"teamId,omitempty"` ListParam *ListParam `protobuf:"bytes,3,opt,name=listParam,proto3" json:"listParam,omitempty"` WithContent bool `protobuf:"varint,4,opt,name=withContent,proto3" json:"withContent,omitempty"` //是否返回内容 Offset uint32 `protobuf:"varint,10,opt,name=offset,proto3" json:"offset,omitempty"` Limit uint32 `protobuf:"varint,11,opt,name=limit,proto3" json:"limit,omitempty"` SortBy SORT_BY `protobuf:"varint,12,opt,name=sortBy,proto3,enum=team_knowledge_api.SORT_BY" json:"sortBy,omitempty"` // contains filtered or unexported fields }
func (*ListRequest) Descriptor
deprecated
func (*ListRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.
func (*ListRequest) GetLimit ¶
func (x *ListRequest) GetLimit() uint32
func (*ListRequest) GetListParam ¶
func (x *ListRequest) GetListParam() *ListParam
func (*ListRequest) GetOffset ¶
func (x *ListRequest) GetOffset() uint32
func (*ListRequest) GetSessionId ¶
func (x *ListRequest) GetSessionId() string
func (*ListRequest) GetSortBy ¶
func (x *ListRequest) GetSortBy() SORT_BY
func (*ListRequest) GetTeamId ¶
func (x *ListRequest) GetTeamId() string
func (*ListRequest) GetWithContent ¶
func (x *ListRequest) GetWithContent() bool
func (*ListRequest) ProtoMessage ¶
func (*ListRequest) ProtoMessage()
func (*ListRequest) ProtoReflect ¶
func (x *ListRequest) ProtoReflect() protoreflect.Message
func (*ListRequest) Reset ¶
func (x *ListRequest) Reset()
func (*ListRequest) String ¶
func (x *ListRequest) String() string
type ListResponse ¶
type ListResponse struct { Code ListResponse_CODE `protobuf:"varint,1,opt,name=code,proto3,enum=team_knowledge_api.ListResponse_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"` KnowledgeList []*KnowledgeInfo `protobuf:"bytes,4,rep,name=knowledgeList,proto3" json:"knowledgeList,omitempty"` // contains filtered or unexported fields }
func (*ListResponse) Descriptor
deprecated
func (*ListResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.
func (*ListResponse) GetCode ¶
func (x *ListResponse) GetCode() ListResponse_CODE
func (*ListResponse) GetErrMsg ¶
func (x *ListResponse) GetErrMsg() string
func (*ListResponse) GetKnowledgeList ¶
func (x *ListResponse) GetKnowledgeList() []*KnowledgeInfo
func (*ListResponse) GetTotalCount ¶
func (x *ListResponse) GetTotalCount() uint32
func (*ListResponse) ProtoMessage ¶
func (*ListResponse) ProtoMessage()
func (*ListResponse) ProtoReflect ¶
func (x *ListResponse) ProtoReflect() protoreflect.Message
func (*ListResponse) Reset ¶
func (x *ListResponse) Reset()
func (*ListResponse) String ¶
func (x *ListResponse) String() string
type ListResponse_CODE ¶
type ListResponse_CODE int32
const ( ListResponse_CODE_OK ListResponse_CODE = 0 ListResponse_CODE_WRONG_SESSION ListResponse_CODE = 1 ListResponse_CODE_NO_TEAM ListResponse_CODE = 2 ListResponse_CODE_NO_PERMISSION ListResponse_CODE = 3 )
func (ListResponse_CODE) Descriptor ¶
func (ListResponse_CODE) Descriptor() protoreflect.EnumDescriptor
func (ListResponse_CODE) Enum ¶
func (x ListResponse_CODE) Enum() *ListResponse_CODE
func (ListResponse_CODE) EnumDescriptor
deprecated
func (ListResponse_CODE) EnumDescriptor() ([]byte, []int)
Deprecated: Use ListResponse_CODE.Descriptor instead.
func (ListResponse_CODE) Number ¶
func (x ListResponse_CODE) Number() protoreflect.EnumNumber
func (ListResponse_CODE) String ¶
func (x ListResponse_CODE) String() string
func (ListResponse_CODE) Type ¶
func (ListResponse_CODE) Type() protoreflect.EnumType
type MoveRequest ¶
type MoveRequest struct { SessionId string `protobuf:"bytes,1,opt,name=sessionId,proto3" json:"sessionId,omitempty"` TeamId string `protobuf:"bytes,2,opt,name=teamId,proto3" json:"teamId,omitempty"` KnowledgeId string `protobuf:"bytes,3,opt,name=knowledgeId,proto3" json:"knowledgeId,omitempty"` CateId string `protobuf:"bytes,4,opt,name=cateId,proto3" json:"cateId,omitempty"` // contains filtered or unexported fields }
func (*MoveRequest) Descriptor
deprecated
func (*MoveRequest) Descriptor() ([]byte, []int)
Deprecated: Use MoveRequest.ProtoReflect.Descriptor instead.
func (*MoveRequest) GetCateId ¶
func (x *MoveRequest) GetCateId() string
func (*MoveRequest) GetKnowledgeId ¶
func (x *MoveRequest) GetKnowledgeId() string
func (*MoveRequest) GetSessionId ¶
func (x *MoveRequest) GetSessionId() string
func (*MoveRequest) GetTeamId ¶
func (x *MoveRequest) GetTeamId() string
func (*MoveRequest) ProtoMessage ¶
func (*MoveRequest) ProtoMessage()
func (*MoveRequest) ProtoReflect ¶
func (x *MoveRequest) ProtoReflect() protoreflect.Message
func (*MoveRequest) Reset ¶
func (x *MoveRequest) Reset()
func (*MoveRequest) String ¶
func (x *MoveRequest) String() string
type MoveResponse ¶
type MoveResponse struct { Code MoveResponse_CODE `protobuf:"varint,1,opt,name=code,proto3,enum=team_knowledge_api.MoveResponse_CODE" json:"code,omitempty"` ErrMsg string `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"` // contains filtered or unexported fields }
func (*MoveResponse) Descriptor
deprecated
func (*MoveResponse) Descriptor() ([]byte, []int)
Deprecated: Use MoveResponse.ProtoReflect.Descriptor instead.
func (*MoveResponse) GetCode ¶
func (x *MoveResponse) GetCode() MoveResponse_CODE
func (*MoveResponse) GetErrMsg ¶
func (x *MoveResponse) GetErrMsg() string
func (*MoveResponse) ProtoMessage ¶
func (*MoveResponse) ProtoMessage()
func (*MoveResponse) ProtoReflect ¶
func (x *MoveResponse) ProtoReflect() protoreflect.Message
func (*MoveResponse) Reset ¶
func (x *MoveResponse) Reset()
func (*MoveResponse) String ¶
func (x *MoveResponse) String() string
type MoveResponse_CODE ¶
type MoveResponse_CODE int32
const ( MoveResponse_CODE_OK MoveResponse_CODE = 0 MoveResponse_CODE_WRONG_SESSION MoveResponse_CODE = 1 MoveResponse_CODE_NO_TEAM MoveResponse_CODE = 2 MoveResponse_CODE_NO_PERMISSION MoveResponse_CODE = 3 MoveResponse_CODE_NO_KNOWLEDGE MoveResponse_CODE = 4 MoveResponse_CODE_NO_CATE MoveResponse_CODE = 5 )
func (MoveResponse_CODE) Descriptor ¶
func (MoveResponse_CODE) Descriptor() protoreflect.EnumDescriptor
func (MoveResponse_CODE) Enum ¶
func (x MoveResponse_CODE) Enum() *MoveResponse_CODE
func (MoveResponse_CODE) EnumDescriptor
deprecated
func (MoveResponse_CODE) EnumDescriptor() ([]byte, []int)
Deprecated: Use MoveResponse_CODE.Descriptor instead.
func (MoveResponse_CODE) Number ¶
func (x MoveResponse_CODE) Number() protoreflect.EnumNumber
func (MoveResponse_CODE) String ¶
func (x MoveResponse_CODE) String() string
func (MoveResponse_CODE) Type ¶
func (MoveResponse_CODE) Type() protoreflect.EnumType
type Perm ¶
type Perm struct { UpdateMemberUserIdList []string `protobuf:"bytes,1,rep,name=updateMemberUserIdList,proto3" json:"updateMemberUserIdList,omitempty"` RemoveMemberUserIdList []string `protobuf:"bytes,2,rep,name=removeMemberUserIdList,proto3" json:"removeMemberUserIdList,omitempty"` PermMemberUserIdList []string `protobuf:"bytes,3,rep,name=permMemberUserIdList,proto3" json:"permMemberUserIdList,omitempty"` //可调整权限 // contains filtered or unexported fields }
func (*Perm) ProtoReflect ¶
func (x *Perm) ProtoReflect() protoreflect.Message
type RemoveRequest ¶
type RemoveRequest struct { SessionId string `protobuf:"bytes,1,opt,name=sessionId,proto3" json:"sessionId,omitempty"` TeamId string `protobuf:"bytes,2,opt,name=teamId,proto3" json:"teamId,omitempty"` KnowledgeId string `protobuf:"bytes,3,opt,name=knowledgeId,proto3" json:"knowledgeId,omitempty"` // contains filtered or unexported fields }
func (*RemoveRequest) Descriptor
deprecated
func (*RemoveRequest) Descriptor() ([]byte, []int)
Deprecated: Use RemoveRequest.ProtoReflect.Descriptor instead.
func (*RemoveRequest) GetKnowledgeId ¶
func (x *RemoveRequest) GetKnowledgeId() string
func (*RemoveRequest) GetSessionId ¶
func (x *RemoveRequest) GetSessionId() string
func (*RemoveRequest) GetTeamId ¶
func (x *RemoveRequest) GetTeamId() string
func (*RemoveRequest) ProtoMessage ¶
func (*RemoveRequest) ProtoMessage()
func (*RemoveRequest) ProtoReflect ¶
func (x *RemoveRequest) ProtoReflect() protoreflect.Message
func (*RemoveRequest) Reset ¶
func (x *RemoveRequest) Reset()
func (*RemoveRequest) String ¶
func (x *RemoveRequest) String() string
type RemoveResponse ¶
type RemoveResponse struct { Code RemoveResponse_CODE `protobuf:"varint,1,opt,name=code,proto3,enum=team_knowledge_api.RemoveResponse_CODE" json:"code,omitempty"` ErrMsg string `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"` // contains filtered or unexported fields }
func (*RemoveResponse) Descriptor
deprecated
func (*RemoveResponse) Descriptor() ([]byte, []int)
Deprecated: Use RemoveResponse.ProtoReflect.Descriptor instead.
func (*RemoveResponse) GetCode ¶
func (x *RemoveResponse) GetCode() RemoveResponse_CODE
func (*RemoveResponse) GetErrMsg ¶
func (x *RemoveResponse) GetErrMsg() string
func (*RemoveResponse) ProtoMessage ¶
func (*RemoveResponse) ProtoMessage()
func (*RemoveResponse) ProtoReflect ¶
func (x *RemoveResponse) ProtoReflect() protoreflect.Message
func (*RemoveResponse) Reset ¶
func (x *RemoveResponse) Reset()
func (*RemoveResponse) String ¶
func (x *RemoveResponse) String() string
type RemoveResponse_CODE ¶
type RemoveResponse_CODE int32
const ( RemoveResponse_CODE_OK RemoveResponse_CODE = 0 RemoveResponse_CODE_WRONG_SESSION RemoveResponse_CODE = 1 RemoveResponse_CODE_NO_TEAM RemoveResponse_CODE = 2 RemoveResponse_CODE_NO_PERMISSION RemoveResponse_CODE = 3 )
func (RemoveResponse_CODE) Descriptor ¶
func (RemoveResponse_CODE) Descriptor() protoreflect.EnumDescriptor
func (RemoveResponse_CODE) Enum ¶
func (x RemoveResponse_CODE) Enum() *RemoveResponse_CODE
func (RemoveResponse_CODE) EnumDescriptor
deprecated
func (RemoveResponse_CODE) EnumDescriptor() ([]byte, []int)
Deprecated: Use RemoveResponse_CODE.Descriptor instead.
func (RemoveResponse_CODE) Number ¶
func (x RemoveResponse_CODE) Number() protoreflect.EnumNumber
func (RemoveResponse_CODE) String ¶
func (x RemoveResponse_CODE) String() string
func (RemoveResponse_CODE) Type ¶
func (RemoveResponse_CODE) Type() protoreflect.EnumType
type SORT_BY ¶
type SORT_BY int32
func (SORT_BY) Descriptor ¶
func (SORT_BY) Descriptor() protoreflect.EnumDescriptor
func (SORT_BY) Number ¶
func (x SORT_BY) Number() protoreflect.EnumNumber
func (SORT_BY) Type ¶
func (SORT_BY) Type() protoreflect.EnumType
type TeamKnowledgeApiClient ¶
type TeamKnowledgeApiClient interface { // 创建知识点 Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) // 更新基本信息 UpdateBasic(ctx context.Context, in *UpdateBasicRequest, opts ...grpc.CallOption) (*UpdateBasicResponse, error) // 更新匹配词 UpdateMatchWord(ctx context.Context, in *UpdateMatchWordRequest, opts ...grpc.CallOption) (*UpdateMatchWordResponse, error) // 更新权限 UpdatePerm(ctx context.Context, in *UpdatePermRequest, opts ...grpc.CallOption) (*UpdatePermResponse, error) // 列出知识点 List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) // 获取单个知识点 Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) // 是否存在知识点 Exist(ctx context.Context, in *ExistRequest, opts ...grpc.CallOption) (*ExistResponse, error) // 删除知识点 Remove(ctx context.Context, in *RemoveRequest, opts ...grpc.CallOption) (*RemoveResponse, error) // 移动知识点 Move(ctx context.Context, in *MoveRequest, opts ...grpc.CallOption) (*MoveResponse, error) // 赞同知识点 Agree(ctx context.Context, in *AgreeRequest, opts ...grpc.CallOption) (*AgreeResponse, error) // 不赞同知识点 Disagree(ctx context.Context, in *DisagreeRequest, opts ...grpc.CallOption) (*DisagreeResponse, error) // 清除我的投票 ClearMyVote(ctx context.Context, in *ClearMyVoteRequest, opts ...grpc.CallOption) (*ClearMyVoteResponse, error) }
TeamKnowledgeApiClient is the client API for TeamKnowledgeApi 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 NewTeamKnowledgeApiClient ¶
func NewTeamKnowledgeApiClient(cc grpc.ClientConnInterface) TeamKnowledgeApiClient
type TeamKnowledgeApiServer ¶
type TeamKnowledgeApiServer interface { // 创建知识点 Create(context.Context, *CreateRequest) (*CreateResponse, error) // 更新基本信息 UpdateBasic(context.Context, *UpdateBasicRequest) (*UpdateBasicResponse, error) // 更新匹配词 UpdateMatchWord(context.Context, *UpdateMatchWordRequest) (*UpdateMatchWordResponse, error) // 更新权限 UpdatePerm(context.Context, *UpdatePermRequest) (*UpdatePermResponse, error) // 列出知识点 List(context.Context, *ListRequest) (*ListResponse, error) // 获取单个知识点 Get(context.Context, *GetRequest) (*GetResponse, error) // 是否存在知识点 Exist(context.Context, *ExistRequest) (*ExistResponse, error) // 删除知识点 Remove(context.Context, *RemoveRequest) (*RemoveResponse, error) // 移动知识点 Move(context.Context, *MoveRequest) (*MoveResponse, error) // 赞同知识点 Agree(context.Context, *AgreeRequest) (*AgreeResponse, error) // 不赞同知识点 Disagree(context.Context, *DisagreeRequest) (*DisagreeResponse, error) // 清除我的投票 ClearMyVote(context.Context, *ClearMyVoteRequest) (*ClearMyVoteResponse, error) // contains filtered or unexported methods }
TeamKnowledgeApiServer is the server API for TeamKnowledgeApi service. All implementations must embed UnimplementedTeamKnowledgeApiServer for forward compatibility
type UnimplementedTeamKnowledgeApiServer ¶
type UnimplementedTeamKnowledgeApiServer struct { }
UnimplementedTeamKnowledgeApiServer must be embedded to have forward compatible implementations.
func (UnimplementedTeamKnowledgeApiServer) Agree ¶
func (UnimplementedTeamKnowledgeApiServer) Agree(context.Context, *AgreeRequest) (*AgreeResponse, error)
func (UnimplementedTeamKnowledgeApiServer) ClearMyVote ¶
func (UnimplementedTeamKnowledgeApiServer) ClearMyVote(context.Context, *ClearMyVoteRequest) (*ClearMyVoteResponse, error)
func (UnimplementedTeamKnowledgeApiServer) Create ¶
func (UnimplementedTeamKnowledgeApiServer) Create(context.Context, *CreateRequest) (*CreateResponse, error)
func (UnimplementedTeamKnowledgeApiServer) Disagree ¶
func (UnimplementedTeamKnowledgeApiServer) Disagree(context.Context, *DisagreeRequest) (*DisagreeResponse, error)
func (UnimplementedTeamKnowledgeApiServer) Exist ¶
func (UnimplementedTeamKnowledgeApiServer) Exist(context.Context, *ExistRequest) (*ExistResponse, error)
func (UnimplementedTeamKnowledgeApiServer) Get ¶
func (UnimplementedTeamKnowledgeApiServer) Get(context.Context, *GetRequest) (*GetResponse, error)
func (UnimplementedTeamKnowledgeApiServer) List ¶
func (UnimplementedTeamKnowledgeApiServer) List(context.Context, *ListRequest) (*ListResponse, error)
func (UnimplementedTeamKnowledgeApiServer) Move ¶
func (UnimplementedTeamKnowledgeApiServer) Move(context.Context, *MoveRequest) (*MoveResponse, error)
func (UnimplementedTeamKnowledgeApiServer) Remove ¶
func (UnimplementedTeamKnowledgeApiServer) Remove(context.Context, *RemoveRequest) (*RemoveResponse, error)
func (UnimplementedTeamKnowledgeApiServer) UpdateBasic ¶
func (UnimplementedTeamKnowledgeApiServer) UpdateBasic(context.Context, *UpdateBasicRequest) (*UpdateBasicResponse, error)
func (UnimplementedTeamKnowledgeApiServer) UpdateMatchWord ¶
func (UnimplementedTeamKnowledgeApiServer) UpdateMatchWord(context.Context, *UpdateMatchWordRequest) (*UpdateMatchWordResponse, error)
func (UnimplementedTeamKnowledgeApiServer) UpdatePerm ¶
func (UnimplementedTeamKnowledgeApiServer) UpdatePerm(context.Context, *UpdatePermRequest) (*UpdatePermResponse, error)
type UnsafeTeamKnowledgeApiServer ¶
type UnsafeTeamKnowledgeApiServer interface {
// contains filtered or unexported methods
}
UnsafeTeamKnowledgeApiServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TeamKnowledgeApiServer will result in compilation errors.
type UpdateBasicRequest ¶
type UpdateBasicRequest struct { SessionId string `protobuf:"bytes,1,opt,name=sessionId,proto3" json:"sessionId,omitempty"` TeamId string `protobuf:"bytes,2,opt,name=teamId,proto3" json:"teamId,omitempty"` KnowledgeId string `protobuf:"bytes,3,opt,name=knowledgeId,proto3" json:"knowledgeId,omitempty"` BasicInfo *BasicKnowledgeInfo `protobuf:"bytes,4,opt,name=basicInfo,proto3" json:"basicInfo,omitempty"` WithContent bool `protobuf:"varint,5,opt,name=withContent,proto3" json:"withContent,omitempty"` // contains filtered or unexported fields }
func (*UpdateBasicRequest) Descriptor
deprecated
func (*UpdateBasicRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateBasicRequest.ProtoReflect.Descriptor instead.
func (*UpdateBasicRequest) GetBasicInfo ¶
func (x *UpdateBasicRequest) GetBasicInfo() *BasicKnowledgeInfo
func (*UpdateBasicRequest) GetKnowledgeId ¶
func (x *UpdateBasicRequest) GetKnowledgeId() string
func (*UpdateBasicRequest) GetSessionId ¶
func (x *UpdateBasicRequest) GetSessionId() string
func (*UpdateBasicRequest) GetTeamId ¶
func (x *UpdateBasicRequest) GetTeamId() string
func (*UpdateBasicRequest) GetWithContent ¶
func (x *UpdateBasicRequest) GetWithContent() bool
func (*UpdateBasicRequest) ProtoMessage ¶
func (*UpdateBasicRequest) ProtoMessage()
func (*UpdateBasicRequest) ProtoReflect ¶
func (x *UpdateBasicRequest) ProtoReflect() protoreflect.Message
func (*UpdateBasicRequest) Reset ¶
func (x *UpdateBasicRequest) Reset()
func (*UpdateBasicRequest) String ¶
func (x *UpdateBasicRequest) String() string
type UpdateBasicResponse ¶
type UpdateBasicResponse struct { Code UpdateBasicResponse_CODE `protobuf:"varint,1,opt,name=code,proto3,enum=team_knowledge_api.UpdateBasicResponse_CODE" json:"code,omitempty"` ErrMsg string `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"` // contains filtered or unexported fields }
func (*UpdateBasicResponse) Descriptor
deprecated
func (*UpdateBasicResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateBasicResponse.ProtoReflect.Descriptor instead.
func (*UpdateBasicResponse) GetCode ¶
func (x *UpdateBasicResponse) GetCode() UpdateBasicResponse_CODE
func (*UpdateBasicResponse) GetErrMsg ¶
func (x *UpdateBasicResponse) GetErrMsg() string
func (*UpdateBasicResponse) ProtoMessage ¶
func (*UpdateBasicResponse) ProtoMessage()
func (*UpdateBasicResponse) ProtoReflect ¶
func (x *UpdateBasicResponse) ProtoReflect() protoreflect.Message
func (*UpdateBasicResponse) Reset ¶
func (x *UpdateBasicResponse) Reset()
func (*UpdateBasicResponse) String ¶
func (x *UpdateBasicResponse) String() string
type UpdateBasicResponse_CODE ¶
type UpdateBasicResponse_CODE int32
const ( UpdateBasicResponse_CODE_OK UpdateBasicResponse_CODE = 0 UpdateBasicResponse_CODE_WRONG_SESSION UpdateBasicResponse_CODE = 1 UpdateBasicResponse_CODE_NO_TEAM UpdateBasicResponse_CODE = 2 UpdateBasicResponse_CODE_NO_PERMISSION UpdateBasicResponse_CODE = 3 UpdateBasicResponse_CODE_NO_KNOWLEDGE UpdateBasicResponse_CODE = 4 )
func (UpdateBasicResponse_CODE) Descriptor ¶
func (UpdateBasicResponse_CODE) Descriptor() protoreflect.EnumDescriptor
func (UpdateBasicResponse_CODE) Enum ¶
func (x UpdateBasicResponse_CODE) Enum() *UpdateBasicResponse_CODE
func (UpdateBasicResponse_CODE) EnumDescriptor
deprecated
func (UpdateBasicResponse_CODE) EnumDescriptor() ([]byte, []int)
Deprecated: Use UpdateBasicResponse_CODE.Descriptor instead.
func (UpdateBasicResponse_CODE) Number ¶
func (x UpdateBasicResponse_CODE) Number() protoreflect.EnumNumber
func (UpdateBasicResponse_CODE) String ¶
func (x UpdateBasicResponse_CODE) String() string
func (UpdateBasicResponse_CODE) Type ¶
func (UpdateBasicResponse_CODE) Type() protoreflect.EnumType
type UpdateMatchWordRequest ¶
type UpdateMatchWordRequest struct { SessionId string `protobuf:"bytes,1,opt,name=sessionId,proto3" json:"sessionId,omitempty"` TeamId string `protobuf:"bytes,2,opt,name=teamId,proto3" json:"teamId,omitempty"` KnowledgeId string `protobuf:"bytes,3,opt,name=knowledgeId,proto3" json:"knowledgeId,omitempty"` MatchWordList []string `protobuf:"bytes,4,rep,name=matchWordList,proto3" json:"matchWordList,omitempty"` // contains filtered or unexported fields }
func (*UpdateMatchWordRequest) Descriptor
deprecated
func (*UpdateMatchWordRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateMatchWordRequest.ProtoReflect.Descriptor instead.
func (*UpdateMatchWordRequest) GetKnowledgeId ¶
func (x *UpdateMatchWordRequest) GetKnowledgeId() string
func (*UpdateMatchWordRequest) GetMatchWordList ¶
func (x *UpdateMatchWordRequest) GetMatchWordList() []string
func (*UpdateMatchWordRequest) GetSessionId ¶
func (x *UpdateMatchWordRequest) GetSessionId() string
func (*UpdateMatchWordRequest) GetTeamId ¶
func (x *UpdateMatchWordRequest) GetTeamId() string
func (*UpdateMatchWordRequest) ProtoMessage ¶
func (*UpdateMatchWordRequest) ProtoMessage()
func (*UpdateMatchWordRequest) ProtoReflect ¶
func (x *UpdateMatchWordRequest) ProtoReflect() protoreflect.Message
func (*UpdateMatchWordRequest) Reset ¶
func (x *UpdateMatchWordRequest) Reset()
func (*UpdateMatchWordRequest) String ¶
func (x *UpdateMatchWordRequest) String() string
type UpdateMatchWordResponse ¶
type UpdateMatchWordResponse struct { Code UpdateMatchWordResponse_CODE `protobuf:"varint,1,opt,name=code,proto3,enum=team_knowledge_api.UpdateMatchWordResponse_CODE" json:"code,omitempty"` ErrMsg string `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"` // contains filtered or unexported fields }
func (*UpdateMatchWordResponse) Descriptor
deprecated
func (*UpdateMatchWordResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateMatchWordResponse.ProtoReflect.Descriptor instead.
func (*UpdateMatchWordResponse) GetCode ¶
func (x *UpdateMatchWordResponse) GetCode() UpdateMatchWordResponse_CODE
func (*UpdateMatchWordResponse) GetErrMsg ¶
func (x *UpdateMatchWordResponse) GetErrMsg() string
func (*UpdateMatchWordResponse) ProtoMessage ¶
func (*UpdateMatchWordResponse) ProtoMessage()
func (*UpdateMatchWordResponse) ProtoReflect ¶
func (x *UpdateMatchWordResponse) ProtoReflect() protoreflect.Message
func (*UpdateMatchWordResponse) Reset ¶
func (x *UpdateMatchWordResponse) Reset()
func (*UpdateMatchWordResponse) String ¶
func (x *UpdateMatchWordResponse) String() string
type UpdateMatchWordResponse_CODE ¶
type UpdateMatchWordResponse_CODE int32
const ( UpdateMatchWordResponse_CODE_OK UpdateMatchWordResponse_CODE = 0 UpdateMatchWordResponse_CODE_WRONG_SESSION UpdateMatchWordResponse_CODE = 1 UpdateMatchWordResponse_CODE_NO_TEAM UpdateMatchWordResponse_CODE = 2 UpdateMatchWordResponse_CODE_NO_PERMISSION UpdateMatchWordResponse_CODE = 3 UpdateMatchWordResponse_CODE_NO_KNOWLEDGE UpdateMatchWordResponse_CODE = 4 )
func (UpdateMatchWordResponse_CODE) Descriptor ¶
func (UpdateMatchWordResponse_CODE) Descriptor() protoreflect.EnumDescriptor
func (UpdateMatchWordResponse_CODE) Enum ¶
func (x UpdateMatchWordResponse_CODE) Enum() *UpdateMatchWordResponse_CODE
func (UpdateMatchWordResponse_CODE) EnumDescriptor
deprecated
func (UpdateMatchWordResponse_CODE) EnumDescriptor() ([]byte, []int)
Deprecated: Use UpdateMatchWordResponse_CODE.Descriptor instead.
func (UpdateMatchWordResponse_CODE) Number ¶
func (x UpdateMatchWordResponse_CODE) Number() protoreflect.EnumNumber
func (UpdateMatchWordResponse_CODE) String ¶
func (x UpdateMatchWordResponse_CODE) String() string
func (UpdateMatchWordResponse_CODE) Type ¶
func (UpdateMatchWordResponse_CODE) Type() protoreflect.EnumType
type UpdatePermRequest ¶
type UpdatePermRequest struct { SessionId string `protobuf:"bytes,1,opt,name=sessionId,proto3" json:"sessionId,omitempty"` TeamId string `protobuf:"bytes,2,opt,name=teamId,proto3" json:"teamId,omitempty"` KnowledgeId string `protobuf:"bytes,3,opt,name=knowledgeId,proto3" json:"knowledgeId,omitempty"` Perm *Perm `protobuf:"bytes,4,opt,name=perm,proto3" json:"perm,omitempty"` // contains filtered or unexported fields }
func (*UpdatePermRequest) Descriptor
deprecated
func (*UpdatePermRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdatePermRequest.ProtoReflect.Descriptor instead.
func (*UpdatePermRequest) GetKnowledgeId ¶
func (x *UpdatePermRequest) GetKnowledgeId() string
func (*UpdatePermRequest) GetPerm ¶
func (x *UpdatePermRequest) GetPerm() *Perm
func (*UpdatePermRequest) GetSessionId ¶
func (x *UpdatePermRequest) GetSessionId() string
func (*UpdatePermRequest) GetTeamId ¶
func (x *UpdatePermRequest) GetTeamId() string
func (*UpdatePermRequest) ProtoMessage ¶
func (*UpdatePermRequest) ProtoMessage()
func (*UpdatePermRequest) ProtoReflect ¶
func (x *UpdatePermRequest) ProtoReflect() protoreflect.Message
func (*UpdatePermRequest) Reset ¶
func (x *UpdatePermRequest) Reset()
func (*UpdatePermRequest) String ¶
func (x *UpdatePermRequest) String() string
type UpdatePermResponse ¶
type UpdatePermResponse struct { Code UpdatePermResponse_CODE `protobuf:"varint,1,opt,name=code,proto3,enum=team_knowledge_api.UpdatePermResponse_CODE" json:"code,omitempty"` ErrMsg string `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"` // contains filtered or unexported fields }
func (*UpdatePermResponse) Descriptor
deprecated
func (*UpdatePermResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdatePermResponse.ProtoReflect.Descriptor instead.
func (*UpdatePermResponse) GetCode ¶
func (x *UpdatePermResponse) GetCode() UpdatePermResponse_CODE
func (*UpdatePermResponse) GetErrMsg ¶
func (x *UpdatePermResponse) GetErrMsg() string
func (*UpdatePermResponse) ProtoMessage ¶
func (*UpdatePermResponse) ProtoMessage()
func (*UpdatePermResponse) ProtoReflect ¶
func (x *UpdatePermResponse) ProtoReflect() protoreflect.Message
func (*UpdatePermResponse) Reset ¶
func (x *UpdatePermResponse) Reset()
func (*UpdatePermResponse) String ¶
func (x *UpdatePermResponse) String() string
type UpdatePermResponse_CODE ¶
type UpdatePermResponse_CODE int32
const ( UpdatePermResponse_CODE_OK UpdatePermResponse_CODE = 0 UpdatePermResponse_CODE_WRONG_SESSION UpdatePermResponse_CODE = 1 UpdatePermResponse_CODE_NO_TEAM UpdatePermResponse_CODE = 2 UpdatePermResponse_CODE_NO_PERMISSION UpdatePermResponse_CODE = 3 UpdatePermResponse_CODE_NO_KNOWLEDGE UpdatePermResponse_CODE = 4 UpdatePermResponse_CODE_NOT_TEAM_MEMBER UpdatePermResponse_CODE = 5 )
func (UpdatePermResponse_CODE) Descriptor ¶
func (UpdatePermResponse_CODE) Descriptor() protoreflect.EnumDescriptor
func (UpdatePermResponse_CODE) Enum ¶
func (x UpdatePermResponse_CODE) Enum() *UpdatePermResponse_CODE
func (UpdatePermResponse_CODE) EnumDescriptor
deprecated
func (UpdatePermResponse_CODE) EnumDescriptor() ([]byte, []int)
Deprecated: Use UpdatePermResponse_CODE.Descriptor instead.
func (UpdatePermResponse_CODE) Number ¶
func (x UpdatePermResponse_CODE) Number() protoreflect.EnumNumber
func (UpdatePermResponse_CODE) String ¶
func (x UpdatePermResponse_CODE) String() string
func (UpdatePermResponse_CODE) Type ¶
func (UpdatePermResponse_CODE) Type() protoreflect.EnumType
type UserPerm ¶
type UserPerm struct { CanUpdateBasic bool `protobuf:"varint,1,opt,name=canUpdateBasic,proto3" json:"canUpdateBasic,omitempty"` CanUpdatePerm bool `protobuf:"varint,2,opt,name=canUpdatePerm,proto3" json:"canUpdatePerm,omitempty"` CanRemove bool `protobuf:"varint,3,opt,name=canRemove,proto3" json:"canRemove,omitempty"` // contains filtered or unexported fields }
func (*UserPerm) ProtoReflect ¶
func (x *UserPerm) ProtoReflect() protoreflect.Message