service

package
v0.0.0-...-531eea5 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2020 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 EnvelopeService

type EnvelopeService interface {
	GetMonery(count, amount int) int
}

func NewEnvelopService

func NewEnvelopService() EnvelopeService

type Gender

type Gender int

Gender 性别枚举

const (
	Unknown Gender = iota
	Male
	Female
)

type RedEnvelopAlgo

type RedEnvelopAlgo func(count, amount int) int

type RegisterMode

type RegisterMode int

RegisterMode 注册渠道

const (
	Phone RegisterMode = iota
	WeiXin
)

type User

type User struct {
	ID           uint
	Name         string
	Phone        string
	Gender       Gender
	Avatar       string
	RegisterMode RegisterMode
	ThirdPartyID string
	EncryptPwd   string
	CreateTime   time.Time
}

User (BO)用户业务对象

type UserService

type UserService interface {
	GetUser(id uint) (*User, error)
}

func NewUserService

func NewUserService() UserService

Jump to

Keyboard shortcuts

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