user

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPermission

func CheckPermission(ctx context.Context) (string, error)

CheckPermission 需要校验token并从中提取user_id的接口,都需要调用该函数

func GenUserNoPrefix

func GenUserNoPrefix() string

GenUserNoPrefix 生成用户编号的前5位

func GetUserGender

func GetUserGender(gender string) int32

GetUserGender todo 临时的兼容,后面db里gender字段修改为整数类型后,此方法作废

Types

This section is empty.

Jump to

Keyboard shortcuts

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