namespace DefaultNamespace { public static class Apis { private static string baseApiUrl = "https://game.api.njfengwei.cn/uapi"; private static string Token = string.Empty; private static string Code = string.Empty; private static string AppKey = "App1234Key"; private static string AppSecret = "App1234Secret"; /// /// 设置Token /// /// public static void SetToken(string token) { Token = token; } /// /// 获取Token /// /// public static string GetToken() { return Token; } /// /// 设置Code /// /// public static void SetCode(string code) { Code = code; } /// /// 获取Code /// /// public static string GetCode() { return Code; } /// /// 设置AppKey /// /// 应用密钥 public static void SetAppKey(string appKey) { AppKey = appKey; } /// /// 获取AppKey /// /// public static string GetAppKey() { return AppKey; } /// /// 设置AppSecret /// /// 应用密钥 public static void SetAppSecret(string appSecret) { AppSecret = appSecret; } /// /// 获取AppSecret /// /// public static string GetAppSecret() { return AppSecret; } /// /// 获取测试的code /// /// public static string GetGameCodeTest() { return $"{baseApiUrl}/Auth/getGameCodeTest"; } /// /// 获取AccessToken /// /// public static string GetAccessToken() { return $"{baseApiUrl}/Auth/getAccessToken"; } /// /// 获取我的好友 /// /// public static string GetMyFriend() { return $"{baseApiUrl}/Friend/myFriend"; } /// /// 搜索好友 /// /// public static string GetSearchFriend() { return $"{baseApiUrl}/Friend/searchFriend"; } /// /// 添加好友 /// /// public static string GetAddFriend() { return $"{baseApiUrl}/Friend/addFriend"; } /// /// 我的好友审核列表 /// /// public static string GetMyFriendAsk() { return $"{baseApiUrl}/Friend/myFriendAsk"; } /// /// 审核好友同意或拒绝 /// /// public static string GetCheckFriend() { return $"{baseApiUrl}/Friend/checkFriend"; } /// /// 获取7日签到数据 /// /// public static string GetMyDates() { return $"{baseApiUrl}/My/getMyDates"; } /// /// 今日打卡 /// /// public static string GetSignToday() { return $"{baseApiUrl}/My/signToday"; } } }