🎨 update project structure

This commit is contained in:
landaiqing
2024-09-29 15:46:35 +08:00
parent 2769467ce2
commit 87f1ff6961
85 changed files with 693 additions and 431 deletions

12
dao/user_device_dao.go Normal file
View File

@@ -0,0 +1,12 @@
package dao
import "schisandra-cloud-album/model"
type UserDeviceDao interface {
// AddUserDevice 添加用户设备信息
AddUserDevice(userDevice *model.ScaAuthUserDevice) error
// GetUserDeviceByUIDIPAgent 根据用户ID、IP、Agent获取用户设备信息
GetUserDeviceByUIDIPAgent(uid, ip, agent string) (*model.ScaAuthUserDevice, error)
// UpdateUserDevice 更新用户设备信息
UpdateUserDevice(id int64, userDevice *model.ScaAuthUserDevice) error
}