uc

package
v0.0.0-...-4f2b063 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2026 License: Apache-2.0 Imports: 23 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Host         string `file:"host"`
	ClientID     string `file:"client_id"`
	ClientSecret string `file:"client_secret"`
}

type CreateUserItem

type CreateUserItem struct {
	Username    string      `json:"username,omitempty"`
	Nickname    string      `json:"nickname,omitempty"`
	Mobile      string      `json:"mobile,omitempty"`
	Email       string      `json:"email,omitempty"`
	Password    string      `json:"password"`
	Avatar      string      `json:"avatar,omitempty"`
	Channel     string      `json:"channel,omitempty"`
	ChannelType string      `json:"channelType,omitempty"`
	Extra       interface{} `json:"extra,omitempty"`
	Source      string      `json:"source,omitempty"`
	SourceType  string      `json:"sourceType,omitempty"`
	Tag         string      `json:"tag,omitempty"`
	UserDetail  interface{} `json:"userDetail,omitempty"`
}

type CreateUserRequest

type CreateUserRequest struct {
	Users []*CreateUserItem `json:"users"`
}

type GetUser

type GetUser struct {
	ID          int    `json:"user_id"`
	Name        string `json:"username"`
	Nick        string `json:"nickname"`
	AvatarURL   string `json:"avatar_url"`
	Phone       string `json:"phone_number"`
	Email       string `json:"email"`
	LastLoginAt uint64 `json:"lastLoginAt"`
}

type Interface

type Interface common.Interface

type LoginTypes

type LoginTypes struct {
	RegistryType []string `json:"registryType"`
}

type PwdSecurityConfig

type PwdSecurityConfig struct {
	CaptchaChallengeNumber   int64 `json:"captchaChallengeNumber"`
	ContinuousPwdErrorNumber int64 `json:"continuousPwdErrorNumber"`
	MaxPwdErrorNumber        int64 `json:"maxPwdErrorNumber"`
	ResetPassWordPeriod      int64 `json:"resetPassWordPeriod"`
}

type Response

type Response[T any] struct {
	ResponseMeta
	Result T `json:"result"`
}

Response uc standard response dto

type ResponseMeta

type ResponseMeta struct {
	Success *bool  `json:"success"`
	Error   string `json:"error"`
}

type TimestampMs

type TimestampMs struct {
	time.Time
}

func (TimestampMs) MarshalJSON

func (t TimestampMs) MarshalJSON() ([]byte, error)

func (*TimestampMs) UnmarshalJSON

func (t *TimestampMs) UnmarshalJSON(data []byte) error

type UpdateLoginMethodRequest

type UpdateLoginMethodRequest struct {
	ID     string `json:"id"`
	Source string `json:"source"`
}

type UpdateUserInfoRequest

type UpdateUserInfoRequest struct {
	ID       string `json:"id,omitempty"`
	UserName string `json:"username,omitempty"`
	Nick     string `json:"nickname,omitempty"`
	Mobile   string `json:"mobile,omitempty"`
	Email    string `json:"email,omitempty"`
}

type UserDto

type UserDto struct {
	Id            interface{}  `json:"id"`
	Avatar        string       `json:"avatar"`
	Username      string       `json:"username"`
	Nickname      string       `json:"nickname"`
	Mobile        string       `json:"mobile"`
	Email         string       `json:"email"`
	Enabled       bool         `json:"enabled"`
	UserDetail    interface{}  `json:"userDetail"`
	Locked        bool         `json:"locked"`
	PasswordExist bool         `json:"passwordExist"`
	PwdExpireAt   *TimestampMs `json:"pwdExpireAt"`
	Extra         interface{}  `json:"extra"`
	Source        string       `json:"source"`
	SourceType    string       `json:"sourceType"`
	Tag           string       `json:"tag"`
	Channel       string       `json:"channel"`
	ChannelType   string       `json:"channelType"`
	TenantId      int          `json:"tenantId"`
	CreatedAt     TimestampMs  `json:"createdAt"`
	UpdatedAt     *TimestampMs `json:"updatedAt"`
	LastLoginAt   *TimestampMs `json:"lastLoginAt"`
}

type UserPaging

type UserPaging struct {
	Data  []*UserDto `json:"data"`
	Total int64      `json:"total"`
}

Directories

Path Synopsis
dao

Jump to

Keyboard shortcuts

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