| 
					
				 | 
			
			
				@@ -262,42 +262,42 @@ func (c *ProjectAccountBs) PostEnable() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 // @Param   projectId     body    string     true        "项目ID" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 // @Success 200 {string} string "{code:0成功,-1参数类错误,data:viewmodels.ProjectAccount,msg:错误信息}" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 // @Router /backstage/account/delete [post] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-func (c *ProjectAccountBs) PostDelete() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	// TODO 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	// 验证内容 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	// accountData, err := c.ServiceBackstage.ValidRuleAccountEnable(c.Ctx) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	// if err != nil { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	// 	c.Ctx.JSON(iris.Map{"code": -1, "msg": fmt.Sprintf("%s", err)}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	// 	return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	// } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	accountVaild := viewmodels.ProjectAccount{} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	err := c.Ctx.ReadJSON(&accountVaild) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	if err != nil { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		c.Ctx.JSON(iris.Map{"code": -1, "msg": "参数错误"}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	// 账号ID校验 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	id, err := utils.GetDecryptId(accountVaild.Id) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	if err != nil { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		c.Ctx.JSON(iris.Map{"code": -1, "msg": "账号异常"}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	// 项目ID 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	projectId, err := utils.GetProjectId(c.Ctx) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	if err != nil { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		c.Ctx.JSON(iris.Map{"code": -1, "msg": "账号异常"}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+// func (c *ProjectAccountBs) PostDelete() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+// 	// TODO 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+// 	// 验证内容 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+// 	// accountData, err := c.ServiceBackstage.ValidRuleAccountEnable(c.Ctx) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+// 	// if err != nil { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+// 	// 	c.Ctx.JSON(iris.Map{"code": -1, "msg": fmt.Sprintf("%s", err)}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+// 	// 	return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+// 	// } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+// 	accountVaild := viewmodels.ProjectAccount{} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+// 	err := c.Ctx.ReadJSON(&accountVaild) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+// 	if err != nil { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+// 		c.Ctx.JSON(iris.Map{"code": -1, "msg": "参数错误"}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+// 		return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+// 	} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+// 	// 账号ID校验 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+// 	id, err := utils.GetDecryptId(accountVaild.Id) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+// 	if err != nil { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+// 		c.Ctx.JSON(iris.Map{"code": -1, "msg": "账号异常"}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+// 		return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+// 	} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+// 	// 项目ID 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+// 	projectId, err := utils.GetProjectId(c.Ctx) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+// 	if err != nil { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+// 		c.Ctx.JSON(iris.Map{"code": -1, "msg": "账号异常"}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+// 		return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+// 	} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	err = c.ServiceProjectAccount.Delete(id, projectId) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	if err != nil { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		c.Ctx.JSON(iris.Map{"code": -1, "msg": err}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	c.Ctx.JSON(iris.Map{"code": 0, "msg": "操作成功"}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+// 	err = c.ServiceProjectAccount.Delete(id, projectId) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+// 	if err != nil { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+// 		c.Ctx.JSON(iris.Map{"code": -1, "msg": err}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+// 		return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+// 	} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+// 	c.Ctx.JSON(iris.Map{"code": 0, "msg": "操作成功"}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+// } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 // @Summary 设置账号密码 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 // @Tags 项目设置-管理员 
			 |