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 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 ¶
RespForgotPersons is the response to GET /persons/forgot
type RespGetRecord ¶
RespGetRecord is the response to GET /record
type RespPutRecord ¶
RespPutRecord is the response to PUT /record
Click to show internal directories.
Click to hide internal directories.