Documentation ¶
Index ¶
- func LogGetHandler(w http.ResponseWriter, r *http.Request)
- func LogHandler(w http.ResponseWriter, r *http.Request)
- func LogPostHandler(w http.ResponseWriter, r *http.Request)
- func RnakingHandler(w http.ResponseWriter, r *http.Request)
- func RootHandler(w http.ResponseWriter, r *http.Request)
- func UserDeleteHandler(w http.ResponseWriter, r *http.Request)
- func UserGetHandler(w http.ResponseWriter, r *http.Request)
- func UserHandler(w http.ResponseWriter, r *http.Request)
- func UserPostHandler(w http.ResponseWriter, r *http.Request)
- type Log
- type Logs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogHandler ¶
func LogHandler(w http.ResponseWriter, r *http.Request)
func RootHandler ¶
func RootHandler(w http.ResponseWriter, r *http.Request)
func UserGetHandler ¶
func UserGetHandler(w http.ResponseWriter, r *http.Request)
ユーザ情報を取得
- ユーザID
- ユーザ名
- アカウント作成日
- ログ総数
func UserHandler ¶
func UserHandler(w http.ResponseWriter, r *http.Request)
Types ¶
type Log ¶
type Log struct { Date string `json:"date"` // キャンパス // 千住 or 鳩山 Campus string `json:"campus"` //ログ定期 // 詳しくはlogcation/webのソース参照: https://github.com/tdu-logcation/web/blob/0d9feacdd50c5edfc1c28ab5a4510a3370715173/%40types/log.ts#L9-L11 LogType string `json:"log_type"` // ログのラベル Label string ` json:"label"` // ログデータ Code string `json:"code"` }
POSTフォームのJSON形式
Click to show internal directories.
Click to hide internal directories.