新增用户相关接口

This commit is contained in:
2023-06-29 16:16:21 +08:00
parent 966057fa5b
commit 98aa3263bb
11 changed files with 475 additions and 114 deletions
+18
View File
@@ -0,0 +1,18 @@
package dao
import (
"hospital-admin-api/api/model"
"hospital-admin-api/global"
)
type AdminDeptDao struct {
}
// GetAdminDeptFirstById 获取部门数据-部门id
func (r *AdminDeptDao) GetAdminDeptFirstById(deptId int64) (m *model.AdminDept, err error) {
err = global.Db.First(&m, deptId).Error
if err != nil {
return nil, err
}
return m, nil
}