| | |
| | | using WIDESEA_Common.APIEnum; |
| | | using WIDESEA_Common.CommonEnum; |
| | | using WIDESEA_Core.Helper; |
| | | using WIDESEA_DTO.ERP; |
| | | using WIDESEA_External.Model; |
| | | using WIDESEA_IBasicRepository; |
| | | using WIDESEA_Model.Models; |
| | |
| | | |
| | | return response; |
| | | } |
| | | /// <summary> |
| | | /// BST绉伴噸鍥炰紶 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | public string BSTWeightUp(BSTWeightUpDTO bSTWeightUpDTO) |
| | | { |
| | | Dt_ApiInfo apiInfo = _apiInfoRepository.QueryFirst(x => x.ApiCode == APIEnum.BSTWeightUp.ToString() && x.Enable == WhetherEnum.True.ObjToInt()); |
| | | |
| | | Dictionary<string, string> headers = new Dictionary<string, string>{{ "X-API-Token", "300883" }}; |
| | | string request = JsonConvert.SerializeObject(bSTWeightUpDTO, settings); |
| | | string response = HttpHelper.Post(apiInfo.ApiAddress, request, headers: headers); |
| | | |
| | | return response; |
| | | } |
| | | } |
| | | } |