mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-24 02:20:13 +01:00
❤️ 完整开源界面和内核 https://github.com/siyuan-note/siyuan/issues/5013
This commit is contained in:
parent
e650b8100c
commit
f40ed985e1
1214 changed files with 345766 additions and 9 deletions
44
kernel/conf/user.go
Normal file
44
kernel/conf/user.go
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
// SiYuan - Build Your Eternal Digital Garden
|
||||
// Copyright (c) 2020-present, b3log.org
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Affero General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Affero General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Affero General Public License
|
||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
package conf
|
||||
|
||||
type User struct {
|
||||
UserId string `json:"userId"`
|
||||
UserName string `json:"userName"`
|
||||
UserAvatarURL string `json:"userAvatarURL"`
|
||||
UserHomeBImgURL string `json:"userHomeBImgURL"`
|
||||
UserTitles []*UserTitle `json:"userTitles"`
|
||||
UserIntro string `json:"userIntro"`
|
||||
UserNickname string `json:"userNickname"`
|
||||
UserCreateTime string `json:"userCreateTime"`
|
||||
UserPaymentSum string `json:"userPaymentSum"`
|
||||
UserSiYuanProExpireTime float64 `json:"userSiYuanProExpireTime"`
|
||||
UserToken string `json:"userToken"`
|
||||
UserTokenExpireTime string `json:"userTokenExpireTime"`
|
||||
UserSiYuanRepoSize float64 `json:"userSiYuanRepoSize"`
|
||||
UserTrafficUpload float64 `json:"userTrafficUpload"`
|
||||
UserTrafficDownload float64 `json:"userTrafficDownload"`
|
||||
UserTrafficTime float64 `json:"userTrafficTime"`
|
||||
UserSiYuanSubscriptionPlan float64 `json:"userSiYuanSubscriptionPlan"` // -2:未订阅,-1:试用,0:标准订阅,1:教育订阅
|
||||
UserSiYuanSubscriptionStatus float64 `json:"userSiYuanSubscriptionStatus"` // -1:未订阅,0:订阅可用,1:订阅封禁,2:订阅过期
|
||||
}
|
||||
|
||||
type UserTitle struct {
|
||||
Name string `json:"name"`
|
||||
Desc string `json:"desc"`
|
||||
Icon string `json:"icon"`
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue