package cn.com.ctop.common.module.service;

import cn.com.ctop.common.module.entity.SysUser;
import cn.com.ctop.common.module.entity.UserCompany;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.common.api.vo.Result;

/**
 * 用户够公司
 *
 * @author jeecg-boot
 * @version V1.0
 * @date 2019-11-14
 */
public interface IUserCompanyService extends IService<UserCompany> {

    void addOrUpdateUserWithCompany(SysUser user);

    void removeByUserId(String id);

    UserCompany getByUserId(String userId);

    Result<Object> allCompany();

    JSONObject getCompanyInfoByAccountId(Long accountId);

    JSONObject getCompanyInfoByUserId(String clipId);
}
