api

package
v0.0.0-...-df3b144 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangePostStatus

func ChangePostStatus(ctx context.Context, params *pb.ReqPostChangeStatus) (*pb.ResPost, error)

func ChangeUserStatus

func ChangeUserStatus(ctx context.Context, params *pb.ReqChangeUserStatus) (*pb.ResChangeUserStatus, error)

func ChangeUserType

func ChangeUserType(ctx context.Context, params *pb.ReqChangeUserType) (*pb.ResChangeUserType, error)

func CreateComment

func CreateComment(ctx context.Context, params *pb.ReqCommentCreate) (*pb.ResComment, error)

func CreatePost

func CreatePost(ctx context.Context, params *pb.ReqPostCreate) (*pb.ResPost, error)

func DeletePost

func DeletePost(ctx context.Context, params *pb.GetByID) (*pb.ResPostSuccess, error)

func FavouritePost

func FavouritePost(ctx context.Context, params *pb.GetByID) (*pb.ResPost, error)

func GetComment

func GetComment(ctx context.Context, params *pb.GetByID) (*pb.ResComment, error)

func GetComments

func GetComments(ctx context.Context, params *pb.GetByQuery) (*pb.ResCommentList, error)

func GetPost

func GetPost(ctx context.Context, params *pb.GetByID) (*pb.ResPost, error)

func GetProfile

func GetProfile(ctx context.Context, params *pb.ReqProfile) (*pb.ResProfile, error)

func ListPosts

func ListPosts(ctx context.Context, params *pb.GetByQuery) (*pb.ResPostList, error)

func Login

func Login(ctx context.Context, params *pb.ReqLogin) (*pb.ResLogin, error)

func Register

func Register(ctx context.Context, params *pb.ReqRegistration) (*pb.ResRegistration, error)

func UpdateComment

func UpdateComment(ctx context.Context, params *pb.ReqCommentCreate) (*pb.ResComment, error)

func UpdatePost

func UpdatePost(ctx context.Context, params *pb.ReqPostUpdate) (*pb.ResPost, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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