初始
This commit is contained in:
33
internal/app/system/model/user_registration.go
Normal file
33
internal/app/system/model/user_registration.go
Normal file
@ -0,0 +1,33 @@
|
||||
// ==========================================================================
|
||||
// GFast自动生成model操作代码。
|
||||
// 生成日期:2024-07-26 15:32:12
|
||||
// 生成路径: internal/app/system/model/user_registration.go
|
||||
// 生成人:gfast
|
||||
// desc:极光推送
|
||||
// company:云南奇讯科技有限公司
|
||||
// ==========================================================================
|
||||
|
||||
package model
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
"github.com/gogf/gf/v2/util/gmeta"
|
||||
)
|
||||
|
||||
// UserRegistrationInfoRes is the golang structure for table user_registration.
|
||||
type UserRegistrationInfoRes struct {
|
||||
gmeta.Meta `orm:"table:user_registration"`
|
||||
Id uint `orm:"id,primary" json:"id"` //
|
||||
UserId int `orm:"user_id" json:"userId"` // 用户ID
|
||||
OpenId string `orm:"open_id" json:"openId"` // 微信 open_id
|
||||
RegistrationId string `orm:"registration_id" json:"registrationId"` // 极光推送 设备唯一标识
|
||||
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` //
|
||||
}
|
||||
|
||||
type UserRegistrationListRes struct {
|
||||
Id uint `json:"id"`
|
||||
UserId int `json:"userId"`
|
||||
OpenId string `json:"openId"`
|
||||
RegistrationId string `json:"registrationId"`
|
||||
CreatedAt *gtime.Time `json:"createdAt"`
|
||||
}
|
Reference in New Issue
Block a user