models

package
v0.0.0-...-4f41bfb Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2017 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	UserList map[string]*User
)

Functions

func AddUser

func AddUser(u User) string

func DeleteUser

func DeleteUser(uid string)

func GetAllUsers

func GetAllUsers() map[string]*User

func GetCETScoreFromLogin

func GetCETScoreFromLogin(userName string, password string) []map[string]interface{}

四六级成绩

func GetCXScoreFromLogin

func GetCXScoreFromLogin(userName string, password string) []map[string]interface{}

func GetClassScoreFromLogin

func GetClassScoreFromLogin(userName string, password string) map[string]interface{}

func GetCourseFromLogin

func GetCourseFromLogin(userName string, password string, semestre string) map[string]interface{}

func GetExamTimeFromLogin

func GetExamTimeFromLogin(userName string, password string, semestre string) []map[string]interface{}

func GifToInt

func GifToInt(source io.Reader) int

GifToInt gif 转化为 int 输出

func GifToSlice

func GifToSlice(source io.Reader) []int

GifToSlice gif 转换成 []int 的切片输出

func GifToString

func GifToString(source io.Reader) string

GifToString gif 转换成字符串输出

func LibLoginInfo

func LibLoginInfo(username string, password string) map[string]interface{}

func Login

func Login(username, password string) bool

func RGBAToGray

func RGBAToGray(color color.Color) uint16

RGBAToGray 转灰度

Types

type Profile

type Profile struct {
	Gender  string
	Age     int
	Address string
	Email   string
}

type User

type User struct {
	Id       string
	Username string
	Password string
	Profile  Profile
}

func GetUser

func GetUser(uid string) (u *User, err error)

func UpdateUser

func UpdateUser(uid string, uu *User) (a *User, err error)

Jump to

Keyboard shortcuts

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