You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
package relation
|
|
|
|
|
|
|
|
import "time"
|
|
|
|
|
|
|
|
const FriendRequestModelTableName = "friend_requests"
|
|
|
|
|
|
|
|
type FriendRequestModel struct {
|
|
|
|
FromUserID string `gorm:"column:from_user_id;primary_key;size:64"`
|
|
|
|
ToUserID string `gorm:"column:to_user_id;primary_key;size:64"`
|
|
|
|
HandleResult int32 `gorm:"column:handle_result"`
|
|
|
|
ReqMsg string `gorm:"column:req_msg;size:255"`
|
|
|
|
CreateTime time.Time `gorm:"column:create_time; autoCreateTime"`
|
|
|
|
HandlerUserID string `gorm:"column:handler_user_id;size:64"`
|
|
|
|
HandleMsg string `gorm:"column:handle_msg;size:255"`
|
|
|
|
HandleTime time.Time `gorm:"column:handle_time"`
|
|
|
|
Ex string `gorm:"column:ex;size:1024"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (FriendRequestModel) TableName() string {
|
|
|
|
return FriendRequestModelTableName
|
|
|
|
}
|
|
|
|
|
|
|
|
type FriendRequestModelInterface interface {
|
|
|
|
}
|