Explorar el Código

pc商机管理前端路由

wangkaiyue hace 4 años
padre
commit
6228913419
Se han modificado 1 ficheros con 20 adiciones y 0 borrados
  1. 20 0
      src/jfw/front/frontRouter.go

+ 20 - 0
src/jfw/front/frontRouter.go

@@ -23,6 +23,10 @@ type CommonRouter struct {
 	//线上课程
 	xspcIndex xweb.Mapper `xweb:"/jyxspc/"`
 	xspcPage  xweb.Mapper `xweb:"/jyxspc/(.*)"`
+
+	//商机管理
+	entpcIndex xweb.Mapper `xweb:"/entpc/"`
+	entpcPage  xweb.Mapper `xweb:"/entpc/(.*)"`
 }
 
 func init() {
@@ -94,3 +98,19 @@ func (this *CommonRouter) XspcPage(htmlPage string) error {
 	}
 	return this.Render(fmt.Sprintf("/frontRouter/pc/xspc/sess/index.html"))
 }
+
+//商机管理
+func (this *CommonRouter) EntpcIndex() error {
+	userid, _ := this.GetSession("userId").(string)
+	if userid == "" {
+		return this.Redirect("/notin/page")
+	}
+	return this.Render(fmt.Sprintf("/frontRouter/pc/entpc/sess/index.html"))
+}
+func (this *CommonRouter) EntpcPage(htmlPage string) error {
+	userid, _ := this.GetSession("userId").(string)
+	if userid == "" {
+		return this.Redirect("/notin/page")
+	}
+	return this.Render(fmt.Sprintf("/frontRouter/pc/entpc/sess/index.html"))
+}