proof

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2023 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	StatisDonation  = "Donation"
	StatisVolunteer = "Volunteer"
	StatisItem      = 10
)

Functions

func InitRouter

func InitRouter(router gin.IRouter, dbread *rpcutils.DBRead)

InitRouter 初始化proofrpc接口的router路由表

Types

type Proof

type Proof struct {
	*rpcutils.DBRead
	// contains filtered or unexported fields
}

Proof Proof

func (*Proof) CountByTime

func (p *Proof) CountByTime(c *gin.Context)

CountByTime 根据年/月/日对存证的数量进行统计 @Summary 根据年/月/日对存证的数量进行统计 @Description get proof count with time @Tags Proof @Produce json @Param input body swagger.ClientRequest{params=[]rpcutils.CountByTime} true "INPUT" @Success 200 {object} swagger.ServerResponse // todo @Failure 400 {object} swagger.ServerResponse{error=string} @Router /v1/proof/CountByTime [post]

func (*Proof) CountProof

func (p *Proof) CountProof(c *gin.Context)

CountProof 获取存证数量 @Summary 获取存证数量 @Description get proof count @Tags Proof @Produce json @Param input body swagger.ClientRequest{params=[]swagger.Query} true "INPUT" @Success 200 {object} swagger.ServerResponse{result=int64} @Failure 400 {object} swagger.ServerResponse{error=string} @Router /v1/proof/Count [post]

func (*Proof) DonationStats

func (p *Proof) DonationStats(c *gin.Context)

DonationStats 获取捐款排名信息 @Summary 获取捐款排名信息 @Description get donation stats @Tags Proof @Produce json @Param input body swagger.ClientRequest{params=[]rpcutils.DonationStats} true "INPUT" @Success 200 {object} swagger.ServerResponse{result=swagger.DonationStats} @Failure 400 {object} swagger.ServerResponse{error=string} @Router /v1/proof/DonationStats [post]

func (*Proof) FetchSource

func (p *Proof) FetchSource(c *gin.Context)

FetchSource 获取满足条件的数据的指定字段的值 @Summary 获取满足条件的数据的指定字段的值 @Description get specified fields of match @Tags Proof @Produce json @Param input body swagger.ClientRequest{params=[]rpcutils.SpecifiedFields} true "INPUT" @Success 200 {object} swagger.ServerResponse{result=[]string} @Failure 400 {object} swagger.ServerResponse{error=string} @Router /v1/proof/FetchSource [post]

func (*Proof) GetProofs

func (p *Proof) GetProofs(c *gin.Context)

GetProofs 获取多个指定hash的存证信息 @Summary 获取多个指定hash的存证信息 @Description get proof by hashes @Tags Proof @Produce json @Param input body swagger.ClientRequest{params=[]rpcutils.Hashes} true "INPUT" @Success 200 {object} swagger.ListProofResult @Failure 400 {object} swagger.ServerResponse{error=string} @Router /v1/proof/GetProofs [post]

func (*Proof) GetTemplates

func (p *Proof) GetTemplates(c *gin.Context)

GetTemplates 获取多个指定hash的存证模板 @Summary 获取多个指定hash的存证模板 @Description get proof template by hashes @Tags Proof @Produce json @Param input body swagger.ClientRequest{params=[]rpcutils.Hashes} true "INPUT" @Success 200 {object} swagger.ServerResponse{result=[]swagger.Template} @Failure 400 {object} swagger.ServerResponse{error=string} @Router /v1/proof/GetTemplates [post]

func (*Proof) Gets

func (p *Proof) Gets(c *gin.Context)

Gets 获取多个指定hash的存证信息 Deprecated: Use Proof.GetProofs instead. @Summary 获取多个指定hash的存证信息 @Description get proof by hashes @Tags Proof @Produce json @Param input body swagger.ClientRequest{params=[]rpcutils.Hashes} true "INPUT" @Success 200 {object} swagger.ListProofResult @Failure 400 {object} swagger.ServerResponse{error=string} @Router /v1/proof/Gets [post]

func (*Proof) ListProof

func (p *Proof) ListProof(c *gin.Context)

ListProof 获取存证列表 @Summary 获取存证列表 @Description list proof of organization/sender @Tags Proof @Produce json @Param input body swagger.ClientRequest{params=[]swagger.Query} true "INPUT" @Success 200 {object} swagger.ListProofResult @Failure 400 {object} swagger.ServerResponse{error=string} @Router /v1/proof/List [post]

func (*Proof) ListUpdateProof

func (p *Proof) ListUpdateProof(c *gin.Context)

ListUpdateProof 获取最新存证列表 @Summary 获取最新存证列表 @Description list proof of organization/sender @Tags Proof @Produce json @Param input body swagger.ClientRequest{params=[]swagger.Query} true "INPUT" @Success 200 {object} swagger.ListProofResult @Failure 400 {object} swagger.ServerResponse{error=string} @Router /v1/proof/ListUpdateProof [post]

func (*Proof) ListUpdateRecord

func (p *Proof) ListUpdateRecord(c *gin.Context)

ListUpdateRecord 获取存证更新记录的列表 @Summary 获取存证更新记录的列表 @Description list update proof record of organization/sender @Tags Proof @Produce json @Param input body swagger.ClientRequest{params=[]swagger.Query} true "INPUT" @Success 200 {object} swagger.ListProofResult @Failure 400 {object} swagger.ServerResponse{error=string} @Router /v1/proof/ListUpdateRecord [post]

func (*Proof) QueryStatsInfo

func (p *Proof) QueryStatsInfo(c *gin.Context)

QueryStatsInfo 获取统计项信息 @Summary 获取统计项信息 @Description get donation stats info @Tags Proof @Produce json @Param input body swagger.ClientRequestNil true "INPUT" @Success 200 {object} swagger.ServerResponse{result=[]string} @Failure 400 {object} swagger.ServerResponse{error=string} @Router /v1/proof/QueryStatsInfo [post]

func (*Proof) ShowProof

func (p *Proof) ShowProof(c *gin.Context)

ShowProof 获得指定hash的存证信息 @Summary 获得指定hash的存证信息 @Description get proof by txhash @Tags Proof @Produce json @Param input body swagger.ClientRequest{params=[]swagger.Query} true "INPUT" @Success 200 {object} swagger.ListProofResult @Failure 400 {object} swagger.ServerResponse{error=string} @Router /v1/proof/Show [post]

func (*Proof) TotalStats

func (p *Proof) TotalStats(c *gin.Context)

TotalStats 获取满足条件的数据的指定字段的总值 @Summary 获取满足条件的数据的指定字段的总值 @Description get sum of match @Tags Proof @Produce json @Param input body swagger.ClientRequest{params=[]rpcutils.TotalStats} true "INPUT" @Success 200 {object} rpcutils.ServerResponse{result=float64} @Failure 400 {object} rpcutils.ServerResponse @Router /v1/proof/TotalStats [post]

func (*Proof) VolunteerStats

func (p *Proof) VolunteerStats(c *gin.Context)

VolunteerStats 获取志愿者的分布图按照省/单位 @Summary 获取志愿者的分布图按照省/单位 @Description get volunteer statistics @Tags Proof @Produce json @Param input body swagger.ClientRequest{params=[]rpcutils.VolunteerStats} true "INPUT" @Success 200 {object} swagger.VolunteerStatsResult @Failure 400 {object} swagger.ServerResponse{error=string} @Router /v1/proof/VolunteerStats [post]

Jump to

Keyboard shortcuts

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