| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- package main
- // *common
- type MsgInterface struct {
- Success int `json:"success"`
- Msg interface{} `json:"msg"`
- }
- // // *error
- // type SimpleJsonMsg struct {
- // Success int `json:"success"`
- // Msg string `json:"msg"`
- // }
- // *handler
- // login
- type HandlerLoginData struct {
- Name string `json:"name"`
- Password string `json:"password"`
- }
- // register
- type HandlerRegisterData struct {
- Name string `json:"name"`
- Password string `json:"password"`
- Password2 string `json:"password2"`
- Key string `json:"key"`
- }
- // userinfo
- type HandlerUserInfo struct {
- Name string `json:"name"`
- }
- // seturl
- type HandlerSetUrl struct {
- Url string `json:"url"`
- }
- // geturl
- type HandlerGetUrl struct {
- Url string `json:"url"`
- Status int `json:"status"`
- Msg string `json:"msg"`
- }
- // setkey
- // getkey
- type HandlerKey struct {
- AK string `json:"ak"`
- SK string `json:"sk"`
- }
- // admin login
- type HandlerAdminLogin struct {
- Key string `json:"key"`
- }
- // admin get data request
- type HandlerAdminGetDataRequest struct {
- Page int `json:"page"`
- Length int `json:"length"`
- }
- // admin data
- type HandlerAdminGetData struct {
- Time int `json:"time"`
- Name string `json:"name"`
- Type int `json:"type"`
- Msg string `json:"msg"`
- }
- // admin return data
- type HandlerAdminDataReturn struct {
- Count int `json:"count"`
- Data []*HandlerAdminGetData `json:"data"`
- }
- // admin get key req
- type HandlerGetKeyReq struct {
- Id int `json:"id"`
- }
- // admin get key data
- type HandlerGetKeyData struct {
- Time int `json:"time"`
- Msg string `json:"msg"`
- }
- // *data
- // user
- type LogData struct {
- Time int `json:"time"`
- Name string `json:"name"`
- Type int `json:"type"`
- }
- // admin
- type LogDataAdmin struct {
- Time int `json:"time"`
- Name string `json:"name"`
- Type int `json:"type"`
- Msg string `json:"msg"`
- }
- // details
- type LogDataDetails struct {
- Uid int `json:"id"`
- Name string `json:"name"`
- Time int `json:"time"` // 最早成功时间
- Fail int `json:"fail"` // 失败次数
- }
|