mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-05 15:26:36 +08:00
docs: add package and exported symbol comments for revive lint compliance
This commit is contained in:
@@ -15,4 +15,5 @@ See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
// Package common 提供跨模块共享的常量、错误定义和通用工具函数。
|
||||
package common
|
||||
|
||||
@@ -17,6 +17,7 @@ limitations under the License.
|
||||
|
||||
package common
|
||||
|
||||
// 通用业务错误消息常量
|
||||
const (
|
||||
BannedAccount = "账号已被封禁"
|
||||
AmountMustBeGreaterThanZero = "金额必须大于0"
|
||||
@@ -32,6 +33,7 @@ const (
|
||||
UnAuthorized = "未登录"
|
||||
)
|
||||
|
||||
// 保护期相关错误消息
|
||||
const (
|
||||
GetProtectionDaysFailed = "获取新用户保护期配置失败"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user