short_note_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 (
	ShortNoteApi_Add_FullMethodName           = "/short_note_api.ShortNoteApi/add"
	ShortNoteApi_Remove_FullMethodName        = "/short_note_api.ShortNoteApi/remove"
	ShortNoteApi_ListMy_FullMethodName        = "/short_note_api.ShortNoteApi/listMy"
	ShortNoteApi_ListByMember_FullMethodName  = "/short_note_api.ShortNoteApi/listByMember"
	ShortNoteApi_ListByProject_FullMethodName = "/short_note_api.ShortNoteApi/listByProject"
)

Variables

View Source
var (
	SHORT_NOTE_TYPE_name = map[int32]string{
		0: "SHORT_NOTE_TASK",
		1: "SHORT_NOTE_BUG",
		2: "SHORT_NOTE_DOC",
	}
	SHORT_NOTE_TYPE_value = map[string]int32{
		"SHORT_NOTE_TASK": 0,
		"SHORT_NOTE_BUG":  1,
		"SHORT_NOTE_DOC":  2,
	}
)

Enum value maps for SHORT_NOTE_TYPE.

View Source
var (
	AddResponse_CODE_name = map[int32]string{
		0: "CODE_OK",
		1: "CODE_WRONG_SESSION",
		2: "CODE_NO_PROJECT",
		3: "CODE_NO_PERMISSION",
		4: "CODE_NO_TARGET",
	}
	AddResponse_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 AddResponse_CODE.

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

Enum value maps for RemoveResponse_CODE.

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

Enum value maps for ListMyResponse_CODE.

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

Enum value maps for ListByMemberResponse_CODE.

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

Enum value maps for ListByProjectResponse_CODE.

View Source
var File_short_note_api_proto protoreflect.FileDescriptor
View Source
var ShortNoteApi_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "short_note_api.ShortNoteApi",
	HandlerType: (*ShortNoteApiServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "add",
			Handler:    _ShortNoteApi_Add_Handler,
		},
		{
			MethodName: "remove",
			Handler:    _ShortNoteApi_Remove_Handler,
		},
		{
			MethodName: "listMy",
			Handler:    _ShortNoteApi_ListMy_Handler,
		},
		{
			MethodName: "listByMember",
			Handler:    _ShortNoteApi_ListByMember_Handler,
		},
		{
			MethodName: "listByProject",
			Handler:    _ShortNoteApi_ListByProject_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "short_note_api.proto",
}

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

Functions

func RegisterShortNoteApiServer

func RegisterShortNoteApiServer(s grpc.ServiceRegistrar, srv ShortNoteApiServer)

Types

type AddRequest

type AddRequest 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"`
	ShortNoteType SHORT_NOTE_TYPE `protobuf:"varint,3,opt,name=shortNoteType,proto3,enum=short_note_api.SHORT_NOTE_TYPE" json:"shortNoteType,omitempty"`
	TargetId      string          `protobuf:"bytes,4,opt,name=targetId,proto3" json:"targetId,omitempty"`
	// contains filtered or unexported fields
}

func (*AddRequest) Descriptor deprecated

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

Deprecated: Use AddRequest.ProtoReflect.Descriptor instead.

func (*AddRequest) GetProjectId

func (x *AddRequest) GetProjectId() string

func (*AddRequest) GetSessionId

func (x *AddRequest) GetSessionId() string

func (*AddRequest) GetShortNoteType

func (x *AddRequest) GetShortNoteType() SHORT_NOTE_TYPE

func (*AddRequest) GetTargetId

func (x *AddRequest) GetTargetId() string

func (*AddRequest) ProtoMessage

func (*AddRequest) ProtoMessage()

func (*AddRequest) ProtoReflect

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

func (*AddRequest) Reset

func (x *AddRequest) Reset()

func (*AddRequest) String

func (x *AddRequest) String() string

type AddResponse

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

func (*AddResponse) Descriptor deprecated

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

Deprecated: Use AddResponse.ProtoReflect.Descriptor instead.

func (*AddResponse) GetCode

func (x *AddResponse) GetCode() AddResponse_CODE

func (*AddResponse) GetErrMsg

func (x *AddResponse) GetErrMsg() string

func (*AddResponse) ProtoMessage

func (*AddResponse) ProtoMessage()

func (*AddResponse) ProtoReflect

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

func (*AddResponse) Reset

func (x *AddResponse) Reset()

func (*AddResponse) String

func (x *AddResponse) String() string

type AddResponse_CODE

type AddResponse_CODE int32
const (
	AddResponse_CODE_OK            AddResponse_CODE = 0
	AddResponse_CODE_WRONG_SESSION AddResponse_CODE = 1
	AddResponse_CODE_NO_PROJECT    AddResponse_CODE = 2
	AddResponse_CODE_NO_PERMISSION AddResponse_CODE = 3
	AddResponse_CODE_NO_TARGET     AddResponse_CODE = 4
)

func (AddResponse_CODE) Descriptor

func (AddResponse_CODE) Enum

func (AddResponse_CODE) EnumDescriptor deprecated

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

Deprecated: Use AddResponse_CODE.Descriptor instead.

func (AddResponse_CODE) Number

func (AddResponse_CODE) String

func (x AddResponse_CODE) String() string

func (AddResponse_CODE) Type

type ListByMemberRequest

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

func (*ListByMemberRequest) Descriptor deprecated

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

Deprecated: Use ListByMemberRequest.ProtoReflect.Descriptor instead.

func (*ListByMemberRequest) GetMemberUserId

func (x *ListByMemberRequest) GetMemberUserId() string

func (*ListByMemberRequest) GetProjectId

func (x *ListByMemberRequest) GetProjectId() string

func (*ListByMemberRequest) GetSessionId

func (x *ListByMemberRequest) GetSessionId() string

func (*ListByMemberRequest) ProtoMessage

func (*ListByMemberRequest) ProtoMessage()

func (*ListByMemberRequest) ProtoReflect

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

func (*ListByMemberRequest) Reset

func (x *ListByMemberRequest) Reset()

func (*ListByMemberRequest) String

func (x *ListByMemberRequest) String() string

type ListByMemberResponse

type ListByMemberResponse struct {
	Code          ListByMemberResponse_CODE `protobuf:"varint,1,opt,name=code,proto3,enum=short_note_api.ListByMemberResponse_CODE" json:"code,omitempty"`
	ErrMsg        string                    `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"`
	ShortNoteList []*ShortNote              `protobuf:"bytes,3,rep,name=shortNoteList,proto3" json:"shortNoteList,omitempty"`
	// contains filtered or unexported fields
}

func (*ListByMemberResponse) Descriptor deprecated

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

Deprecated: Use ListByMemberResponse.ProtoReflect.Descriptor instead.

func (*ListByMemberResponse) GetCode

func (*ListByMemberResponse) GetErrMsg

func (x *ListByMemberResponse) GetErrMsg() string

func (*ListByMemberResponse) GetShortNoteList

func (x *ListByMemberResponse) GetShortNoteList() []*ShortNote

func (*ListByMemberResponse) ProtoMessage

func (*ListByMemberResponse) ProtoMessage()

func (*ListByMemberResponse) ProtoReflect

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

func (*ListByMemberResponse) Reset

func (x *ListByMemberResponse) Reset()

func (*ListByMemberResponse) String

func (x *ListByMemberResponse) String() string

type ListByMemberResponse_CODE

type ListByMemberResponse_CODE int32
const (
	ListByMemberResponse_CODE_OK            ListByMemberResponse_CODE = 0
	ListByMemberResponse_CODE_WRONG_SESSION ListByMemberResponse_CODE = 1
	ListByMemberResponse_CODE_NO_PROJECT    ListByMemberResponse_CODE = 2
	ListByMemberResponse_CODE_NO_PERMISSION ListByMemberResponse_CODE = 3
	ListByMemberResponse_CODE_NO_MEMBER     ListByMemberResponse_CODE = 4
)

func (ListByMemberResponse_CODE) Descriptor

func (ListByMemberResponse_CODE) Enum

func (ListByMemberResponse_CODE) EnumDescriptor deprecated

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

Deprecated: Use ListByMemberResponse_CODE.Descriptor instead.

func (ListByMemberResponse_CODE) Number

func (ListByMemberResponse_CODE) String

func (x ListByMemberResponse_CODE) String() string

func (ListByMemberResponse_CODE) Type

type ListByProjectRequest

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

func (*ListByProjectRequest) Descriptor deprecated

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

Deprecated: Use ListByProjectRequest.ProtoReflect.Descriptor instead.

func (*ListByProjectRequest) GetProjectId

func (x *ListByProjectRequest) GetProjectId() string

func (*ListByProjectRequest) GetSessionId

func (x *ListByProjectRequest) GetSessionId() string

func (*ListByProjectRequest) ProtoMessage

func (*ListByProjectRequest) ProtoMessage()

func (*ListByProjectRequest) ProtoReflect

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

func (*ListByProjectRequest) Reset

func (x *ListByProjectRequest) Reset()

func (*ListByProjectRequest) String

func (x *ListByProjectRequest) String() string

type ListByProjectResponse

type ListByProjectResponse struct {
	Code          ListByProjectResponse_CODE `protobuf:"varint,1,opt,name=code,proto3,enum=short_note_api.ListByProjectResponse_CODE" json:"code,omitempty"`
	ErrMsg        string                     `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"`
	ShortNoteList []*ShortNote               `protobuf:"bytes,3,rep,name=shortNoteList,proto3" json:"shortNoteList,omitempty"`
	// contains filtered or unexported fields
}

func (*ListByProjectResponse) Descriptor deprecated

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

Deprecated: Use ListByProjectResponse.ProtoReflect.Descriptor instead.

func (*ListByProjectResponse) GetCode

func (*ListByProjectResponse) GetErrMsg

func (x *ListByProjectResponse) GetErrMsg() string

func (*ListByProjectResponse) GetShortNoteList

func (x *ListByProjectResponse) GetShortNoteList() []*ShortNote

func (*ListByProjectResponse) ProtoMessage

func (*ListByProjectResponse) ProtoMessage()

func (*ListByProjectResponse) ProtoReflect

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

func (*ListByProjectResponse) Reset

func (x *ListByProjectResponse) Reset()

func (*ListByProjectResponse) String

func (x *ListByProjectResponse) String() string

type ListByProjectResponse_CODE

type ListByProjectResponse_CODE int32
const (
	ListByProjectResponse_CODE_OK            ListByProjectResponse_CODE = 0
	ListByProjectResponse_CODE_WRONG_SESSION ListByProjectResponse_CODE = 1
	ListByProjectResponse_CODE_NO_PROJECT    ListByProjectResponse_CODE = 2
	ListByProjectResponse_CODE_NO_PERMISSION ListByProjectResponse_CODE = 3
)

func (ListByProjectResponse_CODE) Descriptor

func (ListByProjectResponse_CODE) Enum

func (ListByProjectResponse_CODE) EnumDescriptor deprecated

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

Deprecated: Use ListByProjectResponse_CODE.Descriptor instead.

func (ListByProjectResponse_CODE) Number

func (ListByProjectResponse_CODE) String

func (ListByProjectResponse_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=short_note_api.ListMyResponse_CODE" json:"code,omitempty"`
	ErrMsg        string              `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"`
	ShortNoteList []*ShortNote        `protobuf:"bytes,3,rep,name=shortNoteList,proto3" json:"shortNoteList,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) GetShortNoteList

func (x *ListMyResponse) GetShortNoteList() []*ShortNote

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
)

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"`
	ProjectId     string          `protobuf:"bytes,2,opt,name=projectId,proto3" json:"projectId,omitempty"`
	ShortNoteType SHORT_NOTE_TYPE `protobuf:"varint,3,opt,name=shortNoteType,proto3,enum=short_note_api.SHORT_NOTE_TYPE" json:"shortNoteType,omitempty"`
	TargetId      string          `protobuf:"bytes,4,opt,name=targetId,proto3" json:"targetId,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoveRequest) Descriptor deprecated

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

Deprecated: Use RemoveRequest.ProtoReflect.Descriptor instead.

func (*RemoveRequest) GetProjectId

func (x *RemoveRequest) GetProjectId() string

func (*RemoveRequest) GetSessionId

func (x *RemoveRequest) GetSessionId() string

func (*RemoveRequest) GetShortNoteType

func (x *RemoveRequest) GetShortNoteType() SHORT_NOTE_TYPE

func (*RemoveRequest) GetTargetId

func (x *RemoveRequest) GetTargetId() 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=short_note_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_PROJECT    RemoveResponse_CODE = 2
	RemoveResponse_CODE_NO_PERMISSION RemoveResponse_CODE = 3
	RemoveResponse_CODE_NO_SHORT_NOTE RemoveResponse_CODE = 4
)

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 SHORT_NOTE_TYPE

type SHORT_NOTE_TYPE int32
const (
	SHORT_NOTE_TYPE_SHORT_NOTE_TASK SHORT_NOTE_TYPE = 0
	SHORT_NOTE_TYPE_SHORT_NOTE_BUG  SHORT_NOTE_TYPE = 1
	SHORT_NOTE_TYPE_SHORT_NOTE_DOC  SHORT_NOTE_TYPE = 2
)

func (SHORT_NOTE_TYPE) Descriptor

func (SHORT_NOTE_TYPE) Enum

func (x SHORT_NOTE_TYPE) Enum() *SHORT_NOTE_TYPE

func (SHORT_NOTE_TYPE) EnumDescriptor deprecated

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

Deprecated: Use SHORT_NOTE_TYPE.Descriptor instead.

func (SHORT_NOTE_TYPE) Number

func (SHORT_NOTE_TYPE) String

func (x SHORT_NOTE_TYPE) String() string

func (SHORT_NOTE_TYPE) Type

type ShortNote

type ShortNote struct {
	ProjectId     string          `protobuf:"bytes,1,opt,name=projectId,proto3" json:"projectId,omitempty"`
	ShortNoteType SHORT_NOTE_TYPE `protobuf:"varint,2,opt,name=shortNoteType,proto3,enum=short_note_api.SHORT_NOTE_TYPE" json:"shortNoteType,omitempty"`
	TargetId      string          `protobuf:"bytes,3,opt,name=targetId,proto3" json:"targetId,omitempty"`
	Title         string          `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"`
	TimeStamp     int64           `protobuf:"varint,5,opt,name=timeStamp,proto3" json:"timeStamp,omitempty"`
	ProjectName   string          `protobuf:"bytes,6,opt,name=projectName,proto3" json:"projectName,omitempty"`
	MemberUserId  string          `protobuf:"bytes,7,opt,name=memberUserId,proto3" json:"memberUserId,omitempty"`
	// contains filtered or unexported fields
}

func (*ShortNote) Descriptor deprecated

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

Deprecated: Use ShortNote.ProtoReflect.Descriptor instead.

func (*ShortNote) GetMemberUserId

func (x *ShortNote) GetMemberUserId() string

func (*ShortNote) GetProjectId

func (x *ShortNote) GetProjectId() string

func (*ShortNote) GetProjectName

func (x *ShortNote) GetProjectName() string

func (*ShortNote) GetShortNoteType

func (x *ShortNote) GetShortNoteType() SHORT_NOTE_TYPE

func (*ShortNote) GetTargetId

func (x *ShortNote) GetTargetId() string

func (*ShortNote) GetTimeStamp

func (x *ShortNote) GetTimeStamp() int64

func (*ShortNote) GetTitle

func (x *ShortNote) GetTitle() string

func (*ShortNote) ProtoMessage

func (*ShortNote) ProtoMessage()

func (*ShortNote) ProtoReflect

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

func (*ShortNote) Reset

func (x *ShortNote) Reset()

func (*ShortNote) String

func (x *ShortNote) String() string

type ShortNoteApiClient

type ShortNoteApiClient interface {
	// 增加便签
	Add(ctx context.Context, in *AddRequest, opts ...grpc.CallOption) (*AddResponse, error)
	// 删除便签
	Remove(ctx context.Context, in *RemoveRequest, opts ...grpc.CallOption) (*RemoveResponse, error)
	// 列出我的便签
	ListMy(ctx context.Context, in *ListMyRequest, opts ...grpc.CallOption) (*ListMyResponse, error)
	// 列出项目成员的便签
	ListByMember(ctx context.Context, in *ListByMemberRequest, opts ...grpc.CallOption) (*ListByMemberResponse, error)
	// 列出项目中所有便签
	ListByProject(ctx context.Context, in *ListByProjectRequest, opts ...grpc.CallOption) (*ListByProjectResponse, error)
}

ShortNoteApiClient is the client API for ShortNoteApi 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 NewShortNoteApiClient

func NewShortNoteApiClient(cc grpc.ClientConnInterface) ShortNoteApiClient

type ShortNoteApiServer

type ShortNoteApiServer interface {
	// 增加便签
	Add(context.Context, *AddRequest) (*AddResponse, error)
	// 删除便签
	Remove(context.Context, *RemoveRequest) (*RemoveResponse, error)
	// 列出我的便签
	ListMy(context.Context, *ListMyRequest) (*ListMyResponse, error)
	// 列出项目成员的便签
	ListByMember(context.Context, *ListByMemberRequest) (*ListByMemberResponse, error)
	// 列出项目中所有便签
	ListByProject(context.Context, *ListByProjectRequest) (*ListByProjectResponse, error)
	// contains filtered or unexported methods
}

ShortNoteApiServer is the server API for ShortNoteApi service. All implementations must embed UnimplementedShortNoteApiServer for forward compatibility

type UnimplementedShortNoteApiServer

type UnimplementedShortNoteApiServer struct {
}

UnimplementedShortNoteApiServer must be embedded to have forward compatible implementations.

func (UnimplementedShortNoteApiServer) Add

func (UnimplementedShortNoteApiServer) ListByMember

func (UnimplementedShortNoteApiServer) ListByProject

func (UnimplementedShortNoteApiServer) ListMy

func (UnimplementedShortNoteApiServer) Remove

type UnsafeShortNoteApiServer

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

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

Source Files

  • short_note_api.pb.go
  • short_note_api_grpc.pb.go

Jump to

Keyboard shortcuts

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