basic

package
v2.1.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 10, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountBasicInfo

type AccountBasicInfo struct {
	util.CommonError
}

AccountBasicInfo 基础信息

type Basic

type Basic struct {
	*openContext.Context
	// contains filtered or unexported fields
}

Basic 基础信息设置

func NewBasic

func NewBasic(opContext *openContext.Context, appID string) *Basic

NewBasic new

func (*Basic) CheckNickName

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

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

func (basic *Basic) SetHeadImage(imgMediaID string) error

SetHeadImage 修改小程序头像

func (*Basic) SetNickName

func (basic *Basic) SetNickName(nickname string) (*SetNickNameResp, error)

SetNickName 设置小程序名称

func (*Basic) SetSearchStatus

func (basic *Basic) SetSearchStatus(status int) error

SetSearchStatus 修改小程序是否可被搜索 status: 1 表示不可搜索,0 表示可搜索 ref: https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/basic-info-management/setSearchStatus.html

type CheckNickNameResp

type CheckNickNameResp struct {
	util.CommonError
	HitCondition bool   `json:"hit_condition"` // 是否命中关键字策略。若命中,可以选填关键字材料
	Wording      string `json:"wording"`       // 命中关键字的说明描述
}

CheckNickNameResp 小程序名称检测结果

type GetSearchStatusResp

type GetSearchStatusResp struct {
	util.CommonError
	Status int `json:"status"` // 1 表示不可搜索,0 表示可搜索
}

GetSearchStatusResp 查询小程序当前是否可被搜索

type SetHeadImageParam

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

type SetHeadImageResp struct {
	util.CommonError
}

SetHeadImageResp 小程序头像修改结果

type SetNickNameParam

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

type SetNickNameResp struct {
	util.CommonError
	AuditID int64  `json:"audit_id"` // 审核单Id,通过用于查询改名审核状态
	Wording string `json:"wording"`  // 材料说明
}

SetNickNameResp 设置小程序名称结果

type SetSearchStatusResp

type SetSearchStatusResp struct {
	util.CommonError
}

SetSearchStatusResp 小程序是否可被搜索修改结果

type SetSignatureResp

type SetSignatureResp struct {
	util.CommonError
}

SetSignatureResp 小程序功能介绍修改结果

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL