💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、豆包、星火、月之暗面及文生图、文生视频 广告
1. 配置host地址,跟路径地址 包路径:mes.framework.abp.winform.common.configuration.jsonconfigs.configs 文件名:HostConfig.json ~~~ {   "Name": "HostConfig",   "VersionName": "1.0.0.0",   "VersionNo": 1,   "JsonSettings": [     //-------------------------SYSTEM--------------------//     {       "Key": "WebApiHostAddress",       "Value": "http://localhost:6239/"       //"Value": "http://192.168.1.222:8000"       //"Value": "http://172.16.1.42:6237/"       //"Value": "http://192.168.0.142:9090"       //"Value": "http://192.168.100.246:90"       //"Value": "http://172.16.0.51:8080"     }   ] } ~~~ 2、配置 接口 包路径:mes.framework.abp.winform.common 文件名:WebApiConfig.json ~~~ {   "Name": "WebApiConfig",   "VersionName": "1.0.0.0",   "VersionNo": 1,   "JsonSettings": [     //-------------------------PLUGINS --------------------//     {       "key": "LabelPrinter.GetLabelTempleOrNull",       "Value": "/api/services/plugins/labelPrinter/GetLabelTempleOrNull"     } ] } ~~~ 3. 在 {模块名}Const.cs 中配置 api URL对应的key值 ``` public class Mo{     public const string GetMODetails = "Mo.GetMODetails"; } ``` 4. http请求 在service中subModules/{模块名}/I{模块}AppService.cs中添加接口 ``` Task<ApiResultDto<List<MODetailDto>>> GetMODetails(MODetailInput input); ``` 在subModules/{模块名}/{模块}AppService.cs中添加 接口实现 ``` public async Task>> GetMODetails(MODetailInput  input) {     return await CallWebApi>(input,  MesModuleProductionPlanConst.WebApiAddress.Mo.GetMODetails); } ``` 5. 调动http 请求 工程下面 建一个静态文件做接口的集合 ``` public static class RemoteService{     public static IMoAppService moAppService; } ``` 在FMainNew 文件里添加接口赋值