dengjunjie
2026-03-11 b2cc7bb7740e42e57cf50af02a8ca4b535cad484
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,
                message = content.Message ?? (content.Status ? "操作成功" : "操作失败"),
                data = content.Data
            };
        }
    }
}