Documentation ¶
Index ¶
- Variables
- func InitRouter(router gin.IRouter, dbread *rpcutils.DBRead)
- type Proof
- func (p *Proof) CountByTime(c *gin.Context)
- func (p *Proof) CountProof(c *gin.Context)
- func (p *Proof) DonationStats(c *gin.Context)
- func (p *Proof) FetchSource(c *gin.Context)
- func (p *Proof) GetProofs(c *gin.Context)
- func (p *Proof) GetTemplates(c *gin.Context)
- func (p *Proof) Gets(c *gin.Context)
- func (p *Proof) ListProof(c *gin.Context)
- func (p *Proof) ListUpdateProof(c *gin.Context)
- func (p *Proof) ListUpdateRecord(c *gin.Context)
- func (p *Proof) QueryStatsInfo(c *gin.Context)
- func (p *Proof) ShowProof(c *gin.Context)
- func (p *Proof) TotalStats(c *gin.Context)
- func (p *Proof) VolunteerStats(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
var ( StatisDonation = "Donation" StatisVolunteer = "Volunteer" StatisItem = 10 )
Functions ¶
Types ¶
type Proof ¶
Proof Proof
func (*Proof) CountByTime ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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]