users

package
v0.0.0-...-2912f65 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2014 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OperSignUp = iota
	OperSignIn
	OperCreateArticle
	OperUpdateArticle
	OperDeleteArticle
)

Variables

This section is empty.

Functions

func FindUserName

func FindUserName(id string) string

func Register

func Register()

Types

type Customer

type Customer struct {
	Id         string
	Name       string
	CoverPhoto string
	Desc       string
	Phone      string
	Email      string
	Logs       []CustomerLog
}

type CustomerLog

type CustomerLog struct {
	CustomerId      string
	OperationType   string
	OperationDetail string
	OperationTime   string
}

type SearchCount

type SearchCount struct {
	Total     int64
	PageLimit int
}

type SignoutUser

type SignoutUser struct {
	Id string
}

type User

type User struct {
	Id, Name, Pass, Email string
	Type                  int64
	Phone, CoverPhoto     string
}

func DbFindUser

func DbFindUser(id string) *User

type UserAddress

type UserAddress struct {
	Id        string
	Name      string
	Address   string
	City      string
	Province  string
	Postal    string
	Country   string
	Phone     string
	IsDefault int64
}

func GetUserAddr

func GetUserAddr(userid int64) *UserAddress

type VerifyUser

type VerifyUser struct {
	Email, Pass string
}

Jump to

Keyboard shortcuts

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