blockword_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    *BlockworldInfo `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 []BlockworldInfo `json:"items"`
	Total int64            `json:"total"`
}

type BlockworldInfo

type BlockworldInfo 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() ([]*BlockworldInfo, int64, error)

func GetAllByOwnerInfoHash

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

func GetById

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

func (*BlockworldInfo) Create

func (r *BlockworldInfo) Create() error

func (*BlockworldInfo) Delete

func (r *BlockworldInfo) Delete() error

删除

func (*BlockworldInfo) Get

func (r *BlockworldInfo) Get() (*BlockworldInfo, error)

func (*BlockworldInfo) GetList

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

func (*BlockworldInfo) TableName

func (c *BlockworldInfo) TableName() string

Jump to

Keyboard shortcuts

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