package com.wecloud.imserver.client.api;

import com.wecloud.imserver.client.model.ao.CreateApplicationAO;
import com.wecloud.imserver.client.model.ao.UpdateAppSecretAO;
import com.wecloud.imserver.client.model.dto.Result;

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

    /**
     * 更新Secret
     * @param updateSecretAO
     * @return
     */
    Result<Boolean> updateAppSecret(UpdateAppSecretAO updateSecretAO);

    /**
     * 创建应用
     * @param createApplicationAO
     * @return
     */
    Result<Boolean>createApplication(CreateApplicationAO createApplicationAO);


    /**
     * 编辑应用
     * @param createApplicationAO
     * @return
     */
    Result<Boolean> updateApplication(CreateApplicationAO createApplicationAO);

    /**
     * 删除应用
     * @param applicationId
     * @return
     */
    Result<Boolean> deleteApplication(Long applicationId);
}
