package com.wecloud.imserver.client.api;

import com.wecloud.imserver.client.model.ao.AppListQueryAO;
import com.wecloud.imserver.client.model.ao.CreateAppAO;
import com.wecloud.imserver.client.model.ao.UpdateSecretAO;
import com.wecloud.imserver.client.model.dto.ApplicationDTO;
import com.wecloud.imserver.client.model.dto.Result;
import com.wecloud.imserver.client.model.dto.UpdateAppDTO;
import com.wecloud.imserver.client.model.dto.UpdateSecretDTO;

import java.util.List;

/**
 * @author nanqianhao
 * @date 2022/5/26
 * @apiNote
 */
public interface ImApplicationFaced {

    Result<UpdateSecretDTO> updateAppSecret(UpdateSecretAO updateSecretAO);

    Result<Boolean>createApp(CreateAppAO createAppAO);

    Result<List<ApplicationDTO>> listApplications(AppListQueryAO appListQueryAO);

    Result<UpdateAppDTO> updateApp(CreateAppAO createAppAO);
}
