package cn.myapps.runtime.rest.user.service;

import com.alibaba.fastjson.JSONObject;

import cn.myapps.runtime.rest.user.model.User;

public interface UserService {

	/**
	 * 新增用户
	 * @param user 
	 * @return
	 * @throws Exception
	 */
	String add(User user) throws Exception;
	
	/**
	 * 查找用户信息
	 * @param account
	 * @return
	 * @throws Exception
	 */
	User find(String account) throws Exception;
	
	/**
	 * 更新用户信息
	 * @param jsonObject
	 * @return
	 * @throws Exception
	 */
	String update(JSONObject jsonObject) throws Exception;
	
	/**
	 * 删除用户
	 * @param account
	 * @return
	 * @throws Exception
	 */
	String delete(String account) throws Exception;
}
