package com.jiuqi.mobile.nigo.comeclose.manager.base;
import com.jiuqi.mobile.nigo.comeclose.bean.base.RoleBean;
import com.jiuqi.mobile.nigo.comeclose.manager.ISimpleManger;
import com.jiuqi.mobile.nigo.comeclose.manager.ManagerAnnotation;
import com.jiuqi.mobile.nigo.comeclose.portal.PortalAnnotation;
import com.jiuqi.mobile.nigo.comeclose.portal.PortalMethodAnnctation;
@ManagerAnnotation(implClass="com.jiuqi.mobile.nigo.biz.base.manager.RoleManagerImpl")
@PortalAnnotation(implClass="com.jiuqi.mobile.nigo.biz.base.manager.RoleManagerImpl")
public interface IRoleManager extends ISimpleManger<RoleBean>{
// /**
// * 添加角色
// * @param bean
// * @throws NiGoException
// */
// void create(RoleBean bean) throws NiGoException;
// /**
// * update role
// * @param bean
// * @throws NiGoException
// */
// void update(RoleBean bean) throws NiGoException;
// /**
// * delete role
// * @param guid
// * @throws NiGoException
// */
// void delete(String guid) throws NiGoException;
// /**
// * find role through role guid
// * @param guid
// * @return
// */
// RoleBean find(String guid);
/**
* 根据角色code查询角色信息
* @param code
* @return
*/
@PortalMethodAnnctation
RoleBean findByCode(int code);
/**
* @Title: findByCode
* @Description: TODO(根据角色code,行政区划code,查询角色信息,包含角色模块)
* @param @param code
* @param @param area
* @param @return 设定文件
* @return RoleBean 返回类型
* @throws
*/
@PortalMethodAnnctation
RoleBean findByCode(int code,long area);
/**
* 查询所有角色信息
* @return
*/
RoleBean[] getAll();
/**
* @Title: getVersionNoState
* @Description: TODO(根据角色code查询对应角色的版本号,为客户端更新模块信息提供)
* @param @param roleCode
* @param @return 设定文件
* @return int 返回类型
* @throws
*/
int getVersionNoState(int roleCode);
/**
* 根据角色guid,修改角色名称
* @Title: update1
* @param @param role
* @param @return
* @return int 返回类型
*/
int update1(RoleBean role);
// //客户端版本号与服务端版本号比较,true代表服务端版本号大,客户端需要更新
// boolean getVersionNoState(int roleCode,int versionNo);
}