核心平臺(tái)層—配置管理開發(fā)結(jié)構(gòu)

Entitys(6)

Entitys.png

Mapping(6)

Mapping.png

Dtos(12)

Dtos.png

Interface

Interface.png

配置管理共36 個(gè)Api.

using BoerCloud.Core.Data;
using BoerCloud.Model.Dto.CfgMgr;
using BoerCloud.Model.Dto.Pub;

namespace BoerCloud.IBLL.CfgMgr
{
    // 36 API
    public interface ICfgMgrService
    {
        // Create 6 API
        JsonMessage RegisterServer(CreateServerInDto model);
        JsonMessage RegisterSite(CreateSiteInDto model);
        JsonMessage RegisterDb(CreateDbInDto model);

        JsonMessage RlatSiteAndServer(SiteAndServerInDto model);
        JsonMessage RlatDbAndServer(DbAndServerInDto model);
        JsonMessage RlatSiteAndDb(SiteAndDbInDto model);

        // Delete 9 API
        JsonMessage UnregisterServer(GetInfoByServerIdInDto model);
        JsonMessage UnregisterSite(GetInfoBySiteIdInDto model);
        JsonMessage UnregisterDb(GetInfoByDbIdInDto model);

        JsonMessage BatchDeleteSite(BatchDeleteInDto model);
        JsonMessage BatchDeleteServer(BatchDeleteInDto model);
        JsonMessage BatchDeleteDb(BatchDeleteInDto model);

        JsonMessage DeleteRlatDbAndServer(DbAndServerInDto model);
        JsonMessage DeleteRlatSiteDbAndServer(SiteAndServerInDto model);
        JsonMessage DeleteRlatSiteAndDb(SiteAndDbInDto model);

        // Update 3 API
        JsonMessage UpdateServer(UpdateServerInDto model);
        JsonMessage UpdateSite(UpdateSiteInDto model);
        JsonMessage UpdateDb(UpdateDbInDto model);

        // Retrieve 18 API
        JsonMessage GetServerInfoByServerId(GetInfoByServerIdInDto model);
        JsonMessage GetSiteInfoBySiteId(GetInfoBySiteIdInDto model);
        JsonMessage GetDbInfoByDbId(GetInfoByDbIdInDto model);

        JsonMessage GetPageServer(GetPageServerInDto model);
        JsonMessage GetPageSite(GetPageSiteInDto model);
        JsonMessage GetPageDb(GetPageDbInDto model);

        JsonMessage GetAllSiteByServerId(GetInfoByServerIdInDto model);
        JsonMessage GetAllDbByServerId(GetInfoByServerIdInDto model);
        JsonMessage GetAllServerBySiteId(GetInfoBySiteIdInDto model);
        JsonMessage GetAllDbBySiteId(GetInfoBySiteIdInDto model);
        JsonMessage GetAllServerByDbId(GetInfoByDbIdInDto model);
        JsonMessage GetAllSiteByDbId(GetInfoByDbIdInDto model);

        JsonMessage GetAllDbNotExistsByServerId(GetInfoByServerIdInDto model);
        JsonMessage GetAllSiteNotExistsByServerId(GetInfoByServerIdInDto model);
        JsonMessage GetAllServerNotExistsBySiteId(GetInfoBySiteIdInDto model);
        JsonMessage GetAllDbNotExistsBySiteId(GetInfoBySiteIdInDto model);
        JsonMessage GetAllServerNotExistsByDbId(GetInfoByDbIdInDto model);
        JsonMessage GetAllSiteNotExistsByDbId(GetInfoByDbIdInDto model);

    }
}
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容