domain

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateType added in v1.4.0

type CreateType uint8
const (
	// LDAP LDAP创建
	LDAP CreateType = 1
	// SYSTEM 系统创建
	SYSTEM CreateType = 2
)

func (CreateType) ToUint8 added in v1.4.0

func (s CreateType) ToUint8() uint8

type FeishuInfo added in v1.6.0

type FeishuInfo struct {
	UserId string `json:"user_id"`
}

type Profile added in v1.7.0

type Profile struct {
	DN          string   `json:"dn"`
	Email       string   `json:"email"`
	Username    string   `json:"username"`
	Title       string   `json:"title"`
	WhenCreated string   `json:"when_created"`
	DisplayName string   `json:"display_name"`
	Groups      []string `json:"groups"`
}

type Status added in v1.3.0

type Status uint8
const (
	// ENABLED 启用
	ENABLED Status = 1
	// DISABLED 禁用
	DISABLED Status = 2
)

func (Status) ToUint8 added in v1.3.0

func (s Status) ToUint8() uint8

type User

type User struct {
	Id           int64      `json:"id"`
	DepartmentId int64      `json:"department_id"`
	Username     string     `json:"username"`
	Password     string     `json:"password"`
	Email        string     `json:"email"`
	Title        string     `json:"title"`
	DisplayName  string     `json:"display_name"`
	Status       Status     `json:"status"`
	CreateType   CreateType `json:"create_type"`
	RoleCodes    []string   `json:"role_codes"`
	FeishuInfo   FeishuInfo `json:"feishu_info"`
	WechatInfo   WechatInfo `json:"wechat_info"`
}

type UserCombination added in v1.6.0

type UserCombination struct {
	DepartMentId int64
	Total        int
	Users        []User
}

type WechatInfo added in v1.6.0

type WechatInfo struct {
	UserId string `json:"user_id"`
}

Jump to

Keyboard shortcuts

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