|
25 | 25 |
|
26 | 26 | using System.Application.Columns; |
27 | 27 | using System.Application.Models; |
28 | | -using System.Application.Properties; |
| 28 | +using System.Application.UI.Resx; |
29 | 29 | using static System.Application.Services.Implementation.ModelValidator; |
30 | 30 |
|
31 | 31 | namespace System.Application |
@@ -148,59 +148,64 @@ static bool IsSmsCodeCorrect(string value) |
148 | 148 | #endregion |
149 | 149 | } |
150 | 150 |
|
151 | | - /// <summary> |
152 | | - /// 模型验证错误语句 |
153 | | - /// </summary> |
154 | | - public static class ModelValidatorErrorDescriber |
155 | | - { |
156 | | - public static string 内容值不能为空或不正确 => SR.内容值不能为空或不正确; |
| 151 | + ///// <summary> |
| 152 | + ///// 模型验证错误语句 |
| 153 | + ///// </summary> |
| 154 | + //[Obsolete("use System.Application.UI.Resx.SR", true)] |
| 155 | + //public static class ModelValidatorErrorDescriber |
| 156 | + //{ |
| 157 | + // public static string 内容值不能为空或不正确 => SR.内容值不能为空或不正确; |
157 | 158 |
|
158 | | - public static string 请输入手机号码哦 => SR.请输入手机号码哦; |
| 159 | + // public static string 请输入手机号码哦 => SR.请输入手机号码哦; |
159 | 160 |
|
160 | | - public static string 请输入正确的手机号码哦 => SR.请输入正确的手机号码哦; |
| 161 | + // public static string 请输入正确的手机号码哦 => SR.请输入正确的手机号码哦; |
161 | 162 |
|
162 | | - public static string 请输入短信验证码哦 => SR.请输入短信验证码哦; |
| 163 | + // public static string 请输入短信验证码哦 => SR.请输入短信验证码哦; |
163 | 164 |
|
164 | | - public static string 短信验证码不正确 => SR.短信验证码不正确; |
| 165 | + // public static string 短信验证码不正确 => SR.短信验证码不正确; |
165 | 166 |
|
166 | | - public static string 请选择头像 => SR.请选择头像; |
| 167 | + // public static string 请选择头像 => SR.请选择头像; |
167 | 168 |
|
168 | | - public static string 请输入昵称 => SR.请输入昵称; |
| 169 | + // public static string 请输入昵称 => SR.请输入昵称; |
169 | 170 |
|
170 | | - public static string 昵称最大长度不能超过_ => SR.昵称最大长度不能超过_; |
| 171 | + // public static string 昵称最大长度不能超过_ => SR.昵称最大长度不能超过_; |
171 | 172 |
|
172 | | - public static string 请输入邀请码哦 => SR.请输入邀请码哦; |
| 173 | + // public static string 请输入邀请码哦 => SR.请输入邀请码哦; |
173 | 174 |
|
174 | | - public static string 请输入正确的邀请码哦 => SR.请输入正确的邀请码哦; |
| 175 | + // public static string 请输入正确的邀请码哦 => SR.请输入正确的邀请码哦; |
175 | 176 |
|
176 | | - public static string 手机号码已存在_注册 => SR.手机号码已存在_注册; |
| 177 | + // public static string 手机号码已存在_注册 => SR.手机号码已存在_注册; |
177 | 178 |
|
178 | | - public static string 手机号码已存在_换绑手机 => SR.手机号码已存在_换绑手机; |
| 179 | + // public static string 手机号码已存在_换绑手机 => SR.手机号码已存在_换绑手机; |
179 | 180 |
|
180 | | - public static string 手机号码已存在 => SR.手机号码已存在; |
| 181 | + // public static string 手机号码已存在 => SR.手机号码已存在; |
181 | 182 |
|
182 | | - public static string 用户不存在 => SR.用户不存在; |
| 183 | + // public static string 用户不存在 => SR.用户不存在; |
183 | 184 |
|
184 | | - public static string 当前手机号发送短信过于频繁 => SR.当前手机号发送短信过于频繁; |
| 185 | + // public static string 当前手机号发送短信过于频繁 => SR.当前手机号发送短信过于频繁; |
185 | 186 |
|
186 | | - public static string 当前手机号今日发送短信数量超过最大上限 => SR.当前手机号今日发送短信数量超过最大上限; |
| 187 | + // public static string 当前手机号今日发送短信数量超过最大上限 => SR.当前手机号今日发送短信数量超过最大上限; |
187 | 188 |
|
188 | | - public static string 短信服务故障 => SR.短信服务故障; |
| 189 | + // public static string 短信服务故障 => SR.短信服务故障; |
189 | 190 |
|
190 | | - public static string 验证码已过期或不存在 => SR.验证码已过期或不存在; |
| 191 | + // public static string 短信服务已停用 => SR.短信服务已停用; |
191 | 192 |
|
192 | | - public static string 验证码不正确 => SR.验证码不正确; |
| 193 | + // public static string 短信服务已停用_登录或注册 => SR.短信服务已停用_登录或注册; |
193 | 194 |
|
194 | | - public static string 新手机号不能与旧手机号一样 => SR.新手机号不能与旧手机号一样; |
| 195 | + // public static string 验证码已过期或不存在 => SR.验证码已过期或不存在; |
195 | 196 |
|
196 | | - public static string 当前手机号码不存在 => SR.当前手机号码不存在; |
| 197 | + // public static string 验证码不正确 => SR.验证码不正确; |
197 | 198 |
|
198 | | - public static string AuthorizationFailErrorMessage_ => SR.AuthorizationFailErrorMessage_; |
| 199 | + // public static string 新手机号不能与旧手机号一样 => SR.新手机号不能与旧手机号一样; |
199 | 200 |
|
200 | | - public static string UserIsBanErrorMessage => SR.UserIsBanErrorMessage; |
| 201 | + // public static string 当前手机号码不存在 => SR.当前手机号码不存在; |
201 | 202 |
|
202 | | - public static string BindFail_UserIsNotNull => SR.BindFail_UserIsNotNull; |
203 | | - } |
| 203 | + // public static string AuthorizationFailErrorMessage_ => SR.AuthorizationFailErrorMessage_; |
| 204 | + |
| 205 | + // public static string UserIsBanErrorMessage => SR.UserIsBanErrorMessage; |
| 206 | + |
| 207 | + // public static string BindFail_UserIsNotNull => SR.BindFail_UserIsNotNull; |
| 208 | + //} |
204 | 209 |
|
205 | 210 | /// <summary> |
206 | 211 | /// 模型验证长度限定值 |
|
0 commit comments