package com.cm.common.plugin.oauth.service.position;

import com.alibaba.fastjson.JSONArray;
import com.cm.common.exception.AccessTokenException;
import com.cm.common.exception.SearchException;

import java.util.Map;

/**
 * When you feel like quitting. Think about why you started
 * 当你想要放弃的时候，想想当初你为何开始
 *
 * @ClassName: IPositionService
 * @Description: 职位
 * @Author: WangGeng
 * @Date: 2019/8/30 5:34 下午
 * @Version: 1.0
 **/
public interface IPositionService {

    /**
     * 用户职位列表
     *
     * @param params
     * @return
     * @throws AccessTokenException
     * @throws SearchException
     */
    JSONArray listUserPosition(Map<String, Object> params) throws AccessTokenException, SearchException;

    /**
     * 职位树
     *
     * @param positionParentId
     * @return
     * @throws AccessTokenException
     * @throws SearchException
     */
    JSONArray listZTreePosition(String positionParentId) throws AccessTokenException, SearchException;

}
