// Path: shiziqiu-configuration-console/src/main/java/com/shiziqiu/configuration/console/model/ResultT.java
// public class ResultT<T> {
// 
// 	public static final ResultT<String> SUCCESS = new ResultT<String>(null);
// 	public static final ResultT<String> FAIL = new ResultT<String>(500, null);
// 	
// 	private int code;
// 	private String msg;
// 	private T content;
// 	
// 	public ResultT(){}
// 	
// 	public ResultT(int code, String msg) {
// 		this.code = code;
// 		this.msg = msg;
// 	}
// 	public ResultT(T content) {
// 		this.code = 200;
// 		this.content = content;
// 	}
// 
// 	public int getCode() {
// 		return code;
// 	}
// 
// 	public void setCode(int code) {
// 		this.code = code;
// 	}
// 
// 	public String getMsg() {
// 		return msg;
// 	}
// 
// 	public void setMsg(String msg) {
// 		this.msg = msg;
// 	}
// 
// 	public T getContent() {
// 		return content;
// 	}
// 
// 	public void setContent(T content) {
// 		this.content = content;
// 	}
// 
// 	@Override
// 	public String toString() {
// 		return "ResultT [code=" + code + ", msg=" + msg + ", content="
// 				+ content + "]";
// 	}
// 	
// }
// 
// Path: shiziqiu-configuration-console/src/main/java/com/shiziqiu/configuration/console/model/ShiZiQiuConfGroup.java
// public class ShiZiQiuConfGroup implements Serializable{
// 
// 	/**
// 	 * 
// 	 */
// 	private static final long serialVersionUID = 112412412412412L;
// 	
// 	private String groupName;
// 	private String groupTitle;
// 	 
// 	public ShiZiQiuConfGroup() {
// 		super();
// 	}
// 
// 	public ShiZiQiuConfGroup(String groupName, String groupTitle) {
// 		super();
// 		this.groupName = groupName;
// 		this.groupTitle = groupTitle;
// 	}
// 	
// 	public String getGroupName() {
// 		return groupName;
// 	}
// 	public void setGroupName(String groupName) {
// 		this.groupName = groupName;
// 	}
// 	public String getGroupTitle() {
// 		return groupTitle;
// 	}
// 	public void setGroupTitle(String groupTitle) {
// 		this.groupTitle = groupTitle;
// 	}
// 	 
// }
// 
// Path: shiziqiu-configuration-console/src/main/java/com/shiziqiu/configuration/console/service/ShiZiQiuConfGroupService.java
// public interface ShiZiQiuConfGroupService {
// 
// 	public List<ShiZiQiuConfGroup> findAll();
// 
// 	public int save(ShiZiQiuConfGroup group);
// 
// 	public int update(ShiZiQiuConfGroup group);
// 
// 	public int remove(String groupName);
// 
// 	public ShiZiQiuConfGroup get(String groupName);
// }
// 
// Path: shiziqiu-configuration-console/src/main/java/com/shiziqiu/configuration/console/service/ShiZiQiuConfNodeService.java
// public interface ShiZiQiuConfNodeService {
// 
// 	public Map<String,Object> pageList(int offset, int pagesize, String nodeGroup, String nodeKey);
// 
// 	public ResultT<String> deleteByKey(String nodeGroup, String nodeKey);
// 
// 	public ResultT<String> add(ShiZiQiuConfNode node);
// 
// 	public ResultT<String> update(ShiZiQiuConfNode node);
// 
// 	public int pageListCount(int offset, int pagesize, String groupName, String nodeKey);
// }
// 
// Path: shiziqiu-configuration-util/src/main/java/com/shiziqiu/configuration/util/StringUtils.java
// public class StringUtils {
// 
// 	public static boolean isNotBlank(String str) {
// 		return !StringUtils.isBlank(str);
// 	}
// 
// 	public static boolean isBlank(String str) {
// 		int strLen;
// 		if (str == null || (strLen = str.length()) == 0) {
// 			return true;
// 		}
// 		for (int i = 0; i < strLen; i++) {
// 			if ((Character.isWhitespace(str.charAt(i)) == false)) {
// 				return false;
// 			}
// 		}
// 		return true;
// 	}
// 
// 	public static String trim(String str) {
// 		return str == null ? null : str.trim();
// 	}
// }


import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.shiziqiu.configuration.console.model.ResultT;
import com.shiziqiu.configuration.console.model.ShiZiQiuConfGroup;
import com.shiziqiu.configuration.console.service.ShiZiQiuConfGroupService;
import com.shiziqiu.configuration.console.service.ShiZiQiuConfNodeService;
import com.shiziqiu.configuration.util.StringUtils;
package com.shiziqiu.configuration.console.web.controller;




/**
 * @title : GroupController
 * @author : crazy
 * @date : 2017年9月7日 上午9:57:18
 * @Fun :
 */
@Controller
@RequestMapping("/group")
public class GroupController {
	
	@Resource
	private ShiZiQiuConfNodeService shiZiQiuConfNodeService;
	@Resource
// Path: shiziqiu-configuration-console/src/main/java/com/shiziqiu/configuration/console/model/ResultT.java
// public class ResultT<T> {
// 
// 	public static final ResultT<String> SUCCESS = new ResultT<String>(null);
// 	public static final ResultT<String> FAIL = new ResultT<String>(500, null);
// 	
// 	private int code;
// 	private String msg;
// 	private T content;
// 	
// 	public ResultT(){}
// 	
// 	public ResultT(int code, String msg) {
// 		this.code = code;
// 		this.msg = msg;
// 	}
// 	public ResultT(T content) {
// 		this.code = 200;
// 		this.content = content;
// 	}
// 
// 	public int getCode() {
// 		return code;
// 	}
// 
// 	public void setCode(int code) {
// 		this.code = code;
// 	}
// 
// 	public String getMsg() {
// 		return msg;
// 	}
// 
// 	public void setMsg(String msg) {
// 		this.msg = msg;
// 	}
// 
// 	public T getContent() {
// 		return content;
// 	}
// 
// 	public void setContent(T content) {
// 		this.content = content;
// 	}
// 
// 	@Override
// 	public String toString() {
// 		return "ResultT [code=" + code + ", msg=" + msg + ", content="
// 				+ content + "]";
// 	}
// 	
// }
// 
// Path: shiziqiu-configuration-console/src/main/java/com/shiziqiu/configuration/console/model/ShiZiQiuConfGroup.java
// public class ShiZiQiuConfGroup implements Serializable{
// 
// 	/**
// 	 * 
// 	 */
// 	private static final long serialVersionUID = 112412412412412L;
// 	
// 	private String groupName;
// 	private String groupTitle;
// 	 
// 	public ShiZiQiuConfGroup() {
// 		super();
// 	}
// 
// 	public ShiZiQiuConfGroup(String groupName, String groupTitle) {
// 		super();
// 		this.groupName = groupName;
// 		this.groupTitle = groupTitle;
// 	}
// 	
// 	public String getGroupName() {
// 		return groupName;
// 	}
// 	public void setGroupName(String groupName) {
// 		this.groupName = groupName;
// 	}
// 	public String getGroupTitle() {
// 		return groupTitle;
// 	}
// 	public void setGroupTitle(String groupTitle) {
// 		this.groupTitle = groupTitle;
// 	}
// 	 
// }
// 
// Path: shiziqiu-configuration-console/src/main/java/com/shiziqiu/configuration/console/service/ShiZiQiuConfGroupService.java
// public interface ShiZiQiuConfGroupService {
// 
// 	public List<ShiZiQiuConfGroup> findAll();
// 
// 	public int save(ShiZiQiuConfGroup group);
// 
// 	public int update(ShiZiQiuConfGroup group);
// 
// 	public int remove(String groupName);
// 
// 	public ShiZiQiuConfGroup get(String groupName);
// }
// 
// Path: shiziqiu-configuration-console/src/main/java/com/shiziqiu/configuration/console/service/ShiZiQiuConfNodeService.java
// public interface ShiZiQiuConfNodeService {
// 
// 	public Map<String,Object> pageList(int offset, int pagesize, String nodeGroup, String nodeKey);
// 
// 	public ResultT<String> deleteByKey(String nodeGroup, String nodeKey);
// 
// 	public ResultT<String> add(ShiZiQiuConfNode node);
// 
// 	public ResultT<String> update(ShiZiQiuConfNode node);
// 
// 	public int pageListCount(int offset, int pagesize, String groupName, String nodeKey);
// }
// 
// Path: shiziqiu-configuration-util/src/main/java/com/shiziqiu/configuration/util/StringUtils.java
// public class StringUtils {
// 
// 	public static boolean isNotBlank(String str) {
// 		return !StringUtils.isBlank(str);
// 	}
// 
// 	public static boolean isBlank(String str) {
// 		int strLen;
// 		if (str == null || (strLen = str.length()) == 0) {
// 			return true;
// 		}
// 		for (int i = 0; i < strLen; i++) {
// 			if ((Character.isWhitespace(str.charAt(i)) == false)) {
// 				return false;
// 			}
// 		}
// 		return true;
// 	}
// 
// 	public static String trim(String str) {
// 		return str == null ? null : str.trim();
// 	}
// }


// Path: shiziqiu-configuration-console/src/main/java/com/shiziqiu/configuration/console/web/controller/GroupController.java
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.shiziqiu.configuration.console.model.ResultT;
import com.shiziqiu.configuration.console.model.ShiZiQiuConfGroup;
import com.shiziqiu.configuration.console.service.ShiZiQiuConfGroupService;
import com.shiziqiu.configuration.console.service.ShiZiQiuConfNodeService;
import com.shiziqiu.configuration.util.StringUtils;

package com.shiziqiu.configuration.console.web.controller;




/**
 * @title : GroupController
 * @author : crazy
 * @date : 2017年9月7日 上午9:57:18
 * @Fun :
 */
@Controller
@RequestMapping("/group")
public class GroupController {
	
	@Resource
	private ShiZiQiuConfNodeService shiZiQiuConfNodeService;
	@Resource
	private ShiZiQiuConfGroupService shiZiQiuConfGroupService;