package jnpf.account.fallback;

import jnpf.account.PTenantAccountApi;
import jnpf.base.ActionResult;
import jnpf.exception.HandleException;
import jnpf.model.TenantGenerateDefaultAvatarVO;
import jnpf.model.personnels.dto.turnover.SaveTenantUserForm;
import jnpf.model.personnels.req.roster.UserAccountDto;
import jnpf.model.user.GenerateHeadForm;
import lombok.extern.slf4j.Slf4j;

import java.io.IOException;
import java.util.List;

@Slf4j
public class PTenantAccountApiFallBack implements PTenantAccountApi {

    @Override
    public ActionResult<List<UserAccountDto>> batchAddUserAccount(List<UserAccountDto> userAccountForms) {
        log.error("调用批量添加用户接口失败,降级");
        return null;
    }

    @Override
    public ActionResult<List<UserAccountDto>> batchDisabledUserAccount(List<UserAccountDto> userAccountForms) {
        return null;
    }

    @Override
    public ActionResult generateDefaultAvatar(String name) throws IOException {
        log.error("调用生成默认头像接口失败,降级");
        return null;
    }

    @Override
    public List<TenantGenerateDefaultAvatarVO> batchGenerateDefaultAvatar(List<String> names) {
        log.error("调用生成默认头像接口失败,降级");
        return List.of();
    }

    @Override
    public ActionResult updateJobStatus(SaveTenantUserForm saveTenantUserForm) {
        return null;
    }

    @Override
    public ActionResult userInfoSynchronous(SaveTenantUserForm saveTenantUserForm) {
        log.error("调用同步用户信息接口失败,降级");
        return null;
    }

    @Override
    public ActionResult deleteUser(String id) {
        return null;
    }

    @Override
    public Boolean deleteUserWithPlatform(String userId) {
        log.error("调用删除租户用户接口失败,降级");
        return false;
    }

    @Override
    public ActionResult<Void> deleteUsers(List<String> userIds) {
        return null;
    }

    @Override
    public ActionResult generateDefaultAvatar(GenerateHeadForm generateHeadForm) throws IOException {
        return null;
    }
}
