service

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Usersvc

type Usersvc interface {
	// You can define your service methods as your need. Below is an example.
	PageUsers(ctx context.Context, query vo.PageQuery) (code int, data vo.PageRet, msg error)

	// comment1
	// comment2
	GetUser(ctx context.Context,

		userId string,

		photo string,
	) (code int, data string, msg error)

	// comment3
	SignUp(ctx context.Context, username string, password int, actived bool, score float64) (code int, data string, msg error)

	// comment4
	UploadAvatar(context.Context, []*multipart.FileHeader, string) (int, string, error)

	// comment5
	DownloadAvatar(ctx context.Context, userId string) (*os.File, error)
}

用户服务接口 v1版本

type UsersvcPanic

type UsersvcPanic interface {
	// You can define your service methods as your need. Below is an example.
	PageUsers(ctx context.Context, query vo.PageQuery) (code int, data vo.PageRet, msg error)

	// comment1
	// comment2
	GetUser(ctx context.Context,

		userId string,

		photo string,
	) (code int, data string, msg error)

	// comment3
	SignUp(ctx context.Context, username string, password int, actived bool, score float64) (code int, data string, msg error)

	// comment4
	UploadAvatar(context.Context, []*multipart.FileHeader, string) (int, string, error)

	// comment5
	DownloadAvatar(ctx context.Context, userId string) (*os.File, error)

	// Wrong1
	Wrong1(ctx context.Context, userId string, query vo.PageQuery, files []*multipart.FileHeader) (*os.File, error)

	// Wrong2
	Wrong2(ctx context.Context, ch chan string) (*os.File, error)

	// Wrong3
	Wrong3(ctx context.Context, fun func()) (*os.File, error)
}

用户服务接口 v1版本

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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