|
@@ -55,7 +55,7 @@ func siteRouters() {
|
55
|
55
|
beego.Router("/api/site/saveoffice",&Microwebsite{},"Post:SaveOffice")
|
56
|
56
|
beego.Router("/api/site/gethospital",&Microwebsite{},"Post:GetHospital")
|
57
|
57
|
beego.Router("/api/site/getDefaultData",&Microwebsite{},"Get:GetDefaultData")
|
58
|
|
- beego.Router("/api/site/getdata",&Microwebsite{},"Post:GetData")
|
|
58
|
+ beego.Router("/api/site/getdata",&Microwebsite{},"Get:GetData")
|
59
|
59
|
beego.Router("/api/site/editdoc",&Microwebsite{},"Get:EditDoc")
|
60
|
60
|
beego.Router("/api/site/savedocinfo",&Microwebsite{},"Post:SaveDocInfo")
|
61
|
61
|
beego.Router("/api/site/editImages",&Microwebsite{},"Get:EditImages")
|
|
@@ -156,7 +156,7 @@ func siteRouters() {
|
156
|
156
|
beego.Router("/api/site/getlinkaddress",&Microwebsite{},"Get:GetLinkAddress")
|
157
|
157
|
beego.Router("/api/site/getcountimages",&Microwebsite{},"Get:GetCountImages")
|
158
|
158
|
beego.Router("/api/site/addNavigationlinkform",&Microwebsite{},"Post:AddNavigationLinkform")
|
159
|
|
- beego.Router("api/site/getnavigationlinkaddress",&Microwebsite{},"Get:GetNavigationlinkaddress")
|
|
159
|
+ beego.Router("/api/site/getnavigationlinkaddress",&Microwebsite{},"Get:GetNavigationlinkaddress")
|
160
|
160
|
beego.Router("/api/site/updateditnavigationlinkform",&Microwebsite{},"Post:UpdateditnavigationLink")
|
161
|
161
|
beego.Router("/api/site/addoctorinfotwo",&Microwebsite{},"Post:AddDoctorInfoTwo")
|
162
|
162
|
beego.Router("/api/site/getuserorgid",&Microwebsite{},"Get:GetUserOrgID")
|
|
@@ -171,6 +171,9 @@ func siteRouters() {
|
171
|
171
|
beego.Router("/api/site/addlinkaddressfour",&Microwebsite{},"Post:AddLinkAddressFour")
|
172
|
172
|
beego.Router("/api/site/getmaginclinkaddressbyid",&Microwebsite{},"Get:GetMagicLinkAddressById")
|
173
|
173
|
beego.Router("/api.site/getmagicclickbylinkid",&Microwebsite{},"Get:GetMagicClickByLinkID")
|
|
174
|
+ beego.Router("/api/site/editrotationemages",&Microwebsite{},"Get:GeteditRotationEmages")
|
|
175
|
+ beego.Router("/api/site/getoutrotationlink",&Microwebsite{},"Get:GetOutRotationLink")
|
|
176
|
+ beego.Router("/api/site/updatedrolinkaddress",&Microwebsite{},"Post:UpdatedRolinkAddress")
|
174
|
177
|
}
|
175
|
178
|
|
176
|
179
|
type Microwebsite struct {
|
|
@@ -1790,11 +1793,21 @@ func (this *Microwebsite) GetDefaultData() {
|
1790
|
1793
|
|
1791
|
1794
|
|
1792
|
1795
|
func (this *Microwebsite) GetData() {
|
|
1796
|
+ //每1秒监听一次使用定时器
|
|
1797
|
+ //ticker := time.NewTicker(5 * time.Second)
|
|
1798
|
+ // //for _ = range ticker.C {
|
|
1799
|
+ // // fmt.Println("当前是时间是是啥呢吗打发发发呆阿道夫",time.Now())
|
|
1800
|
+ // //
|
|
1801
|
+ // //}
|
|
1802
|
+
|
1793
|
1803
|
adminUserInfo := this.GetAdminUserInfo()
|
1794
|
1804
|
userOrgID := int64(adminUserInfo.CurrentOrgId)
|
1795
|
|
- fmt.Println("机构ID" ,userOrgID)
|
|
1805
|
+ fmt.Println("机构ID机构ID机构ID机构IDvvvv机构ID机构ID机构ID机构ID机构ID机构ID" ,userOrgID)
|
1796
|
1806
|
model, err := site_service.GetData(userOrgID)
|
1797
|
|
- if (len(model) == 0){
|
|
1807
|
+ fmt.Println("model是什么",model)
|
|
1808
|
+ fmt.Println("长度",len(model))
|
|
1809
|
+ fmt.Println("err",err)
|
|
1810
|
+ if(len(model) == 0){
|
1798
|
1811
|
patientModel := models.SgjPatientModel{
|
1799
|
1812
|
Title: "轮播图",
|
1800
|
1813
|
Sort: 1,
|
|
@@ -1817,239 +1830,239 @@ func (this *Microwebsite) GetData() {
|
1817
|
1830
|
}
|
1818
|
1831
|
err = site_service.AddPatientEdit(&editpiclink)
|
1819
|
1832
|
fmt.Println("err",err)
|
1820
|
|
-
|
1821
|
|
- patientmodefour := models.SgjPatientModel{
|
1822
|
|
- Title: "魔方导航",
|
1823
|
|
- Sort: 2,
|
1824
|
|
- UserOrgId: userOrgID,
|
1825
|
|
- Ctime: time.Now().Unix(),
|
1826
|
|
- Status: 1,
|
1827
|
|
- ModeType: 8,
|
1828
|
|
- }
|
1829
|
|
- addPatientModelTwo := site_service.AddPatientModelTwo(&patientmodefour)
|
1830
|
|
- fmt.Println(addPatientModelTwo)
|
1831
|
|
- sgjpatietnmodelfour, err := site_service.GetQueryModelByLastData(userOrgID)
|
1832
|
|
- fmt.Println("第二个模块id",sgjpatietnmodelfour)
|
1833
|
|
- fmt.Println(err)
|
1834
|
|
- editmargin := models.SgjPatientEditmargin{
|
1835
|
|
- Margtitle: "医院介绍",
|
1836
|
|
- Margimage: "https://images.shengws.com/2109_o_1569824063320.png",
|
1837
|
|
- UserOrgId: userOrgID,
|
1838
|
|
- Status: 1,
|
1839
|
|
- Ctime: time.Now().Unix(),
|
1840
|
|
- Modeid: sgjpatietnmodelfour.ID,
|
1841
|
|
- }
|
1842
|
|
- margin := site_service.AddEditMargin(&editmargin)
|
1843
|
|
- fmt.Println(margin)
|
1844
|
|
-
|
1845
|
|
- patientEditmargin := models.SgjPatientEditmargin{
|
1846
|
|
- Margtitle: "医护团队",
|
1847
|
|
- Margimage: "https://images.shengws.com/2121_o_1569824193950.png",
|
1848
|
|
- UserOrgId: userOrgID,
|
1849
|
|
- Status: 1,
|
1850
|
|
- Ctime: time.Now().Unix(),
|
1851
|
|
- Modeid: sgjpatietnmodelfour.ID,
|
1852
|
|
- }
|
1853
|
|
- err = site_service.AddEditMargin(&patientEditmargin)
|
1854
|
|
- fmt.Println(err)
|
1855
|
|
-
|
1856
|
|
- sgjPatientEditmargin := models.SgjPatientEditmargin{
|
1857
|
|
- Margtitle: "科室介绍",
|
1858
|
|
- Margimage: "https://images.shengws.com/2113_o_1569824421007.png",
|
1859
|
|
- UserOrgId: userOrgID,
|
1860
|
|
- Status: 1,
|
1861
|
|
- Ctime: time.Now().Unix(),
|
1862
|
|
- Modeid: sgjpatietnmodelfour.ID,
|
1863
|
|
- }
|
1864
|
|
-
|
1865
|
|
- err = site_service.AddEditMargin(&sgjPatientEditmargin)
|
1866
|
|
- fmt.Println(err)
|
1867
|
|
-
|
1868
|
|
- patienteditmarginfour := models.SgjPatientEditmargin{
|
1869
|
|
- Margtitle: "医院活动",
|
1870
|
|
- Margimage: "https://images.shengws.com/2131_o_1569824498886.png",
|
1871
|
|
- UserOrgId: userOrgID,
|
1872
|
|
- Status: 1,
|
1873
|
|
- Ctime: time.Now().Unix(),
|
1874
|
|
- Modeid: sgjpatietnmodelfour.ID,
|
1875
|
|
- }
|
1876
|
|
-
|
1877
|
|
- err = site_service.AddEditMargin(&patienteditmarginfour)
|
1878
|
|
- fmt.Println(err)
|
1879
|
|
-
|
1880
|
|
- patienteditmarginfive := models.SgjPatientEditmargin{
|
1881
|
|
- Margtitle: "医院环境",
|
1882
|
|
- Margimage: "https://images.shengws.com/2131_o_1569824498886.png",
|
1883
|
|
- UserOrgId: userOrgID,
|
1884
|
|
- Status: 1,
|
1885
|
|
- Ctime: time.Now().Unix(),
|
1886
|
|
- Modeid: sgjpatietnmodelfour.ID,
|
1887
|
|
- }
|
1888
|
|
-
|
1889
|
|
- err = site_service.AddEditMargin(&patienteditmarginfive)
|
1890
|
|
- fmt.Println(err)
|
1891
|
|
-
|
1892
|
|
- patienteditmarginsix := models.SgjPatientEditmargin{
|
1893
|
|
- Margtitle: "咨询服务",
|
1894
|
|
- Margimage: "https://images.shengws.com/2111_o_1569824596227.png",
|
1895
|
|
- UserOrgId: userOrgID,
|
1896
|
|
- Status: 1,
|
1897
|
|
- Ctime: time.Now().Unix(),
|
1898
|
|
- Modeid: sgjpatietnmodelfour.ID,
|
1899
|
|
- }
|
1900
|
|
- err = site_service.AddEditMargin(&patienteditmarginsix)
|
1901
|
|
- fmt.Println(err)
|
1902
|
|
-
|
1903
|
|
- patienteditmarginserven := models.SgjPatientEditmargin{
|
1904
|
|
- Margtitle: "加入会员",
|
1905
|
|
- Margimage: "https://images.shengws.com/2126_o_1569824611892.png",
|
1906
|
|
- UserOrgId: userOrgID,
|
1907
|
|
- Status: 1,
|
1908
|
|
- Ctime: time.Now().Unix(),
|
1909
|
|
- Modeid: sgjpatietnmodelfour.ID,
|
1910
|
|
- }
|
1911
|
|
-
|
1912
|
|
- err = site_service.AddEditMargin(&patienteditmarginserven)
|
1913
|
|
- fmt.Println(err)
|
1914
|
|
-
|
1915
|
|
- patienteditmargineghit := models.SgjPatientEditmargin{
|
1916
|
|
- Margtitle: "联系我们",
|
1917
|
|
- Margimage: "https://images.shengws.com/2141_o_1569824626531.png",
|
1918
|
|
- UserOrgId: userOrgID,
|
1919
|
|
- Status: 1,
|
1920
|
|
- Ctime: time.Now().Unix(),
|
1921
|
|
- Modeid: sgjpatietnmodelfour.ID,
|
1922
|
|
- }
|
1923
|
|
- err = site_service.AddEditMargin(&patienteditmargineghit)
|
1924
|
|
- fmt.Println(err)
|
1925
|
|
-
|
1926
|
|
- patientModelTwo := models.SgjPatientModel{
|
1927
|
|
- Title: "医院介绍",
|
1928
|
|
- Sort: 3,
|
1929
|
|
- UserOrgId: userOrgID,
|
1930
|
|
- Ctime: time.Now().Unix(),
|
1931
|
|
- Status: 1,
|
1932
|
|
- ModeType: 2,
|
1933
|
|
- }
|
1934
|
|
- two := site_service.AddPatientModelTwo(&patientModelTwo)
|
1935
|
|
- fmt.Println(two)
|
1936
|
|
- sgjPatientModelTwo, err := site_service.GetQueryModelByLastData(userOrgID)
|
1937
|
|
- hospital := models.SgjPatientHospital{
|
1938
|
|
- Title: "医院介绍",
|
1939
|
|
- Sort: 3,
|
1940
|
|
- Introduction: "暂无数据",
|
1941
|
|
- UserOrgId: userOrgID,
|
1942
|
|
- Modleid: sgjPatientModelTwo.ID,
|
1943
|
|
- Status: 1,
|
1944
|
|
- Ctime: time.Now().Unix(),
|
1945
|
|
- }
|
1946
|
|
- addHospital := site_service.AddHospital(&hospital)
|
1947
|
|
- fmt.Println(addHospital)
|
1948
|
|
-
|
1949
|
|
- Sgjpatientmodelthree := models.SgjPatientModel{
|
1950
|
|
- Title: "科室介绍",
|
1951
|
|
- Sort: 4,
|
1952
|
|
- UserOrgId: userOrgID,
|
1953
|
|
- Ctime: time.Now().Unix(),
|
1954
|
|
- Status: 1,
|
1955
|
|
- ModeType: 3,
|
1956
|
|
-
|
1957
|
|
- }
|
1958
|
|
-
|
1959
|
|
- modelTwo := site_service.AddPatientModelTwo(&Sgjpatientmodelthree)
|
1960
|
|
- fmt.Println(modelTwo)
|
1961
|
|
- datathree, err := site_service.GetQueryModelByLastData(userOrgID)
|
1962
|
|
- offices := models.SgjPatientOffices{
|
1963
|
|
- Title: "科室介绍",
|
1964
|
|
- Sort: 4,
|
1965
|
|
- UserOrgId: userOrgID,
|
1966
|
|
- Ctime: time.Now().Unix(),
|
1967
|
|
- Status: 1,
|
1968
|
|
- Modleid: datathree.ID,
|
1969
|
|
- Introduction:"暂无数据",
|
1970
|
|
- }
|
1971
|
|
- err = site_service.AddPatientOffices(&offices)
|
1972
|
|
- fmt.Println(err)
|
1973
|
|
-
|
1974
|
|
- patientModelFive := models.SgjPatientModel{
|
1975
|
|
- Title: "医护团队",
|
1976
|
|
- Sort: 5,
|
1977
|
|
- UserOrgId: userOrgID,
|
1978
|
|
- Ctime: time.Now().Unix(),
|
1979
|
|
- Status: 1,
|
1980
|
|
- ModeType: 4,
|
1981
|
|
- }
|
1982
|
|
- err = site_service.AddPatientModelTwo(&patientModelFive)
|
1983
|
|
- fmt.Println("err",err)
|
1984
|
|
- data, err := site_service.GetQueryModelByLastData(userOrgID)
|
1985
|
|
- fmt.Println(err)
|
1986
|
|
- editdoctor := models.SgjPatientEditdoctor{
|
1987
|
|
- Dochead: "https://images.shengws.com/2062_o_1570608303729.png",
|
1988
|
|
- DocSort: 1,
|
1989
|
|
- Docintroduction: "暂时无数据",
|
1990
|
|
- UserOrgId: userOrgID,
|
1991
|
|
- Modleid: data.ID,
|
1992
|
|
- Status:1,
|
1993
|
|
- Ctime:time.Now().Unix(),
|
1994
|
|
- DocPostion:1,
|
1995
|
|
- }
|
1996
|
|
- doctor := site_service.AddEditDoctor(&editdoctor)
|
1997
|
|
- fmt.Println("doctor",doctor)
|
1998
|
|
-
|
1999
|
|
- modelserven := models.SgjPatientModel{
|
2000
|
|
- Title: "医院环境",
|
2001
|
|
- Sort: 6,
|
2002
|
|
- UserOrgId: userOrgID,
|
2003
|
|
- Ctime: time.Now().Unix(),
|
2004
|
|
- Status: 1,
|
2005
|
|
- ModeType: 5,
|
2006
|
|
- }
|
2007
|
|
- err = site_service.AddPatientModelTwo(&modelserven)
|
2008
|
|
- lastData, err := site_service.GetQueryModelByLastData(userOrgID)
|
2009
|
|
- enviroimages := models.SgjPatientEnviroimages{
|
2010
|
|
- Enviroimages: "https://images.shengws.com/2074_o_1570608492452.png",
|
2011
|
|
- Sort: 1,
|
2012
|
|
- UserOrgId: userOrgID,
|
2013
|
|
- Status: 1,
|
2014
|
|
- Modeid: lastData.ID,
|
2015
|
|
- Ctime: time.Now().Unix(),
|
|
1833
|
+ fmt.Println("editpiclink",editpiclink)
|
|
1834
|
+ if err !=nil{
|
|
1835
|
+ this.ServeFailJsonSend(enums.ErrorCodeDataException, "删除回复成功")
|
|
1836
|
+ return
|
2016
|
1837
|
}
|
2017
|
|
- err = site_service.AddImages(&enviroimages)
|
2018
|
|
- fmt.Println("err",err)
|
2019
|
|
-
|
2020
|
|
- //modeleight := models.SgjPatientModel{
|
2021
|
|
- // Title: "文章列表",
|
2022
|
|
- // Sort: 7,
|
2023
|
|
- // UserOrgId: userOrgID,
|
2024
|
|
- // Ctime: time.Now().Unix(),
|
2025
|
|
- // Status: 1,
|
2026
|
|
- // ModeType: 6,
|
2027
|
|
- //}
|
2028
|
|
- //err = site_service.AddPatientModelTwo(&modeleight)
|
2029
|
|
- //fmt.Println("文章列表错误u",err)
|
2030
|
|
- //articles := models.Articles{
|
2031
|
|
- // Title: "暂无数据",
|
2032
|
|
- // Imgs: "https://images.shengws.com/2139_o_1566989829686.jpg",
|
2033
|
|
- // RealReadNum: 0,
|
2034
|
|
- // CommentNum: 0,
|
2035
|
|
- // StarNum: 0,
|
2036
|
|
- // UserOrgId:userOrgID,
|
2037
|
|
- // Ctime: time.Now().Unix(),
|
2038
|
|
- // Status:1,
|
2039
|
|
- // ArticleStatus:1,
|
2040
|
|
- //}
|
2041
|
|
- //err = site_service.AddActicles(&articles)
|
2042
|
|
- //fmt.Println("文章错误err",err)
|
2043
|
|
- //if err !=nil{
|
2044
|
|
- // this.ServeFailJsonSend(enums.ErrorCodeDataException, "删除回复成功")
|
2045
|
|
- // return
|
2046
|
|
- //}
|
2047
|
|
- //this.ServeSuccessJSON(map[string]interface{}{
|
2048
|
|
- // "articles":articles,
|
2049
|
|
- //})
|
|
1838
|
+ this.ServeSuccessJSON(map[string]interface{}{
|
|
1839
|
+ "patientModels":model,
|
|
1840
|
+ })
|
2050
|
1841
|
}
|
2051
|
|
-
|
2052
|
|
- fmt.Println("错误是设么",err)
|
|
1842
|
+ if (len(model) == 0){
|
|
1843
|
+ patientModel := models.SgjPatientModel{
|
|
1844
|
+ Title: "轮播图",
|
|
1845
|
+ Sort: 1,
|
|
1846
|
+ UserOrgId: userOrgID,
|
|
1847
|
+ Ctime: time.Now().Unix(),
|
|
1848
|
+ Status: 1,
|
|
1849
|
+ ModeType: 1,
|
|
1850
|
+ }
|
|
1851
|
+ addPatientModel := site_service.AddPatientModelTwo(&patientModel)
|
|
1852
|
+ fmt.Println("第一个模块id",addPatientModel)
|
|
1853
|
+ sgjPatientModel, err := site_service.GetQueryModelByLastData(userOrgID)
|
|
1854
|
+ fmt.Println("查询模块错误是设么",err)
|
|
1855
|
+ editpiclink := models.SgjPatientEditpiclink{
|
|
1856
|
+ Images: "https://images.shengws.com/2124_o_1570607834870.png",
|
|
1857
|
+ Sort: 1,
|
|
1858
|
+ UserOrgId: userOrgID,
|
|
1859
|
+ Status: 1,
|
|
1860
|
+ Ctime: time.Now().Unix(),
|
|
1861
|
+ Modeid:sgjPatientModel.ID,
|
|
1862
|
+ }
|
|
1863
|
+ err = site_service.AddPatientEdit(&editpiclink)
|
|
1864
|
+ fmt.Println("err",err)
|
|
1865
|
+
|
|
1866
|
+ patientmodefour := models.SgjPatientModel{
|
|
1867
|
+ Title: "魔方导航",
|
|
1868
|
+ Sort: 2,
|
|
1869
|
+ UserOrgId: userOrgID,
|
|
1870
|
+ Ctime: time.Now().Unix(),
|
|
1871
|
+ Status: 1,
|
|
1872
|
+ ModeType: 8,
|
|
1873
|
+ }
|
|
1874
|
+ addPatientModelTwo := site_service.AddPatientModelTwo(&patientmodefour)
|
|
1875
|
+ fmt.Println(addPatientModelTwo)
|
|
1876
|
+ sgjpatietnmodelfour, err := site_service.GetQueryModelByLastData(userOrgID)
|
|
1877
|
+ fmt.Println("第二个模块id",sgjpatietnmodelfour)
|
|
1878
|
+ fmt.Println(err)
|
|
1879
|
+ editmargin := models.SgjPatientEditmargin{
|
|
1880
|
+ Margtitle: "医院介绍",
|
|
1881
|
+ Margimage: "https://images.shengws.com/2109_o_1569824063320.png",
|
|
1882
|
+ UserOrgId: userOrgID,
|
|
1883
|
+ Status: 1,
|
|
1884
|
+ Ctime: time.Now().Unix(),
|
|
1885
|
+ Modeid: sgjpatietnmodelfour.ID,
|
|
1886
|
+ }
|
|
1887
|
+ margin := site_service.AddEditMargin(&editmargin)
|
|
1888
|
+ fmt.Println(margin)
|
|
1889
|
+
|
|
1890
|
+ patientEditmargin := models.SgjPatientEditmargin{
|
|
1891
|
+ Margtitle: "医护团队",
|
|
1892
|
+ Margimage: "https://images.shengws.com/2121_o_1569824193950.png",
|
|
1893
|
+ UserOrgId: userOrgID,
|
|
1894
|
+ Status: 1,
|
|
1895
|
+ Ctime: time.Now().Unix(),
|
|
1896
|
+ Modeid: sgjpatietnmodelfour.ID,
|
|
1897
|
+ }
|
|
1898
|
+ err = site_service.AddEditMargin(&patientEditmargin)
|
|
1899
|
+ fmt.Println(err)
|
|
1900
|
+
|
|
1901
|
+ sgjPatientEditmargin := models.SgjPatientEditmargin{
|
|
1902
|
+ Margtitle: "科室介绍",
|
|
1903
|
+ Margimage: "https://images.shengws.com/2113_o_1569824421007.png",
|
|
1904
|
+ UserOrgId: userOrgID,
|
|
1905
|
+ Status: 1,
|
|
1906
|
+ Ctime: time.Now().Unix(),
|
|
1907
|
+ Modeid: sgjpatietnmodelfour.ID,
|
|
1908
|
+ }
|
|
1909
|
+
|
|
1910
|
+ err = site_service.AddEditMargin(&sgjPatientEditmargin)
|
|
1911
|
+ fmt.Println(err)
|
|
1912
|
+
|
|
1913
|
+ patienteditmarginfour := models.SgjPatientEditmargin{
|
|
1914
|
+ Margtitle: "医院活动",
|
|
1915
|
+ Margimage: "https://images.shengws.com/2131_o_1569824498886.png",
|
|
1916
|
+ UserOrgId: userOrgID,
|
|
1917
|
+ Status: 1,
|
|
1918
|
+ Ctime: time.Now().Unix(),
|
|
1919
|
+ Modeid: sgjpatietnmodelfour.ID,
|
|
1920
|
+ }
|
|
1921
|
+
|
|
1922
|
+ err = site_service.AddEditMargin(&patienteditmarginfour)
|
|
1923
|
+ fmt.Println(err)
|
|
1924
|
+
|
|
1925
|
+ patienteditmarginfive := models.SgjPatientEditmargin{
|
|
1926
|
+ Margtitle: "医院环境",
|
|
1927
|
+ Margimage: "https://images.shengws.com/2131_o_1569824498886.png",
|
|
1928
|
+ UserOrgId: userOrgID,
|
|
1929
|
+ Status: 1,
|
|
1930
|
+ Ctime: time.Now().Unix(),
|
|
1931
|
+ Modeid: sgjpatietnmodelfour.ID,
|
|
1932
|
+ }
|
|
1933
|
+
|
|
1934
|
+ err = site_service.AddEditMargin(&patienteditmarginfive)
|
|
1935
|
+ fmt.Println(err)
|
|
1936
|
+
|
|
1937
|
+ patienteditmarginsix := models.SgjPatientEditmargin{
|
|
1938
|
+ Margtitle: "咨询服务",
|
|
1939
|
+ Margimage: "https://images.shengws.com/2111_o_1569824596227.png",
|
|
1940
|
+ UserOrgId: userOrgID,
|
|
1941
|
+ Status: 1,
|
|
1942
|
+ Ctime: time.Now().Unix(),
|
|
1943
|
+ Modeid: sgjpatietnmodelfour.ID,
|
|
1944
|
+ }
|
|
1945
|
+ err = site_service.AddEditMargin(&patienteditmarginsix)
|
|
1946
|
+ fmt.Println(err)
|
|
1947
|
+
|
|
1948
|
+ patienteditmarginserven := models.SgjPatientEditmargin{
|
|
1949
|
+ Margtitle: "加入会员",
|
|
1950
|
+ Margimage: "https://images.shengws.com/2126_o_1569824611892.png",
|
|
1951
|
+ UserOrgId: userOrgID,
|
|
1952
|
+ Status: 1,
|
|
1953
|
+ Ctime: time.Now().Unix(),
|
|
1954
|
+ Modeid: sgjpatietnmodelfour.ID,
|
|
1955
|
+ }
|
|
1956
|
+
|
|
1957
|
+ err = site_service.AddEditMargin(&patienteditmarginserven)
|
|
1958
|
+ fmt.Println(err)
|
|
1959
|
+
|
|
1960
|
+ patienteditmargineghit := models.SgjPatientEditmargin{
|
|
1961
|
+ Margtitle: "联系我们",
|
|
1962
|
+ Margimage: "https://images.shengws.com/2141_o_1569824626531.png",
|
|
1963
|
+ UserOrgId: userOrgID,
|
|
1964
|
+ Status: 1,
|
|
1965
|
+ Ctime: time.Now().Unix(),
|
|
1966
|
+ Modeid: sgjpatietnmodelfour.ID,
|
|
1967
|
+ }
|
|
1968
|
+ err = site_service.AddEditMargin(&patienteditmargineghit)
|
|
1969
|
+ fmt.Println(err)
|
|
1970
|
+
|
|
1971
|
+ patientModelTwo := models.SgjPatientModel{
|
|
1972
|
+ Title: "医院介绍",
|
|
1973
|
+ Sort: 3,
|
|
1974
|
+ UserOrgId: userOrgID,
|
|
1975
|
+ Ctime: time.Now().Unix(),
|
|
1976
|
+ Status: 1,
|
|
1977
|
+ ModeType: 2,
|
|
1978
|
+ }
|
|
1979
|
+ two := site_service.AddPatientModelTwo(&patientModelTwo)
|
|
1980
|
+ fmt.Println(two)
|
|
1981
|
+ sgjPatientModelTwo, err := site_service.GetQueryModelByLastData(userOrgID)
|
|
1982
|
+ hospital := models.SgjPatientHospital{
|
|
1983
|
+ Title: "医院介绍",
|
|
1984
|
+ Sort: 3,
|
|
1985
|
+ Introduction: "暂无数据",
|
|
1986
|
+ UserOrgId: userOrgID,
|
|
1987
|
+ Modleid: sgjPatientModelTwo.ID,
|
|
1988
|
+ Status: 1,
|
|
1989
|
+ Ctime: time.Now().Unix(),
|
|
1990
|
+ }
|
|
1991
|
+ addHospital := site_service.AddHospital(&hospital)
|
|
1992
|
+ fmt.Println(addHospital)
|
|
1993
|
+
|
|
1994
|
+ Sgjpatientmodelthree := models.SgjPatientModel{
|
|
1995
|
+ Title: "科室介绍",
|
|
1996
|
+ Sort: 4,
|
|
1997
|
+ UserOrgId: userOrgID,
|
|
1998
|
+ Ctime: time.Now().Unix(),
|
|
1999
|
+ Status: 1,
|
|
2000
|
+ ModeType: 3,
|
|
2001
|
+
|
|
2002
|
+ }
|
|
2003
|
+
|
|
2004
|
+ modelTwo := site_service.AddPatientModelTwo(&Sgjpatientmodelthree)
|
|
2005
|
+ fmt.Println(modelTwo)
|
|
2006
|
+ datathree, err := site_service.GetQueryModelByLastData(userOrgID)
|
|
2007
|
+ offices := models.SgjPatientOffices{
|
|
2008
|
+ Title: "科室介绍",
|
|
2009
|
+ Sort: 4,
|
|
2010
|
+ UserOrgId: userOrgID,
|
|
2011
|
+ Ctime: time.Now().Unix(),
|
|
2012
|
+ Status: 1,
|
|
2013
|
+ Modleid: datathree.ID,
|
|
2014
|
+ Introduction:"暂无数据",
|
|
2015
|
+ }
|
|
2016
|
+ err = site_service.AddPatientOffices(&offices)
|
|
2017
|
+ fmt.Println(err)
|
|
2018
|
+
|
|
2019
|
+ patientModelFive := models.SgjPatientModel{
|
|
2020
|
+ Title: "医护团队",
|
|
2021
|
+ Sort: 5,
|
|
2022
|
+ UserOrgId: userOrgID,
|
|
2023
|
+ Ctime: time.Now().Unix(),
|
|
2024
|
+ Status: 1,
|
|
2025
|
+ ModeType: 4,
|
|
2026
|
+ }
|
|
2027
|
+ err = site_service.AddPatientModelTwo(&patientModelFive)
|
|
2028
|
+ fmt.Println("err",err)
|
|
2029
|
+ data, err := site_service.GetQueryModelByLastData(userOrgID)
|
|
2030
|
+ fmt.Println(err)
|
|
2031
|
+ editdoctor := models.SgjPatientEditdoctor{
|
|
2032
|
+ Dochead: "https://images.shengws.com/2062_o_1570608303729.png",
|
|
2033
|
+ DocSort: 1,
|
|
2034
|
+ Docintroduction: "暂时无数据",
|
|
2035
|
+ UserOrgId: userOrgID,
|
|
2036
|
+ Modleid: data.ID,
|
|
2037
|
+ Status:1,
|
|
2038
|
+ Ctime:time.Now().Unix(),
|
|
2039
|
+ DocPostion:1,
|
|
2040
|
+ }
|
|
2041
|
+ doctor := site_service.AddEditDoctor(&editdoctor)
|
|
2042
|
+ fmt.Println("doctor",doctor)
|
|
2043
|
+
|
|
2044
|
+ modelserven := models.SgjPatientModel{
|
|
2045
|
+ Title: "医院环境",
|
|
2046
|
+ Sort: 6,
|
|
2047
|
+ UserOrgId: userOrgID,
|
|
2048
|
+ Ctime: time.Now().Unix(),
|
|
2049
|
+ Status: 1,
|
|
2050
|
+ ModeType: 5,
|
|
2051
|
+ }
|
|
2052
|
+ err = site_service.AddPatientModelTwo(&modelserven)
|
|
2053
|
+ lastData, err := site_service.GetQueryModelByLastData(userOrgID)
|
|
2054
|
+ enviroimages := models.SgjPatientEnviroimages{
|
|
2055
|
+ Enviroimages: "https://images.shengws.com/2074_o_1570608492452.png",
|
|
2056
|
+ Sort: 1,
|
|
2057
|
+ UserOrgId: userOrgID,
|
|
2058
|
+ Status: 1,
|
|
2059
|
+ Modeid: lastData.ID,
|
|
2060
|
+ Ctime: time.Now().Unix(),
|
|
2061
|
+ }
|
|
2062
|
+ err = site_service.AddImages(&enviroimages)
|
|
2063
|
+ fmt.Println("err",err)
|
|
2064
|
+ }
|
|
2065
|
+ fmt.Println(model,err)
|
2053
|
2066
|
if err !=nil{
|
2054
|
2067
|
this.ServeFailJsonSend(enums.ErrorCodeDataException, "删除回复成功")
|
2055
|
2068
|
return
|
|
@@ -2058,6 +2071,8 @@ func (this *Microwebsite) GetData() {
|
2058
|
2071
|
"patientModels":model,
|
2059
|
2072
|
|
2060
|
2073
|
})
|
|
2074
|
+
|
|
2075
|
+
|
2061
|
2076
|
}
|
2062
|
2077
|
|
2063
|
2078
|
func (this *Microwebsite) EditDoctor() {
|
|
@@ -2509,8 +2524,6 @@ func (this *Microwebsite) AddNavigation() {
|
2509
|
2524
|
adminUserInfo := this.GetAdminUserInfo()
|
2510
|
2525
|
userOrgID := int64(adminUserInfo.CurrentOrgId)
|
2511
|
2526
|
fmt.Println("机构ID",userOrgID)
|
2512
|
|
- linkid, _ := this.GetInt64("id")
|
2513
|
|
- fmt.Println("linkid",linkid)
|
2514
|
2527
|
dataBody := make(map[string]interface{}, 0)
|
2515
|
2528
|
err := json.Unmarshal(this.Ctx.Input.RequestBody, &dataBody)
|
2516
|
2529
|
if err != nil {
|
|
@@ -2533,6 +2546,7 @@ func (this *Microwebsite) AddNavigation() {
|
2533
|
2546
|
return
|
2534
|
2547
|
}
|
2535
|
2548
|
fmt.Println("导航图片",navigationImages)
|
|
2549
|
+ nonavigationimages := dataBody["nonavigationImages"].(string)
|
2536
|
2550
|
jumpset := int64(dataBody["jumpset"].(float64))
|
2537
|
2551
|
if jumpset <= 0 {
|
2538
|
2552
|
this.ServeFailJsonSend(enums.ErrorCodeParamWrong, "跳转设置不能为空")
|
|
@@ -2541,9 +2555,12 @@ func (this *Microwebsite) AddNavigation() {
|
2541
|
2555
|
fmt.Println("调转设置",jumpset)
|
2542
|
2556
|
navigationaddress := dataBody["navigationaddress"].(string)
|
2543
|
2557
|
fmt.Println("链接地址",navigationaddress)
|
|
2558
|
+ linkid := int64(dataBody["linkid"].(float64))
|
|
2559
|
+ fmt.Println("linkID",linkid)
|
2544
|
2560
|
navigation := models.SgjPatientNavigation{
|
2545
|
2561
|
Navtitle: navtitle,
|
2546
|
2562
|
Navimages: navigationImages,
|
|
2563
|
+ Nonavimages:nonavigationimages,
|
2547
|
2564
|
Jumpset: jumpset,
|
2548
|
2565
|
Navaddress: navigationaddress,
|
2549
|
2566
|
UserOrgId:userOrgID,
|
|
@@ -2727,7 +2744,8 @@ func (this *Microwebsite) AddRotationpic() {
|
2727
|
2744
|
fmt.Println("图片链接",piclink)
|
2728
|
2745
|
linkaddress := dataBody["linkaddress"].(string)
|
2729
|
2746
|
fmt.Println("链接地址",linkaddress)
|
2730
|
|
-
|
|
2747
|
+ linkid := int64(dataBody["linkid"].(float64))
|
|
2748
|
+ fmt.Println("linkid是什么",linkid)
|
2731
|
2749
|
conrotation := models.SgjPatientConrotation{
|
2732
|
2750
|
Images: images,
|
2733
|
2751
|
Sort: sort,
|
|
@@ -2738,6 +2756,7 @@ func (this *Microwebsite) AddRotationpic() {
|
2738
|
2756
|
UserOrgId: userOrgID,
|
2739
|
2757
|
Modeid:0,
|
2740
|
2758
|
ImgShow:1,
|
|
2759
|
+ Linkid:linkid,
|
2741
|
2760
|
}
|
2742
|
2761
|
|
2743
|
2762
|
err = site_service.AddRotationpic(conrotation)
|
|
@@ -2746,11 +2765,10 @@ func (this *Microwebsite) AddRotationpic() {
|
2746
|
2765
|
fmt.Println("err是什么",err)
|
2747
|
2766
|
conrotations, total, err := site_service.GetTotalCount(userOrgID)
|
2748
|
2767
|
fmt.Println("conrotations",conrotations)
|
2749
|
|
- conlinkaddress := models.SgjPatientConlinkaddress{
|
2750
|
|
- ConId:patientConrotation.ID,
|
2751
|
|
- }
|
2752
|
|
- err = site_service.UpdateConLinkAddress(userOrgID, 0, conlinkaddress)
|
2753
|
|
- fmt.Println("错误是小夏",err)
|
|
2768
|
+ //conlinkaddress := models.SgjPatientConlinkaddress{
|
|
2769
|
+ // ConId:patientConrotation.ID,
|
|
2770
|
+ //}
|
|
2771
|
+ //err = site_service.UpdateConLinkAddress(userOrgID, 0, conlinkaddress)
|
2754
|
2772
|
if err !=nil{
|
2755
|
2773
|
this.ServeFailJsonSend(enums.ErrorCodeDataException, "删除回复成功")
|
2756
|
2774
|
return
|
|
@@ -3226,12 +3244,12 @@ func (this *Microwebsite) SaveNavigation() {
|
3226
|
3244
|
return
|
3227
|
3245
|
}
|
3228
|
3246
|
|
3229
|
|
- //noCheckImages := dataBody["noCheckImages"].(string)
|
3230
|
|
- //fmt.Println("导航图标选中",navimages)
|
3231
|
|
- //if len(navimages) == 0 {
|
3232
|
|
- // this.ServeFailJsonSend(enums.ErrorCodeParamWrong, "图片编辑不能为空")
|
3233
|
|
- // return
|
3234
|
|
- //}
|
|
3247
|
+ noCheckImages := dataBody["nonavimages"].(string)
|
|
3248
|
+ fmt.Println("导航图标未选中",noCheckImages)
|
|
3249
|
+ if len(navimages) == 0 {
|
|
3250
|
+ this.ServeFailJsonSend(enums.ErrorCodeParamWrong, "图片编辑不能为空")
|
|
3251
|
+ return
|
|
3252
|
+ }
|
3235
|
3253
|
jumpset := int64(dataBody["jumpset"].(float64))
|
3236
|
3254
|
fmt.Println("跳转设置",jumpset)
|
3237
|
3255
|
if jumpset <= 0 {
|
|
@@ -3243,6 +3261,7 @@ func (this *Microwebsite) SaveNavigation() {
|
3243
|
3261
|
navigation := models.SgjPatientNavigation{
|
3244
|
3262
|
Navtitle: navtitle,
|
3245
|
3263
|
Navimages: navimages,
|
|
3264
|
+ Nonavimages:noCheckImages,
|
3246
|
3265
|
Jumpset: jumpset,
|
3247
|
3266
|
Navaddress: navaddress,
|
3248
|
3267
|
}
|
|
@@ -4621,43 +4640,22 @@ func (this *Microwebsite) AddPicLinkAddress() {
|
4621
|
4640
|
this.ServeFailJsonSend(enums.ErrorCodeParamWrong, "参数错误")
|
4622
|
4641
|
return
|
4623
|
4642
|
}
|
4624
|
|
- linkType := int64(dataBody["linkType"].(float64))
|
4625
|
|
- fmt.Println("链接类型",linkType)
|
4626
|
|
- linkTypeTwo := int64(dataBody["linkTypeTwo"].(float64))
|
4627
|
|
- fmt.Println("链接类型二",linkTypeTwo)
|
4628
|
|
- linkTypeThree := int64(dataBody["linkTypeThree"].(float64))
|
4629
|
|
- fmt.Println("链接类型三",linkTypeThree)
|
4630
|
|
- linkTypeFour := int64(dataBody["linkTypeFour"].(float64))
|
4631
|
|
- fmt.Println("链接类型四",linkTypeFour)
|
4632
|
|
- linkAddress := dataBody["linkAddress"].(string)
|
4633
|
|
- fmt.Println("链接地址",linkAddress)
|
4634
|
|
- defineAddress := dataBody["defineAddress"].(string)
|
4635
|
|
- fmt.Println("自定义地址",defineAddress)
|
4636
|
|
- if(defineAddress != ""){
|
4637
|
|
- linkAddress = defineAddress
|
4638
|
|
- }
|
|
4643
|
+ defineaddress := dataBody["defineaddress"].(string)
|
|
4644
|
+ fmt.Println("defineaddress",defineaddress)
|
4639
|
4645
|
conlinkaddress := models.SgjPatientConlinkaddress{
|
|
4646
|
+ Defineaddress: defineaddress,
|
4640
|
4647
|
UserOrgId: userOrgID,
|
4641
|
|
- Linktype: linkType,
|
4642
|
|
- Linktypetwo: linkTypeTwo,
|
4643
|
|
- Linktypethree: linkTypeThree,
|
4644
|
|
- Linktypefour: linkTypeFour,
|
4645
|
|
- Linkaddress: linkAddress,
|
4646
|
|
- Defineaddress: defineAddress,
|
4647
|
|
- Ctime: time.Now().Unix(),
|
4648
|
4648
|
Status: 1,
|
4649
|
|
- ConId:0,
|
|
4649
|
+ Ctime: time.Now().Unix(),
|
4650
|
4650
|
}
|
4651
|
|
- err = site_service.AddPicLinkAddress(&conlinkaddress)
|
4652
|
|
- patientConlinkaddress, err := site_service.GetConLinkAddressById(userOrgID)
|
4653
|
|
- fmt.Println("数据",patientConlinkaddress)
|
|
4651
|
+ err = site_service.AddConlinkaddress(&conlinkaddress)
|
4654
|
4652
|
fmt.Println("错误",err)
|
4655
|
4653
|
if err !=nil{
|
4656
|
4654
|
this.ServeFailJsonSend(enums.ErrorCodeDataException, "更改数据失败")
|
4657
|
4655
|
return
|
4658
|
4656
|
}
|
4659
|
4657
|
this.ServeSuccessJSON(map[string]interface{}{
|
4660
|
|
- "patientConlinkaddress":patientConlinkaddress,
|
|
4658
|
+ "conlinkaddress":conlinkaddress,
|
4661
|
4659
|
})
|
4662
|
4660
|
}
|
4663
|
4661
|
|
|
@@ -4690,38 +4688,7 @@ func (this *Microwebsite) UpdatePicFformThree() {
|
4690
|
4688
|
this.ServeFailJsonSend(enums.ErrorCodeParamWrong, "参数错误")
|
4691
|
4689
|
return
|
4692
|
4690
|
}
|
4693
|
|
- linkType := int64(dataBody["linktype"].(float64))
|
4694
|
|
- fmt.Println("链接1",linkType)
|
4695
|
|
- linkTypeTwo := int64(dataBody["linktypetwo"].(float64))
|
4696
|
|
- fmt.Println("链接2",linkTypeTwo)
|
4697
|
|
- linkTypeThree := int64(dataBody["linktypethree"].(float64))
|
4698
|
|
- fmt.Println("链接3",linkTypeThree)
|
4699
|
|
- linkTypeFour := int64(dataBody["linktypefour"].(float64))
|
4700
|
|
- fmt.Println("链接4",linkTypeFour)
|
4701
|
|
- linkAddress := dataBody["linkAddress"].(string)
|
4702
|
|
- fmt.Println("链接5",linkAddress)
|
4703
|
|
- defineAddress := dataBody["defineaddress"].(string)
|
4704
|
|
- fmt.Println("自定义地址",defineAddress)
|
4705
|
|
- if(defineAddress != ""){
|
4706
|
|
- linkAddress = defineAddress
|
4707
|
|
- }
|
4708
|
|
- conlinkaddress := models.SgjPatientConlinkaddress{
|
4709
|
|
- Linktype: linkType,
|
4710
|
|
- Linktypetwo: linkTypeTwo,
|
4711
|
|
- Linktypethree: linkTypeThree,
|
4712
|
|
- Linktypefour: linkTypeFour,
|
4713
|
|
- Linkaddress: linkAddress,
|
4714
|
|
- Defineaddress: defineAddress,
|
4715
|
|
- }
|
4716
|
|
- err = site_service.UpdatePicFformThree(userOrgID, id, conlinkaddress)
|
4717
|
|
- fmt.Println("错误实时设么",err)
|
4718
|
|
- if err !=nil{
|
4719
|
|
- this.ServeFailJsonSend(enums.ErrorCodeDataException, "更改数据失败")
|
4720
|
|
- return
|
4721
|
|
- }
|
4722
|
|
- this.ServeSuccessJSON(map[string]interface{}{
|
4723
|
|
- "conlinkaddress":conlinkaddress,
|
4724
|
|
- })
|
|
4691
|
+
|
4725
|
4692
|
}
|
4726
|
4693
|
|
4727
|
4694
|
func (this *Microwebsite) GetEnImagesTwo() {
|
|
@@ -5181,49 +5148,41 @@ func (this*Microwebsite) AddNavigationLinkform() {
|
5181
|
5148
|
return
|
5182
|
5149
|
}
|
5183
|
5150
|
linktype := int64(dataBody["linktype"].(float64))
|
5184
|
|
- fmt.Println("链接类型",linktype)
|
5185
|
|
- linktypetwo := int64(dataBody["linktypetwo"].(float64))
|
5186
|
|
- fmt.Println("链接类型2",linktypetwo)
|
5187
|
|
- articetype := int64(dataBody["articetype"].(float64))
|
5188
|
|
- fmt.Println("文章分类",articetype)
|
5189
|
|
- title := int64(dataBody["title"].(float64))
|
5190
|
|
- fmt.Println("文章标题",title)
|
|
5151
|
+ fmt.Println("linktype",linktype)
|
|
5152
|
+ navitionlinktype := int64(dataBody["navitionlinktype"].(float64))
|
|
5153
|
+ fmt.Println("navitionlinktype",navitionlinktype)
|
5191
|
5154
|
phone := dataBody["phone"].(string)
|
5192
|
|
- fmt.Println("电话号码",phone)
|
5193
|
|
- outstation := dataBody["outstation"].(string)
|
5194
|
|
- fmt.Println("站外链接",outstation)
|
5195
|
|
- linkaddress := dataBody["linkaddress"].(string)
|
5196
|
|
- fmt.Println("链接地址",linkaddress)
|
5197
|
|
- if(phone != ""){
|
5198
|
|
- linkaddress = phone
|
|
5155
|
+ if(phone == "0"){
|
|
5156
|
+ phone = ""
|
5199
|
5157
|
}
|
5200
|
|
- if(outstation != ""){
|
5201
|
|
- linkaddress = outstation
|
|
5158
|
+ fmt.Println("phone",phone)
|
|
5159
|
+
|
|
5160
|
+ outstationlink := dataBody["outstationlink"].(string)
|
|
5161
|
+ if(outstationlink == "0"){
|
|
5162
|
+ outstationlink = ""
|
5202
|
5163
|
}
|
5203
|
|
- navgationlink := models.SgjPatientNavgationlink{
|
5204
|
|
- Linktype: linktype,
|
5205
|
|
- Linktypetwo: linktypetwo,
|
5206
|
|
- Articetype: articetype,
|
5207
|
|
- Title: title,
|
5208
|
|
- Phone: phone,
|
5209
|
|
- Outstation: outstation,
|
5210
|
|
- Status: 1,
|
5211
|
|
- Ctime: time.Now().Unix(),
|
5212
|
|
- UserOrgId: userOrgID,
|
|
5164
|
+ fmt.Println("outstationlink",outstationlink)
|
|
5165
|
+ linkaddress := dataBody["linkaddress"].(string)
|
|
5166
|
+ fmt.Println("linkaddress",linkaddress)
|
|
5167
|
+ navgationlink := models.PatientNavgationlink{
|
|
5168
|
+ Linktype: linktype,
|
|
5169
|
+ Navitionlinktype: navitionlinktype,
|
|
5170
|
+ Phone: phone,
|
|
5171
|
+ Outstationlink: outstationlink,
|
|
5172
|
+ Status: 1,
|
|
5173
|
+ Ctime: time.Now().Unix(),
|
5213
|
5174
|
Linkaddress:linkaddress,
|
|
5175
|
+ UserOrgId:userOrgID,
|
5214
|
5176
|
}
|
5215
|
|
- addNavgationlink := site_service.AddNavgationlink(&navgationlink)
|
5216
|
|
- patientNavgationlink, err:= site_service.GetNavgationlinkLastData(userOrgID)
|
5217
|
|
- fmt.Println("错误",err)
|
5218
|
|
- fmt.Println("patientNavgationlink",patientNavgationlink)
|
|
5177
|
+ err = site_service.AddNavitaionLinkAddress(&navgationlink)
|
5219
|
5178
|
if err !=nil{
|
5220
|
5179
|
this.ServeFailJsonSend(enums.ErrorCodeDataException, "更改数据失败")
|
5221
|
5180
|
return
|
5222
|
5181
|
}
|
5223
|
5182
|
this.ServeSuccessJSON(map[string]interface{}{
|
5224
|
|
- "addNavgationlink":addNavgationlink,
|
5225
|
|
- "patientNavgationlink":patientNavgationlink,
|
|
5183
|
+ "navgationlink":navgationlink,
|
5226
|
5184
|
})
|
|
5185
|
+
|
5227
|
5186
|
}
|
5228
|
5187
|
|
5229
|
5188
|
func (this*Microwebsite) GetNavigationlinkaddress() {
|
|
@@ -5248,8 +5207,6 @@ func (this*Microwebsite) UpdateditnavigationLink() {
|
5248
|
5207
|
adminUserInfo := this.GetAdminUserInfo()
|
5249
|
5208
|
userOrgID := adminUserInfo.CurrentOrgId
|
5250
|
5209
|
fmt.Println("机构id", userOrgID)
|
5251
|
|
- id,_ := this.GetInt64("id")
|
5252
|
|
- fmt.Println("这个id",id)
|
5253
|
5210
|
dataBody := make(map[string]interface{}, 0)
|
5254
|
5211
|
err := json.Unmarshal(this.Ctx.Input.RequestBody, &dataBody)
|
5255
|
5212
|
if err != nil {
|
|
@@ -5257,36 +5214,26 @@ func (this*Microwebsite) UpdateditnavigationLink() {
|
5257
|
5214
|
this.ServeFailJsonSend(enums.ErrorCodeParamWrong, "参数错误")
|
5258
|
5215
|
return
|
5259
|
5216
|
}
|
|
5217
|
+ id := int64(dataBody["id"].(float64))
|
|
5218
|
+ fmt.Println("id是什么",id)
|
5260
|
5219
|
linktype := int64(dataBody["linktype"].(float64))
|
5261
|
|
- fmt.Println("链接类型",linktype)
|
5262
|
|
- linktypetwo := int64(dataBody["linktypetwo"].(float64))
|
5263
|
|
- fmt.Println("链接类型二",linktypetwo)
|
5264
|
|
- articetype := int64(dataBody["articetype"].(float64))
|
5265
|
|
- fmt.Println("文章分类",articetype)
|
5266
|
|
- title := int64(dataBody["title"].(float64))
|
5267
|
|
- fmt.Println("文章标题",title)
|
|
5220
|
+ fmt.Println("linktype",linktype)
|
|
5221
|
+ navitionlinktype := int64(dataBody["navitionlinktype"].(float64))
|
|
5222
|
+ fmt.Println("navitionlinktype",navitionlinktype)
|
5268
|
5223
|
phone := dataBody["phone"].(string)
|
5269
|
|
- fmt.Println("电话号码",phone)
|
5270
|
|
- outstation := dataBody["outstation"].(string)
|
5271
|
|
- fmt.Println("站外链接",outstation)
|
|
5224
|
+ fmt.Println("phone",phone)
|
|
5225
|
+ outstationlink := dataBody["outstationlink"].(string)
|
|
5226
|
+ fmt.Println("outstationlink",outstationlink)
|
5272
|
5227
|
linkaddress := dataBody["linkaddress"].(string)
|
5273
|
|
- fmt.Println("链接地址",linkaddress)
|
5274
|
|
- if(phone!=""){
|
5275
|
|
- linkaddress = phone;
|
5276
|
|
- }
|
5277
|
|
- if(outstation != ""){
|
5278
|
|
- linkaddress = outstation;
|
5279
|
|
- }
|
5280
|
|
- navgationlink := models.SgjPatientNavgationlink{
|
5281
|
|
- Linktype: linktype,
|
5282
|
|
- Linktypetwo: linktype,
|
5283
|
|
- Articetype: articetype,
|
5284
|
|
- Title: title,
|
5285
|
|
- Phone: phone,
|
5286
|
|
- Outstation:outstation,
|
5287
|
|
- Linkaddress: linkaddress,
|
|
5228
|
+ fmt.Println("linkaddress",linkaddress)
|
|
5229
|
+ navgationlink := models.PatientNavgationlink{
|
|
5230
|
+ Linktype: linktype,
|
|
5231
|
+ Navitionlinktype: navitionlinktype,
|
|
5232
|
+ Outstationlink: outstationlink,
|
|
5233
|
+ Linkaddress: linkaddress,
|
|
5234
|
+ Phone:phone,
|
5288
|
5235
|
}
|
5289
|
|
- err = site_service.UpdateditnavigationLink(userOrgID, id, navgationlink)
|
|
5236
|
+ err = site_service.UpdateditnavigationLink(id, userOrgID, navgationlink)
|
5290
|
5237
|
if err !=nil{
|
5291
|
5238
|
this.ServeFailJsonSend(enums.ErrorCodeDataException, "更改数据失败")
|
5292
|
5239
|
return
|
|
@@ -5294,6 +5241,7 @@ func (this*Microwebsite) UpdateditnavigationLink() {
|
5294
|
5241
|
this.ServeSuccessJSON(map[string]interface{}{
|
5295
|
5242
|
"navgationlink":navgationlink,
|
5296
|
5243
|
})
|
|
5244
|
+
|
5297
|
5245
|
}
|
5298
|
5246
|
|
5299
|
5247
|
func (this*Microwebsite) AddDoctorInfoTwo() {
|
|
@@ -5363,6 +5311,7 @@ func (this *Microwebsite) GetNavigationset() {
|
5363
|
5311
|
sgjPatientNavigation := models.SgjPatientNavigation{
|
5364
|
5312
|
Navtitle: "首页",
|
5365
|
5313
|
Navimages: "https://images.shengws.com/2099_o_1570840397245.png",
|
|
5314
|
+ Nonavimages:"https://images.shengws.com/2099_o_1570840397245.png",
|
5366
|
5315
|
Jumpset: 1,
|
5367
|
5316
|
Navaddress: "",
|
5368
|
5317
|
Ctime: time.Now().Unix(),
|
|
@@ -5373,6 +5322,7 @@ func (this *Microwebsite) GetNavigationset() {
|
5373
|
5322
|
patientNavigation := models.SgjPatientNavigation{
|
5374
|
5323
|
Navtitle: "微商城",
|
5375
|
5324
|
Navimages: "https://images.shengws.com/2122_o_1570840361702.png",
|
|
5325
|
+ Nonavimages:"https://images.shengws.com/2122_o_1570840361702.png",
|
5376
|
5326
|
Jumpset: 1,
|
5377
|
5327
|
Navaddress: "http://shop.kuyicloud.com/app/index.php?i=2&c=entry&m=ewei_shopv2&do=mobile&fxtoken=bdc5659cbd1bd67baa9af215b0d6ae4c&fxorgid=3877×tamp=1571050598&fxadmin=185&wxref=mp.weixin.qq.com#wechat_redirect",
|
5378
|
5328
|
Ctime: time.Now().Unix(),
|
|
@@ -5385,6 +5335,7 @@ func (this *Microwebsite) GetNavigationset() {
|
5385
|
5335
|
sgjPatientNavigationtwo := models.SgjPatientNavigation{
|
5386
|
5336
|
Navtitle: "联系我们",
|
5387
|
5337
|
Navimages: "https://images.shengws.com/2138_o_1570840377129.png",
|
|
5338
|
+ Nonavimages:"https://images.shengws.com/2138_o_1570840377129.png",
|
5388
|
5339
|
Jumpset: 1,
|
5389
|
5340
|
Navaddress: "",
|
5390
|
5341
|
Ctime: time.Now().Unix(),
|
|
@@ -5397,6 +5348,7 @@ func (this *Microwebsite) GetNavigationset() {
|
5397
|
5348
|
sgjPatientNavigationthree := models.SgjPatientNavigation{
|
5398
|
5349
|
Navtitle: "在线客服",
|
5399
|
5350
|
Navimages: "https://images.shengws.com/2079_o_1570842501972.png",
|
|
5351
|
+ Nonavimages:"https://images.shengws.com/2079_o_1570842501972.png",
|
5400
|
5352
|
Jumpset: 1,
|
5401
|
5353
|
Navaddress: "0755-86526342",
|
5402
|
5354
|
Ctime: time.Now().Unix(),
|
|
@@ -5603,4 +5555,52 @@ func (this *Microwebsite) GetMagicClickByLinkID() {
|
5603
|
5555
|
this.ServeSuccessJSON(map[string]interface{}{
|
5604
|
5556
|
"magiclink":magiclink,
|
5605
|
5557
|
})
|
|
5558
|
+}
|
|
5559
|
+
|
|
5560
|
+func (this *Microwebsite) GeteditRotationEmages() {
|
|
5561
|
+ adminUserInfo := this.GetAdminUserInfo()
|
|
5562
|
+ userOrgID := adminUserInfo.CurrentOrgId
|
|
5563
|
+ fmt.Println("机构id",userOrgID)
|
|
5564
|
+ id, _ := this.GetInt64("id")
|
|
5565
|
+ fmt.Println("id",id)
|
|
5566
|
+ conrotation, err := site_service.GetEditRotationEmages(id, userOrgID)
|
|
5567
|
+ fmt.Println("错误",err)
|
|
5568
|
+ if err !=nil{
|
|
5569
|
+ this.ServeFailJsonSend(enums.ErrorCodeDataException, "更改数据失败")
|
|
5570
|
+ return
|
|
5571
|
+ }
|
|
5572
|
+ this.ServeSuccessJSON(map[string]interface{}{
|
|
5573
|
+ "conrotation":conrotation,
|
|
5574
|
+ })
|
|
5575
|
+}
|
|
5576
|
+
|
|
5577
|
+func (this *Microwebsite) GetOutRotationLink() {
|
|
5578
|
+ adminUserInfo := this.GetAdminUserInfo()
|
|
5579
|
+ userOrgID := adminUserInfo.CurrentOrgId
|
|
5580
|
+ fmt.Println("机构id",userOrgID)
|
|
5581
|
+ linkid, _ := this.GetInt64("id")
|
|
5582
|
+ fmt.Println("id",linkid)
|
|
5583
|
+ conlinkaddress, err := site_service.GetOutRotationLink(userOrgID, linkid)
|
|
5584
|
+ if err !=nil{
|
|
5585
|
+ this.ServeFailJsonSend(enums.ErrorCodeDataException, "更改数据失败")
|
|
5586
|
+ return
|
|
5587
|
+ }
|
|
5588
|
+ this.ServeSuccessJSON(map[string]interface{}{
|
|
5589
|
+ "conlinkaddress":conlinkaddress,
|
|
5590
|
+ })
|
|
5591
|
+}
|
|
5592
|
+
|
|
5593
|
+func (this *Microwebsite) UpdatedRolinkAddress() {
|
|
5594
|
+ adminUserInfo := this.GetAdminUserInfo()
|
|
5595
|
+ userOrgID := adminUserInfo.CurrentOrgId
|
|
5596
|
+ fmt.Println("机构id",userOrgID)
|
|
5597
|
+ dataBody := make(map[string]interface{}, 0)
|
|
5598
|
+ err := json.Unmarshal(this.Ctx.Input.RequestBody, &dataBody)
|
|
5599
|
+ if err != nil {
|
|
5600
|
+ utils.ErrorLog(err.Error())
|
|
5601
|
+ this.ServeFailJsonSend(enums.ErrorCodeParamWrong, "参数错误")
|
|
5602
|
+ return
|
|
5603
|
+ }
|
|
5604
|
+ id := int64(dataBody["id"].(float64))
|
|
5605
|
+ fmt.Println("id是什么",id)
|
5606
|
5606
|
}
|