photorpc

package
v0.0.0-...-b32e05d Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlbumDetails

type AlbumDetails = photorpc.AlbumDetails

type AlbumNewReq

type AlbumNewReq = photorpc.AlbumNewReq

type BatchResp

type BatchResp = photorpc.BatchResp

type CountResp

type CountResp = photorpc.CountResp

type EmptyReq

type EmptyReq = photorpc.EmptyReq

type EmptyResp

type EmptyResp = photorpc.EmptyResp

type FindAlbumListReq

type FindAlbumListReq = photorpc.FindAlbumListReq

type FindAlbumListResp

type FindAlbumListResp = photorpc.FindAlbumListResp

type FindPhotoListReq

type FindPhotoListReq = photorpc.FindPhotoListReq

type FindPhotoListResp

type FindPhotoListResp = photorpc.FindPhotoListResp

type IdReq

type IdReq = photorpc.IdReq

type IdsReq

type IdsReq = photorpc.IdsReq

type PhotoDetails

type PhotoDetails = photorpc.PhotoDetails

type PhotoNewReq

type PhotoNewReq = photorpc.PhotoNewReq

type PhotoRpc

type PhotoRpc 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)
}

func NewPhotoRpc

func NewPhotoRpc(cli zrpc.Client) PhotoRpc

type UserIdReq

type UserIdReq = photorpc.UserIdReq

Jump to

Keyboard shortcuts

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