user_service

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateUserInfo added in v1.2.1

type CreateUserInfo struct {
	UserName string `json:"user_name"` // 用户名
	NickName string `json:"nick_name"` // 昵称
	Mobile   string `json:"mobile"`    // 手机号
}

type UserService

type UserService interface {
	Create(ctx core.Context, user *CreateUserInfo) (id int32, err error)
	UpdateNickNameByID(ctx core.Context, id int32, username string) (err error)
	GetUserByUserName(ctx core.Context, username string) (user *user_demo_repo.UserDemo, err error)
	Delete(ctx core.Context, id int32) (err error)
	// contains filtered or unexported methods
}

func NewUserService

func NewUserService(db db.Repo, cache cache.Repo) UserService

Jump to

Keyboard shortcuts

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