user_ip.go 396 Bytes
Newer Older
kzkzzzz's avatar
kzkzzzz committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
package model

import (
	"time"
)

type UserIp struct {
	CreatedTime time.Time `json:"created_time"` // CreatedTime
	Id          int64     `json:"id"`           // id
	Ip          string    `json:"ip"`           // ip
	UpdatedTime time.Time `json:"updated_time"` // UpdatedTime
	UserId      int64     `json:"user_id"`      // 用户ID
}

func (u *UserIp) TableName() string {
	return "user_ip"
}