Migrate all methods in the model package to the service package
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"gin-vue-admin/global"
|
||||
"gin-vue-admin/model"
|
||||
)
|
||||
|
||||
// @title Create
|
||||
// @description create a workflow, 创建工作流
|
||||
// @auth (2020/04/05 20:22 )
|
||||
// @return error
|
||||
func Create(wk model.SysWorkflow) error {
|
||||
err := global.GVA_DB.Create(&wk).Error
|
||||
return err
|
||||
}
|
||||
Reference in New Issue
Block a user