You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
490 B
20 lines
490 B
using System.Text.Json;
|
|
using Znyc.Cloudcar.Admin.Commons.Extend;
|
|
|
|
namespace Znyc.Cloudcar.Admin.Commons.Helpers
|
|
{
|
|
/// <summary>
|
|
/// 首字母大写
|
|
/// </summary>
|
|
public class UpperFirstCaseNamingPolicy : JsonNamingPolicy
|
|
{
|
|
/// <summary>
|
|
/// </summary>
|
|
/// <param name="name"></param>
|
|
/// <returns></returns>
|
|
public override string ConvertName(string name)
|
|
{
|
|
return name.UpperFirst();
|
|
}
|
|
}
|
|
}
|