helper

package
v0.0.0-...-dfe2c77 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExampleCreateUserRequest

func ExampleCreateUserRequest() *apiv1.CreateUserRequest

ExampleCreateUserRequest is an example of a request to create a user.

func GeneratePhoneNumber

func GeneratePhoneNumber() string

GeneratePhoneNumber 随机生成一个符合中国大陆手机格式的号码 手机号码规则:以 1 开头,第二位为 3-9,接下来是 9 位随机数字,总共 11 位

func MustWithAdminToken

func MustWithAdminToken(ctx context.Context, client apiv1.MiniBlogClient) context.Context

MustWithAdminToken 使用管理员 Token 创建带有授权信息的上下文 参数: - ctx: 上下文对象 - client: MiniBlogClient 客户端,用于调用登录接口 返回: - 一个附加了管理员 Token 的上下文对象

Types

This section is empty.

Jump to

Keyboard shortcuts

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