card_info

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2024 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIResponseItemInfo

type APIResponseItemInfo struct {
	Code    int       `json:"code"`
	Message string    `json:"message"`
	Data    *CardInfo `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 []CardInfo `json:"items"`
	Total int64      `json:"total"`
}

type CardInfo

type CardInfo struct {
	model.Model

	CardHash string `json:"info_hash" form:"info_hash" gorm:"column:info_hash;not null;unique;"`
	CardUUID string `json:"card_uuid" form:"card_uuid" gorm:"column:card_uuid;not null;unique;"`
	// "exp" (expiration time)
	Exp int64 `json:"exp" form:"exp" gorm:"column:exp;not null;"`

	// 状态: 1 登记;2 待核销; 3 已核销卡;
	Stat int `json:"stat" form:"stat"  gorm:"column:stat;not null; "`
	//备注
	Note string `json:"note" form:"note" gorm:"column:note;"`

	// n天 30d 60d
	NDay string `json:"n_day" form:"n_day" gorm:"-"`
	// n张卡 30d 60d
	NNum int64 `json:"n_num" form:"n_num" gorm:"-"`

	// 核验请求id
	ById string `json:"by_id" form:"by_id" gorm:"-"`
	// 平台名称
	AccoundPlatform string `json:"accound_platform" form:"accound_platform" gorm:"-"`
	// 平台id
	AccoundPlatformId string `json:"accound_platform_id" form:"accound_platform_id" gorm:"-"`

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

Jump to

Keyboard shortcuts

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