[feat] 移除 ResFieldByMap, ResFieldByAnys 类型
This commit is contained in:
+20
-13
@@ -1,20 +1,27 @@
|
||||
package base
|
||||
|
||||
import (
|
||||
"git.fsdpf.net/go/contracts/res_type"
|
||||
)
|
||||
type ResApiApprovalFlow struct {
|
||||
Uuid string `json:"uuid"`
|
||||
Code string `json:"code"`
|
||||
Name string `json:"name"`
|
||||
RoleUuid string `json:"role_uuid"`
|
||||
Type int64 `json:"type"`
|
||||
Yes string `json:"yes"`
|
||||
No string `json:"no"`
|
||||
Comment string `json:"comment"`
|
||||
}
|
||||
|
||||
type ResApiApproval struct {
|
||||
Uuid string `db:"uuid"`
|
||||
ApiUuid string `db:"api_uuid"`
|
||||
Code string `db:"code"`
|
||||
Name string `db:"name"`
|
||||
MarkField string `db:"markField"`
|
||||
RolesUuid res_type.ResFieldByAnys `db:"rolesUuid"`
|
||||
Flows res_type.ResFieldByAnys `db:"flows"`
|
||||
Roles res_type.ResFieldByAnys `db:"roles"`
|
||||
UpdatedAt string `db:"updated_at"`
|
||||
CreatedAt string `db:"created_at"`
|
||||
Uuid string `db:"uuid"`
|
||||
ApiUuid string `db:"api_uuid"`
|
||||
Code string `db:"code"`
|
||||
Name string `db:"name"`
|
||||
MarkField string `db:"markField"`
|
||||
RolesUuid []string `db:"rolesUuid"`
|
||||
Flows []ResApiApprovalFlow `db:"flows"`
|
||||
Roles []string `db:"roles"`
|
||||
UpdatedAt string `db:"updated_at"`
|
||||
CreatedAt string `db:"created_at"`
|
||||
}
|
||||
|
||||
type GetResApiApproval func(code string) (ResApiApproval, bool)
|
||||
|
||||
Reference in New Issue
Block a user