common

package
v1.0.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfigResp

type AppConfigResp struct {
	RSAPublicKey           string
	Version                int
	SuperToken             string
	SuperTokenOn           int
	WelcomeMessage         string // 登录欢迎语
	NewUserJoinSystemGroup int    // 新用户是否加入系统群聊
	SearchByPhone          int    // 是否可通过手机号搜索
}

type Common

type Common struct {
	log.Log
	// contains filtered or unexported fields
}

Common Common

func New

func New(ctx *config.Context) *Common

New New

func (*Common) Route

func (cn *Common) Route(r *wkhttp.WKHttp)

Route 路由配置

type Country

type Country struct {
	Code string `json:"code"`
	Icon string `json:"icon"`
	Name string `json:"name"`
}

Country Country

func Countrys

func Countrys() []*Country

Countrys Countrys

type IService

type IService interface {
	GetAppConfig() (*AppConfigResp, error)
	// 获取短编号
	GetShortno() (string, error)
	SetShortnoUsed(shortno string, business string) error
}

IService IService

func NewService

func NewService(ctx *config.Context) IService

NewService NewService

type Manager

type Manager struct {
	log.Log
	// contains filtered or unexported fields
}

Manager 通用后台管理api

func NewManager

func NewManager(ctx *config.Context) *Manager

NewManager NewManager

func (*Manager) Route

func (m *Manager) Route(r *wkhttp.WKHttp)

Route 配置路由规则

Jump to

Keyboard shortcuts

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