photorpc

package
v0.0.0-...-eea11df Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PhotoRpc_AddPhoto_FullMethodName       = "/photorpc.PhotoRpc/AddPhoto"
	PhotoRpc_UpdatePhoto_FullMethodName    = "/photorpc.PhotoRpc/UpdatePhoto"
	PhotoRpc_DeletePhoto_FullMethodName    = "/photorpc.PhotoRpc/DeletePhoto"
	PhotoRpc_FindPhotoList_FullMethodName  = "/photorpc.PhotoRpc/FindPhotoList"
	PhotoRpc_AddAlbum_FullMethodName       = "/photorpc.PhotoRpc/AddAlbum"
	PhotoRpc_UpdateAlbum_FullMethodName    = "/photorpc.PhotoRpc/UpdateAlbum"
	PhotoRpc_GetAlbum_FullMethodName       = "/photorpc.PhotoRpc/GetAlbum"
	PhotoRpc_DeleteAlbum_FullMethodName    = "/photorpc.PhotoRpc/DeleteAlbum"
	PhotoRpc_FindAlbumList_FullMethodName  = "/photorpc.PhotoRpc/FindAlbumList"
	PhotoRpc_AddBanner_FullMethodName      = "/photorpc.PhotoRpc/AddBanner"
	PhotoRpc_UpdateBanner_FullMethodName   = "/photorpc.PhotoRpc/UpdateBanner"
	PhotoRpc_DeleteBanner_FullMethodName   = "/photorpc.PhotoRpc/DeleteBanner"
	PhotoRpc_FindBannerList_FullMethodName = "/photorpc.PhotoRpc/FindBannerList"
)

Variables

View Source
var File_photo_proto protoreflect.FileDescriptor
View Source
var PhotoRpc_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "photorpc.PhotoRpc",
	HandlerType: (*PhotoRpcServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "AddPhoto",
			Handler:    _PhotoRpc_AddPhoto_Handler,
		},
		{
			MethodName: "UpdatePhoto",
			Handler:    _PhotoRpc_UpdatePhoto_Handler,
		},
		{
			MethodName: "DeletePhoto",
			Handler:    _PhotoRpc_DeletePhoto_Handler,
		},
		{
			MethodName: "FindPhotoList",
			Handler:    _PhotoRpc_FindPhotoList_Handler,
		},
		{
			MethodName: "AddAlbum",
			Handler:    _PhotoRpc_AddAlbum_Handler,
		},
		{
			MethodName: "UpdateAlbum",
			Handler:    _PhotoRpc_UpdateAlbum_Handler,
		},
		{
			MethodName: "GetAlbum",
			Handler:    _PhotoRpc_GetAlbum_Handler,
		},
		{
			MethodName: "DeleteAlbum",
			Handler:    _PhotoRpc_DeleteAlbum_Handler,
		},
		{
			MethodName: "FindAlbumList",
			Handler:    _PhotoRpc_FindAlbumList_Handler,
		},
		{
			MethodName: "AddBanner",
			Handler:    _PhotoRpc_AddBanner_Handler,
		},
		{
			MethodName: "UpdateBanner",
			Handler:    _PhotoRpc_UpdateBanner_Handler,
		},
		{
			MethodName: "DeleteBanner",
			Handler:    _PhotoRpc_DeleteBanner_Handler,
		},
		{
			MethodName: "FindBannerList",
			Handler:    _PhotoRpc_FindBannerList_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "photo.proto",
}

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

Functions

func RegisterPhotoRpcServer

func RegisterPhotoRpcServer(s grpc.ServiceRegistrar, srv PhotoRpcServer)

Types

type AlbumDetails

type AlbumDetails struct {
	Id         int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`                                   // 主键
	AlbumName  string `protobuf:"bytes,2,opt,name=album_name,json=albumName,proto3" json:"album_name,omitempty"`     // 相册名
	AlbumDesc  string `protobuf:"bytes,3,opt,name=album_desc,json=albumDesc,proto3" json:"album_desc,omitempty"`     // 相册描述
	AlbumCover string `protobuf:"bytes,4,opt,name=album_cover,json=albumCover,proto3" json:"album_cover,omitempty"`  // 相册封面
	IsDelete   int64  `protobuf:"varint,5,opt,name=is_delete,json=isDelete,proto3" json:"is_delete,omitempty"`       // 是否删除
	Status     int64  `protobuf:"varint,6,opt,name=status,proto3" json:"status,omitempty"`                           // 状态值 1公开 2私密
	CreatedAt  int64  `protobuf:"varint,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`    // 创建时间
	UpdatedAt  int64  `protobuf:"varint,8,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`    // 更新时间
	PhotoCount int64  `protobuf:"varint,9,opt,name=photo_count,json=photoCount,proto3" json:"photo_count,omitempty"` // 照片数量
	// contains filtered or unexported fields
}

func (*AlbumDetails) Descriptor deprecated

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

Deprecated: Use AlbumDetails.ProtoReflect.Descriptor instead.

func (*AlbumDetails) GetAlbumCover

func (x *AlbumDetails) GetAlbumCover() string

func (*AlbumDetails) GetAlbumDesc

func (x *AlbumDetails) GetAlbumDesc() string

func (*AlbumDetails) GetAlbumName

func (x *AlbumDetails) GetAlbumName() string

func (*AlbumDetails) GetCreatedAt

func (x *AlbumDetails) GetCreatedAt() int64

func (*AlbumDetails) GetId

func (x *AlbumDetails) GetId() int64

func (*AlbumDetails) GetIsDelete

func (x *AlbumDetails) GetIsDelete() int64

func (*AlbumDetails) GetPhotoCount

func (x *AlbumDetails) GetPhotoCount() int64

func (*AlbumDetails) GetStatus

func (x *AlbumDetails) GetStatus() int64

func (*AlbumDetails) GetUpdatedAt

func (x *AlbumDetails) GetUpdatedAt() int64

func (*AlbumDetails) ProtoMessage

func (*AlbumDetails) ProtoMessage()

func (*AlbumDetails) ProtoReflect

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

func (*AlbumDetails) Reset

func (x *AlbumDetails) Reset()

func (*AlbumDetails) String

func (x *AlbumDetails) String() string

type AlbumNewReq

type AlbumNewReq struct {
	Id         int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`                                  // 主键
	AlbumName  string `protobuf:"bytes,2,opt,name=album_name,json=albumName,proto3" json:"album_name,omitempty"`    // 相册名
	AlbumDesc  string `protobuf:"bytes,3,opt,name=album_desc,json=albumDesc,proto3" json:"album_desc,omitempty"`    // 相册描述
	AlbumCover string `protobuf:"bytes,4,opt,name=album_cover,json=albumCover,proto3" json:"album_cover,omitempty"` // 相册封面
	IsDelete   int64  `protobuf:"varint,5,opt,name=is_delete,json=isDelete,proto3" json:"is_delete,omitempty"`      // 是否删除
	Status     int64  `protobuf:"varint,6,opt,name=status,proto3" json:"status,omitempty"`                          // 状态值 1公开 2私密
	// contains filtered or unexported fields
}

func (*AlbumNewReq) Descriptor deprecated

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

Deprecated: Use AlbumNewReq.ProtoReflect.Descriptor instead.

func (*AlbumNewReq) GetAlbumCover

func (x *AlbumNewReq) GetAlbumCover() string

func (*AlbumNewReq) GetAlbumDesc

func (x *AlbumNewReq) GetAlbumDesc() string

func (*AlbumNewReq) GetAlbumName

func (x *AlbumNewReq) GetAlbumName() string

func (*AlbumNewReq) GetId

func (x *AlbumNewReq) GetId() int64

func (*AlbumNewReq) GetIsDelete

func (x *AlbumNewReq) GetIsDelete() int64

func (*AlbumNewReq) GetStatus

func (x *AlbumNewReq) GetStatus() int64

func (*AlbumNewReq) ProtoMessage

func (*AlbumNewReq) ProtoMessage()

func (*AlbumNewReq) ProtoReflect

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

func (*AlbumNewReq) Reset

func (x *AlbumNewReq) Reset()

func (*AlbumNewReq) String

func (x *AlbumNewReq) String() string

type BannerDetails

type BannerDetails struct {
	Id          int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`                                     // 页面id
	BannerName  string `protobuf:"bytes,2,opt,name=banner_name,json=bannerName,proto3" json:"banner_name,omitempty"`    // 页面名
	BannerLabel string `protobuf:"bytes,3,opt,name=banner_label,json=bannerLabel,proto3" json:"banner_label,omitempty"` // 页面标签
	BannerCover string `protobuf:"bytes,4,opt,name=banner_cover,json=bannerCover,proto3" json:"banner_cover,omitempty"` // 页面封面
	CreatedAt   int64  `protobuf:"varint,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`      // 创建时间
	UpdatedAt   int64  `protobuf:"varint,6,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`      // 更新时间
	// contains filtered or unexported fields
}

func (*BannerDetails) Descriptor deprecated

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

Deprecated: Use BannerDetails.ProtoReflect.Descriptor instead.

func (*BannerDetails) GetBannerCover

func (x *BannerDetails) GetBannerCover() string

func (*BannerDetails) GetBannerLabel

func (x *BannerDetails) GetBannerLabel() string

func (*BannerDetails) GetBannerName

func (x *BannerDetails) GetBannerName() string

func (*BannerDetails) GetCreatedAt

func (x *BannerDetails) GetCreatedAt() int64

func (*BannerDetails) GetId

func (x *BannerDetails) GetId() int64

func (*BannerDetails) GetUpdatedAt

func (x *BannerDetails) GetUpdatedAt() int64

func (*BannerDetails) ProtoMessage

func (*BannerDetails) ProtoMessage()

func (*BannerDetails) ProtoReflect

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

func (*BannerDetails) Reset

func (x *BannerDetails) Reset()

func (*BannerDetails) String

func (x *BannerDetails) String() string

type BannerNewReq

type BannerNewReq struct {
	Id          int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`                                     // 页面id
	BannerName  string `protobuf:"bytes,2,opt,name=banner_name,json=bannerName,proto3" json:"banner_name,omitempty"`    // 页面名
	BannerLabel string `protobuf:"bytes,3,opt,name=banner_label,json=bannerLabel,proto3" json:"banner_label,omitempty"` // 页面标签
	BannerCover string `protobuf:"bytes,4,opt,name=banner_cover,json=bannerCover,proto3" json:"banner_cover,omitempty"` // 页面封面
	// contains filtered or unexported fields
}

func (*BannerNewReq) Descriptor deprecated

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

Deprecated: Use BannerNewReq.ProtoReflect.Descriptor instead.

func (*BannerNewReq) GetBannerCover

func (x *BannerNewReq) GetBannerCover() string

func (*BannerNewReq) GetBannerLabel

func (x *BannerNewReq) GetBannerLabel() string

func (*BannerNewReq) GetBannerName

func (x *BannerNewReq) GetBannerName() string

func (*BannerNewReq) GetId

func (x *BannerNewReq) GetId() int64

func (*BannerNewReq) ProtoMessage

func (*BannerNewReq) ProtoMessage()

func (*BannerNewReq) ProtoReflect

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

func (*BannerNewReq) Reset

func (x *BannerNewReq) Reset()

func (*BannerNewReq) String

func (x *BannerNewReq) String() string

type BatchResp

type BatchResp struct {
	SuccessCount int64 `protobuf:"varint,1,opt,name=success_count,json=successCount,proto3" json:"success_count,omitempty"`
	// contains filtered or unexported fields
}

func (*BatchResp) Descriptor deprecated

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

Deprecated: Use BatchResp.ProtoReflect.Descriptor instead.

func (*BatchResp) GetSuccessCount

func (x *BatchResp) GetSuccessCount() int64

func (*BatchResp) ProtoMessage

func (*BatchResp) ProtoMessage()

func (*BatchResp) ProtoReflect

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

func (*BatchResp) Reset

func (x *BatchResp) Reset()

func (*BatchResp) String

func (x *BatchResp) String() string

type CountResp

type CountResp struct {
	Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
	// contains filtered or unexported fields
}

func (*CountResp) Descriptor deprecated

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

Deprecated: Use CountResp.ProtoReflect.Descriptor instead.

func (*CountResp) GetCount

func (x *CountResp) GetCount() int64

func (*CountResp) ProtoMessage

func (*CountResp) ProtoMessage()

func (*CountResp) ProtoReflect

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

func (*CountResp) Reset

func (x *CountResp) Reset()

func (*CountResp) String

func (x *CountResp) String() string

type EmptyReq

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

func (*EmptyReq) Descriptor deprecated

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

Deprecated: Use EmptyReq.ProtoReflect.Descriptor instead.

func (*EmptyReq) ProtoMessage

func (*EmptyReq) ProtoMessage()

func (*EmptyReq) ProtoReflect

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

func (*EmptyReq) Reset

func (x *EmptyReq) Reset()

func (*EmptyReq) String

func (x *EmptyReq) String() string

type EmptyResp

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

func (*EmptyResp) Descriptor deprecated

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

Deprecated: Use EmptyResp.ProtoReflect.Descriptor instead.

func (*EmptyResp) ProtoMessage

func (*EmptyResp) ProtoMessage()

func (*EmptyResp) ProtoReflect

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

func (*EmptyResp) Reset

func (x *EmptyResp) Reset()

func (*EmptyResp) String

func (x *EmptyResp) String() string

type FindAlbumListReq

type FindAlbumListReq struct {
	Page      int64    `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	PageSize  int64    `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	Sorts     []string `protobuf:"bytes,3,rep,name=sorts,proto3" json:"sorts,omitempty"`                          // 排序
	AlbumName string   `protobuf:"bytes,4,opt,name=album_name,json=albumName,proto3" json:"album_name,omitempty"` // 相册名
	// contains filtered or unexported fields
}

func (*FindAlbumListReq) Descriptor deprecated

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

Deprecated: Use FindAlbumListReq.ProtoReflect.Descriptor instead.

func (*FindAlbumListReq) GetAlbumName

func (x *FindAlbumListReq) GetAlbumName() string

func (*FindAlbumListReq) GetPage

func (x *FindAlbumListReq) GetPage() int64

func (*FindAlbumListReq) GetPageSize

func (x *FindAlbumListReq) GetPageSize() int64

func (*FindAlbumListReq) GetSorts

func (x *FindAlbumListReq) GetSorts() []string

func (*FindAlbumListReq) ProtoMessage

func (*FindAlbumListReq) ProtoMessage()

func (*FindAlbumListReq) ProtoReflect

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

func (*FindAlbumListReq) Reset

func (x *FindAlbumListReq) Reset()

func (*FindAlbumListReq) String

func (x *FindAlbumListReq) String() string

type FindAlbumListResp

type FindAlbumListResp struct {
	List  []*AlbumDetails `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	Total int64           `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*FindAlbumListResp) Descriptor deprecated

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

Deprecated: Use FindAlbumListResp.ProtoReflect.Descriptor instead.

func (*FindAlbumListResp) GetList

func (x *FindAlbumListResp) GetList() []*AlbumDetails

func (*FindAlbumListResp) GetTotal

func (x *FindAlbumListResp) GetTotal() int64

func (*FindAlbumListResp) ProtoMessage

func (*FindAlbumListResp) ProtoMessage()

func (*FindAlbumListResp) ProtoReflect

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

func (*FindAlbumListResp) Reset

func (x *FindAlbumListResp) Reset()

func (*FindAlbumListResp) String

func (x *FindAlbumListResp) String() string

type FindBannerListReq

type FindBannerListReq struct {
	Page     int64    `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	PageSize int64    `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	Sorts    []string `protobuf:"bytes,3,rep,name=sorts,proto3" json:"sorts,omitempty"` // 排序
	// contains filtered or unexported fields
}

func (*FindBannerListReq) Descriptor deprecated

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

Deprecated: Use FindBannerListReq.ProtoReflect.Descriptor instead.

func (*FindBannerListReq) GetPage

func (x *FindBannerListReq) GetPage() int64

func (*FindBannerListReq) GetPageSize

func (x *FindBannerListReq) GetPageSize() int64

func (*FindBannerListReq) GetSorts

func (x *FindBannerListReq) GetSorts() []string

func (*FindBannerListReq) ProtoMessage

func (*FindBannerListReq) ProtoMessage()

func (*FindBannerListReq) ProtoReflect

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

func (*FindBannerListReq) Reset

func (x *FindBannerListReq) Reset()

func (*FindBannerListReq) String

func (x *FindBannerListReq) String() string

type FindBannerListResp

type FindBannerListResp struct {
	List  []*BannerDetails `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	Total int64            `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*FindBannerListResp) Descriptor deprecated

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

Deprecated: Use FindBannerListResp.ProtoReflect.Descriptor instead.

func (*FindBannerListResp) GetList

func (x *FindBannerListResp) GetList() []*BannerDetails

func (*FindBannerListResp) GetTotal

func (x *FindBannerListResp) GetTotal() int64

func (*FindBannerListResp) ProtoMessage

func (*FindBannerListResp) ProtoMessage()

func (*FindBannerListResp) ProtoReflect

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

func (*FindBannerListResp) Reset

func (x *FindBannerListResp) Reset()

func (*FindBannerListResp) String

func (x *FindBannerListResp) String() string

type FindPhotoListReq

type FindPhotoListReq struct {
	Page     int64    `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	PageSize int64    `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	Sorts    []string `protobuf:"bytes,3,rep,name=sorts,proto3" json:"sorts,omitempty"` // 排序
	AlbumId  int64    `protobuf:"varint,4,opt,name=album_id,json=albumId,proto3" json:"album_id,omitempty"`
	// contains filtered or unexported fields
}

func (*FindPhotoListReq) Descriptor deprecated

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

Deprecated: Use FindPhotoListReq.ProtoReflect.Descriptor instead.

func (*FindPhotoListReq) GetAlbumId

func (x *FindPhotoListReq) GetAlbumId() int64

func (*FindPhotoListReq) GetPage

func (x *FindPhotoListReq) GetPage() int64

func (*FindPhotoListReq) GetPageSize

func (x *FindPhotoListReq) GetPageSize() int64

func (*FindPhotoListReq) GetSorts

func (x *FindPhotoListReq) GetSorts() []string

func (*FindPhotoListReq) ProtoMessage

func (*FindPhotoListReq) ProtoMessage()

func (*FindPhotoListReq) ProtoReflect

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

func (*FindPhotoListReq) Reset

func (x *FindPhotoListReq) Reset()

func (*FindPhotoListReq) String

func (x *FindPhotoListReq) String() string

type FindPhotoListResp

type FindPhotoListResp struct {
	List  []*PhotoDetails `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	Total int64           `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*FindPhotoListResp) Descriptor deprecated

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

Deprecated: Use FindPhotoListResp.ProtoReflect.Descriptor instead.

func (*FindPhotoListResp) GetList

func (x *FindPhotoListResp) GetList() []*PhotoDetails

func (*FindPhotoListResp) GetTotal

func (x *FindPhotoListResp) GetTotal() int64

func (*FindPhotoListResp) ProtoMessage

func (*FindPhotoListResp) ProtoMessage()

func (*FindPhotoListResp) ProtoReflect

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

func (*FindPhotoListResp) Reset

func (x *FindPhotoListResp) Reset()

func (*FindPhotoListResp) String

func (x *FindPhotoListResp) String() string

type IdReq

type IdReq struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*IdReq) Descriptor deprecated

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

Deprecated: Use IdReq.ProtoReflect.Descriptor instead.

func (*IdReq) GetId

func (x *IdReq) GetId() int64

func (*IdReq) ProtoMessage

func (*IdReq) ProtoMessage()

func (*IdReq) ProtoReflect

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

func (*IdReq) Reset

func (x *IdReq) Reset()

func (*IdReq) String

func (x *IdReq) String() string

type IdsReq

type IdsReq struct {
	Ids []int64 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"`
	// contains filtered or unexported fields
}

func (*IdsReq) Descriptor deprecated

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

Deprecated: Use IdsReq.ProtoReflect.Descriptor instead.

func (*IdsReq) GetIds

func (x *IdsReq) GetIds() []int64

func (*IdsReq) ProtoMessage

func (*IdsReq) ProtoMessage()

func (*IdsReq) ProtoReflect

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

func (*IdsReq) Reset

func (x *IdsReq) Reset()

func (*IdsReq) String

func (x *IdsReq) String() string

type PhotoDetails

type PhotoDetails struct {
	Id        int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`                                // 主键
	AlbumId   int64  `protobuf:"varint,2,opt,name=album_id,json=albumId,proto3" json:"album_id,omitempty"`       // 相册id
	PhotoName string `protobuf:"bytes,3,opt,name=photo_name,json=photoName,proto3" json:"photo_name,omitempty"`  // 照片名
	PhotoDesc string `protobuf:"bytes,4,opt,name=photo_desc,json=photoDesc,proto3" json:"photo_desc,omitempty"`  // 照片描述
	PhotoSrc  string `protobuf:"bytes,5,opt,name=photo_src,json=photoSrc,proto3" json:"photo_src,omitempty"`     // 照片地址
	IsDelete  int64  `protobuf:"varint,6,opt,name=is_delete,json=isDelete,proto3" json:"is_delete,omitempty"`    // 是否删除
	CreatedAt int64  `protobuf:"varint,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // 创建时间
	UpdatedAt int64  `protobuf:"varint,8,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // 更新时间
	// contains filtered or unexported fields
}

func (*PhotoDetails) Descriptor deprecated

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

Deprecated: Use PhotoDetails.ProtoReflect.Descriptor instead.

func (*PhotoDetails) GetAlbumId

func (x *PhotoDetails) GetAlbumId() int64

func (*PhotoDetails) GetCreatedAt

func (x *PhotoDetails) GetCreatedAt() int64

func (*PhotoDetails) GetId

func (x *PhotoDetails) GetId() int64

func (*PhotoDetails) GetIsDelete

func (x *PhotoDetails) GetIsDelete() int64

func (*PhotoDetails) GetPhotoDesc

func (x *PhotoDetails) GetPhotoDesc() string

func (*PhotoDetails) GetPhotoName

func (x *PhotoDetails) GetPhotoName() string

func (*PhotoDetails) GetPhotoSrc

func (x *PhotoDetails) GetPhotoSrc() string

func (*PhotoDetails) GetUpdatedAt

func (x *PhotoDetails) GetUpdatedAt() int64

func (*PhotoDetails) ProtoMessage

func (*PhotoDetails) ProtoMessage()

func (*PhotoDetails) ProtoReflect

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

func (*PhotoDetails) Reset

func (x *PhotoDetails) Reset()

func (*PhotoDetails) String

func (x *PhotoDetails) String() string

type PhotoNewReq

type PhotoNewReq struct {
	Id        int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`                               // 主键
	AlbumId   int64  `protobuf:"varint,2,opt,name=album_id,json=albumId,proto3" json:"album_id,omitempty"`      // 相册id
	PhotoName string `protobuf:"bytes,3,opt,name=photo_name,json=photoName,proto3" json:"photo_name,omitempty"` // 照片名
	PhotoDesc string `protobuf:"bytes,4,opt,name=photo_desc,json=photoDesc,proto3" json:"photo_desc,omitempty"` // 照片描述
	PhotoSrc  string `protobuf:"bytes,5,opt,name=photo_src,json=photoSrc,proto3" json:"photo_src,omitempty"`    // 照片地址
	IsDelete  int64  `protobuf:"varint,6,opt,name=is_delete,json=isDelete,proto3" json:"is_delete,omitempty"`   // 是否删除
	// contains filtered or unexported fields
}

************* blog 相册管理 *************

func (*PhotoNewReq) Descriptor deprecated

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

Deprecated: Use PhotoNewReq.ProtoReflect.Descriptor instead.

func (*PhotoNewReq) GetAlbumId

func (x *PhotoNewReq) GetAlbumId() int64

func (*PhotoNewReq) GetId

func (x *PhotoNewReq) GetId() int64

func (*PhotoNewReq) GetIsDelete

func (x *PhotoNewReq) GetIsDelete() int64

func (*PhotoNewReq) GetPhotoDesc

func (x *PhotoNewReq) GetPhotoDesc() string

func (*PhotoNewReq) GetPhotoName

func (x *PhotoNewReq) GetPhotoName() string

func (*PhotoNewReq) GetPhotoSrc

func (x *PhotoNewReq) GetPhotoSrc() string

func (*PhotoNewReq) ProtoMessage

func (*PhotoNewReq) ProtoMessage()

func (*PhotoNewReq) ProtoReflect

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

func (*PhotoNewReq) Reset

func (x *PhotoNewReq) Reset()

func (*PhotoNewReq) String

func (x *PhotoNewReq) String() string

type PhotoRpcClient

type PhotoRpcClient interface {
	// 创建照片
	AddPhoto(ctx context.Context, in *PhotoNewReq, opts ...grpc.CallOption) (*PhotoDetails, error)
	// 更新照片
	UpdatePhoto(ctx context.Context, in *PhotoNewReq, opts ...grpc.CallOption) (*PhotoDetails, error)
	// 删除照片
	DeletePhoto(ctx context.Context, in *IdsReq, opts ...grpc.CallOption) (*BatchResp, error)
	// 查询照片列表
	FindPhotoList(ctx context.Context, in *FindPhotoListReq, opts ...grpc.CallOption) (*FindPhotoListResp, error)
	// 创建相册
	AddAlbum(ctx context.Context, in *AlbumNewReq, opts ...grpc.CallOption) (*AlbumDetails, error)
	// 更新相册
	UpdateAlbum(ctx context.Context, in *AlbumNewReq, opts ...grpc.CallOption) (*AlbumDetails, error)
	// 获取相册
	GetAlbum(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*AlbumDetails, error)
	// 删除相册
	DeleteAlbum(ctx context.Context, in *IdsReq, opts ...grpc.CallOption) (*BatchResp, error)
	// 查询相册列表
	FindAlbumList(ctx context.Context, in *FindAlbumListReq, opts ...grpc.CallOption) (*FindAlbumListResp, error)
	// 创建页面
	AddBanner(ctx context.Context, in *BannerNewReq, opts ...grpc.CallOption) (*BannerDetails, error)
	// 更新页面
	UpdateBanner(ctx context.Context, in *BannerNewReq, opts ...grpc.CallOption) (*BannerDetails, error)
	// 删除页面
	DeleteBanner(ctx context.Context, in *IdsReq, opts ...grpc.CallOption) (*BatchResp, error)
	// 查询页面列表
	FindBannerList(ctx context.Context, in *FindBannerListReq, opts ...grpc.CallOption) (*FindBannerListResp, error)
}

PhotoRpcClient is the client API for PhotoRpc 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 NewPhotoRpcClient

func NewPhotoRpcClient(cc grpc.ClientConnInterface) PhotoRpcClient

type PhotoRpcServer

type PhotoRpcServer interface {
	// 创建照片
	AddPhoto(context.Context, *PhotoNewReq) (*PhotoDetails, error)
	// 更新照片
	UpdatePhoto(context.Context, *PhotoNewReq) (*PhotoDetails, error)
	// 删除照片
	DeletePhoto(context.Context, *IdsReq) (*BatchResp, error)
	// 查询照片列表
	FindPhotoList(context.Context, *FindPhotoListReq) (*FindPhotoListResp, error)
	// 创建相册
	AddAlbum(context.Context, *AlbumNewReq) (*AlbumDetails, error)
	// 更新相册
	UpdateAlbum(context.Context, *AlbumNewReq) (*AlbumDetails, error)
	// 获取相册
	GetAlbum(context.Context, *IdReq) (*AlbumDetails, error)
	// 删除相册
	DeleteAlbum(context.Context, *IdsReq) (*BatchResp, error)
	// 查询相册列表
	FindAlbumList(context.Context, *FindAlbumListReq) (*FindAlbumListResp, error)
	// 创建页面
	AddBanner(context.Context, *BannerNewReq) (*BannerDetails, error)
	// 更新页面
	UpdateBanner(context.Context, *BannerNewReq) (*BannerDetails, error)
	// 删除页面
	DeleteBanner(context.Context, *IdsReq) (*BatchResp, error)
	// 查询页面列表
	FindBannerList(context.Context, *FindBannerListReq) (*FindBannerListResp, error)
	// contains filtered or unexported methods
}

PhotoRpcServer is the server API for PhotoRpc service. All implementations must embed UnimplementedPhotoRpcServer for forward compatibility

type UnimplementedPhotoRpcServer

type UnimplementedPhotoRpcServer struct {
}

UnimplementedPhotoRpcServer must be embedded to have forward compatible implementations.

func (UnimplementedPhotoRpcServer) AddAlbum

func (UnimplementedPhotoRpcServer) AddBanner

func (UnimplementedPhotoRpcServer) AddPhoto

func (UnimplementedPhotoRpcServer) DeleteAlbum

func (UnimplementedPhotoRpcServer) DeleteBanner

func (UnimplementedPhotoRpcServer) DeletePhoto

func (UnimplementedPhotoRpcServer) FindAlbumList

func (UnimplementedPhotoRpcServer) FindBannerList

func (UnimplementedPhotoRpcServer) FindPhotoList

func (UnimplementedPhotoRpcServer) GetAlbum

func (UnimplementedPhotoRpcServer) UpdateAlbum

func (UnimplementedPhotoRpcServer) UpdateBanner

func (UnimplementedPhotoRpcServer) UpdatePhoto

type UnsafePhotoRpcServer

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

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

type UserIdReq

type UserIdReq struct {
	UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*UserIdReq) Descriptor deprecated

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

Deprecated: Use UserIdReq.ProtoReflect.Descriptor instead.

func (*UserIdReq) GetUserId

func (x *UserIdReq) GetUserId() string

func (*UserIdReq) ProtoMessage

func (*UserIdReq) ProtoMessage()

func (*UserIdReq) ProtoReflect

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

func (*UserIdReq) Reset

func (x *UserIdReq) Reset()

func (*UserIdReq) String

func (x *UserIdReq) String() string

Jump to

Keyboard shortcuts

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