team_api

package
v0.0.0-...-181341f Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2025 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TeamApi_Create_FullMethodName        = "/team_api.TeamApi/create"
	TeamApi_UpdateBasic_FullMethodName   = "/team_api.TeamApi/updateBasic"
	TeamApi_UpdateSetting_FullMethodName = "/team_api.TeamApi/updateSetting"
	TeamApi_Remove_FullMethodName        = "/team_api.TeamApi/remove"
	TeamApi_ChangeOwner_FullMethodName   = "/team_api.TeamApi/changeOwner"
	TeamApi_ListMy_FullMethodName        = "/team_api.TeamApi/listMy"
	TeamApi_Get_FullMethodName           = "/team_api.TeamApi/get"
)

Variables

View Source
var (
	CreateResponse_CODE_name = map[int32]string{
		0: "CODE_OK",
		1: "CODE_WRONG_SESSION",
		2: "CODE_NO_PERMISSION",
	}
	CreateResponse_CODE_value = map[string]int32{
		"CODE_OK":            0,
		"CODE_WRONG_SESSION": 1,
		"CODE_NO_PERMISSION": 2,
	}
)

Enum value maps for CreateResponse_CODE.

View Source
var (
	UpdateBasicResponse_CODE_name = map[int32]string{
		0: "CODE_OK",
		1: "CODE_WRONG_SESSION",
		2: "CODE_NO_TEAM",
		3: "CODE_NO_PERMISSION",
	}
	UpdateBasicResponse_CODE_value = map[string]int32{
		"CODE_OK":            0,
		"CODE_WRONG_SESSION": 1,
		"CODE_NO_TEAM":       2,
		"CODE_NO_PERMISSION": 3,
	}
)

Enum value maps for UpdateBasicResponse_CODE.

View Source
var (
	UpdateSettingResponse_CODE_name = map[int32]string{
		0: "CODE_OK",
		1: "CODE_WRONG_SESSION",
		2: "CODE_NO_TEAM",
		3: "CODE_NO_PERMISSION",
	}
	UpdateSettingResponse_CODE_value = map[string]int32{
		"CODE_OK":            0,
		"CODE_WRONG_SESSION": 1,
		"CODE_NO_TEAM":       2,
		"CODE_NO_PERMISSION": 3,
	}
)

Enum value maps for UpdateSettingResponse_CODE.

View Source
var (
	RemoveResponse_CODE_name = map[int32]string{
		0: "CODE_OK",
		1: "CODE_WRONG_SESSION",
		2: "CODE_NO_PERMISSION",
	}
	RemoveResponse_CODE_value = map[string]int32{
		"CODE_OK":            0,
		"CODE_WRONG_SESSION": 1,
		"CODE_NO_PERMISSION": 2,
	}
)

Enum value maps for RemoveResponse_CODE.

View Source
var (
	ChangeOwnerResponse_CODE_name = map[int32]string{
		0: "CODE_OK",
		1: "CODE_WRONG_SESSION",
		2: "CODE_NO_TEAM",
		3: "CODE_NO_PERMISSION",
		4: "CODE_NO_TARGET_MEMBER",
	}
	ChangeOwnerResponse_CODE_value = map[string]int32{
		"CODE_OK":               0,
		"CODE_WRONG_SESSION":    1,
		"CODE_NO_TEAM":          2,
		"CODE_NO_PERMISSION":    3,
		"CODE_NO_TARGET_MEMBER": 4,
	}
)

Enum value maps for ChangeOwnerResponse_CODE.

View Source
var (
	ListMyResponse_CODE_name = map[int32]string{
		0: "CODE_OK",
		1: "CODE_WRONG_SESSION",
		2: "CODE_NO_PERMISSION",
	}
	ListMyResponse_CODE_value = map[string]int32{
		"CODE_OK":            0,
		"CODE_WRONG_SESSION": 1,
		"CODE_NO_PERMISSION": 2,
	}
)

Enum value maps for ListMyResponse_CODE.

View Source
var (
	GetResponse_CODE_name = map[int32]string{
		0: "CODE_OK",
		1: "CODE_WRONG_SESSION",
		2: "CODE_NO_TEAM",
		3: "CODE_NO_PERMISSION",
	}
	GetResponse_CODE_value = map[string]int32{
		"CODE_OK":            0,
		"CODE_WRONG_SESSION": 1,
		"CODE_NO_TEAM":       2,
		"CODE_NO_PERMISSION": 3,
	}
)

Enum value maps for GetResponse_CODE.

View Source
var File_team_api_proto protoreflect.FileDescriptor
View Source
var TeamApi_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "team_api.TeamApi",
	HandlerType: (*TeamApiServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "create",
			Handler:    _TeamApi_Create_Handler,
		},
		{
			MethodName: "updateBasic",
			Handler:    _TeamApi_UpdateBasic_Handler,
		},
		{
			MethodName: "updateSetting",
			Handler:    _TeamApi_UpdateSetting_Handler,
		},
		{
			MethodName: "remove",
			Handler:    _TeamApi_Remove_Handler,
		},
		{
			MethodName: "changeOwner",
			Handler:    _TeamApi_ChangeOwner_Handler,
		},
		{
			MethodName: "listMy",
			Handler:    _TeamApi_ListMy_Handler,
		},
		{
			MethodName: "get",
			Handler:    _TeamApi_Get_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "team_api.proto",
}

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

Functions

func RegisterTeamApiServer

func RegisterTeamApiServer(s grpc.ServiceRegistrar, srv TeamApiServer)

Types

type BasicTeamInfo

type BasicTeamInfo struct {
	TeamName    string `protobuf:"bytes,1,opt,name=teamName,proto3" json:"teamName,omitempty"`
	TeamDesc    string `protobuf:"bytes,2,opt,name=teamDesc,proto3" json:"teamDesc,omitempty"`
	TeamLogoUri string `protobuf:"bytes,3,opt,name=teamLogoUri,proto3" json:"teamLogoUri,omitempty"`
	// contains filtered or unexported fields
}

func (*BasicTeamInfo) Descriptor deprecated

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

Deprecated: Use BasicTeamInfo.ProtoReflect.Descriptor instead.

func (*BasicTeamInfo) GetTeamDesc

func (x *BasicTeamInfo) GetTeamDesc() string

func (*BasicTeamInfo) GetTeamLogoUri

func (x *BasicTeamInfo) GetTeamLogoUri() string

func (*BasicTeamInfo) GetTeamName

func (x *BasicTeamInfo) GetTeamName() string

func (*BasicTeamInfo) ProtoMessage

func (*BasicTeamInfo) ProtoMessage()

func (*BasicTeamInfo) ProtoReflect

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

func (*BasicTeamInfo) Reset

func (x *BasicTeamInfo) Reset()

func (*BasicTeamInfo) String

func (x *BasicTeamInfo) String() string

type ChangeOwnerRequest

type ChangeOwnerRequest 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"`
	TargetMemberUserId string `protobuf:"bytes,3,opt,name=targetMemberUserId,proto3" json:"targetMemberUserId,omitempty"`
	// contains filtered or unexported fields
}

func (*ChangeOwnerRequest) Descriptor deprecated

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

Deprecated: Use ChangeOwnerRequest.ProtoReflect.Descriptor instead.

func (*ChangeOwnerRequest) GetSessionId

func (x *ChangeOwnerRequest) GetSessionId() string

func (*ChangeOwnerRequest) GetTargetMemberUserId

func (x *ChangeOwnerRequest) GetTargetMemberUserId() string

func (*ChangeOwnerRequest) GetTeamId

func (x *ChangeOwnerRequest) GetTeamId() string

func (*ChangeOwnerRequest) ProtoMessage

func (*ChangeOwnerRequest) ProtoMessage()

func (*ChangeOwnerRequest) ProtoReflect

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

func (*ChangeOwnerRequest) Reset

func (x *ChangeOwnerRequest) Reset()

func (*ChangeOwnerRequest) String

func (x *ChangeOwnerRequest) String() string

type ChangeOwnerResponse

type ChangeOwnerResponse struct {
	Code   ChangeOwnerResponse_CODE `protobuf:"varint,1,opt,name=code,proto3,enum=team_api.ChangeOwnerResponse_CODE" json:"code,omitempty"`
	ErrMsg string                   `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"`
	// contains filtered or unexported fields
}

func (*ChangeOwnerResponse) Descriptor deprecated

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

Deprecated: Use ChangeOwnerResponse.ProtoReflect.Descriptor instead.

func (*ChangeOwnerResponse) GetCode

func (*ChangeOwnerResponse) GetErrMsg

func (x *ChangeOwnerResponse) GetErrMsg() string

func (*ChangeOwnerResponse) ProtoMessage

func (*ChangeOwnerResponse) ProtoMessage()

func (*ChangeOwnerResponse) ProtoReflect

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

func (*ChangeOwnerResponse) Reset

func (x *ChangeOwnerResponse) Reset()

func (*ChangeOwnerResponse) String

func (x *ChangeOwnerResponse) String() string

type ChangeOwnerResponse_CODE

type ChangeOwnerResponse_CODE int32
const (
	ChangeOwnerResponse_CODE_OK               ChangeOwnerResponse_CODE = 0
	ChangeOwnerResponse_CODE_WRONG_SESSION    ChangeOwnerResponse_CODE = 1
	ChangeOwnerResponse_CODE_NO_TEAM          ChangeOwnerResponse_CODE = 2
	ChangeOwnerResponse_CODE_NO_PERMISSION    ChangeOwnerResponse_CODE = 3
	ChangeOwnerResponse_CODE_NO_TARGET_MEMBER ChangeOwnerResponse_CODE = 4
)

func (ChangeOwnerResponse_CODE) Descriptor

func (ChangeOwnerResponse_CODE) Enum

func (ChangeOwnerResponse_CODE) EnumDescriptor deprecated

func (ChangeOwnerResponse_CODE) EnumDescriptor() ([]byte, []int)

Deprecated: Use ChangeOwnerResponse_CODE.Descriptor instead.

func (ChangeOwnerResponse_CODE) Number

func (ChangeOwnerResponse_CODE) String

func (x ChangeOwnerResponse_CODE) String() string

func (ChangeOwnerResponse_CODE) Type

type CreateRequest

type CreateRequest struct {
	SessionId string         `protobuf:"bytes,1,opt,name=sessionId,proto3" json:"sessionId,omitempty"`
	BasicInfo *BasicTeamInfo `protobuf:"bytes,2,opt,name=basicInfo,proto3" json:"basicInfo,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() *BasicTeamInfo

func (*CreateRequest) GetSessionId

func (x *CreateRequest) GetSessionId() 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_api.CreateResponse_CODE" json:"code,omitempty"`
	ErrMsg string              `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"`
	TeamId string              `protobuf:"bytes,3,opt,name=teamId,proto3" json:"teamId,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) GetTeamId

func (x *CreateResponse) GetTeamId() 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_PERMISSION CreateResponse_CODE = 2
)

func (CreateResponse_CODE) Descriptor

func (CreateResponse_CODE) Enum

func (CreateResponse_CODE) EnumDescriptor deprecated

func (CreateResponse_CODE) EnumDescriptor() ([]byte, []int)

Deprecated: Use CreateResponse_CODE.Descriptor instead.

func (CreateResponse_CODE) Number

func (CreateResponse_CODE) String

func (x CreateResponse_CODE) String() string

func (CreateResponse_CODE) Type

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"`
	// contains filtered or unexported fields
}

func (*GetRequest) Descriptor deprecated

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

Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.

func (*GetRequest) GetSessionId

func (x *GetRequest) GetSessionId() string

func (*GetRequest) GetTeamId

func (x *GetRequest) GetTeamId() string

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_api.GetResponse_CODE" json:"code,omitempty"`
	ErrMsg string           `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"`
	Team   *TeamInfo        `protobuf:"bytes,3,opt,name=team,proto3" json:"team,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) GetTeam

func (x *GetResponse) GetTeam() *TeamInfo

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
)

func (GetResponse_CODE) Descriptor

func (GetResponse_CODE) Enum

func (GetResponse_CODE) EnumDescriptor deprecated

func (GetResponse_CODE) EnumDescriptor() ([]byte, []int)

Deprecated: Use GetResponse_CODE.Descriptor instead.

func (GetResponse_CODE) Number

func (GetResponse_CODE) String

func (x GetResponse_CODE) String() string

func (GetResponse_CODE) Type

type ListMyRequest

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

func (*ListMyRequest) Descriptor deprecated

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

Deprecated: Use ListMyRequest.ProtoReflect.Descriptor instead.

func (*ListMyRequest) GetSessionId

func (x *ListMyRequest) GetSessionId() string

func (*ListMyRequest) ProtoMessage

func (*ListMyRequest) ProtoMessage()

func (*ListMyRequest) ProtoReflect

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

func (*ListMyRequest) Reset

func (x *ListMyRequest) Reset()

func (*ListMyRequest) String

func (x *ListMyRequest) String() string

type ListMyResponse

type ListMyResponse struct {
	Code     ListMyResponse_CODE `protobuf:"varint,1,opt,name=code,proto3,enum=team_api.ListMyResponse_CODE" json:"code,omitempty"`
	ErrMsg   string              `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"`
	TeamList []*TeamInfo         `protobuf:"bytes,3,rep,name=teamList,proto3" json:"teamList,omitempty"`
	// contains filtered or unexported fields
}

func (*ListMyResponse) Descriptor deprecated

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

Deprecated: Use ListMyResponse.ProtoReflect.Descriptor instead.

func (*ListMyResponse) GetCode

func (x *ListMyResponse) GetCode() ListMyResponse_CODE

func (*ListMyResponse) GetErrMsg

func (x *ListMyResponse) GetErrMsg() string

func (*ListMyResponse) GetTeamList

func (x *ListMyResponse) GetTeamList() []*TeamInfo

func (*ListMyResponse) ProtoMessage

func (*ListMyResponse) ProtoMessage()

func (*ListMyResponse) ProtoReflect

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

func (*ListMyResponse) Reset

func (x *ListMyResponse) Reset()

func (*ListMyResponse) String

func (x *ListMyResponse) String() string

type ListMyResponse_CODE

type ListMyResponse_CODE int32
const (
	ListMyResponse_CODE_OK            ListMyResponse_CODE = 0
	ListMyResponse_CODE_WRONG_SESSION ListMyResponse_CODE = 1
	ListMyResponse_CODE_NO_PERMISSION ListMyResponse_CODE = 2
)

func (ListMyResponse_CODE) Descriptor

func (ListMyResponse_CODE) Enum

func (ListMyResponse_CODE) EnumDescriptor deprecated

func (ListMyResponse_CODE) EnumDescriptor() ([]byte, []int)

Deprecated: Use ListMyResponse_CODE.Descriptor instead.

func (ListMyResponse_CODE) Number

func (ListMyResponse_CODE) String

func (x ListMyResponse_CODE) String() string

func (ListMyResponse_CODE) Type

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"`
	// contains filtered or unexported fields
}

func (*RemoveRequest) Descriptor deprecated

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

Deprecated: Use RemoveRequest.ProtoReflect.Descriptor instead.

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_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_PERMISSION RemoveResponse_CODE = 2
)

func (RemoveResponse_CODE) Descriptor

func (RemoveResponse_CODE) Enum

func (RemoveResponse_CODE) EnumDescriptor deprecated

func (RemoveResponse_CODE) EnumDescriptor() ([]byte, []int)

Deprecated: Use RemoveResponse_CODE.Descriptor instead.

func (RemoveResponse_CODE) Number

func (RemoveResponse_CODE) String

func (x RemoveResponse_CODE) String() string

func (RemoveResponse_CODE) Type

type TeamApiClient

type TeamApiClient interface {
	// 创建团队
	Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error)
	// 更新团队基础信息
	UpdateBasic(ctx context.Context, in *UpdateBasicRequest, opts ...grpc.CallOption) (*UpdateBasicResponse, error)
	// 更新团队设置
	UpdateSetting(ctx context.Context, in *UpdateSettingRequest, opts ...grpc.CallOption) (*UpdateSettingResponse, error)
	// 删除团队
	Remove(ctx context.Context, in *RemoveRequest, opts ...grpc.CallOption) (*RemoveResponse, error)
	// 变更超级管理员
	ChangeOwner(ctx context.Context, in *ChangeOwnerRequest, opts ...grpc.CallOption) (*ChangeOwnerResponse, error)
	// 列出我的团队
	ListMy(ctx context.Context, in *ListMyRequest, opts ...grpc.CallOption) (*ListMyResponse, error)
	// 获取单个团队
	Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error)
}

TeamApiClient is the client API for TeamApi 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 NewTeamApiClient

func NewTeamApiClient(cc grpc.ClientConnInterface) TeamApiClient

type TeamApiServer

type TeamApiServer interface {
	// 创建团队
	Create(context.Context, *CreateRequest) (*CreateResponse, error)
	// 更新团队基础信息
	UpdateBasic(context.Context, *UpdateBasicRequest) (*UpdateBasicResponse, error)
	// 更新团队设置
	UpdateSetting(context.Context, *UpdateSettingRequest) (*UpdateSettingResponse, error)
	// 删除团队
	Remove(context.Context, *RemoveRequest) (*RemoveResponse, error)
	// 变更超级管理员
	ChangeOwner(context.Context, *ChangeOwnerRequest) (*ChangeOwnerResponse, error)
	// 列出我的团队
	ListMy(context.Context, *ListMyRequest) (*ListMyResponse, error)
	// 获取单个团队
	Get(context.Context, *GetRequest) (*GetResponse, error)
	// contains filtered or unexported methods
}

TeamApiServer is the server API for TeamApi service. All implementations must embed UnimplementedTeamApiServer for forward compatibility

type TeamInfo

type TeamInfo struct {
	TeamId                 string         `protobuf:"bytes,1,opt,name=teamId,proto3" json:"teamId,omitempty"`
	BasicInfo              *BasicTeamInfo `protobuf:"bytes,2,opt,name=basicInfo,proto3" json:"basicInfo,omitempty"`
	Setting                *TeamSetting   `protobuf:"bytes,3,opt,name=setting,proto3" json:"setting,omitempty"`
	DiskFsId               string         `protobuf:"bytes,20,opt,name=diskFsId,proto3" json:"diskFsId,omitempty"`
	DefaultKnowledgeCateId string         `protobuf:"bytes,21,opt,name=defaultKnowledgeCateId,proto3" json:"defaultKnowledgeCateId,omitempty"` //默认知识点类别
	OwnerUserId            string         `protobuf:"bytes,30,opt,name=ownerUserId,proto3" json:"ownerUserId,omitempty"`
	OwnerDisplayName       string         `protobuf:"bytes,31,opt,name=ownerDisplayName,proto3" json:"ownerDisplayName,omitempty"`
	OwnerLogoUri           string         `protobuf:"bytes,32,opt,name=ownerLogoUri,proto3" json:"ownerLogoUri,omitempty"`
	CreateTime             int64          `protobuf:"varint,33,opt,name=createTime,proto3" json:"createTime,omitempty"`
	UpdateUserId           string         `protobuf:"bytes,40,opt,name=updateUserId,proto3" json:"updateUserId,omitempty"`
	UpdateDisplayName      string         `protobuf:"bytes,41,opt,name=updateDisplayName,proto3" json:"updateDisplayName,omitempty"`
	UpdateLogoUri          string         `protobuf:"bytes,42,opt,name=updateLogoUri,proto3" json:"updateLogoUri,omitempty"`
	UpdateTime             int64          `protobuf:"varint,43,opt,name=updateTime,proto3" json:"updateTime,omitempty"`
	// contains filtered or unexported fields
}

func (*TeamInfo) Descriptor deprecated

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

Deprecated: Use TeamInfo.ProtoReflect.Descriptor instead.

func (*TeamInfo) GetBasicInfo

func (x *TeamInfo) GetBasicInfo() *BasicTeamInfo

func (*TeamInfo) GetCreateTime

func (x *TeamInfo) GetCreateTime() int64

func (*TeamInfo) GetDefaultKnowledgeCateId

func (x *TeamInfo) GetDefaultKnowledgeCateId() string

func (*TeamInfo) GetDiskFsId

func (x *TeamInfo) GetDiskFsId() string

func (*TeamInfo) GetOwnerDisplayName

func (x *TeamInfo) GetOwnerDisplayName() string

func (*TeamInfo) GetOwnerLogoUri

func (x *TeamInfo) GetOwnerLogoUri() string

func (*TeamInfo) GetOwnerUserId

func (x *TeamInfo) GetOwnerUserId() string

func (*TeamInfo) GetSetting

func (x *TeamInfo) GetSetting() *TeamSetting

func (*TeamInfo) GetTeamId

func (x *TeamInfo) GetTeamId() string

func (*TeamInfo) GetUpdateDisplayName

func (x *TeamInfo) GetUpdateDisplayName() string

func (*TeamInfo) GetUpdateLogoUri

func (x *TeamInfo) GetUpdateLogoUri() string

func (*TeamInfo) GetUpdateTime

func (x *TeamInfo) GetUpdateTime() int64

func (*TeamInfo) GetUpdateUserId

func (x *TeamInfo) GetUpdateUserId() string

func (*TeamInfo) ProtoMessage

func (*TeamInfo) ProtoMessage()

func (*TeamInfo) ProtoReflect

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

func (*TeamInfo) Reset

func (x *TeamInfo) Reset()

func (*TeamInfo) String

func (x *TeamInfo) String() string

type TeamSetting

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

func (*TeamSetting) Descriptor deprecated

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

Deprecated: Use TeamSetting.ProtoReflect.Descriptor instead.

func (*TeamSetting) ProtoMessage

func (*TeamSetting) ProtoMessage()

func (*TeamSetting) ProtoReflect

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

func (*TeamSetting) Reset

func (x *TeamSetting) Reset()

func (*TeamSetting) String

func (x *TeamSetting) String() string

type UnimplementedTeamApiServer

type UnimplementedTeamApiServer struct {
}

UnimplementedTeamApiServer must be embedded to have forward compatible implementations.

func (UnimplementedTeamApiServer) ChangeOwner

func (UnimplementedTeamApiServer) Create

func (UnimplementedTeamApiServer) Get

func (UnimplementedTeamApiServer) ListMy

func (UnimplementedTeamApiServer) Remove

func (UnimplementedTeamApiServer) UpdateBasic

func (UnimplementedTeamApiServer) UpdateSetting

type UnsafeTeamApiServer

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

UnsafeTeamApiServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TeamApiServer 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"`
	BasicInfo *BasicTeamInfo `protobuf:"bytes,3,opt,name=basicInfo,proto3" json:"basicInfo,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() *BasicTeamInfo

func (*UpdateBasicRequest) GetSessionId

func (x *UpdateBasicRequest) GetSessionId() string

func (*UpdateBasicRequest) GetTeamId

func (x *UpdateBasicRequest) GetTeamId() string

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_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 (*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
)

func (UpdateBasicResponse_CODE) Descriptor

func (UpdateBasicResponse_CODE) Enum

func (UpdateBasicResponse_CODE) EnumDescriptor deprecated

func (UpdateBasicResponse_CODE) EnumDescriptor() ([]byte, []int)

Deprecated: Use UpdateBasicResponse_CODE.Descriptor instead.

func (UpdateBasicResponse_CODE) Number

func (UpdateBasicResponse_CODE) String

func (x UpdateBasicResponse_CODE) String() string

func (UpdateBasicResponse_CODE) Type

type UpdateSettingRequest

type UpdateSettingRequest 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"`
	Setting   *TeamSetting `protobuf:"bytes,3,opt,name=setting,proto3" json:"setting,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateSettingRequest) Descriptor deprecated

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

Deprecated: Use UpdateSettingRequest.ProtoReflect.Descriptor instead.

func (*UpdateSettingRequest) GetSessionId

func (x *UpdateSettingRequest) GetSessionId() string

func (*UpdateSettingRequest) GetSetting

func (x *UpdateSettingRequest) GetSetting() *TeamSetting

func (*UpdateSettingRequest) GetTeamId

func (x *UpdateSettingRequest) GetTeamId() string

func (*UpdateSettingRequest) ProtoMessage

func (*UpdateSettingRequest) ProtoMessage()

func (*UpdateSettingRequest) ProtoReflect

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

func (*UpdateSettingRequest) Reset

func (x *UpdateSettingRequest) Reset()

func (*UpdateSettingRequest) String

func (x *UpdateSettingRequest) String() string

type UpdateSettingResponse

type UpdateSettingResponse struct {
	Code   UpdateSettingResponse_CODE `protobuf:"varint,1,opt,name=code,proto3,enum=team_api.UpdateSettingResponse_CODE" json:"code,omitempty"`
	ErrMsg string                     `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateSettingResponse) Descriptor deprecated

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

Deprecated: Use UpdateSettingResponse.ProtoReflect.Descriptor instead.

func (*UpdateSettingResponse) GetCode

func (*UpdateSettingResponse) GetErrMsg

func (x *UpdateSettingResponse) GetErrMsg() string

func (*UpdateSettingResponse) ProtoMessage

func (*UpdateSettingResponse) ProtoMessage()

func (*UpdateSettingResponse) ProtoReflect

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

func (*UpdateSettingResponse) Reset

func (x *UpdateSettingResponse) Reset()

func (*UpdateSettingResponse) String

func (x *UpdateSettingResponse) String() string

type UpdateSettingResponse_CODE

type UpdateSettingResponse_CODE int32
const (
	UpdateSettingResponse_CODE_OK            UpdateSettingResponse_CODE = 0
	UpdateSettingResponse_CODE_WRONG_SESSION UpdateSettingResponse_CODE = 1
	UpdateSettingResponse_CODE_NO_TEAM       UpdateSettingResponse_CODE = 2
	UpdateSettingResponse_CODE_NO_PERMISSION UpdateSettingResponse_CODE = 3
)

func (UpdateSettingResponse_CODE) Descriptor

func (UpdateSettingResponse_CODE) Enum

func (UpdateSettingResponse_CODE) EnumDescriptor deprecated

func (UpdateSettingResponse_CODE) EnumDescriptor() ([]byte, []int)

Deprecated: Use UpdateSettingResponse_CODE.Descriptor instead.

func (UpdateSettingResponse_CODE) Number

func (UpdateSettingResponse_CODE) String

func (UpdateSettingResponse_CODE) Type

Jump to

Keyboard shortcuts

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