 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- type Account
- type Application
- type Applicationstatus
- type CreateAccountParams
- type CreateApplicationParams
- type CreateFileParams
- type CreateFriendRelationParams
- type CreateGroupNotifyParams
- type CreateGroupNotifyRow
- type CreateGroupRelationParams
- type CreateManySettingParams
- type CreateMsgParams
- type CreateMsgRow
- type CreateSettingParams
- type CreateUserParams
- type DBTX
- type DeleteApplicationParams
- type DeleteSettingParams
- type ExistsAccountByNameAndUserIDParams
- type ExistsApplicationByIDParams
- type ExistsApplicationByIDWithLockParams
- type ExistsFriendRelationParams
- type ExistsFriendSettingParams
- type ExistsIsLeaderParams
- type ExistsSettingParams
- type FeedMsgsByAccountIDAndTimeParams
- type FeedMsgsByAccountIDAndTimeRow
- type File
- type Filetype
- type Gender
- type GetAccountByIDParams
- type GetAccountByIDRow
- type GetAccountsByNameParams
- type GetAccountsByNameRow
- type GetAccountsByUserIDRow
- type GetApplicationByIDParams
- type GetApplicationsParams
- type GetApplicationsRow
- type GetFileByRelationIDIsNUllRow
- type GetFriendPinSettingsOrderByPinTimeRow
- type GetFriendRelationByIDRow
- type GetFriendSettingsByNameParams
- type GetFriendSettingsByNameRow
- type GetFriendSettingsOrderByNameRow
- type GetFriendShowSettingsOrderByShowTimeRow
- type GetGroupListRow
- type GetGroupMembersByIDRow
- type GetGroupNotifyByIDRow
- type GetGroupPinSettingsOrderByPinTimeRow
- type GetGroupRelationByIDRow
- type GetGroupSettingsByNameParams
- type GetGroupSettingsByNameRow
- type GetGroupShowSettingsOrderByShowTimeRow
- type GetMsgByIDRow
- type GetMsgsByContentAndRelationParams
- type GetMsgsByContentAndRelationRow
- type GetMsgsByContentParams
- type GetMsgsByContentRow
- type GetMsgsByRelationIDAndTimeParams
- type GetMsgsByRelationIDAndTimeRow
- type GetPinMsgsByRelationIDParams
- type GetPinMsgsByRelationIDRow
- type GetRlyMsgsInfoByMsgIDParams
- type GetRlyMsgsInfoByMsgIDRow
- type GetSettingByIDParams
- type GetTopMsgByRelationIDRow
- type GroupNotify
- type HasReadMsgParams
- type Message
- type Msgnotifytype
- type Querier
- type Queries
- func (q *Queries) CountAccountByUserID(ctx context.Context, userID int64) (int32, error)
- func (q *Queries) CreateAccount(ctx context.Context, arg *CreateAccountParams) error
- func (q *Queries) CreateApplication(ctx context.Context, arg *CreateApplicationParams) error
- func (q *Queries) CreateFile(ctx context.Context, arg *CreateFileParams) (*File, error)
- func (q *Queries) CreateFriendRelation(ctx context.Context, arg *CreateFriendRelationParams) (int64, error)
- func (q *Queries) CreateGroupNotify(ctx context.Context, arg *CreateGroupNotifyParams) (*CreateGroupNotifyRow, error)
- func (q *Queries) CreateGroupRelation(ctx context.Context, arg *CreateGroupRelationParams) (int64, error)
- func (q *Queries) CreateManySetting(ctx context.Context, arg []*CreateManySettingParams) (int64, error)
- func (q *Queries) CreateMsg(ctx context.Context, arg *CreateMsgParams) (*CreateMsgRow, error)
- func (q *Queries) CreateSetting(ctx context.Context, arg *CreateSettingParams) error
- func (q *Queries) CreateUser(ctx context.Context, arg *CreateUserParams) (*User, error)
- func (q *Queries) DeleteAccount(ctx context.Context, id int64) error
- func (q *Queries) DeleteAccountsByUserID(ctx context.Context, userID int64) ([]int64, error)
- func (q *Queries) DeleteApplication(ctx context.Context, arg *DeleteApplicationParams) error
- func (q *Queries) DeleteFileByID(ctx context.Context, id int64) error
- func (q *Queries) DeleteFriendRelationsByAccountID(ctx context.Context, accountID int64) ([]int64, error)
- func (q *Queries) DeleteGroup(ctx context.Context, relationID int64) error
- func (q *Queries) DeleteGroupNotify(ctx context.Context, id int64) error
- func (q *Queries) DeleteRelation(ctx context.Context, id int64) error
- func (q *Queries) DeleteSetting(ctx context.Context, arg *DeleteSettingParams) error
- func (q *Queries) DeleteSettingsByAccountID(ctx context.Context, accountID int64) ([]int64, error)
- func (q *Queries) DeleteUser(ctx context.Context, id int64) error
- func (q *Queries) ExistEmail(ctx context.Context, email string) (bool, error)
- func (q *Queries) ExistsAccountByID(ctx context.Context, id int64) (bool, error)
- func (q *Queries) ExistsAccountByNameAndUserID(ctx context.Context, arg *ExistsAccountByNameAndUserIDParams) (bool, error)
- func (q *Queries) ExistsApplicationByID(ctx context.Context, arg *ExistsApplicationByIDParams) (bool, error)
- func (q *Queries) ExistsApplicationByIDWithLock(ctx context.Context, arg *ExistsApplicationByIDWithLockParams) (bool, error)
- func (q *Queries) ExistsFriendRelation(ctx context.Context, arg *ExistsFriendRelationParams) (bool, error)
- func (q *Queries) ExistsFriendSetting(ctx context.Context, arg *ExistsFriendSettingParams) (bool, error)
- func (q *Queries) ExistsGroupLeaderByAccountIDWithLock(ctx context.Context, accountID int64) (bool, error)
- func (q *Queries) ExistsIsLeader(ctx context.Context, arg *ExistsIsLeaderParams) (bool, error)
- func (q *Queries) ExistsSetting(ctx context.Context, arg *ExistsSettingParams) (bool, error)
- func (q *Queries) ExistsUserByID(ctx context.Context, id int64) (bool, error)
- func (q *Queries) FeedMsgsByAccountIDAndTime(ctx context.Context, arg *FeedMsgsByAccountIDAndTimeParams) ([]*FeedMsgsByAccountIDAndTimeRow, error)
- func (q *Queries) GetAccountByID(ctx context.Context, arg *GetAccountByIDParams) (*GetAccountByIDRow, error)
- func (q *Queries) GetAccountIDsByRelationID(ctx context.Context, relationID int64) ([]int64, error)
- func (q *Queries) GetAccountIDsByUserID(ctx context.Context, userID int64) ([]int64, error)
- func (q *Queries) GetAccountsByName(ctx context.Context, arg *GetAccountsByNameParams) ([]*GetAccountsByNameRow, error)
- func (q *Queries) GetAccountsByUserID(ctx context.Context, userID int64) ([]*GetAccountsByUserIDRow, error)
- func (q *Queries) GetAllEmails(ctx context.Context) ([]string, error)
- func (q *Queries) GetAllGroupRelation(ctx context.Context) ([]int64, error)
- func (q *Queries) GetAllRelationIDs(ctx context.Context) ([]int64, error)
- func (q *Queries) GetAllRelationOnRelation(ctx context.Context) ([]int64, error)
- func (q *Queries) GetAllRelationsOnFile(ctx context.Context) ([]sql.NullInt64, error)
- func (q *Queries) GetApplicationByID(ctx context.Context, arg *GetApplicationByIDParams) (*Application, error)
- func (q *Queries) GetApplications(ctx context.Context, arg *GetApplicationsParams) ([]*GetApplicationsRow, error)
- func (q *Queries) GetAvatar(ctx context.Context, accountID sql.NullInt64) (bool, error)
- func (q *Queries) GetFileByRelationID(ctx context.Context, relationID sql.NullInt64) ([]*File, error)
- func (q *Queries) GetFileByRelationIDIsNUll(ctx context.Context) ([]*GetFileByRelationIDIsNUllRow, error)
- func (q *Queries) GetFileDetailsByID(ctx context.Context, id int64) (*File, error)
- func (q *Queries) GetFileKeyByID(ctx context.Context, id int64) (string, error)
- func (q *Queries) GetFriendPinSettingsOrderByPinTime(ctx context.Context, accountID int64) ([]*GetFriendPinSettingsOrderByPinTimeRow, error)
- func (q *Queries) GetFriendRelationByID(ctx context.Context, id int64) (*GetFriendRelationByIDRow, error)
- func (q *Queries) GetFriendSettingsByName(ctx context.Context, arg *GetFriendSettingsByNameParams) ([]*GetFriendSettingsByNameRow, error)
- func (q *Queries) GetFriendSettingsOrderByName(ctx context.Context, accountID int64) ([]*GetFriendSettingsOrderByNameRow, error)
- func (q *Queries) GetFriendShowSettingsOrderByShowTime(ctx context.Context, accountID int64) ([]*GetFriendShowSettingsOrderByShowTimeRow, error)
- func (q *Queries) GetGroupAvatar(ctx context.Context, relationID sql.NullInt64) (*File, error)
- func (q *Queries) GetGroupList(ctx context.Context, accountID int64) ([]*GetGroupListRow, error)
- func (q *Queries) GetGroupMembers(ctx context.Context, relationID int64) ([]int64, error)
- func (q *Queries) GetGroupMembersByID(ctx context.Context, relationID int64) ([]*GetGroupMembersByIDRow, error)
- func (q *Queries) GetGroupNotifyByID(ctx context.Context, relationID sql.NullInt64) ([]*GetGroupNotifyByIDRow, error)
- func (q *Queries) GetGroupPinSettingsOrderByPinTime(ctx context.Context, accountID int64) ([]*GetGroupPinSettingsOrderByPinTimeRow, error)
- func (q *Queries) GetGroupRelationByID(ctx context.Context, id int64) (*GetGroupRelationByIDRow, error)
- func (q *Queries) GetGroupSettingsByName(ctx context.Context, arg *GetGroupSettingsByNameParams) ([]*GetGroupSettingsByNameRow, error)
- func (q *Queries) GetGroupShowSettingsOrderByShowTime(ctx context.Context, accountID int64) ([]*GetGroupShowSettingsOrderByShowTimeRow, error)
- func (q *Queries) GetMsgByID(ctx context.Context, id int64) (*GetMsgByIDRow, error)
- func (q *Queries) GetMsgsByContent(ctx context.Context, arg *GetMsgsByContentParams) ([]*GetMsgsByContentRow, error)
- func (q *Queries) GetMsgsByContentAndRelation(ctx context.Context, arg *GetMsgsByContentAndRelationParams) ([]*GetMsgsByContentAndRelationRow, error)
- func (q *Queries) GetMsgsByRelationIDAndTime(ctx context.Context, arg *GetMsgsByRelationIDAndTimeParams) ([]*GetMsgsByRelationIDAndTimeRow, error)
- func (q *Queries) GetPinMsgsByRelationID(ctx context.Context, arg *GetPinMsgsByRelationIDParams) ([]*GetPinMsgsByRelationIDRow, error)
- func (q *Queries) GetRlyMsgsInfoByMsgID(ctx context.Context, arg *GetRlyMsgsInfoByMsgIDParams) ([]*GetRlyMsgsInfoByMsgIDRow, error)
- func (q *Queries) GetSettingByID(ctx context.Context, arg *GetSettingByIDParams) (*Setting, error)
- func (q *Queries) GetTopMsgByRelationID(ctx context.Context, relationID int64) (*GetTopMsgByRelationIDRow, error)
- func (q *Queries) GetUserByEmail(ctx context.Context, email string) (*User, error)
- func (q *Queries) GetUserByID(ctx context.Context, id int64) (*User, error)
- func (q *Queries) HasReadMsg(ctx context.Context, arg *HasReadMsgParams) (bool, error)
- func (q *Queries) TransferIsSelfFalse(ctx context.Context, arg *TransferIsSelfFalseParams) error
- func (q *Queries) TransferIsSelfTrue(ctx context.Context, arg *TransferIsSelfTrueParams) error
- func (q *Queries) UpdateAccount(ctx context.Context, arg *UpdateAccountParams) error
- func (q *Queries) UpdateAccountAvatar(ctx context.Context, arg *UpdateAccountAvatarParams) error
- func (q *Queries) UpdateAccountFile(ctx context.Context, arg *UpdateAccountFileParams) error
- func (q *Queries) UpdateApplication(ctx context.Context, arg *UpdateApplicationParams) error
- func (q *Queries) UpdateGroupAvatar(ctx context.Context, arg *UpdateGroupAvatarParams) error
- func (q *Queries) UpdateGroupNotify(ctx context.Context, arg *UpdateGroupNotifyParams) (*UpdateGroupNotifyRow, error)
- func (q *Queries) UpdateGroupRelation(ctx context.Context, arg *UpdateGroupRelationParams) error
- func (q *Queries) UpdateMsgPin(ctx context.Context, arg *UpdateMsgPinParams) error
- func (q *Queries) UpdateMsgReads(ctx context.Context, arg *UpdateMsgReadsParams) ([]*UpdateMsgReadsRow, error)
- func (q *Queries) UpdateMsgRevoke(ctx context.Context, arg *UpdateMsgRevokeParams) error
- func (q *Queries) UpdateMsgTopFalseByMsgID(ctx context.Context, id int64) error
- func (q *Queries) UpdateMsgTopFalseByRelationID(ctx context.Context, relationID int64) error
- func (q *Queries) UpdateMsgTopTrueByMsgID(ctx context.Context, id int64) error
- func (q *Queries) UpdateSettingDisturb(ctx context.Context, arg *UpdateSettingDisturbParams) error
- func (q *Queries) UpdateSettingLeader(ctx context.Context, arg *UpdateSettingLeaderParams) error
- func (q *Queries) UpdateSettingNickName(ctx context.Context, arg *UpdateSettingNickNameParams) error
- func (q *Queries) UpdateSettingPin(ctx context.Context, arg *UpdateSettingPinParams) error
- func (q *Queries) UpdateSettingShow(ctx context.Context, arg *UpdateSettingShowParams) error
- func (q *Queries) UpdateUser(ctx context.Context, arg *UpdateUserParams) error
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
 
- type Relation
- type Relationtype
- type Setting
- type TransferIsSelfFalseParams
- type TransferIsSelfTrueParams
- type UpdateAccountAvatarParams
- type UpdateAccountFileParams
- type UpdateAccountParams
- type UpdateApplicationParams
- type UpdateGroupAvatarParams
- type UpdateGroupNotifyParams
- type UpdateGroupNotifyRow
- type UpdateGroupRelationParams
- type UpdateMsgPinParams
- type UpdateMsgReadsParams
- type UpdateMsgReadsRow
- type UpdateMsgRevokeParams
- type UpdateSettingDisturbParams
- type UpdateSettingLeaderParams
- type UpdateSettingNickNameParams
- type UpdateSettingPinParams
- type UpdateSettingShowParams
- type UpdateUserParams
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Applicationstatus ¶
type Applicationstatus string
const ( ApplicationstatusValue0 Applicationstatus = "已申请" ApplicationstatusValue1 Applicationstatus = "已同意" ApplicationstatusValue2 Applicationstatus = "已拒绝" )
func (*Applicationstatus) Scan ¶
func (e *Applicationstatus) Scan(src interface{}) error
type CreateAccountParams ¶
type CreateApplicationParams ¶
type CreateFileParams ¶
type CreateGroupNotifyParams ¶
type CreateGroupNotifyRow ¶
type CreateGroupNotifyRow struct {
	ID         int64         `json:"id"`
	RelationID sql.NullInt64 `json:"relation_id"`
	MsgContent string        `json:"msg_content"`
	MsgExpand  pgtype.JSON   `json:"msg_expand"`
	AccountID  sql.NullInt64 `json:"account_id"`
	CreateAt   time.Time     `json:"create_at"`
	ReadIds    []int64       `json:"read_ids"`
}
    type CreateManySettingParams ¶
type CreateMsgParams ¶
type CreateMsgParams struct {
	NotifyType Msgnotifytype `json:"notify_type"`
	MsgType    string        `json:"msg_type"`
	MsgContent string        `json:"msg_content"`
	MsgExtend  pgtype.JSON   `json:"msg_extend"`
	FileID     sql.NullInt64 `json:"file_id"`
	AccountID  sql.NullInt64 `json:"account_id"`
	RlyMsgID   sql.NullInt64 `json:"rly_msg_id"`
	RelationID int64         `json:"relation_id"`
}
    type CreateMsgRow ¶
type CreateSettingParams ¶
type CreateUserParams ¶
type DBTX ¶
type DBTX interface {
	Exec(context.Context, string, ...interface{}) (pgconn.CommandTag, error)
	Query(context.Context, string, ...interface{}) (pgx.Rows, error)
	QueryRow(context.Context, string, ...interface{}) pgx.Row
	CopyFrom(ctx context.Context, tableName pgx.Identifier, columnNames []string, rowSrc pgx.CopyFromSource) (int64, error)
}
    type DeleteApplicationParams ¶
type DeleteSettingParams ¶
type ExistsIsLeaderParams ¶
type ExistsSettingParams ¶
type FeedMsgsByAccountIDAndTimeRow ¶
type FeedMsgsByAccountIDAndTimeRow struct {
	ID         int64         `json:"id"`
	NotifyType Msgnotifytype `json:"notify_type"`
	MsgType    string        `json:"msg_type"`
	MsgContent string        `json:"msg_content"`
	MsgExtend  pgtype.JSON   `json:"msg_extend"`
	FileID     sql.NullInt64 `json:"file_id"`
	AccountID  sql.NullInt64 `json:"account_id"`
	RlyMsgID   sql.NullInt64 `json:"rly_msg_id"`
	RelationID int64         `json:"relation_id"`
	CreateAt   time.Time     `json:"create_at"`
	IsRevoke   bool          `json:"is_revoke"`
	IsTop      bool          `json:"is_top"`
	IsPin      bool          `json:"is_pin"`
	PinTime    time.Time     `json:"pin_time"`
	ReadIds    []int64       `json:"read_ids"`
	Total      int64         `json:"total"`
	ReplyCount int64         `json:"reply_count"`
	HasRead    bool          `json:"has_read"`
}
    type File ¶
type File struct {
	ID         int64         `json:"id"`
	FileName   string        `json:"file_name"`
	FileType   Filetype      `json:"file_type"`
	FileSize   int64         `json:"file_size"`
	Key        string        `json:"key"`
	Url        string        `json:"url"`
	RelationID sql.NullInt64 `json:"relation_id"`
	AccountID  sql.NullInt64 `json:"account_id"`
	CreateAt   time.Time     `json:"create_at"`
}
    type GetAccountByIDParams ¶
type GetAccountByIDRow ¶
type GetAccountsByNameParams ¶
type GetAccountsByNameRow ¶
type GetAccountsByUserIDRow ¶
type GetApplicationsParams ¶
type GetApplicationsRow ¶
type GetApplicationsRow struct {
	Account1ID     int64             `json:"account1_id"`
	Account2ID     int64             `json:"account2_id"`
	ApplyMsg       string            `json:"apply_msg"`
	RefuseMsg      string            `json:"refuse_msg"`
	Status         Applicationstatus `json:"status"`
	CreateAt       time.Time         `json:"create_at"`
	UpdateAt       time.Time         `json:"update_at"`
	Total          int64             `json:"total"`
	Account1Avatar string            `json:"account1_avatar"`
	Account1Name   string            `json:"account1_name"`
	Account2Avatar string            `json:"account2_avatar"`
	Account2Name   string            `json:"account2_name"`
}
    type GetFriendSettingsByNameRow ¶
type GetFriendSettingsByNameRow struct {
	RelationID    int64     `json:"relation_id"`
	NickName      string    `json:"nick_name"`
	IsNotDisturb  bool      `json:"is_not_disturb"`
	IsPin         bool      `json:"is_pin"`
	PinTime       time.Time `json:"pin_time"`
	IsShow        bool      `json:"is_show"`
	LastShow      time.Time `json:"last_show"`
	IsSelf        bool      `json:"is_self"`
	AccountID     int64     `json:"account_id"`
	AccountName   string    `json:"account_name"`
	AccountAvatar string    `json:"account_avatar"`
	Total         int64     `json:"total"`
}
    type GetFriendSettingsOrderByNameRow ¶
type GetFriendSettingsOrderByNameRow struct {
	RelationID    int64     `json:"relation_id"`
	NickName      string    `json:"nick_name"`
	IsNotDisturb  bool      `json:"is_not_disturb"`
	IsPin         bool      `json:"is_pin"`
	PinTime       time.Time `json:"pin_time"`
	IsShow        bool      `json:"is_show"`
	LastShow      time.Time `json:"last_show"`
	IsSelf        bool      `json:"is_self"`
	AccountID     int64     `json:"account_id"`
	AccountName   string    `json:"account_name"`
	AccountAvatar string    `json:"account_avatar"`
}
    type GetFriendShowSettingsOrderByShowTimeRow ¶
type GetFriendShowSettingsOrderByShowTimeRow struct {
	RelationID    int64     `json:"relation_id"`
	NickName      string    `json:"nick_name"`
	IsNotDisturb  bool      `json:"is_not_disturb"`
	IsPin         bool      `json:"is_pin"`
	PinTime       time.Time `json:"pin_time"`
	IsShow        bool      `json:"is_show"`
	LastShow      time.Time `json:"last_show"`
	IsSelf        bool      `json:"is_self"`
	AccountID     int64     `json:"account_id"`
	AccountName   string    `json:"account_name"`
	AccountAvatar string    `json:"account_avatar"`
}
    type GetGroupListRow ¶
type GetGroupListRow struct {
	RelationID   int64       `json:"relation_id"`
	NickName     string      `json:"nick_name"`
	IsNotDisturb bool        `json:"is_not_disturb"`
	IsPin        bool        `json:"is_pin"`
	PinTime      time.Time   `json:"pin_time"`
	IsShow       bool        `json:"is_show"`
	LastShow     time.Time   `json:"last_show"`
	IsSelf       bool        `json:"is_self"`
	RelationID_2 int64       `json:"relation_id_2"`
	GroupName    interface{} `json:"group_name"`
	GroupAvatar  interface{} `json:"group_avatar"`
	Description  interface{} `json:"description"`
	Total        int64       `json:"total"`
}
    type GetGroupMembersByIDRow ¶
type GetGroupNotifyByIDRow ¶
type GetGroupNotifyByIDRow struct {
	ID         int64         `json:"id"`
	RelationID sql.NullInt64 `json:"relation_id"`
	MsgContent string        `json:"msg_content"`
	MsgExpand  pgtype.JSON   `json:"msg_expand"`
	AccountID  sql.NullInt64 `json:"account_id"`
	CreateAt   time.Time     `json:"create_at"`
	ReadIds    []int64       `json:"read_ids"`
}
    type GetGroupRelationByIDRow ¶
type GetGroupSettingsByNameRow ¶
type GetGroupSettingsByNameRow struct {
	RelationID   int64       `json:"relation_id"`
	NickName     string      `json:"nick_name"`
	IsNotDisturb bool        `json:"is_not_disturb"`
	IsPin        bool        `json:"is_pin"`
	PinTime      time.Time   `json:"pin_time"`
	IsShow       bool        `json:"is_show"`
	LastShow     time.Time   `json:"last_show"`
	IsSelf       bool        `json:"is_self"`
	RelationID_2 int64       `json:"relation_id_2"`
	GroupName    interface{} `json:"group_name"`
	GroupAvatar  interface{} `json:"group_avatar"`
	Description  interface{} `json:"description"`
	Total        int64       `json:"total"`
}
    type GetGroupShowSettingsOrderByShowTimeRow ¶
type GetGroupShowSettingsOrderByShowTimeRow struct {
	RelationID   int64          `json:"relation_id"`
	NickName     string         `json:"nick_name"`
	IsNotDisturb bool           `json:"is_not_disturb"`
	IsPin        bool           `json:"is_pin"`
	PinTime      time.Time      `json:"pin_time"`
	IsShow       bool           `json:"is_show"`
	LastShow     time.Time      `json:"last_show"`
	IsSelf       bool           `json:"is_self"`
	ID           int64          `json:"id"`
	GroupType    sql.NullString `json:"group_type"`
}
    type GetMsgByIDRow ¶
type GetMsgByIDRow struct {
	ID         int64         `json:"id"`
	NotifyType Msgnotifytype `json:"notify_type"`
	MsgType    string        `json:"msg_type"`
	MsgContent string        `json:"msg_content"`
	MsgExtend  pgtype.JSON   `json:"msg_extend"`
	FileID     sql.NullInt64 `json:"file_id"`
	AccountID  sql.NullInt64 `json:"account_id"`
	RlyMsgID   sql.NullInt64 `json:"rly_msg_id"`
	RelationID int64         `json:"relation_id"`
	CreateAt   time.Time     `json:"create_at"`
	IsRevoke   bool          `json:"is_revoke"`
	IsTop      bool          `json:"is_top"`
	IsPin      bool          `json:"is_pin"`
	PinTime    time.Time     `json:"pin_time"`
	ReadIds    []int64       `json:"read_ids"`
}
    type GetMsgsByContentAndRelationRow ¶
type GetMsgsByContentAndRelationRow struct {
	ID         int64         `json:"id"`
	NotifyType Msgnotifytype `json:"notify_type"`
	MsgType    string        `json:"msg_type"`
	MsgContent string        `json:"msg_content"`
	MsgExtend  pgtype.JSON   `json:"msg_extend"`
	FileID     sql.NullInt64 `json:"file_id"`
	AccountID  sql.NullInt64 `json:"account_id"`
	RelationID int64         `json:"relation_id"`
	CreateAt   time.Time     `json:"create_at"`
	Total      int64         `json:"total"`
}
    type GetMsgsByContentParams ¶
type GetMsgsByContentRow ¶
type GetMsgsByContentRow struct {
	ID         int64         `json:"id"`
	NotifyType Msgnotifytype `json:"notify_type"`
	MsgType    string        `json:"msg_type"`
	MsgContent string        `json:"msg_content"`
	MsgExtend  pgtype.JSON   `json:"msg_extend"`
	FileID     sql.NullInt64 `json:"file_id"`
	AccountID  sql.NullInt64 `json:"account_id"`
	RelationID int64         `json:"relation_id"`
	CreateAt   time.Time     `json:"create_at"`
	Total      int64         `json:"total"`
}
    type GetMsgsByRelationIDAndTimeRow ¶
type GetMsgsByRelationIDAndTimeRow struct {
	ID         int64         `json:"id"`
	NotifyType Msgnotifytype `json:"notify_type"`
	MsgType    string        `json:"msg_type"`
	MsgContent string        `json:"msg_content"`
	MsgExtend  pgtype.JSON   `json:"msg_extend"`
	FileID     sql.NullInt64 `json:"file_id"`
	AccountID  sql.NullInt64 `json:"account_id"`
	RlyMsgID   sql.NullInt64 `json:"rly_msg_id"`
	RelationID int64         `json:"relation_id"`
	CreateAt   time.Time     `json:"create_at"`
	IsRevoke   bool          `json:"is_revoke"`
	IsTop      bool          `json:"is_top"`
	IsPin      bool          `json:"is_pin"`
	PinTime    time.Time     `json:"pin_time"`
	ReadIds    []int64       `json:"read_ids"`
	Total      int64         `json:"total"`
	ReplyCount int64         `json:"reply_count"`
}
    type GetPinMsgsByRelationIDRow ¶
type GetPinMsgsByRelationIDRow struct {
	ID         int64         `json:"id"`
	NotifyType Msgnotifytype `json:"notify_type"`
	MsgType    string        `json:"msg_type"`
	MsgContent string        `json:"msg_content"`
	MsgExtend  pgtype.JSON   `json:"msg_extend"`
	FileID     sql.NullInt64 `json:"file_id"`
	AccountID  sql.NullInt64 `json:"account_id"`
	RelationID int64         `json:"relation_id"`
	CreateAt   time.Time     `json:"create_at"`
	IsRevoke   bool          `json:"is_revoke"`
	IsTop      bool          `json:"is_top"`
	IsPin      bool          `json:"is_pin"`
	PinTime    time.Time     `json:"pin_time"`
	ReadIds    []int64       `json:"read_ids"`
	ReplyCount int64         `json:"reply_count"`
	Total      int64         `json:"total"`
}
    type GetRlyMsgsInfoByMsgIDRow ¶
type GetRlyMsgsInfoByMsgIDRow struct {
	ID         int64         `json:"id"`
	NotifyType Msgnotifytype `json:"notify_type"`
	MsgType    string        `json:"msg_type"`
	MsgContent string        `json:"msg_content"`
	MsgExtend  pgtype.JSON   `json:"msg_extend"`
	FileID     sql.NullInt64 `json:"file_id"`
	AccountID  sql.NullInt64 `json:"account_id"`
	RelationID int64         `json:"relation_id"`
	CreateAt   time.Time     `json:"create_at"`
	IsRevoke   bool          `json:"is_revoke"`
	IsTop      bool          `json:"is_top"`
	IsPin      bool          `json:"is_pin"`
	PinTime    time.Time     `json:"pin_time"`
	ReadIds    []int64       `json:"read_ids"`
	ReplyCount int64         `json:"reply_count"`
	Total      int64         `json:"total"`
}
    type GetSettingByIDParams ¶
type GetTopMsgByRelationIDRow ¶
type GetTopMsgByRelationIDRow struct {
	ID         int64         `json:"id"`
	NotifyType Msgnotifytype `json:"notify_type"`
	MsgType    string        `json:"msg_type"`
	MsgContent string        `json:"msg_content"`
	MsgExtend  pgtype.JSON   `json:"msg_extend"`
	FileID     sql.NullInt64 `json:"file_id"`
	AccountID  sql.NullInt64 `json:"account_id"`
	RelationID int64         `json:"relation_id"`
	CreateAt   time.Time     `json:"create_at"`
	IsRevoke   bool          `json:"is_revoke"`
	IsTop      bool          `json:"is_top"`
	IsPin      bool          `json:"is_pin"`
	PinTime    time.Time     `json:"pin_time"`
	ReadIds    []int64       `json:"read_ids"`
	ReplyCount int64         `json:"reply_count"`
	Total      int64         `json:"total"`
}
    type GroupNotify ¶
type GroupNotify struct {
	ID            int64         `json:"id"`
	RelationID    sql.NullInt64 `json:"relation_id"`
	MsgContent    string        `json:"msg_content"`
	MsgExpand     pgtype.JSON   `json:"msg_expand"`
	AccountID     sql.NullInt64 `json:"account_id"`
	CreateAt      time.Time     `json:"create_at"`
	ReadIds       []int64       `json:"read_ids"`
	MsgContentTsv interface{}   `json:"msg_content_tsv"`
}
    type HasReadMsgParams ¶
type HasReadMsgParams struct {
	MsgID     int64       `json:"msg_id"`
	AccountID interface{} `json:"account_id"`
}
    type Message ¶
type Message struct {
	ID            int64         `json:"id"`
	NotifyType    Msgnotifytype `json:"notify_type"`
	MsgType       string        `json:"msg_type"`
	MsgContent    string        `json:"msg_content"`
	MsgExtend     pgtype.JSON   `json:"msg_extend"`
	FileID        sql.NullInt64 `json:"file_id"`
	AccountID     sql.NullInt64 `json:"account_id"`
	RlyMsgID      sql.NullInt64 `json:"rly_msg_id"`
	RelationID    int64         `json:"relation_id"`
	CreateAt      time.Time     `json:"create_at"`
	IsRevoke      bool          `json:"is_revoke"`
	IsTop         bool          `json:"is_top"`
	IsPin         bool          `json:"is_pin"`
	PinTime       time.Time     `json:"pin_time"`
	ReadIds       []int64       `json:"read_ids"`
	MsgContentTsv interface{}   `json:"msg_content_tsv"`
}
    type Msgnotifytype ¶
type Msgnotifytype string
const ( MsgnotifytypeSystem Msgnotifytype = "system" MsgnotifytypeCommon Msgnotifytype = "common" )
func (*Msgnotifytype) Scan ¶
func (e *Msgnotifytype) Scan(src interface{}) error
type Querier ¶
type Querier interface {
	CountAccountByUserID(ctx context.Context, userID int64) (int32, error)
	CreateAccount(ctx context.Context, arg *CreateAccountParams) error
	CreateApplication(ctx context.Context, arg *CreateApplicationParams) error
	CreateFile(ctx context.Context, arg *CreateFileParams) (*File, error)
	CreateFriendRelation(ctx context.Context, arg *CreateFriendRelationParams) (int64, error)
	CreateGroupNotify(ctx context.Context, arg *CreateGroupNotifyParams) (*CreateGroupNotifyRow, error)
	CreateGroupRelation(ctx context.Context, arg *CreateGroupRelationParams) (int64, error)
	CreateManySetting(ctx context.Context, arg []*CreateManySettingParams) (int64, error)
	CreateMsg(ctx context.Context, arg *CreateMsgParams) (*CreateMsgRow, error)
	CreateSetting(ctx context.Context, arg *CreateSettingParams) error
	CreateUser(ctx context.Context, arg *CreateUserParams) (*User, error)
	DeleteAccount(ctx context.Context, id int64) error
	DeleteAccountsByUserID(ctx context.Context, userID int64) ([]int64, error)
	DeleteApplication(ctx context.Context, arg *DeleteApplicationParams) error
	DeleteFileByID(ctx context.Context, id int64) error
	DeleteFriendRelationsByAccountID(ctx context.Context, accountID int64) ([]int64, error)
	DeleteGroup(ctx context.Context, relationID int64) error
	DeleteGroupNotify(ctx context.Context, id int64) error
	DeleteRelation(ctx context.Context, id int64) error
	DeleteSetting(ctx context.Context, arg *DeleteSettingParams) error
	DeleteSettingsByAccountID(ctx context.Context, accountID int64) ([]int64, error)
	DeleteUser(ctx context.Context, id int64) error
	ExistEmail(ctx context.Context, email string) (bool, error)
	ExistsAccountByID(ctx context.Context, id int64) (bool, error)
	ExistsAccountByNameAndUserID(ctx context.Context, arg *ExistsAccountByNameAndUserIDParams) (bool, error)
	ExistsApplicationByID(ctx context.Context, arg *ExistsApplicationByIDParams) (bool, error)
	ExistsApplicationByIDWithLock(ctx context.Context, arg *ExistsApplicationByIDWithLockParams) (bool, error)
	ExistsFriendRelation(ctx context.Context, arg *ExistsFriendRelationParams) (bool, error)
	ExistsFriendSetting(ctx context.Context, arg *ExistsFriendSettingParams) (bool, error)
	ExistsGroupLeaderByAccountIDWithLock(ctx context.Context, accountID int64) (bool, error)
	ExistsIsLeader(ctx context.Context, arg *ExistsIsLeaderParams) (bool, error)
	ExistsSetting(ctx context.Context, arg *ExistsSettingParams) (bool, error)
	ExistsUserByID(ctx context.Context, id int64) (bool, error)
	FeedMsgsByAccountIDAndTime(ctx context.Context, arg *FeedMsgsByAccountIDAndTimeParams) ([]*FeedMsgsByAccountIDAndTimeRow, error)
	GetAccountByID(ctx context.Context, arg *GetAccountByIDParams) (*GetAccountByIDRow, error)
	GetAccountIDsByRelationID(ctx context.Context, relationID int64) ([]int64, error)
	GetAccountIDsByUserID(ctx context.Context, userID int64) ([]int64, error)
	GetAccountsByName(ctx context.Context, arg *GetAccountsByNameParams) ([]*GetAccountsByNameRow, error)
	GetAccountsByUserID(ctx context.Context, userID int64) ([]*GetAccountsByUserIDRow, error)
	GetAllEmails(ctx context.Context) ([]string, error)
	GetAllGroupRelation(ctx context.Context) ([]int64, error)
	GetAllRelationIDs(ctx context.Context) ([]int64, error)
	GetAllRelationOnRelation(ctx context.Context) ([]int64, error)
	GetAllRelationsOnFile(ctx context.Context) ([]sql.NullInt64, error)
	GetApplicationByID(ctx context.Context, arg *GetApplicationByIDParams) (*Application, error)
	GetApplications(ctx context.Context, arg *GetApplicationsParams) ([]*GetApplicationsRow, error)
	GetAvatar(ctx context.Context, accountID sql.NullInt64) (bool, error)
	GetFileByRelationID(ctx context.Context, relationID sql.NullInt64) ([]*File, error)
	GetFileByRelationIDIsNUll(ctx context.Context) ([]*GetFileByRelationIDIsNUllRow, error)
	GetFileDetailsByID(ctx context.Context, id int64) (*File, error)
	GetFileKeyByID(ctx context.Context, id int64) (string, error)
	GetFriendPinSettingsOrderByPinTime(ctx context.Context, accountID int64) ([]*GetFriendPinSettingsOrderByPinTimeRow, error)
	GetFriendRelationByID(ctx context.Context, id int64) (*GetFriendRelationByIDRow, error)
	GetFriendSettingsByName(ctx context.Context, arg *GetFriendSettingsByNameParams) ([]*GetFriendSettingsByNameRow, error)
	GetFriendSettingsOrderByName(ctx context.Context, accountID int64) ([]*GetFriendSettingsOrderByNameRow, error)
	GetFriendShowSettingsOrderByShowTime(ctx context.Context, accountID int64) ([]*GetFriendShowSettingsOrderByShowTimeRow, error)
	GetGroupAvatar(ctx context.Context, relationID sql.NullInt64) (*File, error)
	GetGroupList(ctx context.Context, accountID int64) ([]*GetGroupListRow, error)
	GetGroupMembers(ctx context.Context, relationID int64) ([]int64, error)
	GetGroupMembersByID(ctx context.Context, relationID int64) ([]*GetGroupMembersByIDRow, error)
	GetGroupNotifyByID(ctx context.Context, relationID sql.NullInt64) ([]*GetGroupNotifyByIDRow, error)
	GetGroupPinSettingsOrderByPinTime(ctx context.Context, accountID int64) ([]*GetGroupPinSettingsOrderByPinTimeRow, error)
	GetGroupRelationByID(ctx context.Context, id int64) (*GetGroupRelationByIDRow, error)
	GetGroupSettingsByName(ctx context.Context, arg *GetGroupSettingsByNameParams) ([]*GetGroupSettingsByNameRow, error)
	GetGroupShowSettingsOrderByShowTime(ctx context.Context, accountID int64) ([]*GetGroupShowSettingsOrderByShowTimeRow, error)
	GetMsgByID(ctx context.Context, id int64) (*GetMsgByIDRow, error)
	GetMsgsByContent(ctx context.Context, arg *GetMsgsByContentParams) ([]*GetMsgsByContentRow, error)
	GetMsgsByContentAndRelation(ctx context.Context, arg *GetMsgsByContentAndRelationParams) ([]*GetMsgsByContentAndRelationRow, error)
	GetMsgsByRelationIDAndTime(ctx context.Context, arg *GetMsgsByRelationIDAndTimeParams) ([]*GetMsgsByRelationIDAndTimeRow, error)
	GetPinMsgsByRelationID(ctx context.Context, arg *GetPinMsgsByRelationIDParams) ([]*GetPinMsgsByRelationIDRow, error)
	GetRlyMsgsInfoByMsgID(ctx context.Context, arg *GetRlyMsgsInfoByMsgIDParams) ([]*GetRlyMsgsInfoByMsgIDRow, error)
	GetSettingByID(ctx context.Context, arg *GetSettingByIDParams) (*Setting, error)
	GetTopMsgByRelationID(ctx context.Context, relationID int64) (*GetTopMsgByRelationIDRow, error)
	GetUserByEmail(ctx context.Context, email string) (*User, error)
	GetUserByID(ctx context.Context, id int64) (*User, error)
	HasReadMsg(ctx context.Context, arg *HasReadMsgParams) (bool, error)
	TransferIsSelfFalse(ctx context.Context, arg *TransferIsSelfFalseParams) error
	TransferIsSelfTrue(ctx context.Context, arg *TransferIsSelfTrueParams) error
	UpdateAccount(ctx context.Context, arg *UpdateAccountParams) error
	UpdateAccountAvatar(ctx context.Context, arg *UpdateAccountAvatarParams) error
	UpdateAccountFile(ctx context.Context, arg *UpdateAccountFileParams) error
	UpdateApplication(ctx context.Context, arg *UpdateApplicationParams) error
	UpdateGroupAvatar(ctx context.Context, arg *UpdateGroupAvatarParams) error
	UpdateGroupNotify(ctx context.Context, arg *UpdateGroupNotifyParams) (*UpdateGroupNotifyRow, error)
	UpdateGroupRelation(ctx context.Context, arg *UpdateGroupRelationParams) error
	UpdateMsgPin(ctx context.Context, arg *UpdateMsgPinParams) error
	UpdateMsgReads(ctx context.Context, arg *UpdateMsgReadsParams) ([]*UpdateMsgReadsRow, error)
	UpdateMsgRevoke(ctx context.Context, arg *UpdateMsgRevokeParams) error
	UpdateMsgTopFalseByMsgID(ctx context.Context, id int64) error
	UpdateMsgTopFalseByRelationID(ctx context.Context, relationID int64) error
	UpdateMsgTopTrueByMsgID(ctx context.Context, id int64) error
	UpdateSettingDisturb(ctx context.Context, arg *UpdateSettingDisturbParams) error
	UpdateSettingLeader(ctx context.Context, arg *UpdateSettingLeaderParams) error
	UpdateSettingNickName(ctx context.Context, arg *UpdateSettingNickNameParams) error
	UpdateSettingPin(ctx context.Context, arg *UpdateSettingPinParams) error
	UpdateSettingShow(ctx context.Context, arg *UpdateSettingShowParams) error
	UpdateUser(ctx context.Context, arg *UpdateUserParams) error
}
    type Queries ¶
type Queries struct {
	// contains filtered or unexported fields
}
    func (*Queries) CountAccountByUserID ¶
func (*Queries) CreateAccount ¶
func (q *Queries) CreateAccount(ctx context.Context, arg *CreateAccountParams) error
func (*Queries) CreateApplication ¶
func (q *Queries) CreateApplication(ctx context.Context, arg *CreateApplicationParams) error
func (*Queries) CreateFile ¶
func (*Queries) CreateFriendRelation ¶
func (*Queries) CreateGroupNotify ¶
func (q *Queries) CreateGroupNotify(ctx context.Context, arg *CreateGroupNotifyParams) (*CreateGroupNotifyRow, error)
func (*Queries) CreateGroupRelation ¶
func (*Queries) CreateManySetting ¶
func (*Queries) CreateMsg ¶
func (q *Queries) CreateMsg(ctx context.Context, arg *CreateMsgParams) (*CreateMsgRow, error)
func (*Queries) CreateSetting ¶
func (q *Queries) CreateSetting(ctx context.Context, arg *CreateSettingParams) error
func (*Queries) CreateUser ¶
func (*Queries) DeleteAccount ¶
func (*Queries) DeleteAccountsByUserID ¶
func (*Queries) DeleteApplication ¶
func (q *Queries) DeleteApplication(ctx context.Context, arg *DeleteApplicationParams) error
func (*Queries) DeleteFileByID ¶
func (*Queries) DeleteFriendRelationsByAccountID ¶
func (*Queries) DeleteGroup ¶
func (*Queries) DeleteGroupNotify ¶
func (*Queries) DeleteRelation ¶
func (*Queries) DeleteSetting ¶
func (q *Queries) DeleteSetting(ctx context.Context, arg *DeleteSettingParams) error
func (*Queries) DeleteSettingsByAccountID ¶
func (*Queries) ExistEmail ¶
func (*Queries) ExistsAccountByID ¶
func (*Queries) ExistsAccountByNameAndUserID ¶
func (*Queries) ExistsApplicationByID ¶
func (*Queries) ExistsApplicationByIDWithLock ¶
func (*Queries) ExistsFriendRelation ¶
func (*Queries) ExistsFriendSetting ¶
func (*Queries) ExistsGroupLeaderByAccountIDWithLock ¶
func (*Queries) ExistsIsLeader ¶
func (*Queries) ExistsSetting ¶
func (*Queries) ExistsUserByID ¶
func (*Queries) FeedMsgsByAccountIDAndTime ¶
func (q *Queries) FeedMsgsByAccountIDAndTime(ctx context.Context, arg *FeedMsgsByAccountIDAndTimeParams) ([]*FeedMsgsByAccountIDAndTimeRow, error)
func (*Queries) GetAccountByID ¶
func (q *Queries) GetAccountByID(ctx context.Context, arg *GetAccountByIDParams) (*GetAccountByIDRow, error)
func (*Queries) GetAccountIDsByRelationID ¶
func (*Queries) GetAccountIDsByUserID ¶
func (*Queries) GetAccountsByName ¶
func (q *Queries) GetAccountsByName(ctx context.Context, arg *GetAccountsByNameParams) ([]*GetAccountsByNameRow, error)
func (*Queries) GetAccountsByUserID ¶
func (*Queries) GetAllEmails ¶
func (*Queries) GetAllGroupRelation ¶
func (*Queries) GetAllRelationIDs ¶
func (*Queries) GetAllRelationOnRelation ¶
func (*Queries) GetAllRelationsOnFile ¶
func (*Queries) GetApplicationByID ¶
func (q *Queries) GetApplicationByID(ctx context.Context, arg *GetApplicationByIDParams) (*Application, error)
func (*Queries) GetApplications ¶
func (q *Queries) GetApplications(ctx context.Context, arg *GetApplicationsParams) ([]*GetApplicationsRow, error)
func (*Queries) GetFileByRelationID ¶
func (*Queries) GetFileByRelationIDIsNUll ¶
func (q *Queries) GetFileByRelationIDIsNUll(ctx context.Context) ([]*GetFileByRelationIDIsNUllRow, error)
func (*Queries) GetFileDetailsByID ¶
func (*Queries) GetFileKeyByID ¶
func (*Queries) GetFriendPinSettingsOrderByPinTime ¶
func (*Queries) GetFriendRelationByID ¶
func (*Queries) GetFriendSettingsByName ¶
func (q *Queries) GetFriendSettingsByName(ctx context.Context, arg *GetFriendSettingsByNameParams) ([]*GetFriendSettingsByNameRow, error)
func (*Queries) GetFriendSettingsOrderByName ¶
func (*Queries) GetFriendShowSettingsOrderByShowTime ¶
func (*Queries) GetGroupAvatar ¶
func (*Queries) GetGroupList ¶
func (*Queries) GetGroupMembers ¶
func (*Queries) GetGroupMembersByID ¶
func (*Queries) GetGroupNotifyByID ¶
func (*Queries) GetGroupPinSettingsOrderByPinTime ¶
func (*Queries) GetGroupRelationByID ¶
func (*Queries) GetGroupSettingsByName ¶
func (q *Queries) GetGroupSettingsByName(ctx context.Context, arg *GetGroupSettingsByNameParams) ([]*GetGroupSettingsByNameRow, error)
func (*Queries) GetGroupShowSettingsOrderByShowTime ¶
func (*Queries) GetMsgByID ¶
func (*Queries) GetMsgsByContent ¶
func (q *Queries) GetMsgsByContent(ctx context.Context, arg *GetMsgsByContentParams) ([]*GetMsgsByContentRow, error)
func (*Queries) GetMsgsByContentAndRelation ¶
func (q *Queries) GetMsgsByContentAndRelation(ctx context.Context, arg *GetMsgsByContentAndRelationParams) ([]*GetMsgsByContentAndRelationRow, error)
func (*Queries) GetMsgsByRelationIDAndTime ¶
func (q *Queries) GetMsgsByRelationIDAndTime(ctx context.Context, arg *GetMsgsByRelationIDAndTimeParams) ([]*GetMsgsByRelationIDAndTimeRow, error)
func (*Queries) GetPinMsgsByRelationID ¶
func (q *Queries) GetPinMsgsByRelationID(ctx context.Context, arg *GetPinMsgsByRelationIDParams) ([]*GetPinMsgsByRelationIDRow, error)
func (*Queries) GetRlyMsgsInfoByMsgID ¶
func (q *Queries) GetRlyMsgsInfoByMsgID(ctx context.Context, arg *GetRlyMsgsInfoByMsgIDParams) ([]*GetRlyMsgsInfoByMsgIDRow, error)
func (*Queries) GetSettingByID ¶
func (*Queries) GetTopMsgByRelationID ¶
func (*Queries) GetUserByEmail ¶
func (*Queries) GetUserByID ¶
func (*Queries) HasReadMsg ¶
func (*Queries) TransferIsSelfFalse ¶
func (q *Queries) TransferIsSelfFalse(ctx context.Context, arg *TransferIsSelfFalseParams) error
func (*Queries) TransferIsSelfTrue ¶
func (q *Queries) TransferIsSelfTrue(ctx context.Context, arg *TransferIsSelfTrueParams) error
func (*Queries) UpdateAccount ¶
func (q *Queries) UpdateAccount(ctx context.Context, arg *UpdateAccountParams) error
func (*Queries) UpdateAccountAvatar ¶
func (q *Queries) UpdateAccountAvatar(ctx context.Context, arg *UpdateAccountAvatarParams) error
func (*Queries) UpdateAccountFile ¶
func (q *Queries) UpdateAccountFile(ctx context.Context, arg *UpdateAccountFileParams) error
func (*Queries) UpdateApplication ¶
func (q *Queries) UpdateApplication(ctx context.Context, arg *UpdateApplicationParams) error
func (*Queries) UpdateGroupAvatar ¶
func (q *Queries) UpdateGroupAvatar(ctx context.Context, arg *UpdateGroupAvatarParams) error
func (*Queries) UpdateGroupNotify ¶
func (q *Queries) UpdateGroupNotify(ctx context.Context, arg *UpdateGroupNotifyParams) (*UpdateGroupNotifyRow, error)
func (*Queries) UpdateGroupRelation ¶
func (q *Queries) UpdateGroupRelation(ctx context.Context, arg *UpdateGroupRelationParams) error
func (*Queries) UpdateMsgPin ¶
func (q *Queries) UpdateMsgPin(ctx context.Context, arg *UpdateMsgPinParams) error
func (*Queries) UpdateMsgReads ¶
func (q *Queries) UpdateMsgReads(ctx context.Context, arg *UpdateMsgReadsParams) ([]*UpdateMsgReadsRow, error)
func (*Queries) UpdateMsgRevoke ¶
func (q *Queries) UpdateMsgRevoke(ctx context.Context, arg *UpdateMsgRevokeParams) error
func (*Queries) UpdateMsgTopFalseByMsgID ¶
func (*Queries) UpdateMsgTopFalseByRelationID ¶
func (*Queries) UpdateMsgTopTrueByMsgID ¶
func (*Queries) UpdateSettingDisturb ¶
func (q *Queries) UpdateSettingDisturb(ctx context.Context, arg *UpdateSettingDisturbParams) error
func (*Queries) UpdateSettingLeader ¶
func (q *Queries) UpdateSettingLeader(ctx context.Context, arg *UpdateSettingLeaderParams) error
func (*Queries) UpdateSettingNickName ¶
func (q *Queries) UpdateSettingNickName(ctx context.Context, arg *UpdateSettingNickNameParams) error
func (*Queries) UpdateSettingPin ¶
func (q *Queries) UpdateSettingPin(ctx context.Context, arg *UpdateSettingPinParams) error
func (*Queries) UpdateSettingShow ¶
func (q *Queries) UpdateSettingShow(ctx context.Context, arg *UpdateSettingShowParams) error
func (*Queries) UpdateUser ¶
func (q *Queries) UpdateUser(ctx context.Context, arg *UpdateUserParams) error
type Relation ¶
type Relation struct {
	ID           int64          `json:"id"`
	RelationType Relationtype   `json:"relation_type"`
	GroupType    sql.NullString `json:"group_type"`
	FriendType   sql.NullString `json:"friend_type"`
	CreateAt     sql.NullTime   `json:"create_at"`
}
    type Relationtype ¶
type Relationtype string
const ( RelationtypeGroup Relationtype = "group" RelationtypeFriend Relationtype = "friend" )
func (*Relationtype) Scan ¶
func (e *Relationtype) Scan(src interface{}) error
type Setting ¶
type Setting struct {
	AccountID    int64     `json:"account_id"`
	RelationID   int64     `json:"relation_id"`
	NickName     string    `json:"nick_name"`
	IsNotDisturb bool      `json:"is_not_disturb"`
	IsPin        bool      `json:"is_pin"`
	PinTime      time.Time `json:"pin_time"`
	IsShow       bool      `json:"is_show"`
	LastShow     time.Time `json:"last_show"`
	IsLeader     bool      `json:"is_leader"`
	IsSelf       bool      `json:"is_self"`
}
    type UpdateAccountFileParams ¶
type UpdateAccountParams ¶
type UpdateApplicationParams ¶
type UpdateApplicationParams struct {
	Status     Applicationstatus `json:"status"`
	RefuseMsg  string            `json:"refuse_msg"`
	Account1ID int64             `json:"account1_id"`
	Account2ID int64             `json:"account2_id"`
}
    type UpdateGroupAvatarParams ¶
type UpdateGroupNotifyParams ¶
type UpdateGroupNotifyParams struct {
	RelationID sql.NullInt64 `json:"relation_id"`
	MsgContent string        `json:"msg_content"`
	MsgExpand  pgtype.JSON   `json:"msg_expand"`
	AccountID  sql.NullInt64 `json:"account_id"`
	CreateAt   time.Time     `json:"create_at"`
	ReadIds    []int64       `json:"read_ids"`
	ID         int64         `json:"id"`
}
    type UpdateGroupNotifyRow ¶
type UpdateGroupNotifyRow struct {
	ID         int64         `json:"id"`
	RelationID sql.NullInt64 `json:"relation_id"`
	MsgContent string        `json:"msg_content"`
	MsgExpand  pgtype.JSON   `json:"msg_expand"`
	AccountID  sql.NullInt64 `json:"account_id"`
	CreateAt   time.Time     `json:"create_at"`
	ReadIds    []int64       `json:"read_ids"`
}
    type UpdateMsgPinParams ¶
type UpdateMsgReadsParams ¶
type UpdateMsgReadsRow ¶
type UpdateMsgRevokeParams ¶
type UpdateSettingPinParams ¶
type UpdateSettingShowParams ¶
type UpdateUserParams ¶
 Click to show internal directories. 
   Click to hide internal directories.