瀏覽代碼

Merge branch 'xt_statistics_branch'

csx 4 年之前
父節點
當前提交
a15672e6ce
共有 2 個文件被更改,包括 6 次插入0 次删除
  1. 4 0
      enums/error_code.go
  2. 2 0
      routers/router.go

+ 4 - 0
enums/error_code.go 查看文件

@@ -198,6 +198,8 @@ const ( // ErrorCode
198 198
 	ErrorCodeLogOut = 20049
199 199
 
200 200
 	ErrorCodeExportError = 20050
201
+
202
+	ErrorCodeOrgNoPatient = 20051
201 203
 )
202 204
 
203 205
 var ErrCodeMsgs = map[int]string{
@@ -393,6 +395,8 @@ var ErrCodeMsgs = map[int]string{
393 395
 
394 396
 	ErrorCodeLogOut:      "退出",
395 397
 	ErrorCodeExportError: "导入出错,请下载并查看相关日志",
398
+
399
+	ErrorCodeOrgNoPatient: "暂无病人",
396 400
 }
397 401
 
398 402
 type SGJError struct {

+ 2 - 0
routers/router.go 查看文件

@@ -53,6 +53,8 @@ func init() {
53 53
 
54 54
 	m_api.MobileAPIControllersRegisterRouters()
55 55
 	new_m_api.NewMobileAPIControllersRegisterRouters()
56
+	new_m_api.StatisticsAPIControllersRegisterRouters()
57
+
56 58
 	//admin_api.AdminAPIControllersRegisterRouters()
57 59
 	new_m_api.CommonApiControllersRegisterRouters()
58 60
 	controllers.ManageRouters()