Ali Big Fish Golang sdk--alidayu-go

Source: Internet
Author: User
This is a creation in Article, where the information may have evolved or changed.

Extended

The key point of this SDK is not to implement the Ali Big Fish 3 API, but to provide users with a self-expanding framework, "SMS Send Record Query" interface as an example.

  type alibabaaliqinfcsmsnumqueryrequest struct {bizid string ' JSON: "biz_id" ' Recnum string ' js On: "Rec_num" ' Querydate string ' JSON: "Query_date" ' CurrentPage string ' json: ' Current_page ' ' PageSize string ' JSON: ' Page_size '}func newalibabaaliqinfcsmsnumqueryrequest () *alibabaaliqinfcsmsnumqueryrequest {return new ( Alibabaaliqinfcsmsnumqueryrequest)}func (req *alibabaaliqinfcsmsnumqueryrequest) getmethodname () string {return ' Alibaba.aliqin.fc.sms.num.query "}func (req *alibabaaliqinfcsmsnumqueryrequest) paramsisvalid () error {if Len (req. recnum) = = 0 {return errors. New ("Rec_num is required")} If Len (req. querydate) = = 0 {return errors. New ("Query_date is required")} If Len (req. currentpage) = = 0 {return errors. New ("Current_page is required")} If Len (req. PageSize) = = 0 {return errors. New ("Page_size is required")} return nil}  

This is almost all the code of "SMS Send Record Query", which can be found to be very simple

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.