Discover Packages
github.com/erda-project/erda
modules
openapi
hooks
posthandle
package
Version:
v1.0.0-rc
Opens a new window with list of versions in this module.
Published: May 24, 2021
License: AGPL-3.0
Opens a new window with license information.
Imports: 15
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
InjectUserInfo 对 resp 的 body 中注入 userinfo
USERID user id 可能是 int 或 string
UnmarshalJSON maybe int or string, unmarshal them to string(USERID)
type User struct {
ID USERID `json:"user_id"`
Name string `json:"username"`
AvatarURL string `json:"avatar_url"`
Phone string `json:"phone_number"`
Email string `json:"email"`
Nick string `json:"nickname"`
}
User 用户中心用户数据结构
Source Files
¶
Click to show internal directories.
Click to hide internal directories.