cachemodels

package
v0.0.0-...-a448e87 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CachedUser

type CachedUser struct {
	ID            int           `json:"id"`
	Username      string        `json:"username"`
	Name          string        `json:"name"`
	Age           int           `json:"age"`
	PhoneNumber   string        `json:"phonenumber"`
	Sex           bool          `json:"sex"`
	AvartarImg    string        `json:"avatarimg"`
	Hobbies       []model.Hobby `json:"hobbies"`
	SexOfInterest bool          `json:"sexofinterest"`
	Latitude      float64       `json:"latitude"`
	Longitude     float64       `json:"longitude"`
}

func CahedUserUnmarshal

func CahedUserUnmarshal(data []byte) (*CachedUser, error)

func (*CachedUser) Marshal

func (c *CachedUser) Marshal() ([]byte, error)

Jump to

Keyboard shortcuts

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