dengjunjie
2026-03-10 35256ce6d0226c23f31306df7c609d96755d2871
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WIDESEAWCS_Core;
 
namespace WIDESEAWCS_DTO.WMS
{
    public class WMSReturnMethod
    {
 
        public static WMSReturn ReturnWMS(WebResponseContent content, int successCode = 0, int failCode = 404)
        {
            return new WMSReturn
            {
                code = content.Status ? successCode : failCode,
                msg = content.Message ?? (content.Status ? "操作成功" : "操作失败"),
                data = content.Data
            };
        }
    }
}