team_event_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: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TeamEventApi_List_FullMethodName     = "/team_event_api.TeamEventApi/list"
	TeamEventApi_ListById_FullMethodName = "/team_event_api.TeamEventApi/listById"
	TeamEventApi_Get_FullMethodName      = "/team_event_api.TeamEventApi/get"
)

Variables

View Source
var (
	EVENT_TYPE_name = map[int32]string{
		0: "EVENT_TYPE_KNOWLEDGE",
		1: "EVENT_TYPE_WORKPLAN",
		2: "EVENT_TYPE_REQUIREMENT",
		3: "EVENT_TYPE_ISSUE",
	}
	EVENT_TYPE_value = map[string]int32{
		"EVENT_TYPE_KNOWLEDGE":   0,
		"EVENT_TYPE_WORKPLAN":    1,
		"EVENT_TYPE_REQUIREMENT": 2,
		"EVENT_TYPE_ISSUE":       3,
	}
)

Enum value maps for EVENT_TYPE.

View Source
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.

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

Enum value maps for ListByIdResponse_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",
		4: "CODE_NO_EVENT",
	}
	GetResponse_CODE_value = map[string]int32{
		"CODE_OK":            0,
		"CODE_WRONG_SESSION": 1,
		"CODE_NO_TEAM":       2,
		"CODE_NO_PERMISSION": 3,
		"CODE_NO_EVENT":      4,
	}
)

Enum value maps for GetResponse_CODE.

View Source
var File_team_event_api_proto protoreflect.FileDescriptor
View Source
var TeamEventApi_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "team_event_api.TeamEventApi",
	HandlerType: (*TeamEventApiServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "list",
			Handler:    _TeamEventApi_List_Handler,
		},
		{
			MethodName: "listById",
			Handler:    _TeamEventApi_ListById_Handler,
		},
		{
			MethodName: "get",
			Handler:    _TeamEventApi_Get_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "team_event_api.proto",
}

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

Functions

func RegisterTeamEventApiServer

func RegisterTeamEventApiServer(s grpc.ServiceRegistrar, srv TeamEventApiServer)

Types

type EVENT_TYPE

type EVENT_TYPE int32
const (
	EVENT_TYPE_EVENT_TYPE_KNOWLEDGE   EVENT_TYPE = 0
	EVENT_TYPE_EVENT_TYPE_WORKPLAN    EVENT_TYPE = 1
	EVENT_TYPE_EVENT_TYPE_REQUIREMENT EVENT_TYPE = 2
	EVENT_TYPE_EVENT_TYPE_ISSUE       EVENT_TYPE = 3
)

func (EVENT_TYPE) Descriptor

func (EVENT_TYPE) Descriptor() protoreflect.EnumDescriptor

func (EVENT_TYPE) Enum

func (x EVENT_TYPE) Enum() *EVENT_TYPE

func (EVENT_TYPE) EnumDescriptor deprecated

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

Deprecated: Use EVENT_TYPE.Descriptor instead.

func (EVENT_TYPE) Number

func (x EVENT_TYPE) Number() protoreflect.EnumNumber

func (EVENT_TYPE) String

func (x EVENT_TYPE) String() string

func (EVENT_TYPE) Type

type EventInfo

type EventInfo struct {
	EventId      string     `protobuf:"bytes,1,opt,name=eventId,proto3" json:"eventId,omitempty"`
	EventType    EVENT_TYPE `protobuf:"varint,2,opt,name=eventType,proto3,enum=team_event_api.EVENT_TYPE" json:"eventType,omitempty"`
	TeamId       string     `protobuf:"bytes,3,opt,name=teamId,proto3" json:"teamId,omitempty"`
	MemberUserId string     `protobuf:"bytes,4,opt,name=memberUserId,proto3" json:"memberUserId,omitempty"`
	TimeStamp    int64      `protobuf:"varint,5,opt,name=timeStamp,proto3" json:"timeStamp,omitempty"`
	// 目标为knowledge,issue,requriement,workplan的HistoryItem
	EventData *anypb.Any `protobuf:"bytes,10,opt,name=eventData,proto3" json:"eventData,omitempty"`
	// contains filtered or unexported fields
}

func (*EventInfo) Descriptor deprecated

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

Deprecated: Use EventInfo.ProtoReflect.Descriptor instead.

func (*EventInfo) GetEventData

func (x *EventInfo) GetEventData() *anypb.Any

func (*EventInfo) GetEventId

func (x *EventInfo) GetEventId() string

func (*EventInfo) GetEventType

func (x *EventInfo) GetEventType() EVENT_TYPE

func (*EventInfo) GetMemberUserId

func (x *EventInfo) GetMemberUserId() string

func (*EventInfo) GetTeamId

func (x *EventInfo) GetTeamId() string

func (*EventInfo) GetTimeStamp

func (x *EventInfo) GetTimeStamp() int64

func (*EventInfo) ProtoMessage

func (*EventInfo) ProtoMessage()

func (*EventInfo) ProtoReflect

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

func (*EventInfo) Reset

func (x *EventInfo) Reset()

func (*EventInfo) String

func (x *EventInfo) String() string

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

func (*GetRequest) Descriptor deprecated

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

Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.

func (*GetRequest) GetEventId

func (x *GetRequest) GetEventId() string

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_event_api.GetResponse_CODE" json:"code,omitempty"`
	ErrMsg string           `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"`
	Event  *EventInfo       `protobuf:"bytes,3,opt,name=event,proto3" json:"event,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) GetEvent

func (x *GetResponse) GetEvent() *EventInfo

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_EVENT      GetResponse_CODE = 4
)

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 ListByIdRequest

type ListByIdRequest 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"`
	EventIdList []string `protobuf:"bytes,3,rep,name=eventIdList,proto3" json:"eventIdList,omitempty"`
	// contains filtered or unexported fields
}

func (*ListByIdRequest) Descriptor deprecated

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

Deprecated: Use ListByIdRequest.ProtoReflect.Descriptor instead.

func (*ListByIdRequest) GetEventIdList

func (x *ListByIdRequest) GetEventIdList() []string

func (*ListByIdRequest) GetSessionId

func (x *ListByIdRequest) GetSessionId() string

func (*ListByIdRequest) GetTeamId

func (x *ListByIdRequest) GetTeamId() string

func (*ListByIdRequest) ProtoMessage

func (*ListByIdRequest) ProtoMessage()

func (*ListByIdRequest) ProtoReflect

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

func (*ListByIdRequest) Reset

func (x *ListByIdRequest) Reset()

func (*ListByIdRequest) String

func (x *ListByIdRequest) String() string

type ListByIdResponse

type ListByIdResponse struct {
	Code      ListByIdResponse_CODE `protobuf:"varint,1,opt,name=code,proto3,enum=team_event_api.ListByIdResponse_CODE" json:"code,omitempty"`
	ErrMsg    string                `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"`
	EventList []*EventInfo          `protobuf:"bytes,3,rep,name=eventList,proto3" json:"eventList,omitempty"`
	// contains filtered or unexported fields
}

func (*ListByIdResponse) Descriptor deprecated

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

Deprecated: Use ListByIdResponse.ProtoReflect.Descriptor instead.

func (*ListByIdResponse) GetCode

func (*ListByIdResponse) GetErrMsg

func (x *ListByIdResponse) GetErrMsg() string

func (*ListByIdResponse) GetEventList

func (x *ListByIdResponse) GetEventList() []*EventInfo

func (*ListByIdResponse) ProtoMessage

func (*ListByIdResponse) ProtoMessage()

func (*ListByIdResponse) ProtoReflect

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

func (*ListByIdResponse) Reset

func (x *ListByIdResponse) Reset()

func (*ListByIdResponse) String

func (x *ListByIdResponse) String() string

type ListByIdResponse_CODE

type ListByIdResponse_CODE int32
const (
	ListByIdResponse_CODE_OK            ListByIdResponse_CODE = 0
	ListByIdResponse_CODE_WRONG_SESSION ListByIdResponse_CODE = 1
	ListByIdResponse_CODE_NO_TEAM       ListByIdResponse_CODE = 2
	ListByIdResponse_CODE_NO_PERMISSION ListByIdResponse_CODE = 3
)

func (ListByIdResponse_CODE) Descriptor

func (ListByIdResponse_CODE) Enum

func (ListByIdResponse_CODE) EnumDescriptor deprecated

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

Deprecated: Use ListByIdResponse_CODE.Descriptor instead.

func (ListByIdResponse_CODE) Number

func (ListByIdResponse_CODE) String

func (x ListByIdResponse_CODE) String() string

func (ListByIdResponse_CODE) Type

type ListParam

type ListParam struct {
	FilterByMemberUserId bool   `protobuf:"varint,1,opt,name=filterByMemberUserId,proto3" json:"filterByMemberUserId,omitempty"`
	MemberUserId         string `protobuf:"bytes,2,opt,name=memberUserId,proto3" json:"memberUserId,omitempty"`
	HasTimeRange         bool   `protobuf:"varint,3,opt,name=hasTimeRange,proto3" json:"hasTimeRange,omitempty"`
	FromTime             int64  `protobuf:"varint,4,opt,name=fromTime,proto3" json:"fromTime,omitempty"`
	ToTime               int64  `protobuf:"varint,5,opt,name=toTime,proto3" json:"toTime,omitempty"`
	OrderAsc             bool   `protobuf:"varint,6,opt,name=orderAsc,proto3" json:"orderAsc,omitempty"` //是否升序
	// contains filtered or unexported fields
}

func (*ListParam) Descriptor deprecated

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

Deprecated: Use ListParam.ProtoReflect.Descriptor instead.

func (*ListParam) GetFilterByMemberUserId

func (x *ListParam) GetFilterByMemberUserId() bool

func (*ListParam) GetFromTime

func (x *ListParam) GetFromTime() int64

func (*ListParam) GetHasTimeRange

func (x *ListParam) GetHasTimeRange() bool

func (*ListParam) GetMemberUserId

func (x *ListParam) GetMemberUserId() string

func (*ListParam) GetOrderAsc

func (x *ListParam) GetOrderAsc() bool

func (*ListParam) GetToTime

func (x *ListParam) GetToTime() int64

func (*ListParam) ProtoMessage

func (*ListParam) ProtoMessage()

func (*ListParam) ProtoReflect

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

func (*ListParam) Reset

func (x *ListParam) Reset()

func (*ListParam) String

func (x *ListParam) String() string

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"`
	Offset    uint32     `protobuf:"varint,10,opt,name=offset,proto3" json:"offset,omitempty"`
	Limit     uint32     `protobuf:"varint,11,opt,name=limit,proto3" json:"limit,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) GetTeamId

func (x *ListRequest) GetTeamId() string

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_event_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"`
	EventList  []*EventInfo      `protobuf:"bytes,4,rep,name=eventList,proto3" json:"eventList,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) GetEventList

func (x *ListResponse) GetEventList() []*EventInfo

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) Enum

func (ListResponse_CODE) EnumDescriptor deprecated

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

Deprecated: Use ListResponse_CODE.Descriptor instead.

func (ListResponse_CODE) Number

func (ListResponse_CODE) String

func (x ListResponse_CODE) String() string

func (ListResponse_CODE) Type

type TeamEventApiClient

type TeamEventApiClient interface {
	// 列出事件
	List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error)
	// 按Id列出事件
	ListById(ctx context.Context, in *ListByIdRequest, opts ...grpc.CallOption) (*ListByIdResponse, error)
	// 获取单个事件
	Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error)
}

TeamEventApiClient is the client API for TeamEventApi 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 NewTeamEventApiClient

func NewTeamEventApiClient(cc grpc.ClientConnInterface) TeamEventApiClient

type TeamEventApiServer

type TeamEventApiServer interface {
	// 列出事件
	List(context.Context, *ListRequest) (*ListResponse, error)
	// 按Id列出事件
	ListById(context.Context, *ListByIdRequest) (*ListByIdResponse, error)
	// 获取单个事件
	Get(context.Context, *GetRequest) (*GetResponse, error)
	// contains filtered or unexported methods
}

TeamEventApiServer is the server API for TeamEventApi service. All implementations must embed UnimplementedTeamEventApiServer for forward compatibility

type UnimplementedTeamEventApiServer

type UnimplementedTeamEventApiServer struct {
}

UnimplementedTeamEventApiServer must be embedded to have forward compatible implementations.

func (UnimplementedTeamEventApiServer) Get

func (UnimplementedTeamEventApiServer) List

func (UnimplementedTeamEventApiServer) ListById

type UnsafeTeamEventApiServer

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

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

Jump to

Keyboard shortcuts

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