group

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

README

用户分组管理

Documentation

Overview

用户分组管理.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(clt *core.Client, groupId int64) (err error)

Delete 删除分组.

func Update

func Update(clt *core.Client, groupId int64, name string) (err error)

Update 修改分组名.

Types

type Group

type Group struct {
	Id        int64  `json:"id"`    // 分组id, 由微信分配
	Name      string `json:"name"`  // 分组名字, UTF8编码
	UserCount int    `json:"count"` // 分组内用户数量
}

func Create

func Create(clt *core.Client, name string) (group *Group, err error)

Create 创建分组.

func List

func List(clt *core.Client) (groups []Group, err error)

List 查询所有分组.

Jump to

Keyboard shortcuts

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