update: used gormv2 to handle permission process

This commit is contained in:
zhangwenjian committed 2020-08-29 23:25:53 +08:00
1 parent d53ba4ed7a
commit 671291d024
10 files changed
+64 -55

No files matched your search

+1 -1
View File
@@ -11,7 +11,7 @@ type GeneralDelDto struct {
Id string `uri:"id" json:"id" validate:"required"`
}
type GeneralGetDto struct {
Id string `uri:"id" json:"id" validate:"required"`
Id int `uri:"id" json:"id" validate:"required"`
}
func MakeCondition(q interface{}) func(db *gorm.DB) *gorm.DB {