src

package
v0.0.0-...-04dc7b9 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const FilePath = "./img/"
View Source
const URLPath = "/img/"

Variables

View Source
var Client *mongo.Client

Functions

func ChangeProfile

func ChangeProfile(ctx iris.Context)

func ConnectDB

func ConnectDB()

func DisconnectDb

func DisconnectDb()

func GetFriendsInfo

func GetFriendsInfo(ctx iris.Context)

func GetImg

func GetImg(ctx iris.Context)

func GetMatch

func GetMatch(ctx iris.Context)

func GetUser

func GetUser(ctx iris.Context)

func Login

func Login(ctx iris.Context)

func Match

func Match(ctx iris.Context)

func PostImg

func PostImg(ctx iris.Context)

func Register

func Register(ctx iris.Context)

Types

type MatchInfo

type MatchInfo struct {
	First  string `json:"first"`
	Second string `json:"second"`
}

type Message

type Message struct {
	Msg    string `json:"msg"`
	IsUser bool   `json:"IsUser"`
	IsRead bool   `json:"IsRead"`
}

type PrivateTask

type PrivateTask struct {
	Name       string `json:"name"`
	Number     int    `json:"number"`
	IsFinished bool   `json:"IsFinished"`
}

type RtMsg

type RtMsg struct {
	Msg  string `json:"msg"`
	Code int    `json:"code"`
}

type TaskQueue

type TaskQueue struct {
	TaskId string `json:"task_id"`
	Email  string `json:"email"`
}

type TogetherTask

type TogetherTask struct {
	Name        string `json:"name"`
	Number      int    `json:"number"`
	Comment     string `json:"comment"`
	FriendEmail string `json:"friendEmail"`
	IsFinished  bool   `json:"IsFinished"`
}

type User

type User struct {
	Username      string         `json:"username"`
	Email         string         `json:"email"`
	Mobile        string         `json:"mobile"`
	Password      string         `json:"password"`
	Age           string         `json:"age"`
	Bio           string         `json:"bio"`
	Constellation string         `json:"constellation"`
	Birthday      string         `json:"birthday"`
	Sex           string         `json:"sex"`
	ImgPath       string         `json:"img_path"`
	TogetherTasks []TogetherTask `json:"TogetherTasks"`
	PrivateTasks  []PrivateTask  `json:"PrivateTasks"`
	Friends       []string       `json:"Friends"`
	Messages      []Message      `json:"Messages"`
	Partner       string         `json:"partner"`
	CurrentTaskId int            `json:"CurrentTaskId"`
}

Jump to

Keyboard shortcuts

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