服务端的TigerApi 框架,基于.NET6 2024 版本
Ben Lin
2024-04-12 7d092e33fdb6f94443637cab2c0fe146b57846ea
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
45
using Rhea.Common;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tiger.IBusiness;
using Tiger.Model;
 
namespace Tiger.Business
{
    public partial class Biz
    {
        /// <summary>
        /// 客户
        /// </summary>
        public partial class MqCustomer : ICustomer
        {
            /// <summary>
            /// 获取客户信息
            /// </summary>
            /// <returns></returns>
            public async Task<ApiAction<List<Customer>>> GetCustomerInfo()
            {
                var res = new ApiAction<List<Customer>>();
                try
                {
                    List<Customer> result = await Db.Queryable<Customer>().ToListAsync();
                    res.Data = result;
                }
                catch (Exception ex)
                {
                    res.CatchExceptionWithLog(ex, "获取客户信息异常");
                }
                return res;
            }
 
            public async Task<Result> SaveImportCustomerInfo(DataTable dt)
            {
                throw new NotImplementedException();
            }
        }
    }
}