2023-04-12 16:56:55 +08:00
|
|
|
package base
|
|
|
|
|
|
|
|
import (
|
|
|
|
"git.fsdpf.net/go/contracts/res_type"
|
|
|
|
)
|
|
|
|
|
|
|
|
type ResApi struct {
|
|
|
|
Uuid string `db:"uuid"`
|
|
|
|
Code string `db:"code"`
|
|
|
|
Name string `db:"name"`
|
|
|
|
PrimaryKey string `db:"primaryKey"`
|
|
|
|
ResourceUuid string `db:"resource_uuid"`
|
|
|
|
Method string `db:"method"`
|
|
|
|
Category string `db:"action"`
|
|
|
|
Params res_type.ResFieldByAnys `db:"params"`
|
|
|
|
Roles res_type.ResFieldByAnys `db:"roles"`
|
|
|
|
UpdatedAt string `db:"updated_at"`
|
|
|
|
CreatedAt string `db:"created_at"`
|
|
|
|
}
|
2023-04-12 19:50:25 +08:00
|
|
|
|
|
|
|
type GetResApi func(code string) (ResApi, bool)
|