ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、视频、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
* 使用 Camel 风格。 * 使用描述性参数名称。参数名称应当具有足够的描述性,以便参数的名称及其类型可用于在大多数情况下确定它的含义。 ~~~ public string GetPagingList(int pageIndex, string currentUrl = null) { int number = 0; //... } ~~~ * 类型内部的私有和受保护字段,使用Camel风格命名,但加“_”前缀 ~~~ public class UserController : Controller { private readonly IUserAppService _userAppService; private readonly IRoleAppService _roleAppService; private readonly IPermissionAppService _permissionAppService; } ~~~