github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/ds/create_personal_account.go (about)

     1  package ds
     2  
     3  import (
     4  	github_com_morlay_goqcloud "github.com/morlay/goqcloud"
     5  )
     6  
     7  // 个人开户
     8  // https://cloud.tencent.com/document/api/869/17793
     9  
    10  type CreatePersonalAccountRequest struct {
    11  	// 个人用户证件号码
    12  	IdentNo string `name:"IdentNo"`
    13  	// 个人用户证件类型。0代表身份证
    14  	IdentType int64 `name:"IdentType"`
    15  	// 个人用户手机号
    16  	MobilePhone string `name:"MobilePhone"`
    17  	// 模块名
    18  	Module string `name:"Module"`
    19  	// 个人用户姓名
    20  	Name string `name:"Name"`
    21  	// 操作名
    22  	Operation string `name:"Operation"`
    23  	// 区域
    24  	Region string `name:"Region"`
    25  }
    26  
    27  func (req *CreatePersonalAccountRequest) Invoke(client github_com_morlay_goqcloud.Client) (*CreatePersonalAccountResponse, error) {
    28  	resp := &CreatePersonalAccountResponse{}
    29  	err := client.Request("ds", "CreatePersonalAccount", "2018-05-23").Do(req, resp)
    30  	return resp, err
    31  }
    32  
    33  type CreatePersonalAccountResponse struct {
    34  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    35  	// 账号ID
    36  	AccountResId string `json:"AccountResId"`
    37  }