blockformchatid_info

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllByOwnerInfoHashToString

func GetAllByOwnerInfoHashToString(ownerInfoHash string) ([]string, int64, error)

func Init

func Init()

Types

type APIResponseItemInfo

type APIResponseItemInfo struct {
	Code    int                  `json:"code"`
	Message string               `json:"message"`
	Data    *BlockformchatidInfo `json:"data"`
}

type APIResponseItemInfoList

type APIResponseItemInfoList struct {
	Code    int                          `json:"code"`
	Message string                       `json:"message"`
	Data    *APIResponseItemInfoListData `json:"data"`
}

type APIResponseItemInfoListData

type APIResponseItemInfoListData struct {
	Items []BlockformchatidInfo `json:"items"`
	Total int64                 `json:"total"`
}

type BlockformchatidInfo

type BlockformchatidInfo struct {
	model.Model

	InfoHash      string `json:"info_hash" form:"info_hash" gorm:"column:info_hash;not null;"`
	OwnerInfoHash string `json:"owner_info_hash" form:"owner_info_hash" gorm:"column:owner_info_hash;not null;"`
	OwnerPlatform string `json:"owner_platform" form:"owner_platform" gorm:"column:owner_platform;not null;"`
	OwnerChatId   int64  `json:"owner_chat_id" form:"owner_chat_id" gorm:"column:owner_chat_id;not null;"`
	SearchChatId  int64  `json:"search_chat_id" form:"search_chat_id" gorm:"column:search_chat_id;"`
	KeyWorld      string `json:"key_world" form:"key_world" gorm:"column:key_world;"`

	// 核验请求id
	ById string `json:"by_id" form:"by_id" gorm:"-"`

	Page   int    `json:"-" form:"page" gorm:"-"`
	Size   int    `json:"-" form:"size" gorm:"-"`
	Filter string `json:"-" form:"filter" gorm:"-"`
}

func GetAll

func GetAll() ([]*BlockformchatidInfo, int64, error)

func GetAllByOwnerInfoHash

func GetAllByOwnerInfoHash(ownerInfoHash string) ([]BlockformchatidInfo, int64, error)

func GetById

func GetById(id uint64) (*BlockformchatidInfo, error)

func (*BlockformchatidInfo) Create

func (r *BlockformchatidInfo) Create() error

func (*BlockformchatidInfo) Delete

func (r *BlockformchatidInfo) Delete() error

删除

func (*BlockformchatidInfo) Get

func (*BlockformchatidInfo) GetList

func (u *BlockformchatidInfo) GetList() ([]*BlockformchatidInfo, int64, error)

func (*BlockformchatidInfo) TableName

func (c *BlockformchatidInfo) TableName() string

Jump to

Keyboard shortcuts

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