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

     1  package youmall
     2  
     3  import (
     4  	github_com_morlay_goqcloud "github.com/morlay/goqcloud"
     5  )
     6  
     7  // 创建集团门店管理员账号
     8  // https://cloud.tencent.com/document/api/860/20421
     9  
    10  type CreateAccountRequest struct {
    11  	// 集团ID
    12  	CompanyId string `name:"CompanyId"`
    13  	// 账号名;需要是手机号
    14  	Name string `name:"Name"`
    15  	// 密码;需要是(`~!@#$%^&*()_+=-)中的至少两种且八位以上
    16  	Password string `name:"Password"`
    17  	// 区域
    18  	Region string `name:"Region"`
    19  	// 备注说明; 30个字符以内
    20  	Remark *string `name:"Remark,omitempty"`
    21  	// 客户门店编码
    22  	ShopCode string `name:"ShopCode"`
    23  }
    24  
    25  func (req *CreateAccountRequest) Invoke(client github_com_morlay_goqcloud.Client) (*CreateAccountResponse, error) {
    26  	resp := &CreateAccountResponse{}
    27  	err := client.Request("youmall", "CreateAccount", "2018-02-28").Do(req, resp)
    28  	return resp, err
    29  }
    30  
    31  type CreateAccountResponse struct {
    32  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    33  }