初始
This commit is contained in:
26
internal/app/common/controller/design.go
Normal file
26
internal/app/common/controller/design.go
Normal file
@ -0,0 +1,26 @@
|
||||
package controller
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"github.com/tiger1103/gfast/v3/internal/app/system/dao"
|
||||
"github.com/tiger1103/gfast/v3/library/liberr"
|
||||
)
|
||||
|
||||
// AuditEntityReq 审核请求参数
|
||||
type AuditEntityReq struct {
|
||||
TableName string `p:"table_name" dc:"表名"`
|
||||
TableId string `p:"table_id" dc:"表ID"`
|
||||
ProjectId int64 `p:"projectId"`
|
||||
}
|
||||
|
||||
// AuditDataListCommon 设计审核列表
|
||||
func AuditDataListCommon(ctx context.Context, audit *AuditEntityReq) (err error) {
|
||||
err = g.Try(ctx, func(ctx context.Context) {
|
||||
dao.DocumentCompletion.Ctx(ctx).Where("")
|
||||
liberr.ErrIsNil(ctx, err)
|
||||
})
|
||||
return
|
||||
}
|
||||
|
||||
// 根据当前数据的项目id递归推断出根目录id
|
Reference in New Issue
Block a user