project_watch_api

package
v0.0.0-...-99908cf Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ProjectWatchApi_Watch_FullMethodName       = "/project_watch_api.ProjectWatchApi/watch"
	ProjectWatchApi_Unwatch_FullMethodName     = "/project_watch_api.ProjectWatchApi/unwatch"
	ProjectWatchApi_ListMyWatch_FullMethodName = "/project_watch_api.ProjectWatchApi/listMyWatch"
)

Variables

View Source
var (
	WATCH_TARGET_TYPE_name = map[int32]string{
		0: "WATCH_TARGET_ENTRY",
		1: "WATCH_TARGET_REQUIRE_MENT",
		2: "WATCH_TARGET_TASK",
		3: "WATCH_TARGET_BUG",
		7: "WATCH_TARGET_TEST_CASE",
	}
	WATCH_TARGET_TYPE_value = map[string]int32{
		"WATCH_TARGET_ENTRY":        0,
		"WATCH_TARGET_REQUIRE_MENT": 1,
		"WATCH_TARGET_TASK":         2,
		"WATCH_TARGET_BUG":          3,
		"WATCH_TARGET_TEST_CASE":    7,
	}
)

Enum value maps for WATCH_TARGET_TYPE.

View Source
var (
	WatchResponse_CODE_name = map[int32]string{
		0: "CODE_OK",
		1: "CODE_WRONG_SESSION",
		2: "CODE_NO_PROJECT",
		3: "CODE_NO_PERMISSION",
		4: "CODE_NO_TARGET",
	}
	WatchResponse_CODE_value = map[string]int32{
		"CODE_OK":            0,
		"CODE_WRONG_SESSION": 1,
		"CODE_NO_PROJECT":    2,
		"CODE_NO_PERMISSION": 3,
		"CODE_NO_TARGET":     4,
	}
)

Enum value maps for WatchResponse_CODE.

View Source
var (
	UnwatchResponse_CODE_name = map[int32]string{
		0: "CODE_OK",
		1: "CODE_WRONG_SESSION",
		2: "CODE_NO_PROJECT",
		3: "CODE_NO_PERMISSION",
		4: "CODE_NO_TARGET",
	}
	UnwatchResponse_CODE_value = map[string]int32{
		"CODE_OK":            0,
		"CODE_WRONG_SESSION": 1,
		"CODE_NO_PROJECT":    2,
		"CODE_NO_PERMISSION": 3,
		"CODE_NO_TARGET":     4,
	}
)

Enum value maps for UnwatchResponse_CODE.

View Source
var (
	ListMyWatchResponse_CODE_name = map[int32]string{
		0: "CODE_OK",
		1: "CODE_WRONG_SESSION",
		2: "CODE_NO_PROJECT",
		3: "CODE_NO_PERMISSION",
	}
	ListMyWatchResponse_CODE_value = map[string]int32{
		"CODE_OK":            0,
		"CODE_WRONG_SESSION": 1,
		"CODE_NO_PROJECT":    2,
		"CODE_NO_PERMISSION": 3,
	}
)

Enum value maps for ListMyWatchResponse_CODE.

View Source
var File_project_watch_api_proto protoreflect.FileDescriptor
View Source
var ProjectWatchApi_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "project_watch_api.ProjectWatchApi",
	HandlerType: (*ProjectWatchApiServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "watch",
			Handler:    _ProjectWatchApi_Watch_Handler,
		},
		{
			MethodName: "unwatch",
			Handler:    _ProjectWatchApi_Unwatch_Handler,
		},
		{
			MethodName: "listMyWatch",
			Handler:    _ProjectWatchApi_ListMyWatch_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "project_watch_api.proto",
}

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

Functions

func RegisterProjectWatchApiServer

func RegisterProjectWatchApiServer(s grpc.ServiceRegistrar, srv ProjectWatchApiServer)

Types

type ListMyWatchRequest

type ListMyWatchRequest struct {
	SessionId          string            `protobuf:"bytes,1,opt,name=sessionId,proto3" json:"sessionId,omitempty"`
	ProjectId          string            `protobuf:"bytes,2,opt,name=projectId,proto3" json:"projectId,omitempty"`
	FilterByTargetType bool              `protobuf:"varint,3,opt,name=filterByTargetType,proto3" json:"filterByTargetType,omitempty"`
	TargetType         WATCH_TARGET_TYPE `protobuf:"varint,4,opt,name=targetType,proto3,enum=project_watch_api.WATCH_TARGET_TYPE" json:"targetType,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 (*ListMyWatchRequest) Descriptor deprecated

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

Deprecated: Use ListMyWatchRequest.ProtoReflect.Descriptor instead.

func (*ListMyWatchRequest) GetFilterByTargetType

func (x *ListMyWatchRequest) GetFilterByTargetType() bool

func (*ListMyWatchRequest) GetLimit

func (x *ListMyWatchRequest) GetLimit() uint32

func (*ListMyWatchRequest) GetOffset

func (x *ListMyWatchRequest) GetOffset() uint32

func (*ListMyWatchRequest) GetProjectId

func (x *ListMyWatchRequest) GetProjectId() string

func (*ListMyWatchRequest) GetSessionId

func (x *ListMyWatchRequest) GetSessionId() string

func (*ListMyWatchRequest) GetTargetType

func (x *ListMyWatchRequest) GetTargetType() WATCH_TARGET_TYPE

func (*ListMyWatchRequest) ProtoMessage

func (*ListMyWatchRequest) ProtoMessage()

func (*ListMyWatchRequest) ProtoReflect

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

func (*ListMyWatchRequest) Reset

func (x *ListMyWatchRequest) Reset()

func (*ListMyWatchRequest) String

func (x *ListMyWatchRequest) String() string

type ListMyWatchResponse

type ListMyWatchResponse struct {
	Code       ListMyWatchResponse_CODE `protobuf:"varint,1,opt,name=code,proto3,enum=project_watch_api.ListMyWatchResponse_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"`
	InfoList   []*MyWatchInfo           `protobuf:"bytes,4,rep,name=infoList,proto3" json:"infoList,omitempty"`
	// contains filtered or unexported fields
}

func (*ListMyWatchResponse) Descriptor deprecated

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

Deprecated: Use ListMyWatchResponse.ProtoReflect.Descriptor instead.

func (*ListMyWatchResponse) GetCode

func (*ListMyWatchResponse) GetErrMsg

func (x *ListMyWatchResponse) GetErrMsg() string

func (*ListMyWatchResponse) GetInfoList

func (x *ListMyWatchResponse) GetInfoList() []*MyWatchInfo

func (*ListMyWatchResponse) GetTotalCount

func (x *ListMyWatchResponse) GetTotalCount() uint32

func (*ListMyWatchResponse) ProtoMessage

func (*ListMyWatchResponse) ProtoMessage()

func (*ListMyWatchResponse) ProtoReflect

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

func (*ListMyWatchResponse) Reset

func (x *ListMyWatchResponse) Reset()

func (*ListMyWatchResponse) String

func (x *ListMyWatchResponse) String() string

type ListMyWatchResponse_CODE

type ListMyWatchResponse_CODE int32
const (
	ListMyWatchResponse_CODE_OK            ListMyWatchResponse_CODE = 0
	ListMyWatchResponse_CODE_WRONG_SESSION ListMyWatchResponse_CODE = 1
	ListMyWatchResponse_CODE_NO_PROJECT    ListMyWatchResponse_CODE = 2
	ListMyWatchResponse_CODE_NO_PERMISSION ListMyWatchResponse_CODE = 3
)

func (ListMyWatchResponse_CODE) Descriptor

func (ListMyWatchResponse_CODE) Enum

func (ListMyWatchResponse_CODE) EnumDescriptor deprecated

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

Deprecated: Use ListMyWatchResponse_CODE.Descriptor instead.

func (ListMyWatchResponse_CODE) Number

func (ListMyWatchResponse_CODE) String

func (x ListMyWatchResponse_CODE) String() string

func (ListMyWatchResponse_CODE) Type

type MyWatchInfo

type MyWatchInfo struct {
	TargetId   string            `protobuf:"bytes,1,opt,name=targetId,proto3" json:"targetId,omitempty"`
	TargetType WATCH_TARGET_TYPE `protobuf:"varint,2,opt,name=targetType,proto3,enum=project_watch_api.WATCH_TARGET_TYPE" json:"targetType,omitempty"`
	Title      string            `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
	WatchTime  int64             `protobuf:"varint,4,opt,name=watchTime,proto3" json:"watchTime,omitempty"` //关注时间
	// contains filtered or unexported fields
}

func (*MyWatchInfo) Descriptor deprecated

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

Deprecated: Use MyWatchInfo.ProtoReflect.Descriptor instead.

func (*MyWatchInfo) GetTargetId

func (x *MyWatchInfo) GetTargetId() string

func (*MyWatchInfo) GetTargetType

func (x *MyWatchInfo) GetTargetType() WATCH_TARGET_TYPE

func (*MyWatchInfo) GetTitle

func (x *MyWatchInfo) GetTitle() string

func (*MyWatchInfo) GetWatchTime

func (x *MyWatchInfo) GetWatchTime() int64

func (*MyWatchInfo) ProtoMessage

func (*MyWatchInfo) ProtoMessage()

func (*MyWatchInfo) ProtoReflect

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

func (*MyWatchInfo) Reset

func (x *MyWatchInfo) Reset()

func (*MyWatchInfo) String

func (x *MyWatchInfo) String() string

type ProjectWatchApiClient

type ProjectWatchApiClient interface {
	// 关注
	Watch(ctx context.Context, in *WatchRequest, opts ...grpc.CallOption) (*WatchResponse, error)
	// 取消关注
	Unwatch(ctx context.Context, in *UnwatchRequest, opts ...grpc.CallOption) (*UnwatchResponse, error)
	// 列出我的关注
	ListMyWatch(ctx context.Context, in *ListMyWatchRequest, opts ...grpc.CallOption) (*ListMyWatchResponse, error)
}

ProjectWatchApiClient is the client API for ProjectWatchApi 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 NewProjectWatchApiClient

func NewProjectWatchApiClient(cc grpc.ClientConnInterface) ProjectWatchApiClient

type ProjectWatchApiServer

type ProjectWatchApiServer interface {
	// 关注
	Watch(context.Context, *WatchRequest) (*WatchResponse, error)
	// 取消关注
	Unwatch(context.Context, *UnwatchRequest) (*UnwatchResponse, error)
	// 列出我的关注
	ListMyWatch(context.Context, *ListMyWatchRequest) (*ListMyWatchResponse, error)
	// contains filtered or unexported methods
}

ProjectWatchApiServer is the server API for ProjectWatchApi service. All implementations must embed UnimplementedProjectWatchApiServer for forward compatibility

type UnimplementedProjectWatchApiServer

type UnimplementedProjectWatchApiServer struct {
}

UnimplementedProjectWatchApiServer must be embedded to have forward compatible implementations.

func (UnimplementedProjectWatchApiServer) ListMyWatch

func (UnimplementedProjectWatchApiServer) Unwatch

func (UnimplementedProjectWatchApiServer) Watch

type UnsafeProjectWatchApiServer

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

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

type UnwatchRequest

type UnwatchRequest struct {
	SessionId  string            `protobuf:"bytes,1,opt,name=sessionId,proto3" json:"sessionId,omitempty"`
	ProjectId  string            `protobuf:"bytes,2,opt,name=projectId,proto3" json:"projectId,omitempty"`
	TargetType WATCH_TARGET_TYPE `protobuf:"varint,3,opt,name=targetType,proto3,enum=project_watch_api.WATCH_TARGET_TYPE" json:"targetType,omitempty"`
	TargetId   string            `protobuf:"bytes,4,opt,name=targetId,proto3" json:"targetId,omitempty"`
	// contains filtered or unexported fields
}

func (*UnwatchRequest) Descriptor deprecated

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

Deprecated: Use UnwatchRequest.ProtoReflect.Descriptor instead.

func (*UnwatchRequest) GetProjectId

func (x *UnwatchRequest) GetProjectId() string

func (*UnwatchRequest) GetSessionId

func (x *UnwatchRequest) GetSessionId() string

func (*UnwatchRequest) GetTargetId

func (x *UnwatchRequest) GetTargetId() string

func (*UnwatchRequest) GetTargetType

func (x *UnwatchRequest) GetTargetType() WATCH_TARGET_TYPE

func (*UnwatchRequest) ProtoMessage

func (*UnwatchRequest) ProtoMessage()

func (*UnwatchRequest) ProtoReflect

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

func (*UnwatchRequest) Reset

func (x *UnwatchRequest) Reset()

func (*UnwatchRequest) String

func (x *UnwatchRequest) String() string

type UnwatchResponse

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

func (*UnwatchResponse) Descriptor deprecated

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

Deprecated: Use UnwatchResponse.ProtoReflect.Descriptor instead.

func (*UnwatchResponse) GetCode

func (*UnwatchResponse) GetErrMsg

func (x *UnwatchResponse) GetErrMsg() string

func (*UnwatchResponse) ProtoMessage

func (*UnwatchResponse) ProtoMessage()

func (*UnwatchResponse) ProtoReflect

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

func (*UnwatchResponse) Reset

func (x *UnwatchResponse) Reset()

func (*UnwatchResponse) String

func (x *UnwatchResponse) String() string

type UnwatchResponse_CODE

type UnwatchResponse_CODE int32
const (
	UnwatchResponse_CODE_OK            UnwatchResponse_CODE = 0
	UnwatchResponse_CODE_WRONG_SESSION UnwatchResponse_CODE = 1
	UnwatchResponse_CODE_NO_PROJECT    UnwatchResponse_CODE = 2
	UnwatchResponse_CODE_NO_PERMISSION UnwatchResponse_CODE = 3
	UnwatchResponse_CODE_NO_TARGET     UnwatchResponse_CODE = 4
)

func (UnwatchResponse_CODE) Descriptor

func (UnwatchResponse_CODE) Enum

func (UnwatchResponse_CODE) EnumDescriptor deprecated

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

Deprecated: Use UnwatchResponse_CODE.Descriptor instead.

func (UnwatchResponse_CODE) Number

func (UnwatchResponse_CODE) String

func (x UnwatchResponse_CODE) String() string

func (UnwatchResponse_CODE) Type

type WATCH_TARGET_TYPE

type WATCH_TARGET_TYPE int32
const (
	WATCH_TARGET_TYPE_WATCH_TARGET_ENTRY        WATCH_TARGET_TYPE = 0 //内容入口
	WATCH_TARGET_TYPE_WATCH_TARGET_REQUIRE_MENT WATCH_TARGET_TYPE = 1 //项目需求
	WATCH_TARGET_TYPE_WATCH_TARGET_TASK         WATCH_TARGET_TYPE = 2 //任务
	WATCH_TARGET_TYPE_WATCH_TARGET_BUG          WATCH_TARGET_TYPE = 3 //缺陷
	// WATCH_TARGET_CI_CD = 4;         // CI/CD(废弃)
	// WATCH_TARGET_API_COLL = 5;      // API集合(废弃)
	// WATCH_TARGET_DATA_ANNO = 6;     // 数据标注(废弃)
	WATCH_TARGET_TYPE_WATCH_TARGET_TEST_CASE WATCH_TARGET_TYPE = 7 //测试用例
)

func (WATCH_TARGET_TYPE) Descriptor

func (WATCH_TARGET_TYPE) Enum

func (WATCH_TARGET_TYPE) EnumDescriptor deprecated

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

Deprecated: Use WATCH_TARGET_TYPE.Descriptor instead.

func (WATCH_TARGET_TYPE) Number

func (WATCH_TARGET_TYPE) String

func (x WATCH_TARGET_TYPE) String() string

func (WATCH_TARGET_TYPE) Type

type WatchRequest

type WatchRequest struct {
	SessionId  string            `protobuf:"bytes,1,opt,name=sessionId,proto3" json:"sessionId,omitempty"`
	ProjectId  string            `protobuf:"bytes,2,opt,name=projectId,proto3" json:"projectId,omitempty"`
	TargetType WATCH_TARGET_TYPE `protobuf:"varint,3,opt,name=targetType,proto3,enum=project_watch_api.WATCH_TARGET_TYPE" json:"targetType,omitempty"`
	TargetId   string            `protobuf:"bytes,4,opt,name=targetId,proto3" json:"targetId,omitempty"`
	// contains filtered or unexported fields
}

func (*WatchRequest) Descriptor deprecated

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

Deprecated: Use WatchRequest.ProtoReflect.Descriptor instead.

func (*WatchRequest) GetProjectId

func (x *WatchRequest) GetProjectId() string

func (*WatchRequest) GetSessionId

func (x *WatchRequest) GetSessionId() string

func (*WatchRequest) GetTargetId

func (x *WatchRequest) GetTargetId() string

func (*WatchRequest) GetTargetType

func (x *WatchRequest) GetTargetType() WATCH_TARGET_TYPE

func (*WatchRequest) ProtoMessage

func (*WatchRequest) ProtoMessage()

func (*WatchRequest) ProtoReflect

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

func (*WatchRequest) Reset

func (x *WatchRequest) Reset()

func (*WatchRequest) String

func (x *WatchRequest) String() string

type WatchResponse

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

func (*WatchResponse) Descriptor deprecated

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

Deprecated: Use WatchResponse.ProtoReflect.Descriptor instead.

func (*WatchResponse) GetCode

func (x *WatchResponse) GetCode() WatchResponse_CODE

func (*WatchResponse) GetErrMsg

func (x *WatchResponse) GetErrMsg() string

func (*WatchResponse) ProtoMessage

func (*WatchResponse) ProtoMessage()

func (*WatchResponse) ProtoReflect

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

func (*WatchResponse) Reset

func (x *WatchResponse) Reset()

func (*WatchResponse) String

func (x *WatchResponse) String() string

type WatchResponse_CODE

type WatchResponse_CODE int32
const (
	WatchResponse_CODE_OK            WatchResponse_CODE = 0
	WatchResponse_CODE_WRONG_SESSION WatchResponse_CODE = 1
	WatchResponse_CODE_NO_PROJECT    WatchResponse_CODE = 2
	WatchResponse_CODE_NO_PERMISSION WatchResponse_CODE = 3
	WatchResponse_CODE_NO_TARGET     WatchResponse_CODE = 4
)

func (WatchResponse_CODE) Descriptor

func (WatchResponse_CODE) Enum

func (WatchResponse_CODE) EnumDescriptor deprecated

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

Deprecated: Use WatchResponse_CODE.Descriptor instead.

func (WatchResponse_CODE) Number

func (WatchResponse_CODE) String

func (x WatchResponse_CODE) String() string

func (WatchResponse_CODE) Type

Source Files

  • project_watch_api.pb.go
  • project_watch_api_grpc.pb.go

Jump to

Keyboard shortcuts

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