chore: stabilize lint and verify builds
This commit is contained in:
@@ -25,6 +25,7 @@ func GenderItems() []requests.KV {
|
||||
for _, v := range values {
|
||||
items = append(items, requests.NewKV(string(v), v.Description()))
|
||||
}
|
||||
|
||||
return items
|
||||
}
|
||||
|
||||
@@ -49,6 +50,7 @@ func UserContentActionTypeItems() []requests.KV {
|
||||
for _, v := range values {
|
||||
items = append(items, requests.NewKV(string(v), v.Description()))
|
||||
}
|
||||
|
||||
return items
|
||||
}
|
||||
|
||||
@@ -71,6 +73,7 @@ func UserCommentActionTypeItems() []requests.KV {
|
||||
for _, v := range values {
|
||||
items = append(items, requests.NewKV(string(v), v.Description()))
|
||||
}
|
||||
|
||||
return items
|
||||
}
|
||||
|
||||
@@ -95,6 +98,7 @@ func PayoutAccountTypeItems() []requests.KV {
|
||||
for _, v := range values {
|
||||
items = append(items, requests.NewKV(string(v), v.Description()))
|
||||
}
|
||||
|
||||
return items
|
||||
}
|
||||
|
||||
@@ -123,5 +127,6 @@ func NotificationTypeItems() []requests.KV {
|
||||
for _, v := range values {
|
||||
items = append(items, requests.NewKV(string(v), v.Description()))
|
||||
}
|
||||
|
||||
return items
|
||||
}
|
||||
|
||||
@@ -38,6 +38,7 @@ func RoleItems() []requests.KV {
|
||||
for _, v := range values {
|
||||
items = append(items, requests.NewKV(string(v), v.Description()))
|
||||
}
|
||||
|
||||
return items
|
||||
}
|
||||
|
||||
@@ -70,6 +71,7 @@ func UserStatusItems() []requests.KV {
|
||||
for _, v := range values {
|
||||
items = append(items, requests.NewKV(string(v), v.Description()))
|
||||
}
|
||||
|
||||
return items
|
||||
}
|
||||
|
||||
@@ -100,6 +102,7 @@ func TenantStatusItems() []requests.KV {
|
||||
for _, v := range values {
|
||||
items = append(items, requests.NewKV(string(v), v.Description()))
|
||||
}
|
||||
|
||||
return items
|
||||
}
|
||||
|
||||
@@ -126,6 +129,7 @@ func TenantUserRoleItems() []requests.KV {
|
||||
for _, v := range values {
|
||||
items = append(items, requests.NewKV(string(v), v.Description()))
|
||||
}
|
||||
|
||||
return items
|
||||
}
|
||||
|
||||
@@ -156,6 +160,7 @@ func MediaAssetTypeItems() []requests.KV {
|
||||
for _, v := range values {
|
||||
items = append(items, requests.NewKV(string(v), v.Description()))
|
||||
}
|
||||
|
||||
return items
|
||||
}
|
||||
|
||||
@@ -188,6 +193,7 @@ func MediaAssetStatusItems() []requests.KV {
|
||||
for _, v := range values {
|
||||
items = append(items, requests.NewKV(string(v), v.Description()))
|
||||
}
|
||||
|
||||
return items
|
||||
}
|
||||
|
||||
@@ -214,6 +220,7 @@ func MediaAssetVariantItems() []requests.KV {
|
||||
for _, v := range values {
|
||||
items = append(items, requests.NewKV(string(v), v.Description()))
|
||||
}
|
||||
|
||||
return items
|
||||
}
|
||||
|
||||
@@ -248,6 +255,7 @@ func ContentStatusItems() []requests.KV {
|
||||
for _, v := range values {
|
||||
items = append(items, requests.NewKV(string(v), v.Description()))
|
||||
}
|
||||
|
||||
return items
|
||||
}
|
||||
|
||||
@@ -276,6 +284,7 @@ func ContentVisibilityItems() []requests.KV {
|
||||
for _, v := range values {
|
||||
items = append(items, requests.NewKV(string(v), v.Description()))
|
||||
}
|
||||
|
||||
return items
|
||||
}
|
||||
|
||||
@@ -304,11 +313,13 @@ func ContentAssetRoleItems() []requests.KV {
|
||||
for _, v := range values {
|
||||
items = append(items, requests.NewKV(string(v), v.Description()))
|
||||
}
|
||||
|
||||
return items
|
||||
}
|
||||
|
||||
const (
|
||||
// DefaultContentPreviewSeconds is the default preview duration in seconds when content.preview_seconds is unset/invalid.
|
||||
// DefaultContentPreviewSeconds is the default preview duration in seconds
|
||||
// when content.preview_seconds is unset or invalid.
|
||||
// 默认试看时长(秒):当未配置或传入非法值时使用。
|
||||
DefaultContentPreviewSeconds int32 = 60
|
||||
|
||||
@@ -344,6 +355,7 @@ func DiscountTypeItems() []requests.KV {
|
||||
for _, v := range values {
|
||||
items = append(items, requests.NewKV(string(v), v.Description()))
|
||||
}
|
||||
|
||||
return items
|
||||
}
|
||||
|
||||
@@ -368,6 +380,7 @@ func CurrencyItems() []requests.KV {
|
||||
for _, v := range values {
|
||||
items = append(items, requests.NewKV(string(v), v.Description()))
|
||||
}
|
||||
|
||||
return items
|
||||
}
|
||||
|
||||
@@ -398,6 +411,7 @@ func ContentAccessStatusItems() []requests.KV {
|
||||
for _, v := range values {
|
||||
items = append(items, requests.NewKV(string(v), v.Description()))
|
||||
}
|
||||
|
||||
return items
|
||||
}
|
||||
|
||||
@@ -428,6 +442,7 @@ func OrderTypeItems() []requests.KV {
|
||||
for _, v := range values {
|
||||
items = append(items, requests.NewKV(string(v), v.Description()))
|
||||
}
|
||||
|
||||
return items
|
||||
}
|
||||
|
||||
@@ -462,6 +477,7 @@ func OrderStatusItems() []requests.KV {
|
||||
for _, v := range values {
|
||||
items = append(items, requests.NewKV(string(v), v.Description()))
|
||||
}
|
||||
|
||||
return items
|
||||
}
|
||||
|
||||
@@ -498,5 +514,6 @@ func TenantLedgerTypeItems() []requests.KV {
|
||||
for _, v := range values {
|
||||
items = append(items, requests.NewKV(string(v), v.Description()))
|
||||
}
|
||||
|
||||
return items
|
||||
}
|
||||
|
||||
@@ -25,6 +25,7 @@ func CouponTypeItems() []requests.KV {
|
||||
for _, v := range values {
|
||||
items = append(items, requests.NewKV(string(v), v.Description()))
|
||||
}
|
||||
|
||||
return items
|
||||
}
|
||||
|
||||
@@ -53,5 +54,6 @@ func UserCouponStatusItems() []requests.KV {
|
||||
for _, v := range values {
|
||||
items = append(items, requests.NewKV(string(v), v.Description()))
|
||||
}
|
||||
|
||||
return items
|
||||
}
|
||||
|
||||
@@ -25,5 +25,6 @@ func PayoutAccountStatusItems() []requests.KV {
|
||||
for _, v := range values {
|
||||
items = append(items, requests.NewKV(string(v), v.Description()))
|
||||
}
|
||||
|
||||
return items
|
||||
}
|
||||
|
||||
@@ -27,6 +27,7 @@ func TenantInviteStatusItems() []requests.KV {
|
||||
for _, v := range values {
|
||||
items = append(items, requests.NewKV(string(v), v.Description()))
|
||||
}
|
||||
|
||||
return items
|
||||
}
|
||||
|
||||
@@ -55,5 +56,6 @@ func TenantJoinRequestStatusItems() []requests.KV {
|
||||
for _, v := range values {
|
||||
items = append(items, requests.NewKV(string(v), v.Description()))
|
||||
}
|
||||
|
||||
return items
|
||||
}
|
||||
|
||||
@@ -2,8 +2,8 @@ package utils
|
||||
|
||||
import "encoding/json"
|
||||
|
||||
// MustString
|
||||
func MustJsonString(in any) string {
|
||||
func MustJSONString(in any) string {
|
||||
b, _ := json.Marshal(in)
|
||||
|
||||
return string(b)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user