userUnreadCounts

package
v0.0.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SaveOrCreateById

func SaveOrCreateById(entity *Entity) int64

Types

type Entity

type Entity struct {
	UserId     uint64    `gorm:"primaryKey;column:user_id;autoIncrement;not null;" json:"userId"`    // id
	ReplyCount int       `gorm:"column:reply_count;type:int;not null;default:0;" json:"replyCount"`  // 回复消息
	LikeCount  int       `gorm:"column:like_count;type:int;not null;default:0;" json:"likeCount"`    // 点赞消息
	CreatedAt  time.Time `gorm:"column:created_at;index;autoCreateTime;<-:create;" json:"createdAt"` //
	UpdatedAt  time.Time `gorm:"column:updated_at;autoUpdateTime;" json:"updatedAt"`
}

func Get

func Get(id any) (entity Entity)

func (*Entity) TableName

func (itself *Entity) TableName() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL