|
@@ -2197,9 +2197,7 @@ func (this *NewDialysisApiController) EditOrg() {
|
2197
|
2197
|
}
|
2198
|
2198
|
|
2199
|
2199
|
func (this *NewDialysisApiController) GetMyInforName() {
|
2200
|
|
-
|
2201
|
2200
|
id, _ := this.GetInt64("id")
|
2202
|
|
- //Rolename, err := service.GetMyInfoName(id)
|
2203
|
2201
|
Username, err := service.GetAdminName(id)
|
2204
|
2202
|
if err != nil {
|
2205
|
2203
|
this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeSystemError)
|
|
@@ -2210,6 +2208,22 @@ func (this *NewDialysisApiController) GetMyInforName() {
|
2210
|
2208
|
})
|
2211
|
2209
|
}
|
2212
|
2210
|
|
|
2211
|
+func (this *NewDialysisApiController) GetMyInformationFour() {
|
|
2212
|
+ adminUserInfo := this.GetMobileAdminUserInfo()
|
|
2213
|
+ creatId := adminUserInfo.AdminUser.Id
|
|
2214
|
+ fmt.Println("创建者ID", creatId)
|
|
2215
|
+ orgid := adminUserInfo.Org.Id
|
|
2216
|
+ fmt.Println("orgid", orgid)
|
|
2217
|
+ Username, err := service.GetMyOrgInformationFour(creatId, orgid)
|
|
2218
|
+ if err != nil {
|
|
2219
|
+ this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeSystemError)
|
|
2220
|
+ return
|
|
2221
|
+ }
|
|
2222
|
+ this.ServeSuccessJSON(map[string]interface{}{
|
|
2223
|
+ "Username": Username,
|
|
2224
|
+ })
|
|
2225
|
+}
|
|
2226
|
+
|
2213
|
2227
|
func (this *NewDialysisApiController) GetPartionDetail() {
|
2214
|
2228
|
id, _ := this.GetInt64("id")
|
2215
|
2229
|
partionDetail, err := service.GetPartionDetail(id)
|
|
@@ -2315,6 +2329,7 @@ func (this *NewDialysisApiController) GetMyOrgInformation() {
|
2315
|
2329
|
fmt.Println("cretor", creator)
|
2316
|
2330
|
adminInfo := this.GetMobileAdminUserInfo()
|
2317
|
2331
|
appId := adminInfo.App.Id
|
|
2332
|
+ //fmt.Println("appid------------------------------------",appId)
|
2318
|
2333
|
information, err := service.GetMyOrgInformation(creator, appId)
|
2319
|
2334
|
if err != nil {
|
2320
|
2335
|
this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeSystemError)
|