[ADD]上传图片

This commit is contained in:
2020-09-26 19:06:41 +08:00
parent 2095dca48e
commit ef2d1dbbc4
12 changed files with 282 additions and 21 deletions

View File

@@ -2,6 +2,7 @@ package models
type Employee struct {
Model
AvatarUrl string `json:"avatar_url"`
Username string `json:"username"`
Password string `json:"password"`
Department string `json:"department"`
@@ -75,4 +76,4 @@ func CleaanAllEmployee() bool {
db.Unscoped().Where("deleted_on != ?", 0).Delete(&Employee{})
return true
}
}