package service import ( "yumc.pw/cloud/nvwa/database" "yumc.pw/cloud/nvwa/model" ) // Git is a git client var Git = &git{} type git struct { } func (g *git) List() *[]model.GitLog { var users = &[]model.GitLog{} database.Db.Find(&users) return users } func (g *git) Add(model *model.GitLog) { database.Db.Create(model) }