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

     1  package iot
     2  
     3  import (
     4  	github_com_morlay_goqcloud "github.com/morlay/goqcloud"
     5  )
     6  
     7  // 注册应用用户
     8  // https://cloud.tencent.com/document/api/568/17134
     9  
    10  type AppAddUserRequest struct {
    11  	// 密码
    12  	Password string `name:"Password"`
    13  	// 区域
    14  	Region string `name:"Region"`
    15  	// 用户名
    16  	UserName string `name:"UserName"`
    17  }
    18  
    19  func (req *AppAddUserRequest) Invoke(client github_com_morlay_goqcloud.Client) (*AppAddUserResponse, error) {
    20  	resp := &AppAddUserResponse{}
    21  	err := client.Request("iot", "AppAddUser", "2018-01-23").Do(req, resp)
    22  	return resp, err
    23  }
    24  
    25  type AppAddUserResponse struct {
    26  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    27  	// 应用用户
    28  	AppUser AppUser `json:"AppUser"`
    29  }