mirror of
https://github.com/tiger1103/gfast.git
synced 2026-10-14 00:57:39 +00:00
24 lines
453 B
Go
24 lines
453 B
Go
package api
|
|
|
|
import (
|
|
"gfast/app/system/dao"
|
|
"gfast/app/system/service"
|
|
|
|
"github.com/gogf/gf/net/ghttp"
|
|
"github.com/gogf/gf/os/gtime"
|
|
)
|
|
|
|
type syncTable struct {
|
|
SystemBase
|
|
}
|
|
|
|
var SyncTable = new(syncTable)
|
|
|
|
func (s *syncTable) FunSyncTable(r *ghttp.Request) {
|
|
var param dao.SyncSrcTableParams
|
|
r.Parse(¶m)
|
|
param.CreateDate = gtime.Now()
|
|
param.WriteDate = gtime.Now()
|
|
service.SyncTable.AddSrcTable(¶m)
|
|
s.SusJsonExit(r, "添加成功")
|
|
} |