Files
lone-services/services/analysis/internal/dao/authorize.go
T
zzw 15a5616308
CI / changes (push) Successful in 1m31s
CI / ad (push) Successful in 0s
CI / admin (push) Successful in 0s
CI / aiserver (push) Successful in 0s
CI / analysis (push) Successful in 37s
CI / bff (push) Successful in 18s
CI / chore (push) Successful in 0s
CI / equipment (push) Successful in 0s
CI / express (push) Successful in 1s
CI / factory (push) Successful in 0s
CI / message (push) Successful in 0s
CI / order (push) Successful in 0s
CI / payment (push) Successful in 0s
CI / percutaneous (push) Successful in 0s
CI / product (push) Successful in 0s
CI / record (push) Successful in 1s
CI / sale (push) Successful in 0s
CI / store (push) Successful in 22s
CI / support (push) Successful in 0s
CI / task (push) Successful in 0s
CI / user (push) Successful in 21s
CI / water (push) Successful in 0s
CI / wecom (push) Successful in 0s
CI / ws (push) Successful in 0s
feat: scan graph
2026-11-04 11:46:54 +08:00

50 lines
1.8 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package dao
import "lone-services/pkg/utils"
type UserStoreAuth struct {
Id int64 `gorm:"column:id;primaryKey;autoIncrement" json:"id"`
UserId int64 `gorm:"column:user_id" json:"user_id"`
StoreId int64 `gorm:"column:store_id" json:"store_id"`
ValidityTime utils.CustomTime `gorm:"column:validity_time" json:"validity_time"`
Status uint8 `gorm:"column:status" json:"status"`
CreatedAt utils.CustomTime `gorm:"column:created_at" json:"created_at"`
}
type StoreAuthItem struct {
Id int64 `json:"id"`
StoreId int64 `json:"store_id"`
Name string `json:"name"`
Address string `json:"address"`
ValidityTime string `json:"validity_time"`
CreatedAt string `json:"created_at"`
Status int `json:"status"`
}
// AdminBindStoreItem 后台「用户授权门店」列表项(对齐旧 AdminStoreItem)
type AdminBindStoreItem struct {
Id int64 `json:"id"`
Name string `json:"name"`
UserName string `json:"user_name"`
UserMobile string `json:"user_mobile"`
District string `json:"district"`
DistrictText string `json:"district_text"`
ValidityTime string `json:"validity_time"`
Status int `json:"status"` // 1=正常 2=过期
}
// AdminBindUserItem 后台「门店授权用户」列表项(对齐旧 AdminUserItem)
type AdminBindUserItem struct {
Id int64 `json:"id"`
UserId int64 `json:"user_id"`
Name string `json:"name"`
Nickname string `json:"nickname"`
Avatar string `json:"avatar"`
Mobile string `json:"mobile"`
Gender uint32 `json:"gender"`
GenderText string `json:"gender_text"`
Birthday string `json:"birthday"`
Age string `json:"age"`
ValidityTime string `json:"validity_time"`
}