Help us shape the future of Go! Take the 2026 Go Developer Survey

common

package
v0.20.7 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NotifyPublicItem_EndAt_DEFAULT string
View Source
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 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) Ping

func (p *CommonServiceClient) Ping(ctx context.Context, req *EmptyReq) (r *PingResp, 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 (*CommonServiceNotifyPublicListArgs) InitDefault added in v0.20.3

func (p *CommonServiceNotifyPublicListArgs) InitDefault()

func (*CommonServiceNotifyPublicListArgs) IsSetReq added in v0.20.3

func (*CommonServiceNotifyPublicListArgs) Read added in v0.20.3

func (*CommonServiceNotifyPublicListArgs) ReadField1 added in v0.20.3

func (*CommonServiceNotifyPublicListArgs) String added in v0.20.3

func (*CommonServiceNotifyPublicListArgs) Write added in v0.20.3

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 (*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 (*CommonServiceNotifyPublicListResult) ReadField0 added in v0.20.3

func (*CommonServiceNotifyPublicListResult) String added in v0.20.3

func (*CommonServiceNotifyPublicListResult) Write added in v0.20.3

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

func (*CommonServicePingArgs) Write

func (p *CommonServicePingArgs) Write(oprot thrift.TProtocol) (err error)

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

func (*CommonServicePingResult) Write

func (p *CommonServicePingResult) Write(oprot thrift.TProtocol) (err error)

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

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 (*CommonServiceUserAPIKeysRevokeAllArgs) InitDefault added in v0.20.1

func (p *CommonServiceUserAPIKeysRevokeAllArgs) InitDefault()

func (*CommonServiceUserAPIKeysRevokeAllArgs) IsSetReq added in v0.20.1

func (*CommonServiceUserAPIKeysRevokeAllArgs) Read added in v0.20.1

func (*CommonServiceUserAPIKeysRevokeAllArgs) ReadField1 added in v0.20.1

func (*CommonServiceUserAPIKeysRevokeAllArgs) String added in v0.20.1

func (*CommonServiceUserAPIKeysRevokeAllArgs) Write added in v0.20.1

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 (*CommonServiceUserAPIKeysRevokeAllResult) InitDefault added in v0.20.1

func (p *CommonServiceUserAPIKeysRevokeAllResult) InitDefault()

func (*CommonServiceUserAPIKeysRevokeAllResult) IsSetSuccess added in v0.20.1

func (*CommonServiceUserAPIKeysRevokeAllResult) Read added in v0.20.1

func (*CommonServiceUserAPIKeysRevokeAllResult) ReadField0 added in v0.20.1

func (*CommonServiceUserAPIKeysRevokeAllResult) String added in v0.20.1

func (*CommonServiceUserAPIKeysRevokeAllResult) Write added in v0.20.1

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 (*CommonServiceUserCheckAuthArgs) ReadField1 added in v0.20.1

func (*CommonServiceUserCheckAuthArgs) String added in v0.20.1

func (*CommonServiceUserCheckAuthArgs) Write added in v0.20.1

func (p *CommonServiceUserCheckAuthArgs) Write(oprot thrift.TProtocol) (err error)

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 (*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 (*CommonServiceUserCheckAuthResult) ReadField0 added in v0.20.1

func (*CommonServiceUserCheckAuthResult) String added in v0.20.1

func (*CommonServiceUserCheckAuthResult) Write added in v0.20.1

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

func (*CommonServiceUserLogoutArgs) Write added in v0.20.1

func (p *CommonServiceUserLogoutArgs) Write(oprot thrift.TProtocol) (err error)

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 (*CommonServiceUserLogoutResult) Write added in v0.20.1

func (p *CommonServiceUserLogoutResult) Write(oprot thrift.TProtocol) (err error)

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 (*CommonServiceUserRefreshArgs) Write added in v0.20.1

func (p *CommonServiceUserRefreshArgs) Write(oprot thrift.TProtocol) (err error)

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 (*CommonServiceUserRefreshResult) ReadField0 added in v0.20.1

func (*CommonServiceUserRefreshResult) String added in v0.20.1

func (*CommonServiceUserRefreshResult) Write added in v0.20.1

func (p *CommonServiceUserRefreshResult) Write(oprot thrift.TProtocol) (err error)

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()

func (*EmptyReq) Read

func (p *EmptyReq) Read(iprot thrift.TProtocol) (err error)

func (*EmptyReq) String

func (p *EmptyReq) String() string

func (*EmptyReq) Write

func (p *EmptyReq) Write(oprot thrift.TProtocol) (err error)

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) Read

func (p *HealthResp) Read(iprot thrift.TProtocol) (err error)

func (*HealthResp) ReadField1

func (p *HealthResp) ReadField1(iprot thrift.TProtocol) error

func (*HealthResp) String

func (p *HealthResp) String() string

func (*HealthResp) Write

func (p *HealthResp) Write(oprot thrift.TProtocol) (err error)

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) GetName

func (p *IndexResp) GetName() (v string)

func (*IndexResp) GetStatus

func (p *IndexResp) GetStatus() (v string)

func (*IndexResp) GetVersion

func (p *IndexResp) GetVersion() (v string)

func (*IndexResp) InitDefault

func (p *IndexResp) InitDefault()

func (*IndexResp) Read

func (p *IndexResp) Read(iprot thrift.TProtocol) (err error)

func (*IndexResp) ReadField1

func (p *IndexResp) ReadField1(iprot thrift.TProtocol) error

func (*IndexResp) ReadField2

func (p *IndexResp) ReadField2(iprot thrift.TProtocol) error

func (*IndexResp) ReadField3

func (p *IndexResp) ReadField3(iprot thrift.TProtocol) error

func (*IndexResp) String

func (p *IndexResp) String() string

func (*IndexResp) Write

func (p *IndexResp) Write(oprot thrift.TProtocol) (err error)

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

func (*NotifyPublicItem) Write added in v0.20.3

func (p *NotifyPublicItem) Write(oprot thrift.TProtocol) (err error)

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

func (*NotifyPublicListData) Write added in v0.20.3

func (p *NotifyPublicListData) Write(oprot thrift.TProtocol) (err error)

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

func (*NotifyPublicListReq) Write added in v0.20.3

func (p *NotifyPublicListReq) Write(oprot thrift.TProtocol) (err error)

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

func (*NotifyPublicListResp) Write added in v0.20.3

func (p *NotifyPublicListResp) Write(oprot thrift.TProtocol) (err error)

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 (p *PingResp) GetMessage() (v string)

func (*PingResp) InitDefault

func (p *PingResp) InitDefault()

func (*PingResp) Read

func (p *PingResp) Read(iprot thrift.TProtocol) (err error)

func (*PingResp) ReadField1

func (p *PingResp) ReadField1(iprot thrift.TProtocol) error

func (*PingResp) String

func (p *PingResp) String() string

func (*PingResp) Write

func (p *PingResp) Write(oprot thrift.TProtocol) (err error)

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

func (*UserAPIKeysRevokeAllData) Write added in v0.20.1

func (p *UserAPIKeysRevokeAllData) Write(oprot thrift.TProtocol) (err error)

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 (*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

func (*UserAPIKeysRevokeAllResp) Write added in v0.20.1

func (p *UserAPIKeysRevokeAllResp) Write(oprot thrift.TProtocol) (err error)

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

func (*UserCheckAuthData) Write added in v0.20.1

func (p *UserCheckAuthData) Write(oprot thrift.TProtocol) (err error)

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

func (*UserCheckAuthResp) Write added in v0.20.1

func (p *UserCheckAuthResp) Write(oprot thrift.TProtocol) (err error)

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

func (*UserLogoutResp) Write added in v0.20.1

func (p *UserLogoutResp) Write(oprot thrift.TProtocol) (err error)

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

func (*UserRefreshData) Write added in v0.20.1

func (p *UserRefreshData) Write(oprot thrift.TProtocol) (err error)

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

func (*UserRefreshResp) Write added in v0.20.1

func (p *UserRefreshResp) Write(oprot thrift.TProtocol) (err error)

Jump to

Keyboard shortcuts

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