[feat] 移除 ResFieldByMap, ResFieldByAnys 类型

This commit is contained in:
2023-06-23 00:10:24 +08:00
parent 88ed380018
commit 6ccef0fbb8
25 changed files with 416 additions and 459 deletions
+20 -13
View File
@@ -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)