Documentation
¶
Index ¶
- type RestHandler
- func (h *RestHandler) CreateDonationImage(req *structs.DrawRequest, tag string) error
- func (h *RestHandler) Draw(c *gin.Context)
- func (h *RestHandler) GetContent(req *structs.DrawRequest) ([]string, error)
- func (h *RestHandler) GetImageURL(req *structs.DrawRequest) (string, error)
- func (h *RestHandler) URL(req *structs.DrawRequest, isShare int) string
- func (h *RestHandler) Upload(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RestHandler ¶
type RestHandler struct {
// contains filtered or unexported fields
}
RestHandler image handler
func NewRestHandler ¶
func NewRestHandler(c *context.Context) (*RestHandler, error)
NewRestHandler ...
func (*RestHandler) CreateDonationImage ¶
func (h *RestHandler) CreateDonationImage(req *structs.DrawRequest, tag string) error
CreateDonationImage create image of donation prove items
func (*RestHandler) GetContent ¶
func (h *RestHandler) GetContent(req *structs.DrawRequest) ([]string, error)
GetContent define the prove content of donation items
func (*RestHandler) GetImageURL ¶
func (h *RestHandler) GetImageURL(req *structs.DrawRequest) (string, error)
GetImageURL donation proof picture aliyun path
func (*RestHandler) URL ¶
func (h *RestHandler) URL(req *structs.DrawRequest, isShare int) string
URL create aliyun image name
func (*RestHandler) Upload ¶
func (h *RestHandler) Upload(c *gin.Context)
Upload defines the upload of image
Click to show internal directories.
Click to hide internal directories.