wxwork

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppName = "wechatWork"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteWechatWorkConf

type DeleteWechatWorkConf struct {
	ID string
}

DeleteWechatWorkConf todo

type DescribeWechatWorkConf

type DescribeWechatWorkConf struct {
	Domain string
}

DescribeWechatWorkConf 描述配置

func NewDescribeConfWithDomain

func NewDescribeConfWithDomain(domain string) *DescribeWechatWorkConf

NewDescribeConfWithDomain todo

func (*DescribeWechatWorkConf) Validate

func (req *DescribeWechatWorkConf) Validate() error

type QueryConfigRequest

type QueryConfigRequest struct {
	*session.Session
	*request.PageRequest
}

QueryConfigRequest 查询企业微信配置

func NewQueryConfigRequest

func NewQueryConfigRequest(pageReq *request.PageRequest) *QueryConfigRequest

NewQueryConfigRequest todo

type QueryWechatWorkConfRequest

type QueryWechatWorkConfRequest struct {
	*session.Session
	*request.PageRequest
}

QueryWechatWorkConfRequest 查询企业微信配置

type SaveConfRequest

type SaveConfRequest struct {
	Enabled          bool `bson:"enabled" json:"enabled"`
	*wxwork.Config   `bson:",inline"`
	*session.Session `bson:"-" json:"-"`
}

func NewSaveConfRequest

func NewSaveConfRequest() *SaveConfRequest

type WechatWork

type WechatWork interface {
	SaveConfig(*SaveConfRequest) (*WechatWorkConfig, error)
	QueryConfig(*QueryConfigRequest) (*WechatWorkSet, error)
	DescribeConfig(*DescribeWechatWorkConf) (*WechatWorkConfig, error)
	DeleteConfig(*DescribeWechatWorkConf) error
}

type WechatWorkConfig

type WechatWorkConfig struct {
	Domain           string     `bson:"_id" json:"domain,omitempty"`          // 所属域ID
	Creater          string     `bson:"creater" json:"creater,omitempty"`     // 创建人
	CreateAt         ftime.Time `bson:"create_at" json:"create_at,omitempty"` // 创建时间
	UpdateAt         ftime.Time `bson:"update_at" json:"update_at,omitempty"` // 更新时间
	*SaveConfRequest `bson:",inline"`
}

func NewDefaultWechatWorkConfig

func NewDefaultWechatWorkConfig() *WechatWorkConfig

NewDefaultWechatWorkConfig todo

func NewWechatWorkConfig

func NewWechatWorkConfig(req *SaveConfRequest) (*WechatWorkConfig, error)

NewWechatWorkConfig todo

type WechatWorkSet

type WechatWorkSet struct {
	*request.PageRequest

	Total int64               `json:"total"`
	Items []*WechatWorkConfig `json:"items"`
}

WechatWorkSet 列表

func NewConfigSet

func NewConfigSet(req *request.PageRequest) *WechatWorkSet

NewConfigSet 实例化

func (*WechatWorkSet) Add

func (s *WechatWorkSet) Add(item *WechatWorkConfig)

Add 添加应用

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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