exmail

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2020 License: MIT Imports: 8 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CountNewMail

func CountNewMail(alias string) (c int, err error)

func GetLoginURL

func GetLoginURL(alias string) (s string, err error)

Types

type API

type API struct {
	// contains filtered or unexported fields
}

func ApiCheck

func ApiCheck() *API

func ApiContact

func ApiContact() *API

func ApiLogin

func ApiLogin() *API

func New

func New(apiCat string) *API

apps: Contact, Login, Check

type OpenType

type OpenType uint8
const (
	OTIgnore   OpenType = 0
	OTEnabled  OpenType = 1
	OTDisabled OpenType = 2
)

type User

type User struct {
	client.Error
	Alias  string        `json:"userid"` // main email
	Name   string        `json:"name"`
	Gender gender.Gender `json:"gender,omitempty"`
	Title  string        `json:"position,omitempty"`
	ExtId  string        `json:"extid,omitempty"`
	Tel    string        `json:"tel,omitempty"`
	Mobile string        `json:"mobile,omitempty"`
	Slaves []string      `json:"slaves"` // email aliases

	Enable uint8 `json:"enable,omitempty"`
	// contains filtered or unexported fields
}
{
   "errcode": 0,
   "errmsg": "ok",
   "userid": " zhangsan@gzdev.com ",
   "name": "李四",
   "department": [1, 2],
   "position": "后台工程师",
   "mobile": "15913215421",
   "gender": "1",
   "enable": "1",
   "slaves":[ zhangsan@gz.com, zhangsan@bjdev.com],
   "cpwd_login":0
}

func GetUser

func GetUser(alias string) (*User, error)

Jump to

Keyboard shortcuts

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