XMLWAN 3 gadus atpakaļ
vecāks
revīzija
ab18520f1b

+ 1 - 1
conf/app.conf Parādīt failu

@@ -1,5 +1,5 @@
1 1
 appname = 小程序
2
-httpport = 9529
2
+httpport = 9539
3 3
 runmode = dev
4 4
 
5 5
 #

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 67 - 2799
controllers/new_mobile_api_controllers/new_dialysis_api_controller.go


+ 2 - 173
controllers/new_mobile_api_controllers/new_mobile_api_router_register.go Parādīt failu

@@ -1,181 +1,10 @@
1 1
 package new_mobile_api_controllers
2 2
 
3
-import "github.com/astaxie/beego"
4
-
5 3
 // 平板端路由,以 /m/api 为前缀
6 4
 func NewMobileAPIControllersRegisterRouters() {
7 5
 
8
-	beego.Router("m/api/patient/getillnesslist", &NewDialysisApiController{}, "Get:GetIllnesslist")
9
-	beego.Router("/m/api/patients/generatedialysisnotwo", &NewDialysisApiController{}, "Get:GetGeneratedialysisno")
10
-	beego.Router("/m/api/patient/getbloodDialysisPatient", &NewDialysisApiController{}, "Get:GetPatient")
11
-
12
-	beego.Router("/m/api/islogin", &NewLoginApiController{}, "Get:GetLogin")
13
-
14 6
 	//验证码相关
15
-	beego.Router("/m/api/code", &NewLoginApiController{}, "Get:GetCodeInit")
16
-	beego.Router("/m/api/getcode", &NewLoginApiController{}, "Get:GetCode")
17
-
18
-	//免密码登录
19
-	beego.Router("/m/api/login/cs", &NewLoginApiController{}, "post:LoginByCs")
20
-
21
-	//忘记密码
22
-	beego.Router("/m/api/password/commit", &ForgetPwdController{}, "post:ModifyPassword")
23
-
24
-	//注册
25
-	beego.Router("/m/api/register/commit", &MobileRegistController{}, "post:RegistSubmit")
26
-	beego.Router("/m/api/register/setname", &MobileRegistController{}, "post:ModifyName")
27
-
28
-	beego.Router("/m/api/register/login", &MobileRegistController{}, "post:Login")
29
-
30
-	beego.Router("/m/api/org/create", &MobileRegistController{}, "post:CreateOrg")
31
-
32
-	beego.Router("/m/api/home", &HomeController{}, "get:GetHomeData")
33
-	beego.Router("/m/api/changeorg", &HomeController{}, "post:ChangeOrg")
34
-	beego.Router("/m/api/createOrg", &HomeController{}, "post:CreateOrg")
35
-
36
-	beego.Router("/m/api/modifypsw", &HomeController{}, "post:ModifyPsw")
37
-
38
-	beego.Router("/m/api/staff", &NewRoleApiController{}, "get:GetAllOrgUser")
39
-
40
-	beego.Router("/m/api/staff/edit", &NewRoleApiController{}, "post:EditAdmin")
41
-	beego.Router("/m/api/staff/init", &NewRoleApiController{}, "get:GetEditAdminInitData")
42
-	beego.Router("/m/api/staff/get", &NewRoleApiController{}, "get:GetAdminUserInfo")
43
-	beego.Router("/m/api/staff/stop", &NewRoleApiController{}, "post:StopAdminUser")
44
-	beego.Router("/m/api/staff/create", &NewRoleApiController{}, "post:CreateAdminUser")
45
-
46
-	beego.Router("/m/api/role/addStaff", &NewRoleApiController{}, "post:AddRoleStaff")
47
-
48
-	beego.Router("/m/api/role", &NewRoleApiController{}, "get:GetAllOrgRole")
49
-	beego.Router("/m/api/role/edit", &NewRoleApiController{}, "post:EditRole")
50
-	beego.Router("/m/api/role/get", &NewRoleApiController{}, "get:GetOrgRoleInfo")
51
-	beego.Router("/m/api/role/del", &NewRoleApiController{}, "post:DeleteOrgRole")
52
-	beego.Router("/m/api/role/create", &NewRoleApiController{}, "post:CreateRole")
53
-
54
-	beego.Router("/m/api/permission/post", &NewRoleApiController{}, "post:EditRolePermission")
55
-	beego.Router("/m/api/functionpermission/post", &NewRoleApiController{}, "post:EditFunctionPermission")
56
-
57
-	beego.Router("/m/api/permission", &NewRoleApiController{}, "get:GetAllPermission")
58
-
59
-	beego.Router("/m/api/newpermission", &NewRoleApiController{}, "get:GetAllNewPermission")
60
-
61
-	beego.Router("/m/api/rolepurview", &NewRoleApiController{}, "get:GetRolePurviews")
62
-	beego.Router("/m/api/role/funtionpurview", &NewRoleApiController{}, "get:GetFuntionPurviews")
63
-
64
-	beego.Router("/m/api/func_role/get", &NewRoleApiController{}, "get:GetFuncRolePurviews")
65
-
66
-	beego.Router("/m/api/permission/get", &HomeController{}, "get:GetFuncPermission")
67
-
68
-	beego.Router("/m/api/patient/getbloodpatientinfo", &NewDialysisApiController{}, "Get:GetBloodPatientInfo")
69
-	beego.Router("/m/api/patient/getslowpatientinfo", &NewDialysisApiController{}, "Get:GetSlowPatientInfo")
70
-	beego.Router("/m/api/patient/getmemberpatientinfo", &NewDialysisApiController{}, "Get:GetMemberpatientInfo")
71
-	beego.Router("/m/api/patient/savepatient", &NewDialysisApiController{}, "Post:SavePatient")
72
-	beego.Router("/m/api/patient/getpatientdetail", &NewDialysisApiController{}, "Get:GetPatientDetail")
73
-	beego.Router("/m/api/patient/getdoctoradvices", &NewDialysisApiController{}, "Get:GetDoctorAdvices")
74
-	beego.Router("/m/api/paitent/getdryweight", &NewDialysisApiController{}, "Get:GetDryWeight")
75
-	beego.Router("m/api/patient/getbloodDialysisPatientwo", &NewDialysisApiController{}, "Get:GetAllPatient")
76
-	beego.Router("m/api/patient/tosearch", &NewDialysisApiController{}, "Get:ToSearch")
77
-	beego.Router("/m/api/patient/getcoursemanagement", &NewDialysisApiController{}, "Get:GetCourseManagement")
78
-	beego.Router("/m/api/patient/delelecousemanage", &NewDialysisApiController{}, "Delete:DeleteCourseManagement")
79
-	beego.Router("/m/api/patient/getcousemanagementdetail", &NewDialysisApiController{}, "Get:GetCouseManagentDetail")
80
-	beego.Router("/m/api/patient/getallblooddialysispatient", &NewDialysisApiController{}, "Get:GetAllBloodDialysisPatient")
81
-	beego.Router("/m/api/patient/getallslowpatient", &NewDialysisApiController{}, "Get:GetAllSlowPatent")
82
-	beego.Router("/m/api/patient/getallmemberpatient", &NewDialysisApiController{}, "Get:GetAllMemberPatient")
83
-	beego.Router("/m/api/patient/deletedryweight", &NewDialysisApiController{}, "Delete:DeleteDryWeight")
84
-	beego.Router("/m/api/patient/getdryweightdetail", &NewDialysisApiController{}, "Get:GetDryWeightDetail")
85
-	beego.Router("/m/api/patient/getlongdialysisrecord", &NewDialysisApiController{}, "Get:GetlongDialysisrecord")
86
-	beego.Router("/m/api/patient/getrescuerecord", &NewDialysisApiController{}, "Get:GetRescuerecord")
87
-	beego.Router("/m/api/patient/getscheduling", &NewDialysisApiController{}, "Get:GetScheduling")
88
-	beego.Router("/m/api/patient/geteducation", &NewDialysisApiController{}, "Get:GetEducation")
89
-	beego.Router("/m/api/patient/getschedulingdetail", &NewDialysisApiController{}, "Get:GetSchedulingDetail")
90
-	beego.Router("/m/api/patient/deletescheduling", &NewDialysisApiController{}, "Delete:DeleteScheduling")
91
-	beego.Router("/m/api/patient/geteducationdetail", &NewDialysisApiController{}, "Get:GetEducationDetail")
92
-	beego.Router("/m/api/patient/deleteeductionone", &NewDialysisApiController{}, "Delete:DeleteEducation")
93
-	beego.Router("/m/api/patient/getrescuerecorddetail", &NewDialysisApiController{}, "GET:GetRescueRecordDetail")
94
-	beego.Router("/m/api/patient/deleterescuerecord", &NewDialysisApiController{}, "Delete:DeleteRescueRecord")
95
-	beego.Router("/m/api/patient/tosearchepatient", &NewDialysisApiController{}, "Get:ToSearchePatient")
96
-	beego.Router("/m/api/patient/searchallpatient", &NewDialysisApiController{}, "Get:SearchallPatient")
97
-	beego.Router("/m/api/patient/searchallblood", &NewDialysisApiController{}, "Get:GetSearchallBlood")
98
-	beego.Router("/m/api/patient/getslowsearchepatient", &NewDialysisApiController{}, "Get:GetSlowSearchePatient")
99
-	beego.Router("/m/api/patient/getmembersearchpatient", &NewDialysisApiController{}, "Get:GetMemberSearchPatent")
100
-	beego.Router("/m/api/patient/getlongdialysisdetail", &NewDialysisApiController{}, "Get:GetLongDialysisDetail")
101
-	beego.Router("/m/api/patient/deletelongdialysis", &NewDialysisApiController{}, "Delete:DeleteLongDialysis")
102
-	beego.Router("/m/api/patient/getdialysisrecord", &NewDialysisApiController{}, "Get:GetDialysisrecord")
103
-	beego.Router("/m/api/patient/getdoctoradvicedetail", &NewDialysisApiController{}, "Get:GetDoctorAdviceDetail")
104
-	beego.Router("/m/api/patient/deletemanagement", &NewDialysisApiController{}, "Delete:DeleteManagement")
105
-	beego.Router("/m/api/patient/updatedpatient", &NewDialysisApiController{}, "Post:UpdatedPatient")
106
-	beego.Router("/m/api/patient/getalldoctor", &NewDialysisApiController{}, "Get:GetAllDoctor")
107
-	beego.Router("/m/api/patient/getallprojectname", &NewDialysisApiController{}, "Get:GetAllProjectName")
108
-	beego.Router("/m/api/patient/getallinspection", &NewDialysisApiController{}, "Get:GetAllInspection")
109
-	beego.Router("/m/api/patient/getinspection", &NewDialysisApiController{}, "Get:GetInspection")
110
-	beego.Router("/m/api/patient/getmyinformation", &NewDialysisApiController{}, "Get:GetMyInformation")
111
-	beego.Router("/m/api/patient/getmyinformationThree", &NewDialysisApiController{}, "Get:GetMyInformationThree")
112
-	beego.Router("/m/api/patient/getpatientname", &NewDialysisApiController{}, "Get:GetPatientName")
113
-	beego.Router("/m/api/patient/getinspectiondetail", &NewDialysisApiController{}, "Get:GetInspectionDetail")
114
-	beego.Router("/m/api/patient/savefeed", &NewDialysisApiController{}, "Get:SaveFeed")
115
-	beego.Router("/m/api/patient/deletechild", &NewDialysisApiController{}, "Delete:DeleteChild")
116
-	beego.Router("/m/api/patient/deletePatient", &NewDialysisApiController{}, "Delete:DeletePatient")
117
-	beego.Router("/m/api/patient/deleteinspection", &NewDialysisApiController{}, "Delete:DeleteInspection")
118
-	beego.Router("/m/api/patient/deletechildinspection", &NewDialysisApiController{}, "Delete:DeleteChildInspection")
119
-	beego.Router("/m/api/patient/savemessage", &NewDialysisApiController{}, "Get:SaveMessage")
120
-	beego.Router("/m/api/patient/savesex", &NewDialysisApiController{}, "Get:SaveSex")
121
-	beego.Router("/m/api/patient/savebirthday", &NewDialysisApiController{}, "Post:SaveBirthday")
122
-	beego.Router("/m/api/patient/getorgname", &NewDialysisApiController{}, "Get:GetOrgName")
123
-	beego.Router("/m/api/patient/getrolename", &NewDialysisApiController{}, "Get:GetRoleName")
124
-	beego.Router("/m/api/patient/savepartition", &NewDialysisApiController{}, "Get:SavePartition")
125
-	beego.Router("/m/api/patient/getallzone", &NewDialysisApiController{}, "Get:GetAllZone")
126
-	beego.Router("/m/api/patient/deletezone", &NewDialysisApiController{}, "Delete:DeleteZone")
127
-	beego.Router("/m/api/patient/savegroup", &NewDialysisApiController{}, "Get:SaveGroup")
128
-	beego.Router("/m/api/patient/getallgroup", &NewDialysisApiController{}, "Get:GetAllGroup")
129
-	beego.Router("/m/api/patient/deletegroup", &NewDialysisApiController{}, "Delete:DeleteGroup")
130
-	beego.Router("m/api/patient/getallgroupone", &NewDialysisApiController{}, "Get:GetAllGroupOne")
131
-	beego.Router("/m/api/patient/savebed", &NewDialysisApiController{}, "Get:SaveBed")
132
-	beego.Router("/m/api/patient/getallnumber", &NewDialysisApiController{}, "Get:GetAllNumber")
133
-	beego.Router("/m/api/patient/deletebed", &NewDialysisApiController{}, "Delete:DeleteBed")
134
-	beego.Router("/m/api/patient/loginout", &NewDialysisApiController{}, "Get:LoginOut")
135
-	beego.Router("/m/api/patient/getmemberpatient", &NewDialysisApiController{}, "Get:GetMemberPatient")
136
-	beego.Router("/m/api/patient/getslowpatient", &NewDialysisApiController{}, "Get:GetSlowPatient")
137
-	beego.Router("/m/api/patient/getbloodpatient", &NewDialysisApiController{}, "Get:GetBloodPatient")
138
-	beego.Router("/m/api/patient/savename", &NewDialysisApiController{}, "Get:SaveName")
139
-	beego.Router("/m/api/patient/getallorganization", &NewDialysisApiController{}, "Get:GetAllOrganization")
140
-	beego.Router("/m/api/patient/getmyorganazition", &NewDialysisApiController{}, "Get:GetMyOrganazition")
141
-	beego.Router("/m/api/org/getorginformation", &NewDialysisApiController{}, "Get:GetOrgInformation")
142
-	beego.Router("/m/api/patient/getallorgtype", &NewDialysisApiController{}, "Get:GetAllOrgType")
143
-	beego.Router("/m/api/patient/editorg", &NewDialysisApiController{}, "Get:EditOrg")
144
-	beego.Router("/m/api/patient/getmyinforname", &NewDialysisApiController{}, "Get:GetMyInforName")
145
-	beego.Router("/m/api/patient/getpartiondetail", &NewDialysisApiController{}, "Get:GetPartionDetail")
146
-	beego.Router("/m/api/patient/updatepartition", &NewDialysisApiController{}, "Get:UpdatePartition")
147
-	beego.Router("/m/api/patient/getgroupdetail", &NewDialysisApiController{}, "Get:GetGroupDetail")
148
-	beego.Router("/m/api/patient/updategroup", &NewDialysisApiController{}, "Get:UpdateGroup")
149
-	beego.Router("/m/api/patient/getbeddetail", &NewDialysisApiController{}, "Get:GetBedDetail")
150
-	beego.Router("/m/api/patient/updatebed", &NewDialysisApiController{}, "Get:UpdatedBed")
151
-	beego.Router("/m/api/patient/getmyorginformation", &NewDialysisApiController{}, "Get:GetMyOrgInformation")
152
-	beego.Router("/m/api/patient/savenametwo", &NewDialysisApiController{}, "Get:SaveNameTwo")
153
-	beego.Router("/m/api/patient/getcurrentorg", &NewDialysisApiController{}, "Get:GetCurrentOrg")
154
-	beego.Router("/m/api/patient/getmyinformationfour", &NewDialysisApiController{}, "Get:GetMyInformationFour")
155
-	beego.Router("/m/api/org/getMyMobile", &NewDialysisApiController{}, "Get:GetMyMobile")
156
-	beego.Router("/m/api/patient/sumitform", &NewDialysisApiController{}, "Get:SumitForm")
157
-	beego.Router("/m/api/patient/getroleposition", &NewDialysisApiController{}, "Get:GetRolePosition")
158
-	beego.Router("/m/api/patient/getmobile", &NewDialysisApiController{}, "Get:GetMobile")
159
-	beego.Router("/m/api/patient/getorgs", &NewDialysisApiController{}, "Get:GetOrgs")
160
-	beego.Router("/m/api/patient/getnewpatientid", &NewDialysisApiController{}, "Get:GetNewPatientId")
161
-	beego.Router("/m/api/patient/updateimage", &NewDialysisApiController{}, "Get:UpdateImage")
162
-	beego.Router("/m/api/patient/deletemanagementtwo", &NewDialysisApiController{}, "Delete:DeleteManageMentTwo")
163
-	beego.Router("/m/api/patient/savecouresemanagement", &NewDialysisApiController{}, "Get:SaveCourseManageMent")
164
-	beego.Router("/m/api/patient/savecoursemanagementtwo", &NewDialysisApiController{}, "Get:SaveCourseManageMentTwo")
165
-	beego.Router("/m/api/patient/getvascularaccess", &NewDialysisApiController{}, "Get:GetVascularAccess")
166
-	beego.Router("/m/api/patient/getvascularaccessdetail", &NewDialysisApiController{}, "Get:GetVascularAccessDetail")
167
-	beego.Router("/m/api/patient/getalldoctorlist", &NewDialysisApiController{}, "Get:GetAllDoctorList")
168
-	beego.Router("/m/api/patient/gettreatesummay", &NewDialysisApiController{}, "Get:GetTreateSummary")
169
-
170
-	//His相关
171
-	beego.Router("/m/api/hispatientlist/get", &MobileHisApiController{}, "Get:GetHisPatientList")
172
-	beego.Router("/m/api/prescriptionconfig/get", &MobileHisApiController{}, "Get:GetHisPrescriptionConfig")
173
-	beego.Router("/m/api/prescriptioninfo/get", &MobileHisApiController{}, "Get:GetHisPatientInfo")
174
-	beego.Router("/m/api/prescription/call", &MobileHisApiController{}, "Get:GetCallHisPrescription")
175
-	beego.Router("/m/api/lastornextprescription/get", &MobileHisApiController{}, "Get:GetLastOrNextHisPrescription")
176
-	beego.Router("/m/api/prescription/delete", &MobileHisApiController{}, "Post:DeletePrescription")
177
-	beego.Router("/m/api/hisdoctoradvice/delete", &MobileHisApiController{}, "Post:DeleteDoctorAdvice")
178
-	beego.Router("/m/api/hisproject/delete", &MobileHisApiController{}, "Post:DeleteProject")
179
-	beego.Router("/m/api/prescription/create", &MobileHisApiController{}, "Post:CreateHisPrescription")
7
+	//beego.Router("/m/api/code", &NewLoginApiController{}, "Get:GetCodeInit")
8
+	//beego.Router("/m/api/getcode", &NewLoginApiController{}, "Get:GetCode")
180 9
 
181 10
 }

+ 11 - 10
controllers/xcx_mobile_api_controller.go/xcx_api_controller.go Parādīt failu

@@ -1,7 +1,7 @@
1 1
 package xcx_mobile_api_controller_go
2 2
 
3 3
 import (
4
-	"Xcx_New/controllers"
4
+	"Xcx_New/controllers/mobile_api_controllers"
5 5
 	"Xcx_New/enums"
6 6
 	"Xcx_New/models"
7 7
 	"Xcx_New/service"
@@ -13,19 +13,19 @@ import (
13 13
 )
14 14
 
15 15
 func XcxApiControllersRegisterRouters() {
16
-
17
-	//传送codeinit
18
-	beego.Router("/m/api/code", &XcxApiController{}, "Get:GetCodeInit")
16
+	////传送codeinit
17
+	beego.Router("/xcx/m/api/code", &XcxApiController{}, "Get:GetCodeInit")
19 18
 	//获取验证码
20 19
 	beego.Router("/xcx/api/mobile/code", &XcxApiController{}, "Get:GetCodeInfo")
21 20
 	//用户绑定
22 21
 	beego.Router("/xcx/api/mobile/register", &XcxApiController{}, "Get:GetUserRegister")
23 22
 	//登录
24
-	beego.Router("/xcx/api/mobile/register", &XcxApiController{}, "Get:GetLoginInfor")
23
+	beego.Router("/xcx/api/mobile/login", &XcxApiController{}, "Get:GetLoginInfor")
24
+
25 25
 }
26 26
 
27 27
 type XcxApiController struct {
28
-	controllers.BaseAuthAPIController
28
+	mobile_api_controllers.MobileBaseAPIController
29 29
 }
30 30
 
31 31
 func (this *XcxApiController) GetCodeInit() {
@@ -121,11 +121,12 @@ func (this *XcxApiController) GetCodeInfo() {
121 121
 }
122 122
 
123 123
 func (this *XcxApiController) GetLoginInfor() {
124
+	fmt.Println("c出啊大发阿方阿道夫发 阿方阿")
125
+	//mobile := this.GetString("mobile")
126
+	//fmt.Println(mobile)
127
+	role, err := service.GetLoginInfor("18923081560")
124 128
 
125
-	mobile := this.GetString("mobile")
126
-
127
-	role, err := service.GetLoginInfor(mobile)
128
-
129
+	fmt.Println("err2332323232", err)
129 130
 	if err == nil {
130 131
 		this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeSystemError)
131 132
 		return