POST /api/login/VerifyLoginInfo
{
userName string
userPassword string
}
{
errCode string
errMsg string
token string
}
{
0
""
"cf e4 b6 6b d0 d3 4e ce de 23 20 a2 96 d1 da 77 76 e5 c0 55"
}
{
2
"Verify logininfo failed"
""
}
POST /api/configure/PostBasicConfig/:userID
{
token string
mainPageTitle string
categoryName []string
mode string
themeColor string
}
{
errCode string
errMsg string
result bool
}
{
2
"Insert into bd failed"
false
}
GET /api/record/GetBrowseRecord/:articleID
{
errCode int
errMsg string
data []BrowseRecord
}
type BrowseRecord struct{
browseName string
browseTime string
}
{
0
""
{
"test"
"2017.4.4 18:00"
},
{
"test"
"2017.4.5 17:00"
}
}
{
2
"Not exist thsi articleID in db"
""
}
GET /api/record/GetFillInfoRecord/:articleID
{
errCode int
errMsg string
data []string
}
type FillInfoRecord struct{
informationlist string
}
{
0
""
{
"收入调查","test,27,2000","test1,30,10000"
}
}
{
2
"No exist this articleID in db"
""
}
GET /api/record/GetArticleList/:userID
{
errCode int
errMsg string
data []ArticleRecord
}
type ArticleRecord struct{
articleTitle string
articleURL string
articleStatus bool
}
{
0
""
{
"test"
"xxxxx"
"true"
},
{
"test"
"xxxxx"
"false"
}
}
{
2
"No exist this userID in db"
""
}
GET /api/content/GetArticleInfo/:articleID
{
errCode int
errMsg string
data ArticleDetailInfo
}
type ArticleDetailInfo struct {
userID int
mainPageTitle string //文章主题
pictureURL string //文章图片URL
articleContent string //文章正文
readTargetNum int //文章目标阅读数
increaseStartTime int //增长开始时间
increaseContinuousTime int //增长持续时间
recommandOrDataset string //推荐或留资设置
}
{
0
""
{
12345
"test"
"URL"
"正文内容"
"1300"
"2017.4.3 12:00"
"12"
"收入调查,姓名,性别,年龄,收入"
}
}
{
2
"No exist this articleID in db"
""
}
POST /api/record/InsertBrowseRecord/:articleID
{
token string
browseName string
browseTime string
}
{
errCode int
errMsg string
data []BrowseRecord
}
type BrowseRecord struct {
browseName string
browseTime string
}
{
0
""
{
{
"test"
"2017.4.3 12:00"
},
{
"test"
"2017.4.3 12:00"
}
}
}
{
2
"No exist this articleID in db"
""
}
POST /api/record/InsertFillInfoRecord/:articleID
{
token string
informationList string
}
{
errCode int
errMsg string
data bool
}
{
2
"No exist this articleID in db"
false
}
POST /api/content/DeleteArticle/:articleID
{
errCode int
errMsg string
data bool
}
{
2
"No exist this articleID in db"
false
}