|
@@ -66,7 +66,7 @@ func (this *OrgController) Create() {
|
66
|
66
|
|
67
|
67
|
// /org/create/submit [post]
|
68
|
68
|
// @param name:string
|
69
|
|
-// @param short_name:string
|
|
69
|
+// @param short_name:string 已和 name 同步,不需要传了
|
70
|
70
|
// @param intro?:string
|
71
|
71
|
// @param logo?:string
|
72
|
72
|
// @param province:int
|
|
@@ -75,6 +75,7 @@ func (this *OrgController) Create() {
|
75
|
75
|
// @param address:string
|
76
|
76
|
// @param ill?:string ("病种1,病种2")
|
77
|
77
|
// @param category:int
|
|
78
|
+// @param contact_name:string
|
78
|
79
|
// @param org_phone?:string
|
79
|
80
|
// @param business_week?:string
|
80
|
81
|
// @param business_time?:string
|
|
@@ -105,7 +106,7 @@ func (this *OrgController) CreateSubmit() {
|
105
|
106
|
}
|
106
|
107
|
|
107
|
108
|
name := this.GetString("name")
|
108
|
|
- shortName := this.GetString("short_name")
|
|
109
|
+ shortName := name // this.GetString("short_name")
|
109
|
110
|
intro := this.GetString("intro")
|
110
|
111
|
logo := this.GetString("logo")
|
111
|
112
|
province, _ := this.GetInt("province", 0)
|
|
@@ -114,7 +115,8 @@ func (this *OrgController) CreateSubmit() {
|
114
|
115
|
address := this.GetString("address")
|
115
|
116
|
ill := this.GetString("ill")
|
116
|
117
|
category, _ := this.GetInt64("category")
|
117
|
|
- if len(name) == 0 || len(shortName) == 0 || len(address) == 0 || province <= 0 || city <= 0 || district <= 0 || category <= 0 {
|
|
118
|
+ contactName := this.GetString("contact_name")
|
|
119
|
+ if len(name) == 0 || len(shortName) == 0 || len(contactName) == 0 || len(address) == 0 || province <= 0 || city <= 0 || district <= 0 || category <= 0 {
|
118
|
120
|
this.Data["json"] = enums.MakeFailResponseJSONWithSGJErrorCode(enums.ErrorCodeParamWrong)
|
119
|
121
|
this.ServeJSON()
|
120
|
122
|
return
|
|
@@ -151,6 +153,7 @@ func (this *OrgController) CreateSubmit() {
|
151
|
153
|
OrgType: category,
|
152
|
154
|
OperatingState: businessState,
|
153
|
155
|
Telephone: orgPhone,
|
|
156
|
+ ContactName: contactName,
|
154
|
157
|
BusinessWeek: businessWeek,
|
155
|
158
|
BusinessTime: businessTime,
|
156
|
159
|
Gallery: orgPics,
|