|  | @@ -43,6 +43,36 @@ func GetPageManage(c *gin.Context) {
 | 
	
		
			
				|  |  |  	e.ResPonsePage(c, result, total, page)
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +// GetPageManageById 获取页面详情
 | 
	
		
			
				|  |  | +func GetPageManageById(c *gin.Context) {
 | 
	
		
			
				|  |  | +	uid := unity.GetUId(c)
 | 
	
		
			
				|  |  | +	s := c.Query("id")
 | 
	
		
			
				|  |  | +	validate := validator.New()
 | 
	
		
			
				|  |  | +	err := validate.Var(s, "required,numeric")
 | 
	
		
			
				|  |  | +	if err != nil {
 | 
	
		
			
				|  |  | +		e.ResponseWithMsg(c, e.ERROR, "id不能为空")
 | 
	
		
			
				|  |  | +		return
 | 
	
		
			
				|  |  | +	}
 | 
	
		
			
				|  |  | +	id, _ := strconv.Atoi(s)
 | 
	
		
			
				|  |  | +	if uid == 0 {
 | 
	
		
			
				|  |  | +		e.ResponseWithMsg(c, e.TheUserIsEmpty, e.TheUserIsEmpty.GetMsg())
 | 
	
		
			
				|  |  | +		return
 | 
	
		
			
				|  |  | +	} else if uid == 1 {
 | 
	
		
			
				|  |  | +		result, err := unity.GetById(id, model.PageManage{})
 | 
	
		
			
				|  |  | +		if err != nil {
 | 
	
		
			
				|  |  | +			e.ResponseWithMsg(c, e.ERROR, err.Error())
 | 
	
		
			
				|  |  | +			return
 | 
	
		
			
				|  |  | +		}
 | 
	
		
			
				|  |  | +		e.ResponseSuccess(c, result)
 | 
	
		
			
				|  |  | +	}
 | 
	
		
			
				|  |  | +	byId, err := PageManage.GetPageManageById(uid, id)
 | 
	
		
			
				|  |  | +	if err != nil {
 | 
	
		
			
				|  |  | +		e.ResponseWithMsg(c, e.ERROR, err.Error())
 | 
	
		
			
				|  |  | +		return
 | 
	
		
			
				|  |  | +	}
 | 
	
		
			
				|  |  | +	e.ResponseSuccess(c, byId)
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  // AddPageManage 添加页面管理
 | 
	
		
			
				|  |  |  func AddPageManage(c *gin.Context) {
 | 
	
		
			
				|  |  |  	var page model.PageManage
 |