docs: add package and exported symbol comments for revive lint compliance

This commit is contained in:
ryan
2026-06-09 13:42:06 +08:00
parent 4ac9857fe8
commit b05d26c9c6
40 changed files with 87 additions and 0 deletions
+1
View File
@@ -15,4 +15,5 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
// Package common 提供跨模块共享的常量、错误定义和通用工具函数。
package common
+2
View File
@@ -17,6 +17,7 @@ limitations under the License.
package common
// 通用业务错误消息常量
const (
BannedAccount = "账号已被封禁"
AmountMustBeGreaterThanZero = "金额必须大于0"
@@ -32,6 +33,7 @@ const (
UnAuthorized = "未登录"
)
// 保护期相关错误消息
const (
GetProtectionDaysFailed = "获取新用户保护期配置失败"
)