|
@@ -1503,3 +1503,37 @@ func (this *NewDialysisApiController) GetInspectionDetail() {
|
1503
|
1503
|
"InspectionDetail": InspectionDetail,
|
1504
|
1504
|
})
|
1505
|
1505
|
}
|
|
1506
|
+
|
|
1507
|
+func (this *NewDialysisApiController) SaveFeed() {
|
|
1508
|
+
|
|
1509
|
+ question, _ := this.GetInt64("question")
|
|
1510
|
+ fmt.Print("question", question)
|
|
1511
|
+ title := this.GetString("title")
|
|
1512
|
+ fmt.Print("title", title)
|
|
1513
|
+ content := this.GetString("content")
|
|
1514
|
+ fmt.Print("content", content)
|
|
1515
|
+ phone := this.GetString("phone")
|
|
1516
|
+ fmt.Print("phone", phone)
|
|
1517
|
+ times, _ := this.GetInt64("time")
|
|
1518
|
+ fmt.Print("time", times)
|
|
1519
|
+ adminUser := this.GetMobileAdminUserInfo()
|
|
1520
|
+ orgid := adminUser.Org.Id
|
|
1521
|
+ feedback := models.XtPatientFeedback{
|
|
1522
|
+ ProblemType: question,
|
|
1523
|
+ Title: title,
|
|
1524
|
+ Content: content,
|
|
1525
|
+ Phone: phone,
|
|
1526
|
+ TimeQuantum: times,
|
|
1527
|
+ UserOrgId: orgid,
|
|
1528
|
+ Ctime: time.Now().Unix(),
|
|
1529
|
+ Status: 1,
|
|
1530
|
+ }
|
|
1531
|
+ err := service.CreateFeedBack(&feedback)
|
|
1532
|
+ if err != nil {
|
|
1533
|
+ this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeSystemError)
|
|
1534
|
+ return
|
|
1535
|
+ }
|
|
1536
|
+ this.ServeSuccessJSON(map[string]interface{}{
|
|
1537
|
+ "feedback": feedback,
|
|
1538
|
+ })
|
|
1539
|
+}
|