Admin
2025-12-02 9e42f0dafa019f5ecf6b0ff425ecb966b002171e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//using WIDESEA.Core.Enums;
//using WIDESEA.Entity.DomainModels;
//using System;
//using System.Collections.Generic;
//using System.Text;
//using WIDESEA.Core.Utilities;
 
//namespace WIDESEA.Core.Extensions
//{
//    public static class ResponseExtension
//    {
 
//        public static WebResponseContent Set(this WebResponseContent responseData, ResponseType responseType)
//        {
//            bool? b = null;
//            return Set(responseData, responseType, b);
//        }
//        public static WebResponseContent Set(this WebResponseContent responseData, ResponseType responseType, bool? status)
//        {
//            return Set(responseData, responseType, null, status);
//        }
//        public static WebResponseContent Set(this WebResponseContent responseData, ResponseType responseType, string msg)
//        {
//            bool? b = null;
//            return Set(responseData, responseType, msg, b);
//        }
//        public static WebResponseContent Set(this WebResponseContent responseData, ResponseType responseType, string msg, bool? status)
//        {
//            if (status != null)
//            {
//                responseData.Status = (bool)status;
//            }
//            responseData.Code = ((int)responseType).ToString();
//            if (!string.IsNullOrEmpty(msg))
//            {
//                responseData.Desc = msg;
//                return responseData;
//            }
//            responseData.Desc = responseType.GetMsg();
//            return responseData;
//        }
 
//    }
//}