您的位置:首页 > 编程语言 > C#

C#后端调用WebApi地址

2017-12-14 10:33 246 查看
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5 using System.Threading.Tasks;
6
7 namespace Services
8 {
9     public class GlobalString
10     {
11         public static string JsonHeader
12         {
13             get
14             {
15                 return "application/json";
16             }
17         }
18
19         public static string BaseUrl
20         {
21             get
22             {
23                 return "http://www.XXX.com";
24             }
25         }
26
27
28         public static string GetApiUrl
29         {
30             get
31             {
32                 return "apiUrl";
33             }
34         }
35
36     }
37 }


全局常量类
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: