Documentation ¶
Index ¶
- type AccountBasicInfo
- type Basic
- func (basic *Basic) CheckNickName(nickname string) (*CheckNickNameResp, error)
- func (basic *Basic) GetAccountBasicInfo() (*AccountBasicInfo, error)
- func (basic *Basic) GetSearchStatus(signature string) (*GetSearchStatusResp, error)
- func (basic *Basic) SetHeadImage(imgMediaID string) error
- func (basic *Basic) SetHeadImageFull(param *SetHeadImageParam) error
- func (basic *Basic) SetNickName(nickname string) (*SetNickNameResp, error)
- func (basic *Basic) SetNickNameFull(param *SetNickNameParam) (*SetNickNameResp, error)
- func (basic *Basic) SetSearchStatus(status int) error
- func (basic *Basic) SetSignature(signature string) error
- type CheckNickNameResp
- type GetSearchStatusResp
- type SetHeadImageParam
- type SetHeadImageResp
- type SetNickNameParam
- type SetNickNameResp
- type SetSearchStatusResp
- type SetSignatureResp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Basic ¶
type Basic struct { *openContext.Context // contains filtered or unexported fields }
Basic 基础信息设置
func (*Basic) CheckNickName ¶ added in v2.1.7
func (basic *Basic) CheckNickName(nickname string) (*CheckNickNameResp, error)
CheckNickName 检测微信认证的名称是否符合规则 ref: https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/basic-info-management/checkNickName.html
func (*Basic) GetAccountBasicInfo ¶
func (basic *Basic) GetAccountBasicInfo() (*AccountBasicInfo, error)
GetAccountBasicInfo 获取小程序基础信息
func (*Basic) GetSearchStatus ¶ added in v2.1.7
func (basic *Basic) GetSearchStatus(signature string) (*GetSearchStatusResp, error)
GetSearchStatus 查询小程序当前是否可被搜索 ref: https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/basic-info-management/getSearchStatus.html
func (*Basic) SetHeadImage ¶ added in v2.1.7
SetHeadImage 修改小程序头像
func (*Basic) SetHeadImageFull ¶ added in v2.1.7
func (basic *Basic) SetHeadImageFull(param *SetHeadImageParam) error
SetHeadImageFull 修改小程序头像 新增临时素材: https://developers.weixin.qq.com/doc/offiaccount/Asset_Management/New_temporary_materials.html ref: https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/basic-info-management/setHeadImage.html
func (*Basic) SetNickName ¶ added in v2.1.7
func (basic *Basic) SetNickName(nickname string) (*SetNickNameResp, error)
SetNickName 设置小程序名称
func (*Basic) SetNickNameFull ¶ added in v2.1.7
func (basic *Basic) SetNickNameFull(param *SetNickNameParam) (*SetNickNameResp, error)
SetNickNameFull 设置小程序名称 ref: https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/basic-info-management/setNickName.html
func (*Basic) SetSearchStatus ¶ added in v2.1.7
SetSearchStatus 修改小程序是否可被搜索 status: 1 表示不可搜索,0 表示可搜索 ref: https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/basic-info-management/setSearchStatus.html
func (*Basic) SetSignature ¶ added in v2.1.7
SetSignature 小程序修改功能介绍 ref: https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/basic-info-management/setSignature.html
type CheckNickNameResp ¶ added in v2.1.7
type CheckNickNameResp struct { util.CommonError HitCondition bool `json:"hit_condition"` // 是否命中关键字策略。若命中,可以选填关键字材料 Wording string `json:"wording"` // 命中关键字的说明描述 }
CheckNickNameResp 小程序名称检测结果
type GetSearchStatusResp ¶ added in v2.1.7
type GetSearchStatusResp struct { util.CommonError Status int `json:"status"` // 1 表示不可搜索,0 表示可搜索 }
GetSearchStatusResp 查询小程序当前是否可被搜索
type SetHeadImageParam ¶ added in v2.1.7
type SetHeadImageParam struct { HeadImageMediaID string `json:"head_img_media_id"` // 头像素材 media_id X1 string `json:"x1"` // 裁剪框左上角 x 坐标(取值范围:[0, 1]) Y1 string `json:"y1"` // 裁剪框左上角 y 坐标(取值范围:[0, 1]) X2 string `json:"x2"` // 裁剪框右下角 x 坐标(取值范围:[0, 1]) Y2 string `json:"y2"` // 裁剪框右下角 y 坐标(取值范围:[0, 1]) }
SetHeadImageParam 小程序头像修改参数
type SetHeadImageResp ¶ added in v2.1.7
type SetHeadImageResp struct {
util.CommonError
}
SetHeadImageResp 小程序头像修改结果
type SetNickNameParam ¶ added in v2.1.7
type SetNickNameParam struct { NickName string `json:"nick_name"` // 昵称,不支持包含“小程序”关键字的昵称 IDCard string `json:"id_card,omitempty"` // 身份证照片 mediaid,个人号必填 License string `json:"license,omitempty"` // 组织机构代码证或营业执照 mediaid,组织号必填 NameingOtherStuff1 string `json:"naming_other_stuff_1,omitempty"` // 其他证明材料 mediaid,选填 NameingOtherStuff2 string `json:"naming_other_stuff_2,omitempty"` // 其他证明材料 mediaid,选填 NameingOtherStuff3 string `json:"naming_other_stuff_3,omitempty"` // 其他证明材料 mediaid,选填 NameingOtherStuff4 string `json:"naming_other_stuff_4,omitempty"` // 其他证明材料 mediaid,选填 NameingOtherStuff5 string `json:"naming_other_stuff_5,omitempty"` // 其他证明材料 mediaid,选填 }
SetNickNameParam 设置小程序名称参数
type SetNickNameResp ¶ added in v2.1.7
type SetNickNameResp struct { util.CommonError AuditID int64 `json:"audit_id"` // 审核单Id,通过用于查询改名审核状态 Wording string `json:"wording"` // 材料说明 }
SetNickNameResp 设置小程序名称结果
type SetSearchStatusResp ¶ added in v2.1.7
type SetSearchStatusResp struct {
util.CommonError
}
SetSearchStatusResp 小程序是否可被搜索修改结果
type SetSignatureResp ¶ added in v2.1.7
type SetSignatureResp struct {
util.CommonError
}
SetSignatureResp 小程序功能介绍修改结果