package cn.com.countrygarden.bi.main.service.advise;

import cn.com.countrygarden.bi.main.core.Result;
import cn.com.countrygarden.bi.main.dto.advise.param.BranchTypeParam;
import cn.com.countrygarden.bi.main.model.AccessToken;
import cn.com.countrygarden.bi.main.model.advise.AfAdviseBranchType;

import java.util.List;

/**
 * 建言分支类型-业务逻辑层
 *
 * @author 木木子
 * @email 944528607@qq.com
 * @url
 * @date 2019-04-15
 */
public interface IAfAdviseBranchTypeService {
	/**
	 * 查询所有数据，不带分页
	 * @param afAdviseBranchType
	 * @return
	 */
	Result queryList(AfAdviseBranchType afAdviseBranchType);

	Result queryById(Integer id);

	Result del(Integer id);

	/**
	 * 增加或编辑建议分支类型
	 * 
	 * @param afAdviseBranchType
	 * @param accessToken
	 * @return
	 */
	Result addOrEdit(AfAdviseBranchType afAdviseBranchType, AccessToken accessToken);

	/**
	 * 获得当前登录用户所拥有的建议分支类型的数据
	 * @param branchTypeParam
	 * @param userCode
	 * @return
	 */
	List<AfAdviseBranchType> getUserAdviseBranchRoleCode(BranchTypeParam branchTypeParam,String userCode) ;

}