Documentation ¶
Index ¶
- func Start(discov discoveryregistry.SvcDiscoveryRegistry, server *grpc.Server) error
- func ToDBAdminUpdate(req *admin.AdminUpdateInfoReq) (map[string]any, error)
- func ToDBAdminUpdatePassword(password string) (map[string]any, error)
- func ToDBAppletUpdate(req *admin.UpdateAppletReq) (map[string]any, error)
- func ToDBInvitationRegisterUpdate(userID string) map[string]any
- type Admin
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Start ¶
func Start(discov discoveryregistry.SvcDiscoveryRegistry, server *grpc.Server) error
func ToDBAdminUpdate ¶
func ToDBAdminUpdate(req *admin.AdminUpdateInfoReq) (map[string]any, error)
func ToDBAdminUpdatePassword ¶
func ToDBAppletUpdate ¶
func ToDBAppletUpdate(req *admin.UpdateAppletReq) (map[string]any, error)
Types ¶
type Admin ¶
type Admin struct { Account string `gorm:"column:account;primary_key;type:char(64)"` Password string `gorm:"column:password;type:char(64)"` FaceURL string `gorm:"column:face_url;type:char(64)"` Nickname string `gorm:"column:nickname;type:char(64)"` UserID string `gorm:"column:user_id;type:char(64)"` // openIM userID Level int32 `gorm:"column:level;default:1" ` CreateTime time.Time `gorm:"column:create_time"` }
Click to show internal directories.
Click to hide internal directories.