Documentation
¶
Index ¶
- Variables
- type CommonService
- type CommonServiceClient
- func (p *CommonServiceClient) Client_() thrift.TClient
- func (p *CommonServiceClient) NotifyPublicList(ctx context.Context, req *NotifyPublicListReq) (r *NotifyPublicListResp, err error)
- func (p *CommonServiceClient) Ping(ctx context.Context, req *EmptyReq) (r *PingResp, err error)
- func (p *CommonServiceClient) UserAPIKeysRevokeAll(ctx context.Context, req *EmptyReq) (r *UserAPIKeysRevokeAllResp, err error)
- func (p *CommonServiceClient) UserCheckAuth(ctx context.Context, req *EmptyReq) (r *UserCheckAuthResp, err error)
- func (p *CommonServiceClient) UserLogout(ctx context.Context, req *EmptyReq) (r *UserLogoutResp, err error)
- func (p *CommonServiceClient) UserRefresh(ctx context.Context, req *EmptyReq) (r *UserRefreshResp, err error)
- type CommonServiceNotifyPublicListArgs
- func (p *CommonServiceNotifyPublicListArgs) GetReq() (v *NotifyPublicListReq)
- func (p *CommonServiceNotifyPublicListArgs) InitDefault()
- func (p *CommonServiceNotifyPublicListArgs) IsSetReq() bool
- func (p *CommonServiceNotifyPublicListArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *CommonServiceNotifyPublicListArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *CommonServiceNotifyPublicListArgs) String() string
- func (p *CommonServiceNotifyPublicListArgs) Write(oprot thrift.TProtocol) (err error)
- type CommonServiceNotifyPublicListResult
- func (p *CommonServiceNotifyPublicListResult) GetSuccess() (v *NotifyPublicListResp)
- func (p *CommonServiceNotifyPublicListResult) InitDefault()
- func (p *CommonServiceNotifyPublicListResult) IsSetSuccess() bool
- func (p *CommonServiceNotifyPublicListResult) Read(iprot thrift.TProtocol) (err error)
- func (p *CommonServiceNotifyPublicListResult) ReadField0(iprot thrift.TProtocol) error
- func (p *CommonServiceNotifyPublicListResult) String() string
- func (p *CommonServiceNotifyPublicListResult) Write(oprot thrift.TProtocol) (err error)
- type CommonServicePingArgs
- func (p *CommonServicePingArgs) GetReq() (v *EmptyReq)
- func (p *CommonServicePingArgs) InitDefault()
- func (p *CommonServicePingArgs) IsSetReq() bool
- func (p *CommonServicePingArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *CommonServicePingArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *CommonServicePingArgs) String() string
- func (p *CommonServicePingArgs) Write(oprot thrift.TProtocol) (err error)
- type CommonServicePingResult
- func (p *CommonServicePingResult) GetSuccess() (v *PingResp)
- func (p *CommonServicePingResult) InitDefault()
- func (p *CommonServicePingResult) IsSetSuccess() bool
- func (p *CommonServicePingResult) Read(iprot thrift.TProtocol) (err error)
- func (p *CommonServicePingResult) ReadField0(iprot thrift.TProtocol) error
- func (p *CommonServicePingResult) String() string
- func (p *CommonServicePingResult) Write(oprot thrift.TProtocol) (err error)
- type CommonServiceProcessor
- func (p *CommonServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
- func (p *CommonServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
- func (p *CommonServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
- func (p *CommonServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
- type CommonServiceUserAPIKeysRevokeAllArgs
- func (p *CommonServiceUserAPIKeysRevokeAllArgs) GetReq() (v *EmptyReq)
- func (p *CommonServiceUserAPIKeysRevokeAllArgs) InitDefault()
- func (p *CommonServiceUserAPIKeysRevokeAllArgs) IsSetReq() bool
- func (p *CommonServiceUserAPIKeysRevokeAllArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *CommonServiceUserAPIKeysRevokeAllArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *CommonServiceUserAPIKeysRevokeAllArgs) String() string
- func (p *CommonServiceUserAPIKeysRevokeAllArgs) Write(oprot thrift.TProtocol) (err error)
- type CommonServiceUserAPIKeysRevokeAllResult
- func (p *CommonServiceUserAPIKeysRevokeAllResult) GetSuccess() (v *UserAPIKeysRevokeAllResp)
- func (p *CommonServiceUserAPIKeysRevokeAllResult) InitDefault()
- func (p *CommonServiceUserAPIKeysRevokeAllResult) IsSetSuccess() bool
- func (p *CommonServiceUserAPIKeysRevokeAllResult) Read(iprot thrift.TProtocol) (err error)
- func (p *CommonServiceUserAPIKeysRevokeAllResult) ReadField0(iprot thrift.TProtocol) error
- func (p *CommonServiceUserAPIKeysRevokeAllResult) String() string
- func (p *CommonServiceUserAPIKeysRevokeAllResult) Write(oprot thrift.TProtocol) (err error)
- type CommonServiceUserCheckAuthArgs
- func (p *CommonServiceUserCheckAuthArgs) GetReq() (v *EmptyReq)
- func (p *CommonServiceUserCheckAuthArgs) InitDefault()
- func (p *CommonServiceUserCheckAuthArgs) IsSetReq() bool
- func (p *CommonServiceUserCheckAuthArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *CommonServiceUserCheckAuthArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *CommonServiceUserCheckAuthArgs) String() string
- func (p *CommonServiceUserCheckAuthArgs) Write(oprot thrift.TProtocol) (err error)
- type CommonServiceUserCheckAuthResult
- func (p *CommonServiceUserCheckAuthResult) GetSuccess() (v *UserCheckAuthResp)
- func (p *CommonServiceUserCheckAuthResult) InitDefault()
- func (p *CommonServiceUserCheckAuthResult) IsSetSuccess() bool
- func (p *CommonServiceUserCheckAuthResult) Read(iprot thrift.TProtocol) (err error)
- func (p *CommonServiceUserCheckAuthResult) ReadField0(iprot thrift.TProtocol) error
- func (p *CommonServiceUserCheckAuthResult) String() string
- func (p *CommonServiceUserCheckAuthResult) Write(oprot thrift.TProtocol) (err error)
- type CommonServiceUserLogoutArgs
- func (p *CommonServiceUserLogoutArgs) GetReq() (v *EmptyReq)
- func (p *CommonServiceUserLogoutArgs) InitDefault()
- func (p *CommonServiceUserLogoutArgs) IsSetReq() bool
- func (p *CommonServiceUserLogoutArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *CommonServiceUserLogoutArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *CommonServiceUserLogoutArgs) String() string
- func (p *CommonServiceUserLogoutArgs) Write(oprot thrift.TProtocol) (err error)
- type CommonServiceUserLogoutResult
- func (p *CommonServiceUserLogoutResult) GetSuccess() (v *UserLogoutResp)
- func (p *CommonServiceUserLogoutResult) InitDefault()
- func (p *CommonServiceUserLogoutResult) IsSetSuccess() bool
- func (p *CommonServiceUserLogoutResult) Read(iprot thrift.TProtocol) (err error)
- func (p *CommonServiceUserLogoutResult) ReadField0(iprot thrift.TProtocol) error
- func (p *CommonServiceUserLogoutResult) String() string
- func (p *CommonServiceUserLogoutResult) Write(oprot thrift.TProtocol) (err error)
- type CommonServiceUserRefreshArgs
- func (p *CommonServiceUserRefreshArgs) GetReq() (v *EmptyReq)
- func (p *CommonServiceUserRefreshArgs) InitDefault()
- func (p *CommonServiceUserRefreshArgs) IsSetReq() bool
- func (p *CommonServiceUserRefreshArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *CommonServiceUserRefreshArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *CommonServiceUserRefreshArgs) String() string
- func (p *CommonServiceUserRefreshArgs) Write(oprot thrift.TProtocol) (err error)
- type CommonServiceUserRefreshResult
- func (p *CommonServiceUserRefreshResult) GetSuccess() (v *UserRefreshResp)
- func (p *CommonServiceUserRefreshResult) InitDefault()
- func (p *CommonServiceUserRefreshResult) IsSetSuccess() bool
- func (p *CommonServiceUserRefreshResult) Read(iprot thrift.TProtocol) (err error)
- func (p *CommonServiceUserRefreshResult) ReadField0(iprot thrift.TProtocol) error
- func (p *CommonServiceUserRefreshResult) String() string
- func (p *CommonServiceUserRefreshResult) Write(oprot thrift.TProtocol) (err error)
- type EmptyReq
- type HealthResp
- func (p *HealthResp) GetStatus() (v string)
- func (p *HealthResp) InitDefault()
- func (p *HealthResp) Read(iprot thrift.TProtocol) (err error)
- func (p *HealthResp) ReadField1(iprot thrift.TProtocol) error
- func (p *HealthResp) String() string
- func (p *HealthResp) Write(oprot thrift.TProtocol) (err error)
- type IndexResp
- func (p *IndexResp) GetName() (v string)
- func (p *IndexResp) GetStatus() (v string)
- func (p *IndexResp) GetVersion() (v string)
- func (p *IndexResp) InitDefault()
- func (p *IndexResp) Read(iprot thrift.TProtocol) (err error)
- func (p *IndexResp) ReadField1(iprot thrift.TProtocol) error
- func (p *IndexResp) ReadField2(iprot thrift.TProtocol) error
- func (p *IndexResp) ReadField3(iprot thrift.TProtocol) error
- func (p *IndexResp) String() string
- func (p *IndexResp) Write(oprot thrift.TProtocol) (err error)
- type NotifyPublicItem
- func (p *NotifyPublicItem) GetContent() (v string)
- func (p *NotifyPublicItem) GetEndAt() (v string)
- func (p *NotifyPublicItem) GetID() (v int64)
- func (p *NotifyPublicItem) GetLevel() (v string)
- func (p *NotifyPublicItem) GetStartAt() (v string)
- func (p *NotifyPublicItem) GetTitle() (v string)
- func (p *NotifyPublicItem) GetType() (v string)
- func (p *NotifyPublicItem) InitDefault()
- func (p *NotifyPublicItem) IsSetEndAt() bool
- func (p *NotifyPublicItem) IsSetStartAt() bool
- func (p *NotifyPublicItem) Read(iprot thrift.TProtocol) (err error)
- func (p *NotifyPublicItem) ReadField1(iprot thrift.TProtocol) error
- func (p *NotifyPublicItem) ReadField2(iprot thrift.TProtocol) error
- func (p *NotifyPublicItem) ReadField3(iprot thrift.TProtocol) error
- func (p *NotifyPublicItem) ReadField4(iprot thrift.TProtocol) error
- func (p *NotifyPublicItem) ReadField5(iprot thrift.TProtocol) error
- func (p *NotifyPublicItem) ReadField6(iprot thrift.TProtocol) error
- func (p *NotifyPublicItem) ReadField7(iprot thrift.TProtocol) error
- func (p *NotifyPublicItem) String() string
- func (p *NotifyPublicItem) Write(oprot thrift.TProtocol) (err error)
- type NotifyPublicListData
- func (p *NotifyPublicListData) GetItems() (v []*NotifyPublicItem)
- func (p *NotifyPublicListData) InitDefault()
- func (p *NotifyPublicListData) Read(iprot thrift.TProtocol) (err error)
- func (p *NotifyPublicListData) ReadField1(iprot thrift.TProtocol) error
- func (p *NotifyPublicListData) String() string
- func (p *NotifyPublicListData) Write(oprot thrift.TProtocol) (err error)
- type NotifyPublicListReq
- type NotifyPublicListResp
- func (p *NotifyPublicListResp) GetCode() (v int32)
- func (p *NotifyPublicListResp) GetData() (v *NotifyPublicListData)
- func (p *NotifyPublicListResp) GetMessage() (v string)
- func (p *NotifyPublicListResp) InitDefault()
- func (p *NotifyPublicListResp) IsSetData() bool
- func (p *NotifyPublicListResp) Read(iprot thrift.TProtocol) (err error)
- func (p *NotifyPublicListResp) ReadField1(iprot thrift.TProtocol) error
- func (p *NotifyPublicListResp) ReadField2(iprot thrift.TProtocol) error
- func (p *NotifyPublicListResp) ReadField3(iprot thrift.TProtocol) error
- func (p *NotifyPublicListResp) String() string
- func (p *NotifyPublicListResp) Write(oprot thrift.TProtocol) (err error)
- type PingResp
- type UserAPIKeysRevokeAllData
- func (p *UserAPIKeysRevokeAllData) GetRevoked() (v int64)
- func (p *UserAPIKeysRevokeAllData) InitDefault()
- func (p *UserAPIKeysRevokeAllData) Read(iprot thrift.TProtocol) (err error)
- func (p *UserAPIKeysRevokeAllData) ReadField1(iprot thrift.TProtocol) error
- func (p *UserAPIKeysRevokeAllData) String() string
- func (p *UserAPIKeysRevokeAllData) Write(oprot thrift.TProtocol) (err error)
- type UserAPIKeysRevokeAllResp
- func (p *UserAPIKeysRevokeAllResp) GetCode() (v int32)
- func (p *UserAPIKeysRevokeAllResp) GetData() (v *UserAPIKeysRevokeAllData)
- func (p *UserAPIKeysRevokeAllResp) GetMessage() (v string)
- func (p *UserAPIKeysRevokeAllResp) InitDefault()
- func (p *UserAPIKeysRevokeAllResp) IsSetData() bool
- func (p *UserAPIKeysRevokeAllResp) Read(iprot thrift.TProtocol) (err error)
- func (p *UserAPIKeysRevokeAllResp) ReadField1(iprot thrift.TProtocol) error
- func (p *UserAPIKeysRevokeAllResp) ReadField2(iprot thrift.TProtocol) error
- func (p *UserAPIKeysRevokeAllResp) ReadField3(iprot thrift.TProtocol) error
- func (p *UserAPIKeysRevokeAllResp) String() string
- func (p *UserAPIKeysRevokeAllResp) Write(oprot thrift.TProtocol) (err error)
- type UserCheckAuthData
- func (p *UserCheckAuthData) GetID() (v int64)
- func (p *UserCheckAuthData) GetRole() (v string)
- func (p *UserCheckAuthData) GetUsername() (v string)
- func (p *UserCheckAuthData) InitDefault()
- func (p *UserCheckAuthData) Read(iprot thrift.TProtocol) (err error)
- func (p *UserCheckAuthData) ReadField1(iprot thrift.TProtocol) error
- func (p *UserCheckAuthData) ReadField2(iprot thrift.TProtocol) error
- func (p *UserCheckAuthData) ReadField3(iprot thrift.TProtocol) error
- func (p *UserCheckAuthData) String() string
- func (p *UserCheckAuthData) Write(oprot thrift.TProtocol) (err error)
- type UserCheckAuthResp
- func (p *UserCheckAuthResp) GetCode() (v int32)
- func (p *UserCheckAuthResp) GetData() (v *UserCheckAuthData)
- func (p *UserCheckAuthResp) GetMessage() (v string)
- func (p *UserCheckAuthResp) InitDefault()
- func (p *UserCheckAuthResp) IsSetData() bool
- func (p *UserCheckAuthResp) Read(iprot thrift.TProtocol) (err error)
- func (p *UserCheckAuthResp) ReadField1(iprot thrift.TProtocol) error
- func (p *UserCheckAuthResp) ReadField2(iprot thrift.TProtocol) error
- func (p *UserCheckAuthResp) ReadField3(iprot thrift.TProtocol) error
- func (p *UserCheckAuthResp) String() string
- func (p *UserCheckAuthResp) Write(oprot thrift.TProtocol) (err error)
- type UserLogoutResp
- func (p *UserLogoutResp) GetCode() (v int32)
- func (p *UserLogoutResp) GetMessage() (v string)
- func (p *UserLogoutResp) InitDefault()
- func (p *UserLogoutResp) Read(iprot thrift.TProtocol) (err error)
- func (p *UserLogoutResp) ReadField1(iprot thrift.TProtocol) error
- func (p *UserLogoutResp) ReadField2(iprot thrift.TProtocol) error
- func (p *UserLogoutResp) String() string
- func (p *UserLogoutResp) Write(oprot thrift.TProtocol) (err error)
- type UserRefreshData
- func (p *UserRefreshData) GetToken() (v string)
- func (p *UserRefreshData) InitDefault()
- func (p *UserRefreshData) Read(iprot thrift.TProtocol) (err error)
- func (p *UserRefreshData) ReadField1(iprot thrift.TProtocol) error
- func (p *UserRefreshData) String() string
- func (p *UserRefreshData) Write(oprot thrift.TProtocol) (err error)
- type UserRefreshResp
- func (p *UserRefreshResp) GetCode() (v int32)
- func (p *UserRefreshResp) GetData() (v *UserRefreshData)
- func (p *UserRefreshResp) GetMessage() (v string)
- func (p *UserRefreshResp) InitDefault()
- func (p *UserRefreshResp) IsSetData() bool
- func (p *UserRefreshResp) Read(iprot thrift.TProtocol) (err error)
- func (p *UserRefreshResp) ReadField1(iprot thrift.TProtocol) error
- func (p *UserRefreshResp) ReadField2(iprot thrift.TProtocol) error
- func (p *UserRefreshResp) ReadField3(iprot thrift.TProtocol) error
- func (p *UserRefreshResp) String() string
- func (p *UserRefreshResp) Write(oprot thrift.TProtocol) (err error)
Constants ¶
This section is empty.
Variables ¶
var NotifyPublicItem_EndAt_DEFAULT string
var NotifyPublicItem_StartAt_DEFAULT string
Functions ¶
This section is empty.
Types ¶
type CommonService ¶
type CommonService interface {
// Ping Ping 检查
Ping(ctx context.Context, req *EmptyReq) (r *PingResp, err error)
// UserRefresh 刷新会话令牌(前端 401 拦截器调用;Cookie 认证时须带 CSRF 头)
UserRefresh(ctx context.Context, req *EmptyReq) (r *UserRefreshResp, err error)
// UserLogout 显式注销(令牌进黑名单 + 清 Cookie)
UserLogout(ctx context.Context, req *EmptyReq) (r *UserLogoutResp, err error)
// UserCheckAuth 校验登录态并回带用户信息(前端启动时用)
UserCheckAuth(ctx context.Context, req *EmptyReq) (r *UserCheckAuthResp, err error)
// UserAPIKeysRevokeAll 一键吊销全部 API Key(JWT-only;应急止损)
UserAPIKeysRevokeAll(ctx context.Context, req *EmptyReq) (r *UserAPIKeysRevokeAllResp, err error)
// NotifyPublicList 站级公开公告列表(匿名可访问;最多 50 条)
NotifyPublicList(ctx context.Context, req *NotifyPublicListReq) (r *NotifyPublicListResp, err error)
}
==================== 服务定义 ====================
注意:根路径 "/" 不在此注册。前端 SPA 首页由 bootstrap.customizedRegister 直接服务 static/index.html,避免与 API 路由冲突。本服务仅提供 Ping。
type CommonServiceClient ¶
type CommonServiceClient struct {
// contains filtered or unexported fields
}
func NewCommonServiceClient ¶
func NewCommonServiceClient(c thrift.TClient) *CommonServiceClient
func NewCommonServiceClientFactory ¶
func NewCommonServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *CommonServiceClient
func NewCommonServiceClientProtocol ¶
func NewCommonServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *CommonServiceClient
func (*CommonServiceClient) Client_ ¶
func (p *CommonServiceClient) Client_() thrift.TClient
func (*CommonServiceClient) NotifyPublicList ¶ added in v0.20.3
func (p *CommonServiceClient) NotifyPublicList(ctx context.Context, req *NotifyPublicListReq) (r *NotifyPublicListResp, err error)
func (*CommonServiceClient) UserAPIKeysRevokeAll ¶ added in v0.20.1
func (p *CommonServiceClient) UserAPIKeysRevokeAll(ctx context.Context, req *EmptyReq) (r *UserAPIKeysRevokeAllResp, err error)
func (*CommonServiceClient) UserCheckAuth ¶ added in v0.20.1
func (p *CommonServiceClient) UserCheckAuth(ctx context.Context, req *EmptyReq) (r *UserCheckAuthResp, err error)
func (*CommonServiceClient) UserLogout ¶ added in v0.20.1
func (p *CommonServiceClient) UserLogout(ctx context.Context, req *EmptyReq) (r *UserLogoutResp, err error)
func (*CommonServiceClient) UserRefresh ¶ added in v0.20.1
func (p *CommonServiceClient) UserRefresh(ctx context.Context, req *EmptyReq) (r *UserRefreshResp, err error)
type CommonServiceNotifyPublicListArgs ¶ added in v0.20.3
type CommonServiceNotifyPublicListArgs struct {
Req *NotifyPublicListReq `thrift:"req,1"`
}
func NewCommonServiceNotifyPublicListArgs ¶ added in v0.20.3
func NewCommonServiceNotifyPublicListArgs() *CommonServiceNotifyPublicListArgs
func (*CommonServiceNotifyPublicListArgs) GetReq ¶ added in v0.20.3
func (p *CommonServiceNotifyPublicListArgs) GetReq() (v *NotifyPublicListReq)
func (*CommonServiceNotifyPublicListArgs) InitDefault ¶ added in v0.20.3
func (p *CommonServiceNotifyPublicListArgs) InitDefault()
func (*CommonServiceNotifyPublicListArgs) IsSetReq ¶ added in v0.20.3
func (p *CommonServiceNotifyPublicListArgs) IsSetReq() bool
func (*CommonServiceNotifyPublicListArgs) Read ¶ added in v0.20.3
func (p *CommonServiceNotifyPublicListArgs) Read(iprot thrift.TProtocol) (err error)
func (*CommonServiceNotifyPublicListArgs) ReadField1 ¶ added in v0.20.3
func (p *CommonServiceNotifyPublicListArgs) ReadField1(iprot thrift.TProtocol) error
func (*CommonServiceNotifyPublicListArgs) String ¶ added in v0.20.3
func (p *CommonServiceNotifyPublicListArgs) String() string
type CommonServiceNotifyPublicListResult ¶ added in v0.20.3
type CommonServiceNotifyPublicListResult struct {
Success *NotifyPublicListResp `thrift:"success,0,optional"`
}
func NewCommonServiceNotifyPublicListResult ¶ added in v0.20.3
func NewCommonServiceNotifyPublicListResult() *CommonServiceNotifyPublicListResult
func (*CommonServiceNotifyPublicListResult) GetSuccess ¶ added in v0.20.3
func (p *CommonServiceNotifyPublicListResult) GetSuccess() (v *NotifyPublicListResp)
func (*CommonServiceNotifyPublicListResult) InitDefault ¶ added in v0.20.3
func (p *CommonServiceNotifyPublicListResult) InitDefault()
func (*CommonServiceNotifyPublicListResult) IsSetSuccess ¶ added in v0.20.3
func (p *CommonServiceNotifyPublicListResult) IsSetSuccess() bool
func (*CommonServiceNotifyPublicListResult) Read ¶ added in v0.20.3
func (p *CommonServiceNotifyPublicListResult) Read(iprot thrift.TProtocol) (err error)
func (*CommonServiceNotifyPublicListResult) ReadField0 ¶ added in v0.20.3
func (p *CommonServiceNotifyPublicListResult) ReadField0(iprot thrift.TProtocol) error
func (*CommonServiceNotifyPublicListResult) String ¶ added in v0.20.3
func (p *CommonServiceNotifyPublicListResult) String() string
type CommonServicePingArgs ¶
type CommonServicePingArgs struct {
Req *EmptyReq `thrift:"req,1"`
}
func NewCommonServicePingArgs ¶
func NewCommonServicePingArgs() *CommonServicePingArgs
func (*CommonServicePingArgs) GetReq ¶
func (p *CommonServicePingArgs) GetReq() (v *EmptyReq)
func (*CommonServicePingArgs) InitDefault ¶
func (p *CommonServicePingArgs) InitDefault()
func (*CommonServicePingArgs) IsSetReq ¶
func (p *CommonServicePingArgs) IsSetReq() bool
func (*CommonServicePingArgs) Read ¶
func (p *CommonServicePingArgs) Read(iprot thrift.TProtocol) (err error)
func (*CommonServicePingArgs) ReadField1 ¶
func (p *CommonServicePingArgs) ReadField1(iprot thrift.TProtocol) error
func (*CommonServicePingArgs) String ¶
func (p *CommonServicePingArgs) String() string
type CommonServicePingResult ¶
type CommonServicePingResult struct {
Success *PingResp `thrift:"success,0,optional"`
}
func NewCommonServicePingResult ¶
func NewCommonServicePingResult() *CommonServicePingResult
func (*CommonServicePingResult) GetSuccess ¶
func (p *CommonServicePingResult) GetSuccess() (v *PingResp)
func (*CommonServicePingResult) InitDefault ¶
func (p *CommonServicePingResult) InitDefault()
func (*CommonServicePingResult) IsSetSuccess ¶
func (p *CommonServicePingResult) IsSetSuccess() bool
func (*CommonServicePingResult) Read ¶
func (p *CommonServicePingResult) Read(iprot thrift.TProtocol) (err error)
func (*CommonServicePingResult) ReadField0 ¶
func (p *CommonServicePingResult) ReadField0(iprot thrift.TProtocol) error
func (*CommonServicePingResult) String ¶
func (p *CommonServicePingResult) String() string
type CommonServiceProcessor ¶
type CommonServiceProcessor struct {
// contains filtered or unexported fields
}
func NewCommonServiceProcessor ¶
func NewCommonServiceProcessor(handler CommonService) *CommonServiceProcessor
func (*CommonServiceProcessor) AddToProcessorMap ¶
func (p *CommonServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
func (*CommonServiceProcessor) GetProcessorFunction ¶
func (p *CommonServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
func (*CommonServiceProcessor) Process ¶
func (p *CommonServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
func (*CommonServiceProcessor) ProcessorMap ¶
func (p *CommonServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
type CommonServiceUserAPIKeysRevokeAllArgs ¶ added in v0.20.1
type CommonServiceUserAPIKeysRevokeAllArgs struct {
Req *EmptyReq `thrift:"req,1"`
}
func NewCommonServiceUserAPIKeysRevokeAllArgs ¶ added in v0.20.1
func NewCommonServiceUserAPIKeysRevokeAllArgs() *CommonServiceUserAPIKeysRevokeAllArgs
func (*CommonServiceUserAPIKeysRevokeAllArgs) GetReq ¶ added in v0.20.1
func (p *CommonServiceUserAPIKeysRevokeAllArgs) GetReq() (v *EmptyReq)
func (*CommonServiceUserAPIKeysRevokeAllArgs) InitDefault ¶ added in v0.20.1
func (p *CommonServiceUserAPIKeysRevokeAllArgs) InitDefault()
func (*CommonServiceUserAPIKeysRevokeAllArgs) IsSetReq ¶ added in v0.20.1
func (p *CommonServiceUserAPIKeysRevokeAllArgs) IsSetReq() bool
func (*CommonServiceUserAPIKeysRevokeAllArgs) Read ¶ added in v0.20.1
func (p *CommonServiceUserAPIKeysRevokeAllArgs) Read(iprot thrift.TProtocol) (err error)
func (*CommonServiceUserAPIKeysRevokeAllArgs) ReadField1 ¶ added in v0.20.1
func (p *CommonServiceUserAPIKeysRevokeAllArgs) ReadField1(iprot thrift.TProtocol) error
func (*CommonServiceUserAPIKeysRevokeAllArgs) String ¶ added in v0.20.1
func (p *CommonServiceUserAPIKeysRevokeAllArgs) String() string
type CommonServiceUserAPIKeysRevokeAllResult ¶ added in v0.20.1
type CommonServiceUserAPIKeysRevokeAllResult struct {
Success *UserAPIKeysRevokeAllResp `thrift:"success,0,optional"`
}
func NewCommonServiceUserAPIKeysRevokeAllResult ¶ added in v0.20.1
func NewCommonServiceUserAPIKeysRevokeAllResult() *CommonServiceUserAPIKeysRevokeAllResult
func (*CommonServiceUserAPIKeysRevokeAllResult) GetSuccess ¶ added in v0.20.1
func (p *CommonServiceUserAPIKeysRevokeAllResult) GetSuccess() (v *UserAPIKeysRevokeAllResp)
func (*CommonServiceUserAPIKeysRevokeAllResult) InitDefault ¶ added in v0.20.1
func (p *CommonServiceUserAPIKeysRevokeAllResult) InitDefault()
func (*CommonServiceUserAPIKeysRevokeAllResult) IsSetSuccess ¶ added in v0.20.1
func (p *CommonServiceUserAPIKeysRevokeAllResult) IsSetSuccess() bool
func (*CommonServiceUserAPIKeysRevokeAllResult) Read ¶ added in v0.20.1
func (p *CommonServiceUserAPIKeysRevokeAllResult) Read(iprot thrift.TProtocol) (err error)
func (*CommonServiceUserAPIKeysRevokeAllResult) ReadField0 ¶ added in v0.20.1
func (p *CommonServiceUserAPIKeysRevokeAllResult) ReadField0(iprot thrift.TProtocol) error
func (*CommonServiceUserAPIKeysRevokeAllResult) String ¶ added in v0.20.1
func (p *CommonServiceUserAPIKeysRevokeAllResult) String() string
type CommonServiceUserCheckAuthArgs ¶ added in v0.20.1
type CommonServiceUserCheckAuthArgs struct {
Req *EmptyReq `thrift:"req,1"`
}
func NewCommonServiceUserCheckAuthArgs ¶ added in v0.20.1
func NewCommonServiceUserCheckAuthArgs() *CommonServiceUserCheckAuthArgs
func (*CommonServiceUserCheckAuthArgs) GetReq ¶ added in v0.20.1
func (p *CommonServiceUserCheckAuthArgs) GetReq() (v *EmptyReq)
func (*CommonServiceUserCheckAuthArgs) InitDefault ¶ added in v0.20.1
func (p *CommonServiceUserCheckAuthArgs) InitDefault()
func (*CommonServiceUserCheckAuthArgs) IsSetReq ¶ added in v0.20.1
func (p *CommonServiceUserCheckAuthArgs) IsSetReq() bool
func (*CommonServiceUserCheckAuthArgs) Read ¶ added in v0.20.1
func (p *CommonServiceUserCheckAuthArgs) Read(iprot thrift.TProtocol) (err error)
func (*CommonServiceUserCheckAuthArgs) ReadField1 ¶ added in v0.20.1
func (p *CommonServiceUserCheckAuthArgs) ReadField1(iprot thrift.TProtocol) error
func (*CommonServiceUserCheckAuthArgs) String ¶ added in v0.20.1
func (p *CommonServiceUserCheckAuthArgs) String() string
type CommonServiceUserCheckAuthResult ¶ added in v0.20.1
type CommonServiceUserCheckAuthResult struct {
Success *UserCheckAuthResp `thrift:"success,0,optional"`
}
func NewCommonServiceUserCheckAuthResult ¶ added in v0.20.1
func NewCommonServiceUserCheckAuthResult() *CommonServiceUserCheckAuthResult
func (*CommonServiceUserCheckAuthResult) GetSuccess ¶ added in v0.20.1
func (p *CommonServiceUserCheckAuthResult) GetSuccess() (v *UserCheckAuthResp)
func (*CommonServiceUserCheckAuthResult) InitDefault ¶ added in v0.20.1
func (p *CommonServiceUserCheckAuthResult) InitDefault()
func (*CommonServiceUserCheckAuthResult) IsSetSuccess ¶ added in v0.20.1
func (p *CommonServiceUserCheckAuthResult) IsSetSuccess() bool
func (*CommonServiceUserCheckAuthResult) Read ¶ added in v0.20.1
func (p *CommonServiceUserCheckAuthResult) Read(iprot thrift.TProtocol) (err error)
func (*CommonServiceUserCheckAuthResult) ReadField0 ¶ added in v0.20.1
func (p *CommonServiceUserCheckAuthResult) ReadField0(iprot thrift.TProtocol) error
func (*CommonServiceUserCheckAuthResult) String ¶ added in v0.20.1
func (p *CommonServiceUserCheckAuthResult) String() string
type CommonServiceUserLogoutArgs ¶ added in v0.20.1
type CommonServiceUserLogoutArgs struct {
Req *EmptyReq `thrift:"req,1"`
}
func NewCommonServiceUserLogoutArgs ¶ added in v0.20.1
func NewCommonServiceUserLogoutArgs() *CommonServiceUserLogoutArgs
func (*CommonServiceUserLogoutArgs) GetReq ¶ added in v0.20.1
func (p *CommonServiceUserLogoutArgs) GetReq() (v *EmptyReq)
func (*CommonServiceUserLogoutArgs) InitDefault ¶ added in v0.20.1
func (p *CommonServiceUserLogoutArgs) InitDefault()
func (*CommonServiceUserLogoutArgs) IsSetReq ¶ added in v0.20.1
func (p *CommonServiceUserLogoutArgs) IsSetReq() bool
func (*CommonServiceUserLogoutArgs) Read ¶ added in v0.20.1
func (p *CommonServiceUserLogoutArgs) Read(iprot thrift.TProtocol) (err error)
func (*CommonServiceUserLogoutArgs) ReadField1 ¶ added in v0.20.1
func (p *CommonServiceUserLogoutArgs) ReadField1(iprot thrift.TProtocol) error
func (*CommonServiceUserLogoutArgs) String ¶ added in v0.20.1
func (p *CommonServiceUserLogoutArgs) String() string
type CommonServiceUserLogoutResult ¶ added in v0.20.1
type CommonServiceUserLogoutResult struct {
Success *UserLogoutResp `thrift:"success,0,optional"`
}
func NewCommonServiceUserLogoutResult ¶ added in v0.20.1
func NewCommonServiceUserLogoutResult() *CommonServiceUserLogoutResult
func (*CommonServiceUserLogoutResult) GetSuccess ¶ added in v0.20.1
func (p *CommonServiceUserLogoutResult) GetSuccess() (v *UserLogoutResp)
func (*CommonServiceUserLogoutResult) InitDefault ¶ added in v0.20.1
func (p *CommonServiceUserLogoutResult) InitDefault()
func (*CommonServiceUserLogoutResult) IsSetSuccess ¶ added in v0.20.1
func (p *CommonServiceUserLogoutResult) IsSetSuccess() bool
func (*CommonServiceUserLogoutResult) Read ¶ added in v0.20.1
func (p *CommonServiceUserLogoutResult) Read(iprot thrift.TProtocol) (err error)
func (*CommonServiceUserLogoutResult) ReadField0 ¶ added in v0.20.1
func (p *CommonServiceUserLogoutResult) ReadField0(iprot thrift.TProtocol) error
func (*CommonServiceUserLogoutResult) String ¶ added in v0.20.1
func (p *CommonServiceUserLogoutResult) String() string
type CommonServiceUserRefreshArgs ¶ added in v0.20.1
type CommonServiceUserRefreshArgs struct {
Req *EmptyReq `thrift:"req,1"`
}
func NewCommonServiceUserRefreshArgs ¶ added in v0.20.1
func NewCommonServiceUserRefreshArgs() *CommonServiceUserRefreshArgs
func (*CommonServiceUserRefreshArgs) GetReq ¶ added in v0.20.1
func (p *CommonServiceUserRefreshArgs) GetReq() (v *EmptyReq)
func (*CommonServiceUserRefreshArgs) InitDefault ¶ added in v0.20.1
func (p *CommonServiceUserRefreshArgs) InitDefault()
func (*CommonServiceUserRefreshArgs) IsSetReq ¶ added in v0.20.1
func (p *CommonServiceUserRefreshArgs) IsSetReq() bool
func (*CommonServiceUserRefreshArgs) Read ¶ added in v0.20.1
func (p *CommonServiceUserRefreshArgs) Read(iprot thrift.TProtocol) (err error)
func (*CommonServiceUserRefreshArgs) ReadField1 ¶ added in v0.20.1
func (p *CommonServiceUserRefreshArgs) ReadField1(iprot thrift.TProtocol) error
func (*CommonServiceUserRefreshArgs) String ¶ added in v0.20.1
func (p *CommonServiceUserRefreshArgs) String() string
type CommonServiceUserRefreshResult ¶ added in v0.20.1
type CommonServiceUserRefreshResult struct {
Success *UserRefreshResp `thrift:"success,0,optional"`
}
func NewCommonServiceUserRefreshResult ¶ added in v0.20.1
func NewCommonServiceUserRefreshResult() *CommonServiceUserRefreshResult
func (*CommonServiceUserRefreshResult) GetSuccess ¶ added in v0.20.1
func (p *CommonServiceUserRefreshResult) GetSuccess() (v *UserRefreshResp)
func (*CommonServiceUserRefreshResult) InitDefault ¶ added in v0.20.1
func (p *CommonServiceUserRefreshResult) InitDefault()
func (*CommonServiceUserRefreshResult) IsSetSuccess ¶ added in v0.20.1
func (p *CommonServiceUserRefreshResult) IsSetSuccess() bool
func (*CommonServiceUserRefreshResult) Read ¶ added in v0.20.1
func (p *CommonServiceUserRefreshResult) Read(iprot thrift.TProtocol) (err error)
func (*CommonServiceUserRefreshResult) ReadField0 ¶ added in v0.20.1
func (p *CommonServiceUserRefreshResult) ReadField0(iprot thrift.TProtocol) error
func (*CommonServiceUserRefreshResult) String ¶ added in v0.20.1
func (p *CommonServiceUserRefreshResult) String() string
type EmptyReq ¶
type EmptyReq struct {
}
==================== 通用响应 ====================
var CommonServicePingArgs_Req_DEFAULT *EmptyReq
var CommonServiceUserAPIKeysRevokeAllArgs_Req_DEFAULT *EmptyReq
var CommonServiceUserCheckAuthArgs_Req_DEFAULT *EmptyReq
var CommonServiceUserLogoutArgs_Req_DEFAULT *EmptyReq
var CommonServiceUserRefreshArgs_Req_DEFAULT *EmptyReq
func NewEmptyReq ¶
func NewEmptyReq() *EmptyReq
func (*EmptyReq) InitDefault ¶
func (p *EmptyReq) InitDefault()
type HealthResp ¶
type HealthResp struct {
Status string `thrift:"status,1,required" form:"status,required" json:"status,required"`
}
HealthResp 健康状态响应
func NewHealthResp ¶
func NewHealthResp() *HealthResp
func (*HealthResp) GetStatus ¶
func (p *HealthResp) GetStatus() (v string)
func (*HealthResp) InitDefault ¶
func (p *HealthResp) InitDefault()
func (*HealthResp) ReadField1 ¶
func (p *HealthResp) ReadField1(iprot thrift.TProtocol) error
func (*HealthResp) String ¶
func (p *HealthResp) String() string
type IndexResp ¶
type IndexResp struct {
Name string `thrift:"name,1,required" form:"name,required" json:"name,required"`
Version string `thrift:"version,2,required" form:"version,required" json:"version,required"`
Status string `thrift:"status,3,required" form:"status,required" json:"status,required"`
}
IndexResp 服务基本信息
func NewIndexResp ¶
func NewIndexResp() *IndexResp
func (*IndexResp) GetVersion ¶
func (*IndexResp) InitDefault ¶
func (p *IndexResp) InitDefault()
type NotifyPublicItem ¶ added in v0.20.3
type NotifyPublicItem struct {
ID int64 `thrift:"id,1,required" form:"id,required" json:"id,required"`
Title string `thrift:"title,2,required" form:"title,required" json:"title,required"`
Content string `thrift:"content,3,required" form:"content,required" json:"content,required"`
Type string `thrift:"type,4,required" form:"type,required" json:"type,required"`
Level string `thrift:"level,5,required" form:"level,required" json:"level,required"`
StartAt *string `thrift:"start_at,6,optional" form:"start_at" json:"start_at,omitempty"`
EndAt *string `thrift:"end_at,7,optional" form:"end_at" json:"end_at,omitempty"`
}
==================== 站级公开公告(2026-10-26 自 customHandler 收敛进 IDL) ====================
⚠️ **为什么公告端点不放在 notify.thrift**:hz 生成的路由是**按路径**建组的 (cmd/hz 的 RouterNode.FindNearest/Insert 走路径树),同一路径前缀下的路由**共用 同一组中间件**。notify.thrift 的 /api 组挂了 UserOrAPIKey(2026-10-09「我的通知」 组的守卫),所以 /api/v1/notifies/public 一旦留在 notify.thrift 就会落进那个组 ⇒ 公开公告端点被误加登录门槛(收敛前是 `r.GET(...)` 无中间件的匿名端点)。 而 hz 是**按 IDL 文件**各生成一棵独立的路由树 ⇒ 把该端点挪到 common.thrift, 它落在 common 域自己的 /api 组(该组不带鉴权)⇒ 恢复匿名可访问。
副本可见性不变:本域在 public 与 admin **两面都注册**(gencommon),与收敛前 「无条件注册」一致。 公开公告条目(⚠️ start_at/end_at 运行时**可能回 null**)。
⚠️ **形状差(2026-10-27 真机冒烟实测记录)**:该端点的响应**不是**由本契约的 模型序列化出来的 —— core 侧是 transport/http/handler/notify_public.go 里的 手工 map(逐字段挑的 7 个字段),未设置生效窗口时 **start_at/end_at 显式回 null**(而不是空串、也不是缺省)。 ⇒ 这里把两字段声明为 **optional**(TS 侧 `start_at?: string`)而不是 required:
required 会让 TS 以为它恒为 string,消费面直接 `.slice()`/`.length` 会在 运行时被 null 打断;optional 至少让 TS 强制消费面处理「可能没有」。
⚠️ 消费面仍不得当非空字符串用(null ≠ undefined);本仓库的公告横幅组件 (NotifyBanner.vue)不消费这两个字段。
func NewNotifyPublicItem ¶ added in v0.20.3
func NewNotifyPublicItem() *NotifyPublicItem
func (*NotifyPublicItem) GetContent ¶ added in v0.20.3
func (p *NotifyPublicItem) GetContent() (v string)
func (*NotifyPublicItem) GetEndAt ¶ added in v0.20.3
func (p *NotifyPublicItem) GetEndAt() (v string)
func (*NotifyPublicItem) GetID ¶ added in v0.20.3
func (p *NotifyPublicItem) GetID() (v int64)
func (*NotifyPublicItem) GetLevel ¶ added in v0.20.3
func (p *NotifyPublicItem) GetLevel() (v string)
func (*NotifyPublicItem) GetStartAt ¶ added in v0.20.3
func (p *NotifyPublicItem) GetStartAt() (v string)
func (*NotifyPublicItem) GetTitle ¶ added in v0.20.3
func (p *NotifyPublicItem) GetTitle() (v string)
func (*NotifyPublicItem) GetType ¶ added in v0.20.3
func (p *NotifyPublicItem) GetType() (v string)
func (*NotifyPublicItem) InitDefault ¶ added in v0.20.3
func (p *NotifyPublicItem) InitDefault()
func (*NotifyPublicItem) IsSetEndAt ¶ added in v0.20.4
func (p *NotifyPublicItem) IsSetEndAt() bool
func (*NotifyPublicItem) IsSetStartAt ¶ added in v0.20.4
func (p *NotifyPublicItem) IsSetStartAt() bool
func (*NotifyPublicItem) Read ¶ added in v0.20.3
func (p *NotifyPublicItem) Read(iprot thrift.TProtocol) (err error)
func (*NotifyPublicItem) ReadField1 ¶ added in v0.20.3
func (p *NotifyPublicItem) ReadField1(iprot thrift.TProtocol) error
func (*NotifyPublicItem) ReadField2 ¶ added in v0.20.3
func (p *NotifyPublicItem) ReadField2(iprot thrift.TProtocol) error
func (*NotifyPublicItem) ReadField3 ¶ added in v0.20.3
func (p *NotifyPublicItem) ReadField3(iprot thrift.TProtocol) error
func (*NotifyPublicItem) ReadField4 ¶ added in v0.20.3
func (p *NotifyPublicItem) ReadField4(iprot thrift.TProtocol) error
func (*NotifyPublicItem) ReadField5 ¶ added in v0.20.3
func (p *NotifyPublicItem) ReadField5(iprot thrift.TProtocol) error
func (*NotifyPublicItem) ReadField6 ¶ added in v0.20.3
func (p *NotifyPublicItem) ReadField6(iprot thrift.TProtocol) error
func (*NotifyPublicItem) ReadField7 ¶ added in v0.20.3
func (p *NotifyPublicItem) ReadField7(iprot thrift.TProtocol) error
func (*NotifyPublicItem) String ¶ added in v0.20.3
func (p *NotifyPublicItem) String() string
type NotifyPublicListData ¶ added in v0.20.3
type NotifyPublicListData struct {
Items []*NotifyPublicItem `thrift:"items,1,required,list<NotifyPublicItem>" form:"items,required" json:"items,required"`
}
var NotifyPublicListResp_Data_DEFAULT *NotifyPublicListData
func NewNotifyPublicListData ¶ added in v0.20.3
func NewNotifyPublicListData() *NotifyPublicListData
func (*NotifyPublicListData) GetItems ¶ added in v0.20.3
func (p *NotifyPublicListData) GetItems() (v []*NotifyPublicItem)
func (*NotifyPublicListData) InitDefault ¶ added in v0.20.3
func (p *NotifyPublicListData) InitDefault()
func (*NotifyPublicListData) Read ¶ added in v0.20.3
func (p *NotifyPublicListData) Read(iprot thrift.TProtocol) (err error)
func (*NotifyPublicListData) ReadField1 ¶ added in v0.20.3
func (p *NotifyPublicListData) ReadField1(iprot thrift.TProtocol) error
func (*NotifyPublicListData) String ¶ added in v0.20.3
func (p *NotifyPublicListData) String() string
type NotifyPublicListReq ¶ added in v0.20.3
type NotifyPublicListReq struct {
}
var CommonServiceNotifyPublicListArgs_Req_DEFAULT *NotifyPublicListReq
func NewNotifyPublicListReq ¶ added in v0.20.3
func NewNotifyPublicListReq() *NotifyPublicListReq
func (*NotifyPublicListReq) InitDefault ¶ added in v0.20.3
func (p *NotifyPublicListReq) InitDefault()
func (*NotifyPublicListReq) Read ¶ added in v0.20.3
func (p *NotifyPublicListReq) Read(iprot thrift.TProtocol) (err error)
func (*NotifyPublicListReq) String ¶ added in v0.20.3
func (p *NotifyPublicListReq) String() string
type NotifyPublicListResp ¶ added in v0.20.3
type NotifyPublicListResp struct {
Code int32 `thrift:"code,1,required" form:"code,required" json:"code,required"`
Message string `thrift:"message,2,required" form:"message,required" json:"message,required"`
Data *NotifyPublicListData `thrift:"data,3,required" form:"data,required" json:"data,required"`
}
var CommonServiceNotifyPublicListResult_Success_DEFAULT *NotifyPublicListResp
func NewNotifyPublicListResp ¶ added in v0.20.3
func NewNotifyPublicListResp() *NotifyPublicListResp
func (*NotifyPublicListResp) GetCode ¶ added in v0.20.3
func (p *NotifyPublicListResp) GetCode() (v int32)
func (*NotifyPublicListResp) GetData ¶ added in v0.20.3
func (p *NotifyPublicListResp) GetData() (v *NotifyPublicListData)
func (*NotifyPublicListResp) GetMessage ¶ added in v0.20.3
func (p *NotifyPublicListResp) GetMessage() (v string)
func (*NotifyPublicListResp) InitDefault ¶ added in v0.20.3
func (p *NotifyPublicListResp) InitDefault()
func (*NotifyPublicListResp) IsSetData ¶ added in v0.20.3
func (p *NotifyPublicListResp) IsSetData() bool
func (*NotifyPublicListResp) Read ¶ added in v0.20.3
func (p *NotifyPublicListResp) Read(iprot thrift.TProtocol) (err error)
func (*NotifyPublicListResp) ReadField1 ¶ added in v0.20.3
func (p *NotifyPublicListResp) ReadField1(iprot thrift.TProtocol) error
func (*NotifyPublicListResp) ReadField2 ¶ added in v0.20.3
func (p *NotifyPublicListResp) ReadField2(iprot thrift.TProtocol) error
func (*NotifyPublicListResp) ReadField3 ¶ added in v0.20.3
func (p *NotifyPublicListResp) ReadField3(iprot thrift.TProtocol) error
func (*NotifyPublicListResp) String ¶ added in v0.20.3
func (p *NotifyPublicListResp) String() string
type PingResp ¶
type PingResp struct {
Message string `thrift:"message,1,required" form:"message,required" json:"message,required"`
}
PingResp Ping 响应
var CommonServicePingResult_Success_DEFAULT *PingResp
func NewPingResp ¶
func NewPingResp() *PingResp
func (*PingResp) GetMessage ¶
func (*PingResp) InitDefault ¶
func (p *PingResp) InitDefault()
type UserAPIKeysRevokeAllData ¶ added in v0.20.1
type UserAPIKeysRevokeAllData struct {
Revoked int64 `thrift:"revoked,1,required" form:"revoked,required" json:"revoked,required"`
}
var UserAPIKeysRevokeAllResp_Data_DEFAULT *UserAPIKeysRevokeAllData
func NewUserAPIKeysRevokeAllData ¶ added in v0.20.1
func NewUserAPIKeysRevokeAllData() *UserAPIKeysRevokeAllData
func (*UserAPIKeysRevokeAllData) GetRevoked ¶ added in v0.20.1
func (p *UserAPIKeysRevokeAllData) GetRevoked() (v int64)
func (*UserAPIKeysRevokeAllData) InitDefault ¶ added in v0.20.1
func (p *UserAPIKeysRevokeAllData) InitDefault()
func (*UserAPIKeysRevokeAllData) Read ¶ added in v0.20.1
func (p *UserAPIKeysRevokeAllData) Read(iprot thrift.TProtocol) (err error)
func (*UserAPIKeysRevokeAllData) ReadField1 ¶ added in v0.20.1
func (p *UserAPIKeysRevokeAllData) ReadField1(iprot thrift.TProtocol) error
func (*UserAPIKeysRevokeAllData) String ¶ added in v0.20.1
func (p *UserAPIKeysRevokeAllData) String() string
type UserAPIKeysRevokeAllResp ¶ added in v0.20.1
type UserAPIKeysRevokeAllResp struct {
Code int32 `thrift:"code,1,required" form:"code,required" json:"code,required"`
Message string `thrift:"message,2,required" form:"message,required" json:"message,required"`
Data *UserAPIKeysRevokeAllData `thrift:"data,3,required" form:"data,required" json:"data,required"`
}
var CommonServiceUserAPIKeysRevokeAllResult_Success_DEFAULT *UserAPIKeysRevokeAllResp
func NewUserAPIKeysRevokeAllResp ¶ added in v0.20.1
func NewUserAPIKeysRevokeAllResp() *UserAPIKeysRevokeAllResp
func (*UserAPIKeysRevokeAllResp) GetCode ¶ added in v0.20.1
func (p *UserAPIKeysRevokeAllResp) GetCode() (v int32)
func (*UserAPIKeysRevokeAllResp) GetData ¶ added in v0.20.1
func (p *UserAPIKeysRevokeAllResp) GetData() (v *UserAPIKeysRevokeAllData)
func (*UserAPIKeysRevokeAllResp) GetMessage ¶ added in v0.20.1
func (p *UserAPIKeysRevokeAllResp) GetMessage() (v string)
func (*UserAPIKeysRevokeAllResp) InitDefault ¶ added in v0.20.1
func (p *UserAPIKeysRevokeAllResp) InitDefault()
func (*UserAPIKeysRevokeAllResp) IsSetData ¶ added in v0.20.1
func (p *UserAPIKeysRevokeAllResp) IsSetData() bool
func (*UserAPIKeysRevokeAllResp) Read ¶ added in v0.20.1
func (p *UserAPIKeysRevokeAllResp) Read(iprot thrift.TProtocol) (err error)
func (*UserAPIKeysRevokeAllResp) ReadField1 ¶ added in v0.20.1
func (p *UserAPIKeysRevokeAllResp) ReadField1(iprot thrift.TProtocol) error
func (*UserAPIKeysRevokeAllResp) ReadField2 ¶ added in v0.20.1
func (p *UserAPIKeysRevokeAllResp) ReadField2(iprot thrift.TProtocol) error
func (*UserAPIKeysRevokeAllResp) ReadField3 ¶ added in v0.20.1
func (p *UserAPIKeysRevokeAllResp) ReadField3(iprot thrift.TProtocol) error
func (*UserAPIKeysRevokeAllResp) String ¶ added in v0.20.1
func (p *UserAPIKeysRevokeAllResp) String() string
type UserCheckAuthData ¶ added in v0.20.1
type UserCheckAuthData struct {
ID int64 `thrift:"id,1,required" form:"id,required" json:"id,required"`
Username string `thrift:"username,2,required" form:"username,required" json:"username,required"`
Role string `thrift:"role,3,required" form:"role,required" json:"role,required"`
}
var UserCheckAuthResp_Data_DEFAULT *UserCheckAuthData
func NewUserCheckAuthData ¶ added in v0.20.1
func NewUserCheckAuthData() *UserCheckAuthData
func (*UserCheckAuthData) GetID ¶ added in v0.20.1
func (p *UserCheckAuthData) GetID() (v int64)
func (*UserCheckAuthData) GetRole ¶ added in v0.20.1
func (p *UserCheckAuthData) GetRole() (v string)
func (*UserCheckAuthData) GetUsername ¶ added in v0.20.1
func (p *UserCheckAuthData) GetUsername() (v string)
func (*UserCheckAuthData) InitDefault ¶ added in v0.20.1
func (p *UserCheckAuthData) InitDefault()
func (*UserCheckAuthData) Read ¶ added in v0.20.1
func (p *UserCheckAuthData) Read(iprot thrift.TProtocol) (err error)
func (*UserCheckAuthData) ReadField1 ¶ added in v0.20.1
func (p *UserCheckAuthData) ReadField1(iprot thrift.TProtocol) error
func (*UserCheckAuthData) ReadField2 ¶ added in v0.20.1
func (p *UserCheckAuthData) ReadField2(iprot thrift.TProtocol) error
func (*UserCheckAuthData) ReadField3 ¶ added in v0.20.1
func (p *UserCheckAuthData) ReadField3(iprot thrift.TProtocol) error
func (*UserCheckAuthData) String ¶ added in v0.20.1
func (p *UserCheckAuthData) String() string
type UserCheckAuthResp ¶ added in v0.20.1
type UserCheckAuthResp struct {
Code int32 `thrift:"code,1,required" form:"code,required" json:"code,required"`
Message string `thrift:"message,2,required" form:"message,required" json:"message,required"`
Data *UserCheckAuthData `thrift:"data,3,required" form:"data,required" json:"data,required"`
}
var CommonServiceUserCheckAuthResult_Success_DEFAULT *UserCheckAuthResp
func NewUserCheckAuthResp ¶ added in v0.20.1
func NewUserCheckAuthResp() *UserCheckAuthResp
func (*UserCheckAuthResp) GetCode ¶ added in v0.20.1
func (p *UserCheckAuthResp) GetCode() (v int32)
func (*UserCheckAuthResp) GetData ¶ added in v0.20.1
func (p *UserCheckAuthResp) GetData() (v *UserCheckAuthData)
func (*UserCheckAuthResp) GetMessage ¶ added in v0.20.1
func (p *UserCheckAuthResp) GetMessage() (v string)
func (*UserCheckAuthResp) InitDefault ¶ added in v0.20.1
func (p *UserCheckAuthResp) InitDefault()
func (*UserCheckAuthResp) IsSetData ¶ added in v0.20.1
func (p *UserCheckAuthResp) IsSetData() bool
func (*UserCheckAuthResp) Read ¶ added in v0.20.1
func (p *UserCheckAuthResp) Read(iprot thrift.TProtocol) (err error)
func (*UserCheckAuthResp) ReadField1 ¶ added in v0.20.1
func (p *UserCheckAuthResp) ReadField1(iprot thrift.TProtocol) error
func (*UserCheckAuthResp) ReadField2 ¶ added in v0.20.1
func (p *UserCheckAuthResp) ReadField2(iprot thrift.TProtocol) error
func (*UserCheckAuthResp) ReadField3 ¶ added in v0.20.1
func (p *UserCheckAuthResp) ReadField3(iprot thrift.TProtocol) error
func (*UserCheckAuthResp) String ¶ added in v0.20.1
func (p *UserCheckAuthResp) String() string
type UserLogoutResp ¶ added in v0.20.1
type UserLogoutResp struct {
Code int32 `thrift:"code,1,required" form:"code,required" json:"code,required"`
Message string `thrift:"message,2,required" form:"message,required" json:"message,required"`
}
var CommonServiceUserLogoutResult_Success_DEFAULT *UserLogoutResp
func NewUserLogoutResp ¶ added in v0.20.1
func NewUserLogoutResp() *UserLogoutResp
func (*UserLogoutResp) GetCode ¶ added in v0.20.1
func (p *UserLogoutResp) GetCode() (v int32)
func (*UserLogoutResp) GetMessage ¶ added in v0.20.1
func (p *UserLogoutResp) GetMessage() (v string)
func (*UserLogoutResp) InitDefault ¶ added in v0.20.1
func (p *UserLogoutResp) InitDefault()
func (*UserLogoutResp) Read ¶ added in v0.20.1
func (p *UserLogoutResp) Read(iprot thrift.TProtocol) (err error)
func (*UserLogoutResp) ReadField1 ¶ added in v0.20.1
func (p *UserLogoutResp) ReadField1(iprot thrift.TProtocol) error
func (*UserLogoutResp) ReadField2 ¶ added in v0.20.1
func (p *UserLogoutResp) ReadField2(iprot thrift.TProtocol) error
func (*UserLogoutResp) String ¶ added in v0.20.1
func (p *UserLogoutResp) String() string
type UserRefreshData ¶ added in v0.20.1
type UserRefreshData struct {
Token string `thrift:"token,1,required" form:"token,required" json:"token,required"`
}
==================== 网页端通用面(2026-10-26 自 customHandler 收敛进 IDL) ====================
⚠️ **为什么这批路由放在 common 域**:core 的部署模式过滤是**按 hz 生成的路由组** 挑选的(core/bootstrap/deployment.go 的 registerGeneratedRoutes)⇒ 一个 IDL 域 = 一个生成组 = 整组注册/不注册。
· genshare 只在 public 副本注册 ⇒ 「匿名上传面」(multi-direct/multi-bind)留在 share.thrift ⇒ **仅公开面**,与收敛前一致; · gencommon 在 public 与 admin **两面都注册** ⇒ 会话/元信息/公告/联邦/本地导入 这批「各副本都要有」的路由放这里 ⇒ **两面都在**,与收敛前一致。
⇒ 迁移不改变任何一条路由的副本可见性(这批路由原先是 bootstrap/routes_custom.go
里的无条件注册)。
var UserRefreshResp_Data_DEFAULT *UserRefreshData
func NewUserRefreshData ¶ added in v0.20.1
func NewUserRefreshData() *UserRefreshData
func (*UserRefreshData) GetToken ¶ added in v0.20.1
func (p *UserRefreshData) GetToken() (v string)
func (*UserRefreshData) InitDefault ¶ added in v0.20.1
func (p *UserRefreshData) InitDefault()
func (*UserRefreshData) Read ¶ added in v0.20.1
func (p *UserRefreshData) Read(iprot thrift.TProtocol) (err error)
func (*UserRefreshData) ReadField1 ¶ added in v0.20.1
func (p *UserRefreshData) ReadField1(iprot thrift.TProtocol) error
func (*UserRefreshData) String ¶ added in v0.20.1
func (p *UserRefreshData) String() string
type UserRefreshResp ¶ added in v0.20.1
type UserRefreshResp struct {
Code int32 `thrift:"code,1,required" form:"code,required" json:"code,required"`
Message string `thrift:"message,2,required" form:"message,required" json:"message,required"`
Data *UserRefreshData `thrift:"data,3,required" form:"data,required" json:"data,required"`
}
var CommonServiceUserRefreshResult_Success_DEFAULT *UserRefreshResp
func NewUserRefreshResp ¶ added in v0.20.1
func NewUserRefreshResp() *UserRefreshResp
func (*UserRefreshResp) GetCode ¶ added in v0.20.1
func (p *UserRefreshResp) GetCode() (v int32)
func (*UserRefreshResp) GetData ¶ added in v0.20.1
func (p *UserRefreshResp) GetData() (v *UserRefreshData)
func (*UserRefreshResp) GetMessage ¶ added in v0.20.1
func (p *UserRefreshResp) GetMessage() (v string)
func (*UserRefreshResp) InitDefault ¶ added in v0.20.1
func (p *UserRefreshResp) InitDefault()
func (*UserRefreshResp) IsSetData ¶ added in v0.20.1
func (p *UserRefreshResp) IsSetData() bool
func (*UserRefreshResp) Read ¶ added in v0.20.1
func (p *UserRefreshResp) Read(iprot thrift.TProtocol) (err error)
func (*UserRefreshResp) ReadField1 ¶ added in v0.20.1
func (p *UserRefreshResp) ReadField1(iprot thrift.TProtocol) error
func (*UserRefreshResp) ReadField2 ¶ added in v0.20.1
func (p *UserRefreshResp) ReadField2(iprot thrift.TProtocol) error
func (*UserRefreshResp) ReadField3 ¶ added in v0.20.1
func (p *UserRefreshResp) ReadField3(iprot thrift.TProtocol) error
func (*UserRefreshResp) String ¶ added in v0.20.1
func (p *UserRefreshResp) String() string