[feat] ResFieldByAnys 类型移除
This commit is contained in:
parent
5ad727fb3a
commit
c7cfd1e6f7
@ -49,7 +49,7 @@ func (this ResField) ToStructField(tags ...string) reflect.StructField {
|
|||||||
typ = reflect.TypeOf(true)
|
typ = reflect.TypeOf(true)
|
||||||
case contracts.ResDataType_Json:
|
case contracts.ResDataType_Json:
|
||||||
if this.Default != "" && this.Default[0:1] == "[" {
|
if this.Default != "" && this.Default[0:1] == "[" {
|
||||||
typ = reflect.TypeOf(res_type.ResFieldByAnys{})
|
typ = reflect.TypeOf([]any{})
|
||||||
} else {
|
} else {
|
||||||
typ = reflect.TypeOf(map[string]any{})
|
typ = reflect.TypeOf(map[string]any{})
|
||||||
}
|
}
|
||||||
|
@ -1,17 +1,13 @@
|
|||||||
package base
|
package base
|
||||||
|
|
||||||
import (
|
|
||||||
"git.fsdpf.net/go/contracts/res_type"
|
|
||||||
)
|
|
||||||
|
|
||||||
type ResListener struct {
|
type ResListener struct {
|
||||||
Uuid string `db:"uuid"`
|
Uuid string `db:"uuid"`
|
||||||
Code string `db:"code"`
|
Code string `db:"code"`
|
||||||
Name string `db:"name"`
|
Name string `db:"name"`
|
||||||
ResourceUuid string `db:"resource_uuid"`
|
ResourceUuid string `db:"resource_uuid"`
|
||||||
Event res_type.ResFieldByAnys `db:"event"`
|
Event []any `db:"event"`
|
||||||
UpdatedAt string `db:"updated_at"`
|
UpdatedAt string `db:"updated_at"`
|
||||||
CreatedAt string `db:"created_at"`
|
CreatedAt string `db:"created_at"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type GetResListens func(categoryUuid string, event ...string) []ResListener
|
type GetResListens func(categoryUuid string, event ...string) []ResListener
|
||||||
|
Loading…
Reference in New Issue
Block a user