拼写错误修改 updata->update regist->register 更新需更新数据库 建议更新数据库文件 数据库将单表数据录入 方便选择性更新

This commit is contained in:
QM303176530
2020-04-02 22:31:48 +08:00
parent 1c30ae1080
commit f545048e60
17 changed files with 47 additions and 174 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ type SysUser struct {
//}
//注册接口model方法
func (u *SysUser) Regist() (err error, userInter *SysUser) {
func (u *SysUser) Register() (err error, userInter *SysUser) {
var user SysUser
//判断用户名是否注册
notResigt := qmsql.DEFAULTDB.Where("username = ?", u.Username).First(&user).RecordNotFound()