Commit Graph

13 Commits

Author SHA1 Message Date
marvzhang
daef59be07 updated contributors 2020-03-19 11:13:25 +08:00
marvzhang
0c856681ad fixed docker build error issue 2020-01-07 14:51:09 +08:00
hantmac
7fff86feb1 Update test cases 2019-12-15 09:18:13 +08:00
Bo-Yi Wu
1283e0483f chore: fix fmt warning. 2019-12-01 18:16:39 +08:00
yaziming
2f6b517356 refactor(all): refactor code
remove redundant code and some code refactor
2019-10-11 16:01:57 +08:00
陈景阳
2e28921778 fix 编译错误的问题 2019-09-30 19:24:35 +08:00
yaziming
888a3cab79 refactor(backend): Use more efficient bytes to string methods and remove unnecessary type conversions
detail:
    1. add utils.BytesToString function instead of string() convert bytes to string.
    2. use bytes.NewReader instead of strings.NewReader(string(sb)).
    3. use w.Body.Bytes() instead of []byte(w.Body.String()).
2019-09-03 15:17:32 +08:00
hantmac
2ffd1774bf bug fix:fix go test ./.. bug 2019-09-03 12:47:18 +08:00
yaziming
9f43e08ff9 Backend:
improve
     - AuthMiddleware 注入当前用户的信息
     - 增加Context服务支持快捷获取当前登录者信息
     - 重构Login/GetMe接口逻辑避免重复的数据库查询
     - 规范化error信息声明(向下兼容,旧代码可逐渐迁移规范化)
     - 修正部分不符合规范的代码
2019-08-31 21:26:56 +08:00
hantmac
9530a3d9b0 add unit test for routes/spider.go 2019-08-26 21:10:55 +08:00
hantmac
ec060a4dc1 Add unit test for task.go 2019-08-24 13:39:06 +08:00
hantmac
2a886956da unit test for stats.go 2019-08-23 20:28:11 +08:00
hantmac
03fc2a8e54 modify unit test to use mock 2019-08-22 16:20:30 +08:00