移动系统liao
2025-02-17 557c2711a3e103ebc3d0492344eca9730d5e92b2
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
using CoreCms.Net.Model.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace CoreCms.Net.IServices.baifenbingfa
{
    /// <summary>
    ///  百分兵法常用服务
    /// </summary>
   
    public interface IBfbfComAPIService
    {
        /// <summary>
        /// 搜索返回用户数据
        /// </summary>
        /// <param name="s"></param>
        /// <returns></returns>
        Task<List<SearchUserData>> SearchUserData(string s);
       
        /// <summary>
        /// 获取商品分类
        /// </summary>
        /// <returns></returns>
        
        Task<List<CoreCmsGoodsCategory>> GetGoodsCategory();
        /// <summary>
        /// 检查用户是否是经销商
        /// </summary>
        /// <param name="UserId"></param>
        /// <returns></returns>
 
        Task<bool> IsDictionary(int UserId);
        /// <summary>
        /// 计算定制费用
        /// </summary>
        /// <param name="count"></param>
        /// <returns></returns>
         decimal CommandCustomizable(int count);
 
       /// <summary>
       ///  根据经纬度对列表进行远近距离排序
       /// </summary>
       /// <param name="DataList"></param>
       /// <param name="longitude"></param>
       /// <param name="latitude"></param>
       /// <returns></returns>
        List<DistributorSort> orderedDistributors(List<DistributorSort> DataList,string longitude,string latitude);
 
        /// <summary>
        /// 获取校园代理列表 根据货品ID获取已经铺货的校园代理列表
        /// </summary>       
        /// <returns></returns>
        Task<List<DistributorSort>> GetDistributorsList(List<int > PIds);
        /// <summary>
        ///  获取订单的所有货品ID
        /// </summary>
        /// <param name="OderIds"></param>
        /// <returns></returns>
        public  Task<List<int>> GetOderProductsIDs(string[] OderIds);
 
    }
    
   public class DistributorSort
    {
        public int id { get; set; }
        public string name { get; set; }
        public string longitude { get; set; } 
        public string latitude { get; set; }
    }
 
 
   public class SearchUserData
    {
        /// <summary>
        /// ID
        /// </summary>
        public  int  Id { get; set; }
        /// <summary>
        /// name 
        /// </summary>
        public string name { get; set; }
    }
}