Skip to content

Commit dea98de

Browse files
committed
Add auth api Add Test Router Add More Error info Add More Config ....
1 parent ac6d076 commit dea98de

File tree

16 files changed

+601
-95
lines changed

16 files changed

+601
-95
lines changed

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,12 @@
5050

5151
**演示站点为 [AuXpI 图床](https://imgx.0w0.tn/)**
5252

53-
**因为服务器在国外,可能会上传稍微慢一些 ~**
53+
**因为服务器在国外,可能会上传稍微慢一些~**
5454

5555

5656

5757
使用该图床有两种选择,一种选择是使用 Release 中已经编译好的文件,另外一种选择是自己编译代码。
5858

59-
### 萌新安装教程
60-
61-
请看 [https://0w0.tn/archives/auxpi-install-guide-moe.html](https://0w0.tn/archives/auxpi-install-guide-moe.html)
62-
6359
### 从 Release 中获取编译完成的文件
6460
首先需要到 [Release](https://github.com/aimerforreimu/AUXPI/releases) 中下载符合您服务器需要的最新版本的压缩包,然后在您的服务器端进行解压,解压完成以后的目录为 (以 Linux/Mac 系统为例):
6561

auxpiAll/all.go

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,12 @@ type picInfo struct {
9696
Pid string `json:"pid"`
9797
}
9898

99+
type SinaError struct {
100+
Retcode string `json:"retcode"`
101+
Reason string `json:"reason"`
102+
}
103+
104+
99105
//Api & upload Json
100106
type ResultJson struct {
101107
Code int `json:"code"`
@@ -125,3 +131,17 @@ type DbOption struct {
125131
DblPass string `json:"dbl_pass"`
126132
TablePrefix string `json:"table_prefix"`
127133
}
134+
135+
//User Info Struct
136+
137+
type UserInfo struct {
138+
User string `json:"user"`
139+
Status string `json:"status"`
140+
Code int `json:"code"`
141+
Token string `json:"token"`
142+
Name string `json:"name"`
143+
Avatar string `json:"avatar"`
144+
Introduction string `json:"introduction"`
145+
Roles []string `json:"roles"`
146+
Setting interface{} `json:"setting"`
147+
}

0 commit comments

Comments
 (0)