models

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = sqlx.ErrNotFound

Functions

This section is empty.

Types

type Friend

type Friend struct {
	Id        uint64         `db:"id"`
	UserId    string         `db:"user_id"`
	FriendUid string         `db:"friend_uid"`
	Remark    sql.NullString `db:"remark"`
	AddSource sql.NullInt64  `db:"add_source"`
	CreatedAt sql.NullTime   `db:"created_at"`
}

type FriendModel

type FriendModel interface {
	// contains filtered or unexported methods
}

FriendModel is an interface to be customized, add more methods here, and implement the added methods in customFriendModel.

func NewFriendModel

func NewFriendModel(conn sqlx.SqlConn, c cache.CacheConf, opts ...cache.Option) FriendModel

NewFriendModel returns a model for the database table.

type FriendRequest

type FriendRequest struct {
	Id           uint64         `db:"id"`
	UserId       string         `db:"user_id"`
	ReqUid       string         `db:"req_uid"`
	ReqMsg       sql.NullString `db:"req_msg"`
	ReqTime      time.Time      `db:"req_time"`
	HandleResult sql.NullInt64  `db:"handle_result"`
	HandleMsg    sql.NullString `db:"handle_msg"`
	HandledAt    sql.NullTime   `db:"handled_at"`
}

type FriendRequestModel

type FriendRequestModel interface {
	// contains filtered or unexported methods
}

FriendRequestModel is an interface to be customized, add more methods here, and implement the added methods in customFriendRequestModel.

func NewFriendRequestModel

func NewFriendRequestModel(conn sqlx.SqlConn, c cache.CacheConf, opts ...cache.Option) FriendRequestModel

NewFriendRequestModel returns a model for the database table.

type Group

type Group struct {
	Id              string         `db:"id"`
	Name            string         `db:"name"`
	Icon            string         `db:"icon"`
	Status          sql.NullInt64  `db:"status"`
	CreatorUid      string         `db:"creator_uid"`
	GroupType       int64          `db:"group_type"`
	IsVerify        bool           `db:"is_verify"`
	Notification    sql.NullString `db:"notification"`
	NotificationUid sql.NullString `db:"notification_uid"`
	CreatedAt       sql.NullTime   `db:"created_at"`
	UpdatedAt       sql.NullTime   `db:"updated_at"`
}

type GroupMember

type GroupMember struct {
	Id          uint64         `db:"id"`
	GroupId     string         `db:"group_id"`
	UserId      string         `db:"user_id"`
	RoleLevel   int64          `db:"role_level"`
	JoinTime    sql.NullTime   `db:"join_time"`
	JoinSource  sql.NullInt64  `db:"join_source"`
	InviterUid  sql.NullString `db:"inviter_uid"`
	OperatorUid sql.NullString `db:"operator_uid"`
}

type GroupMemberModel

type GroupMemberModel interface {
	// contains filtered or unexported methods
}

GroupMemberModel is an interface to be customized, add more methods here, and implement the added methods in customGroupMemberModel.

func NewGroupMemberModel

func NewGroupMemberModel(conn sqlx.SqlConn, c cache.CacheConf, opts ...cache.Option) GroupMemberModel

NewGroupMemberModel returns a model for the database table.

type GroupModel

type GroupModel interface {
	// contains filtered or unexported methods
}

GroupModel is an interface to be customized, add more methods here, and implement the added methods in customGroupModel.

func NewGroupModel

func NewGroupModel(conn sqlx.SqlConn, c cache.CacheConf, opts ...cache.Option) GroupModel

NewGroupModel returns a model for the database table.

type GroupRequest

type GroupRequest struct {
	Id            uint64         `db:"id"`
	ReqId         string         `db:"req_id"`
	GroupId       string         `db:"group_id"`
	ReqMsg        sql.NullString `db:"req_msg"`
	ReqTime       sql.NullTime   `db:"req_time"`
	JoinSource    sql.NullInt64  `db:"join_source"`
	InviterUserId sql.NullString `db:"inviter_user_id"`
	HandleUserId  sql.NullString `db:"handle_user_id"`
	HandleTime    sql.NullTime   `db:"handle_time"`
	HandleResult  sql.NullInt64  `db:"handle_result"`
}

type GroupRequestModel

type GroupRequestModel interface {
	// contains filtered or unexported methods
}

GroupRequestModel is an interface to be customized, add more methods here, and implement the added methods in customGroupRequestModel.

func NewGroupRequestModel

func NewGroupRequestModel(conn sqlx.SqlConn, c cache.CacheConf, opts ...cache.Option) GroupRequestModel

NewGroupRequestModel returns a model for the database table.

Jump to

Keyboard shortcuts

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