entity

package
v0.0.0-...-379af47 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2016 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Content

type Content struct {
	Done  string `json:"done"`
	Todo  string `json:"todo"`
	Issue string `json:"issue"`
}

Content is the data written

type Person

type Person struct {
	Name string `json:"name"`
	Team string `json:"team"`
}

Person is the structure of a employer

type Record

type Record struct {
	ID      string  `json:"id"`
	Date    string  `json:"date"`
	Person  Person  `json:"person"`
	Content Content `json:"content"`
}

Record is the structure of one's daily update

type Report

type Report struct {
	Title   string   `json:"title"`
	Date    string   `json:"date"`
	Weekday string   `json:"weekday"`
	Records []Record `json:"records"`
}

Report is the structure of someday meeting report

type ReqRecord

type ReqRecord struct {
	Name  string `json:"name"`
	Done  string `json:"done"`
	Todo  string `json:"todo"`
	Issue string `json:"issue"`
}

ReqRecord is the request to PUT /record

type Resp

type Resp struct {
	Success bool   `json:"success"`
	ErrNo   int    `json:"errno"`
	Errmsg  string `json:"errmsg"`
}

Resp is the common struct of http response body

type RespForgotPersons

type RespForgotPersons struct {
	Resp
	Data []string `json:"data"`
}

RespForgotPersons is the response to GET /persons/forgot

type RespGetRecord

type RespGetRecord struct {
	Resp
	Data Record `json:"data"`
}

RespGetRecord is the response to GET /record

type RespPutRecord

type RespPutRecord struct {
	Resp
	Data Record `json:"data"`
}

RespPutRecord is the response to PUT /record

Jump to

Keyboard shortcuts

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