UserFocus

package
v5.1.37 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckUserFocusOne

func CheckUserFocusOne(args *ArgsCheckUserFocusOne) (b bool)

CheckUserFocusOne 查询用户是否关注了数据

func Delete

func Delete(args *ArgsDelete) (err error)

Delete 删除关注 Deprecated

func DeleteByFrom

func DeleteByFrom(args *ArgsDeleteByFrom) (err error)

DeleteByFrom 删除某个来源的所有关注

func DeleteByOrg

func DeleteByOrg(args *ArgsDeleteByOrg) (err error)

DeleteByOrg 删除组织的所有关注

func DeleteByUserFrom

func DeleteByUserFrom(args *ArgsDeleteByUserFrom) (err error)

DeleteByUserFrom 根据来源删除关注

func GetCountByFrom

func GetCountByFrom(args *ArgsGetCountByFrom) (count int64, err error)

GetCountByFrom 获取数据的关注总人数

func GetCountByUser

func GetCountByUser(args *ArgsGetCountByUser) (count int64, err error)

GetCountByUser 获取数据的关注总人数

Types

type ArgsCheckUserFocusMore

type ArgsCheckUserFocusMore struct {
	//关注类型
	Mark string `db:"mark" json:"mark" check:"mark"`
	//用户ID
	UserID int64 `db:"user_id" json:"userID"`
	//绑定组织
	OrgID int64 `db:"org_id" json:"orgID"`
	//要查询的数据列
	CheckList []CoreSQLFrom.FieldsFrom `json:"checkList"`
}

ArgsCheckUserFocusMore 批量查询用户是否关注了数据参数

type ArgsCheckUserFocusOne

type ArgsCheckUserFocusOne struct {
	//关注类型
	Mark string `db:"mark" json:"mark" check:"mark"`
	//关注内容来源
	FromInfo CoreSQLFrom.FieldsFrom `db:"from_info" json:"fromInfo"`
	//用户ID
	UserID int64 `db:"user_id" json:"userID" check:"id"`
}

ArgsCheckUserFocusOne 查询用户是否关注了数据参数

type ArgsCreate

type ArgsCreate struct {
	//用户ID
	UserID int64 `db:"user_id" json:"userID"`
	//绑定组织
	OrgID int64 `db:"org_id" json:"orgID"`
	//关注类型
	Mark string `db:"mark" json:"mark"`
	//关注内容来源
	FromInfo CoreSQLFrom.FieldsFrom `db:"from_info" json:"fromInfo"`
}

ArgsCreate 创建关注参数

type ArgsDelete

type ArgsDelete struct {
	//ID
	ID int64 `db:"id" json:"id" check:"id"`
	//用户ID
	UserID int64 `db:"user_id" json:"userID" check:"id" empty:"true"`
}

ArgsDelete 删除关注参数

type ArgsDeleteByFrom

type ArgsDeleteByFrom struct {
	//关注内容来源
	FromInfo CoreSQLFrom.FieldsFrom `db:"from_info" json:"fromInfo"`
}

ArgsDeleteByFrom 删除某个来源的所有关注参数

type ArgsDeleteByOrg

type ArgsDeleteByOrg struct {
	//绑定组织
	OrgID int64 `db:"org_id" json:"orgID"`
}

ArgsDeleteByOrg 删除组织的所有关注参数

type ArgsDeleteByUserFrom

type ArgsDeleteByUserFrom struct {
	//用户ID
	UserID int64 `db:"user_id" json:"userID" check:"id"`
	//关注类型
	Mark string `db:"mark" json:"mark"`
	//关注内容来源
	FromInfo CoreSQLFrom.FieldsFrom `db:"from_info" json:"fromInfo"`
}

ArgsDeleteByUserFrom 根据来源删除关注参数

type ArgsGetCountByFrom

type ArgsGetCountByFrom struct {
	//关注类型
	Mark string `db:"mark" json:"mark" check:"mark"`
	//查询来源
	FromInfo CoreSQLFrom.FieldsFrom `json:"fromInfo"`
}

ArgsGetCountByFrom 获取数据的关注总人数参数

type ArgsGetCountByUser

type ArgsGetCountByUser struct {
	//用户ID
	UserID int64 `db:"user_id" json:"userID"`
}

ArgsGetCountByUser 获取数据的关注总人数参数

type ArgsGetList

type ArgsGetList struct {
	//分页
	Pages CoreSQLPages.ArgsDataList `json:"pages"`
	//用户ID
	UserID int64 `json:"userID" check:"id" empty:"true"`
	//组织ID
	OrgID int64 `json:"orgID" check:"id" empty:"true"`
	//关注类型
	Mark string `db:"mark" json:"mark" check:"mark" empty:"true"`
	//查询来源
	FromInfo CoreSQLFrom.FieldsFrom `json:"fromInfo"`
	//是否被删除
	IsRemove bool `db:"is_remove" json:"isRemove" check:"bool" empty:"true"`
	//搜索
	Search string `json:"search" check:"search" empty:"true"`
}

ArgsGetList 获取关注列表

type DataCheckUserFocusMore

type DataCheckUserFocusMore struct {
	//关注内容来源
	FromInfo CoreSQLFrom.FieldsFrom `db:"from_info" json:"fromInfo"`
	//是否关注
	IsFocus bool `json:"isFocus"`
}

DataCheckUserFocusMore 批量查询用户是否关注了数据数据

func CheckUserFocusMore

func CheckUserFocusMore(args *ArgsCheckUserFocusMore) (data []DataCheckUserFocusMore)

CheckUserFocusMore 批量查询用户是否关注了数据

type FieldsFocus

type FieldsFocus struct {
	//ID
	ID int64 `db:"id" json:"id"`
	//创建时间
	CreateAt time.Time `db:"create_at" json:"createAt"`
	//删除时间
	DeleteAt time.Time `db:"delete_at" json:"deleteAt"`
	//用户ID
	UserID int64 `db:"user_id" json:"userID"`
	//绑定组织
	// 该组织根据资源来源设定
	// 如果是平台资源,则为0
	OrgID int64 `db:"org_id" json:"orgID"`
	//关注类型
	Mark string `db:"mark" json:"mark"`
	//关注内容来源
	FromInfo CoreSQLFrom.FieldsFrom `db:"from_info" json:"fromInfo"`
}

FieldsFocus 用户关注

func Create

func Create(args *ArgsCreate) (data FieldsFocus, err error)

Create 创建关注 Deprecated

func GetList

func GetList(args *ArgsGetList) (dataList []FieldsFocus, dataCount int64, err error)

Jump to

Keyboard shortcuts

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