Documentation ¶
Overview ¶
处理账户的登录,注册等情况
/order所有操作都会添加数据至数据库
用于查看目录与文件
编写频繁操作的api @see http/README.md
处理文章摘要的业务逻辑
个人主页API
Index ¶
- func Body2String(r *http.Request) (string, error)
- func CheckSteamInfo(r *http.Request) *orm.AccountEx
- func ComputeAllMD5()
- func CreateAtk(id int64, exp int) (string, error)
- func DM1CheckPermission(r *http.Request) error
- func GetAccountByAtk(r *http.Request) (*orm.Account, error)
- func GetAccountExByAtk(r *http.Request) (*orm.AccountEx, error)
- func GetAllID3()
- func GetAtk(r *http.Request) (string, error)
- func GetCid(r *http.Request) (string, error)
- func GetIdByAtk(r *http.Request) (int64, error)
- func Init()
- func MakeClipboardKey(r *http.Request) (string, error)
- type ID3
- type InfoModel
- type LikeInfoModel
- type LoginModel
- type ModifiedPostModel
- type ModifyPostNoTextModel
- type PostInfoModel
- type PostModel
- type PostReaderModel
- type RegisterModel
- type VPExportModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeAllMD5 ¶
func ComputeAllMD5()
func DM1CheckPermission ¶
Types ¶
type ID3 ¶
type ID3 struct { Album string `json:"album"` AlbumArtist string `json:"albumArtist"` Artist string `json:"artist"` Comment string `json:"comment"` Composer string `json:"composer"` DiscNum int `json:"disc_num"` DiscTotal int `json:"disc_total"` FileType string `json:"fileType"` Format string `json:"format"` Genre string `json:"genre"` Lyrics string `json:"lyrics"` Picture interface{} `json:"picture"` Raw interface{} `json:"raw"` Title string `json:"title"` TrackNum int `json:"track_num"` TrackTotal int `json:"track_total"` Year int `json:"year"` }
type LikeInfoModel ¶
type LoginModel ¶
type ModifiedPostModel ¶
type ModifiedPostModel struct { Id int64 Title string Text string TagIds []string IsPrivate bool Path string }
修改文章
type ModifyPostNoTextModel ¶
更改文章,没有文本内容 应对流量节约的情况
type PostInfoModel ¶
type PostReaderModel ¶
type PostReaderModel struct { Id int64 Title string Text string Tags []string Author string Date string MyPost bool IsPrivate bool ViewedCount int64 }
发布新文章
type RegisterModel ¶
type VPExportModel ¶
Source Files ¶
- Identity.go
- account.go
- account_fav.go
- chat.go
- clipboard.go
- dm_1_indicate.go
- dm_1_info.go
- dm_1_music.go
- dm_1_order.go
- dm_1_permission.go
- dm_1_query.go
- dm_1_raw.go
- dm_1_tags.go
- dm_1_task.go
- main.go
- meta.go
- post.go
- post_achieve.go
- post_fav.go
- post_freq.go
- post_info.go
- post_like.go
- post_view.go
- practice.go
- rss.go
- search_post.go
- steam_status.go
- tags.go
- user_home.go
- util.go
- vp.go
- ws_exp.go
Click to show internal directories.
Click to hide internal directories.