Enforce use of any instead of interface{} (#30588)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
9aa4818c71
Коммит
166a676fe5
@@ -35,8 +35,8 @@ type PropertyField struct {
|
||||
DeleteAt int64 `json:"delete_at"`
|
||||
}
|
||||
|
||||
func (pf *PropertyField) Auditable() map[string]interface{} {
|
||||
return map[string]interface{}{
|
||||
func (pf *PropertyField) Auditable() map[string]any {
|
||||
return map[string]any{
|
||||
"id": pf.ID,
|
||||
"group_id": pf.GroupID,
|
||||
"name": pf.Name,
|
||||
@@ -106,8 +106,8 @@ type PropertyFieldPatch struct {
|
||||
TargetType *string `json:"target_type"`
|
||||
}
|
||||
|
||||
func (pfp *PropertyFieldPatch) Auditable() map[string]interface{} {
|
||||
return map[string]interface{}{
|
||||
func (pfp *PropertyFieldPatch) Auditable() map[string]any {
|
||||
return map[string]any{
|
||||
"name": pfp.Name,
|
||||
"type": pfp.Type,
|
||||
"attrs": pfp.Attrs,
|
||||
|
||||
Ссылка в новой задаче
Block a user