Help us shape the future of Go! Take the 2026 Go Developer Survey

basic

package
v2.1.13 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: Apache-2.0 Imports: 3 Imported by: 4

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 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

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

SetHeadImage 修改小程序头像

func (*Basic) SetNickName added in v2.1.7

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

SetNickName 设置小程序名称

func (*Basic) SetSearchStatus added in v2.1.7

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

func (*Basic) SetSignature added in v2.1.7

func (basic *Basic) SetSignature(signature string) error

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 小程序功能介绍修改结果

Jump to

Keyboard shortcuts

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