代码拉取完成,页面将自动刷新
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.28.1
// protoc v3.21.6
// source: apps/token/pb/token.proto
package token
import (
user "gitee.com/go-course/go8/projects/devcloud/mcenter/apps/user"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type PLATFORM int32
const (
// Web 登陆授权
PLATFORM_WEB PLATFORM = 0
// API 访问授权
PLATFORM_API PLATFORM = 1
)
// Enum value maps for PLATFORM.
var (
PLATFORM_name = map[int32]string{
0: "WEB",
1: "API",
}
PLATFORM_value = map[string]int32{
"WEB": 0,
"API": 1,
}
)
func (x PLATFORM) Enum() *PLATFORM {
p := new(PLATFORM)
*p = x
return p
}
func (x PLATFORM) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (PLATFORM) Descriptor() protoreflect.EnumDescriptor {
return file_apps_token_pb_token_proto_enumTypes[0].Descriptor()
}
func (PLATFORM) Type() protoreflect.EnumType {
return &file_apps_token_pb_token_proto_enumTypes[0]
}
func (x PLATFORM) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use PLATFORM.Descriptor instead.
func (PLATFORM) EnumDescriptor() ([]byte, []int) {
return file_apps_token_pb_token_proto_rawDescGZIP(), []int{0}
}
// 授权类型
type GRANT_TYPE int32
const (
// 用户密码授权
GRANT_TYPE_PASSWORD GRANT_TYPE = 0
// LDAP授权
GRANT_TYPE_LDAP GRANT_TYPE = 1
// 刷新授权
GRANT_TYPE_REFRESH GRANT_TYPE = 2
// 私有令牌, 用于编程使用
GRANT_TYPE_PRIVATE_TOKEN GRANT_TYPE = 3
// 客户端授权
GRANT_TYPE_CLIENT GRANT_TYPE = 4
// Oauth2.0 Auth Code授权
GRANT_TYPE_AUTH_CODE GRANT_TYPE = 5
// 隐式授权
GRANT_TYPE_IMPLICIT GRANT_TYPE = 6
// 微信授权
GRANT_TYPE_WECHAT_WORK GRANT_TYPE = 7
// 钉钉登录
GRANT_TYPE_DINGDING GRANT_TYPE = 8
)
// Enum value maps for GRANT_TYPE.
var (
GRANT_TYPE_name = map[int32]string{
0: "PASSWORD",
1: "LDAP",
2: "REFRESH",
3: "PRIVATE_TOKEN",
4: "CLIENT",
5: "AUTH_CODE",
6: "IMPLICIT",
7: "WECHAT_WORK",
8: "DINGDING",
}
GRANT_TYPE_value = map[string]int32{
"PASSWORD": 0,
"LDAP": 1,
"REFRESH": 2,
"PRIVATE_TOKEN": 3,
"CLIENT": 4,
"AUTH_CODE": 5,
"IMPLICIT": 6,
"WECHAT_WORK": 7,
"DINGDING": 8,
}
)
func (x GRANT_TYPE) Enum() *GRANT_TYPE {
p := new(GRANT_TYPE)
*p = x
return p
}
func (x GRANT_TYPE) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (GRANT_TYPE) Descriptor() protoreflect.EnumDescriptor {
return file_apps_token_pb_token_proto_enumTypes[1].Descriptor()
}
func (GRANT_TYPE) Type() protoreflect.EnumType {
return &file_apps_token_pb_token_proto_enumTypes[1]
}
func (x GRANT_TYPE) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use GRANT_TYPE.Descriptor instead.
func (GRANT_TYPE) EnumDescriptor() ([]byte, []int) {
return file_apps_token_pb_token_proto_rawDescGZIP(), []int{1}
}
// 令牌类型
type TOKEN_TYPE int32
const (
// Bearer Token
TOKEN_TYPE_BEARER TOKEN_TYPE = 0
// 基于Mac的Token
TOKEN_TYPE_MAC TOKEN_TYPE = 1
// Json Web Token
TOKEN_TYPE_JWT TOKEN_TYPE = 2
)
// Enum value maps for TOKEN_TYPE.
var (
TOKEN_TYPE_name = map[int32]string{
0: "BEARER",
1: "MAC",
2: "JWT",
}
TOKEN_TYPE_value = map[string]int32{
"BEARER": 0,
"MAC": 1,
"JWT": 2,
}
)
func (x TOKEN_TYPE) Enum() *TOKEN_TYPE {
p := new(TOKEN_TYPE)
*p = x
return p
}
func (x TOKEN_TYPE) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (TOKEN_TYPE) Descriptor() protoreflect.EnumDescriptor {
return file_apps_token_pb_token_proto_enumTypes[2].Descriptor()
}
func (TOKEN_TYPE) Type() protoreflect.EnumType {
return &file_apps_token_pb_token_proto_enumTypes[2]
}
func (x TOKEN_TYPE) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use TOKEN_TYPE.Descriptor instead.
func (TOKEN_TYPE) EnumDescriptor() ([]byte, []int) {
return file_apps_token_pb_token_proto_rawDescGZIP(), []int{2}
}
// 冻结类型
type BLOCK_TYPE int32
const (
// 刷新Token过期, 回话中断
BLOCK_TYPE_REFRESH_TOKEN_EXPIRED BLOCK_TYPE = 0
// 异地登陆
BLOCK_TYPE_OTHER_PLACE_LOGGED_IN BLOCK_TYPE = 1
// 异常Ip登陆
BLOCK_TYPE_OTHER_IP_LOGGED_IN BLOCK_TYPE = 2
)
// Enum value maps for BLOCK_TYPE.
var (
BLOCK_TYPE_name = map[int32]string{
0: "REFRESH_TOKEN_EXPIRED",
1: "OTHER_PLACE_LOGGED_IN",
2: "OTHER_IP_LOGGED_IN",
}
BLOCK_TYPE_value = map[string]int32{
"REFRESH_TOKEN_EXPIRED": 0,
"OTHER_PLACE_LOGGED_IN": 1,
"OTHER_IP_LOGGED_IN": 2,
}
)
func (x BLOCK_TYPE) Enum() *BLOCK_TYPE {
p := new(BLOCK_TYPE)
*p = x
return p
}
func (x BLOCK_TYPE) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (BLOCK_TYPE) Descriptor() protoreflect.EnumDescriptor {
return file_apps_token_pb_token_proto_enumTypes[3].Descriptor()
}
func (BLOCK_TYPE) Type() protoreflect.EnumType {
return &file_apps_token_pb_token_proto_enumTypes[3]
}
func (x BLOCK_TYPE) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use BLOCK_TYPE.Descriptor instead.
func (BLOCK_TYPE) EnumDescriptor() ([]byte, []int) {
return file_apps_token_pb_token_proto_rawDescGZIP(), []int{3}
}
type TokenSet struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 总数量
// @gotags: bson:"total" json:"total"
Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total" bson:"total"`
// 列表
// @gotags: bson:"items" json:"items"
Items []*Token `protobuf:"bytes,2,rep,name=items,proto3" json:"items" bson:"items"`
}
func (x *TokenSet) Reset() {
*x = TokenSet{}
if protoimpl.UnsafeEnabled {
mi := &file_apps_token_pb_token_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TokenSet) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TokenSet) ProtoMessage() {}
func (x *TokenSet) ProtoReflect() protoreflect.Message {
mi := &file_apps_token_pb_token_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TokenSet.ProtoReflect.Descriptor instead.
func (*TokenSet) Descriptor() ([]byte, []int) {
return file_apps_token_pb_token_proto_rawDescGZIP(), []int{0}
}
func (x *TokenSet) GetTotal() int64 {
if x != nil {
return x.Total
}
return 0
}
func (x *TokenSet) GetItems() []*Token {
if x != nil {
return x.Items
}
return nil
}
// 令牌, 访问凭证
type Token struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 颁发平台, 根据授权方式判断
// @gotags: bson:"platform" json:"platform"
Platform PLATFORM `protobuf:"varint,1,opt,name=platform,proto3,enum=go8.devcloud.mcenter.token.PLATFORM" json:"platform" bson:"platform"`
// 访问令牌
// @gotags: bson:"_id" json:"access_token"
AccessToken string `protobuf:"bytes,2,opt,name=access_token,json=accessToken,proto3" json:"access_token" bson:"_id"`
// 刷新令牌, 当访问令牌过期时, 可以刷新令牌进行刷新
// @gotags: bson:"refresh_token" json:"refresh_token"
RefreshToken string `protobuf:"bytes,3,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token" bson:"refresh_token"`
// 颁发时间
// @gotags: bson:"issue_at" json:"issue_at"
IssueAt int64 `protobuf:"varint,4,opt,name=issue_at,json=issueAt,proto3" json:"issue_at" bson:"issue_at"`
// 访问令牌过期时间
// @gotags: bson:"access_expired_at" json:"access_expired_at"
AccessExpiredAt int64 `protobuf:"varint,5,opt,name=access_expired_at,json=accessExpiredAt,proto3" json:"access_expired_at" bson:"access_expired_at"`
// 刷新令牌过期时间
// @gotags: bson:"refresh_expired_at" json:"refresh_expired_at"
RefreshExpiredAt int64 `protobuf:"varint,6,opt,name=refresh_expired_at,json=refreshExpiredAt,proto3" json:"refresh_expired_at" bson:"refresh_expired_at"`
// 用户类型
// @gotags: bson:"user_type" json:"user_type"
UserType user.TYPE `protobuf:"varint,7,opt,name=user_type,json=userType,proto3,enum=go8.devcloud.mcenter.user.TYPE" json:"user_type" bson:"user_type"`
// 用户当前所处域
// @gotags: bson:"domain" json:"domain"
Domain string `protobuf:"bytes,8,opt,name=domain,proto3" json:"domain" bson:"domain"`
// 用户名
// @gotags: bson:"username" json:"username"
Username string `protobuf:"bytes,9,opt,name=username,proto3" json:"username" bson:"username"`
// 用户Id
// @gotags: bson:"user_id" json:"user_id"
UserId string `protobuf:"bytes,10,opt,name=user_id,json=userId,proto3" json:"user_id" bson:"user_id"`
// 授权类型
// @gotags: bson:"grant_type" json:"grant_type"
GrantType GRANT_TYPE `protobuf:"varint,11,opt,name=grant_type,json=grantType,proto3,enum=go8.devcloud.mcenter.token.GRANT_TYPE" json:"grant_type" bson:"grant_type"`
// 令牌类型
// @gotags: bson:"type" json:"type"
Type TOKEN_TYPE `protobuf:"varint,12,opt,name=type,proto3,enum=go8.devcloud.mcenter.token.TOKEN_TYPE" json:"type" bson:"type"`
// 当前空间
// @gotags: bson:"namespace" json:"namespace"
Namespace string `protobuf:"bytes,13,opt,name=namespace,proto3" json:"namespace" bson:"namespace"`
// 空间内的过来条件, 格式key=value
// @gotags: bson:"scope" json:"scope,omitempty"
Scope string `protobuf:"bytes,14,opt,name=scope,proto3" json:"scope,omitempty" bson:"scope"`
// 令牌描述信息, 当授权类型为Private Token时, 做描述使用
// @gotags: bson:"description" json:"description,omitempty"
Description string `protobuf:"bytes,15,opt,name=description,proto3" json:"description,omitempty" bson:"description"`
// 可选名称空间
// @gotags: bson:"-" json:"available_namespace,omitempty"
AvailableNamespace []string `protobuf:"bytes,16,rep,name=available_namespace,json=availableNamespace,proto3" json:"available_namespace,omitempty" bson:"-"`
// 令牌状态
// @gotags: bson:"status" json:"status,omitempty"
Status *Status `protobuf:"bytes,17,opt,name=status,proto3" json:"status,omitempty" bson:"status"`
// 令牌办法给客户端信息
// @gotags: bson:"location" json:"location,omitempty"
Location *Location `protobuf:"bytes,18,opt,name=location,proto3" json:"location,omitempty" bson:"location"`
}
func (x *Token) Reset() {
*x = Token{}
if protoimpl.UnsafeEnabled {
mi := &file_apps_token_pb_token_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Token) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Token) ProtoMessage() {}
func (x *Token) ProtoReflect() protoreflect.Message {
mi := &file_apps_token_pb_token_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Token.ProtoReflect.Descriptor instead.
func (*Token) Descriptor() ([]byte, []int) {
return file_apps_token_pb_token_proto_rawDescGZIP(), []int{1}
}
func (x *Token) GetPlatform() PLATFORM {
if x != nil {
return x.Platform
}
return PLATFORM_WEB
}
func (x *Token) GetAccessToken() string {
if x != nil {
return x.AccessToken
}
return ""
}
func (x *Token) GetRefreshToken() string {
if x != nil {
return x.RefreshToken
}
return ""
}
func (x *Token) GetIssueAt() int64 {
if x != nil {
return x.IssueAt
}
return 0
}
func (x *Token) GetAccessExpiredAt() int64 {
if x != nil {
return x.AccessExpiredAt
}
return 0
}
func (x *Token) GetRefreshExpiredAt() int64 {
if x != nil {
return x.RefreshExpiredAt
}
return 0
}
func (x *Token) GetUserType() user.TYPE {
if x != nil {
return x.UserType
}
return user.TYPE(0)
}
func (x *Token) GetDomain() string {
if x != nil {
return x.Domain
}
return ""
}
func (x *Token) GetUsername() string {
if x != nil {
return x.Username
}
return ""
}
func (x *Token) GetUserId() string {
if x != nil {
return x.UserId
}
return ""
}
func (x *Token) GetGrantType() GRANT_TYPE {
if x != nil {
return x.GrantType
}
return GRANT_TYPE_PASSWORD
}
func (x *Token) GetType() TOKEN_TYPE {
if x != nil {
return x.Type
}
return TOKEN_TYPE_BEARER
}
func (x *Token) GetNamespace() string {
if x != nil {
return x.Namespace
}
return ""
}
func (x *Token) GetScope() string {
if x != nil {
return x.Scope
}
return ""
}
func (x *Token) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (x *Token) GetAvailableNamespace() []string {
if x != nil {
return x.AvailableNamespace
}
return nil
}
func (x *Token) GetStatus() *Status {
if x != nil {
return x.Status
}
return nil
}
func (x *Token) GetLocation() *Location {
if x != nil {
return x.Location
}
return nil
}
type Status struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 是否冻结
// @gotags: bson:"is_block" json:"is_block"
IsBlock bool `protobuf:"varint,1,opt,name=is_block,json=isBlock,proto3" json:"is_block" bson:"is_block"`
// 冻结类型
// @gotags: bson:"block_type" json:"block_type"
BlockType *BLOCK_TYPE `protobuf:"varint,2,opt,name=block_type,json=blockType,proto3,enum=go8.devcloud.mcenter.token.BLOCK_TYPE,oneof" json:"block_type" bson:"block_type"`
// 冻结时间
// @gotags: bson:"block_at" json:"block_at"
BlockAt int64 `protobuf:"varint,3,opt,name=block_at,json=blockAt,proto3" json:"block_at" bson:"block_at"`
// 冻结原因
// @gotags: bson:"block_reason" json:"block_reason"
BlockReason string `protobuf:"bytes,4,opt,name=block_reason,json=blockReason,proto3" json:"block_reason" bson:"block_reason"`
}
func (x *Status) Reset() {
*x = Status{}
if protoimpl.UnsafeEnabled {
mi := &file_apps_token_pb_token_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Status) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Status) ProtoMessage() {}
func (x *Status) ProtoReflect() protoreflect.Message {
mi := &file_apps_token_pb_token_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Status.ProtoReflect.Descriptor instead.
func (*Status) Descriptor() ([]byte, []int) {
return file_apps_token_pb_token_proto_rawDescGZIP(), []int{2}
}
func (x *Status) GetIsBlock() bool {
if x != nil {
return x.IsBlock
}
return false
}
func (x *Status) GetBlockType() BLOCK_TYPE {
if x != nil && x.BlockType != nil {
return *x.BlockType
}
return BLOCK_TYPE_REFRESH_TOKEN_EXPIRED
}
func (x *Status) GetBlockAt() int64 {
if x != nil {
return x.BlockAt
}
return 0
}
func (x *Status) GetBlockReason() string {
if x != nil {
return x.BlockReason
}
return ""
}
type Location struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 令牌申请者IP地址
// @gotags: bson:"ip_location" json:"ip_location"
IpLocation *IPLocation `protobuf:"bytes,1,opt,name=ip_location,json=ipLocation,proto3" json:"ip_location" bson:"ip_location"`
// 令牌申请者UA
// @gotags: bson:"user_agent" json:"user_agent"
UserAgent *UserAgent `protobuf:"bytes,2,opt,name=user_agent,json=userAgent,proto3" json:"user_agent" bson:"user_agent"`
}
func (x *Location) Reset() {
*x = Location{}
if protoimpl.UnsafeEnabled {
mi := &file_apps_token_pb_token_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Location) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Location) ProtoMessage() {}
func (x *Location) ProtoReflect() protoreflect.Message {
mi := &file_apps_token_pb_token_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Location.ProtoReflect.Descriptor instead.
func (*Location) Descriptor() ([]byte, []int) {
return file_apps_token_pb_token_proto_rawDescGZIP(), []int{3}
}
func (x *Location) GetIpLocation() *IPLocation {
if x != nil {
return x.IpLocation
}
return nil
}
func (x *Location) GetUserAgent() *UserAgent {
if x != nil {
return x.UserAgent
}
return nil
}
// IPLocation 客户端地理位置信息
type IPLocation struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 令牌申请者IP地址
// @gotags: bson:"remote_ip" json:"remote_ip"
RemoteIp string `protobuf:"bytes,1,opt,name=remote_ip,json=remoteIp,proto3" json:"remote_ip" bson:"remote_ip"`
// 城市编号
// @gotags: bson:"city_id" json:"city_id"
CityId int64 `protobuf:"varint,2,opt,name=city_id,json=cityId,proto3" json:"city_id" bson:"city_id"`
// 国家
// @gotags: bson:"country" json:"country"
Country string `protobuf:"bytes,3,opt,name=country,proto3" json:"country" bson:"country"`
// 地区
// @gotags: bson:"region" json:"region"
Region string `protobuf:"bytes,4,opt,name=region,proto3" json:"region" bson:"region"`
// 省
// @gotags: bson:"province" json:"province"
Province string `protobuf:"bytes,5,opt,name=province,proto3" json:"province" bson:"province"`
// 城
// @gotags: bson:"city" json:"city"
City string `protobuf:"bytes,6,opt,name=city,proto3" json:"city" bson:"city"`
// 服务商
// @gotags: bson:"isp" json:"isp"
Isp string `protobuf:"bytes,7,opt,name=isp,proto3" json:"isp" bson:"isp"`
}
func (x *IPLocation) Reset() {
*x = IPLocation{}
if protoimpl.UnsafeEnabled {
mi := &file_apps_token_pb_token_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *IPLocation) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*IPLocation) ProtoMessage() {}
func (x *IPLocation) ProtoReflect() protoreflect.Message {
mi := &file_apps_token_pb_token_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use IPLocation.ProtoReflect.Descriptor instead.
func (*IPLocation) Descriptor() ([]byte, []int) {
return file_apps_token_pb_token_proto_rawDescGZIP(), []int{4}
}
func (x *IPLocation) GetRemoteIp() string {
if x != nil {
return x.RemoteIp
}
return ""
}
func (x *IPLocation) GetCityId() int64 {
if x != nil {
return x.CityId
}
return 0
}
func (x *IPLocation) GetCountry() string {
if x != nil {
return x.Country
}
return ""
}
func (x *IPLocation) GetRegion() string {
if x != nil {
return x.Region
}
return ""
}
func (x *IPLocation) GetProvince() string {
if x != nil {
return x.Province
}
return ""
}
func (x *IPLocation) GetCity() string {
if x != nil {
return x.City
}
return ""
}
func (x *IPLocation) GetIsp() string {
if x != nil {
return x.Isp
}
return ""
}
// UserAgent todo
type UserAgent struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 系统OS
// @gotags: bson:"os" json:"os"
Os string `protobuf:"bytes,1,opt,name=os,proto3" json:"os" bson:"os"`
// 客户端平台
// @gotags: bson:"platform" json:"platform"
Platform string `protobuf:"bytes,2,opt,name=platform,proto3" json:"platform" bson:"platform"`
// 内核名称
// @gotags: bson:"engine_name" json:"engine_name"
EngineName string `protobuf:"bytes,3,opt,name=engine_name,json=engineName,proto3" json:"engine_name" bson:"engine_name"`
// 内核版本
// @gotags: bson:"engine_version" json:"engine_version"
EngineVersion string `protobuf:"bytes,4,opt,name=engine_version,json=engineVersion,proto3" json:"engine_version" bson:"engine_version"`
// 浏览器名称
// @gotags: bson:"browser_name" json:"browser_name"
BrowserName string `protobuf:"bytes,5,opt,name=browser_name,json=browserName,proto3" json:"browser_name" bson:"browser_name"`
// 浏览器版本
// @gotags: bson:"browser_version" json:"browser_version"
BrowserVersion string `protobuf:"bytes,6,opt,name=browser_version,json=browserVersion,proto3" json:"browser_version" bson:"browser_version"`
}
func (x *UserAgent) Reset() {
*x = UserAgent{}
if protoimpl.UnsafeEnabled {
mi := &file_apps_token_pb_token_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UserAgent) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UserAgent) ProtoMessage() {}
func (x *UserAgent) ProtoReflect() protoreflect.Message {
mi := &file_apps_token_pb_token_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UserAgent.ProtoReflect.Descriptor instead.
func (*UserAgent) Descriptor() ([]byte, []int) {
return file_apps_token_pb_token_proto_rawDescGZIP(), []int{5}
}
func (x *UserAgent) GetOs() string {
if x != nil {
return x.Os
}
return ""
}
func (x *UserAgent) GetPlatform() string {
if x != nil {
return x.Platform
}
return ""
}
func (x *UserAgent) GetEngineName() string {
if x != nil {
return x.EngineName
}
return ""
}
func (x *UserAgent) GetEngineVersion() string {
if x != nil {
return x.EngineVersion
}
return ""
}
func (x *UserAgent) GetBrowserName() string {
if x != nil {
return x.BrowserName
}
return ""
}
func (x *UserAgent) GetBrowserVersion() string {
if x != nil {
return x.BrowserVersion
}
return ""
}
var File_apps_token_pb_token_proto protoreflect.FileDescriptor
var file_apps_token_pb_token_proto_rawDesc = []byte{
0x0a, 0x19, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2f,
0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a, 0x67, 0x6f, 0x38,
0x2e, 0x64, 0x65, 0x76, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6d, 0x63, 0x65, 0x6e, 0x74, 0x65,
0x72, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x1a, 0x17, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x75, 0x73,
0x65, 0x72, 0x2f, 0x70, 0x62, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x22, 0x59, 0x0a, 0x08, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x53, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05,
0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x74, 0x6f, 0x74,
0x61, 0x6c, 0x12, 0x37, 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28,
0x0b, 0x32, 0x21, 0x2e, 0x67, 0x6f, 0x38, 0x2e, 0x64, 0x65, 0x76, 0x63, 0x6c, 0x6f, 0x75, 0x64,
0x2e, 0x6d, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x54,
0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x22, 0x99, 0x06, 0x0a, 0x05,
0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x40, 0x0a, 0x08, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72,
0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x38, 0x2e, 0x64, 0x65,
0x76, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6d, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x74,
0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x50, 0x4c, 0x41, 0x54, 0x46, 0x4f, 0x52, 0x4d, 0x52, 0x08, 0x70,
0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x65, 0x73,
0x73, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61,
0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65,
0x66, 0x72, 0x65, 0x73, 0x68, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28,
0x09, 0x52, 0x0c, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12,
0x19, 0x0a, 0x08, 0x69, 0x73, 0x73, 0x75, 0x65, 0x5f, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28,
0x03, 0x52, 0x07, 0x69, 0x73, 0x73, 0x75, 0x65, 0x41, 0x74, 0x12, 0x2a, 0x0a, 0x11, 0x61, 0x63,
0x63, 0x65, 0x73, 0x73, 0x5f, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18,
0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x45, 0x78, 0x70,
0x69, 0x72, 0x65, 0x64, 0x41, 0x74, 0x12, 0x2c, 0x0a, 0x12, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73,
0x68, 0x5f, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x06, 0x20, 0x01,
0x28, 0x03, 0x52, 0x10, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x45, 0x78, 0x70, 0x69, 0x72,
0x65, 0x64, 0x41, 0x74, 0x12, 0x3c, 0x0a, 0x09, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x74, 0x79, 0x70,
0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x67, 0x6f, 0x38, 0x2e, 0x64, 0x65,
0x76, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6d, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x75,
0x73, 0x65, 0x72, 0x2e, 0x54, 0x59, 0x50, 0x45, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x54, 0x79,
0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x08, 0x20, 0x01,
0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73,
0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73,
0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69,
0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12,
0x45, 0x0a, 0x0a, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0b, 0x20,
0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x67, 0x6f, 0x38, 0x2e, 0x64, 0x65, 0x76, 0x63, 0x6c, 0x6f,
0x75, 0x64, 0x2e, 0x6d, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
0x2e, 0x47, 0x52, 0x41, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x52, 0x09, 0x67, 0x72, 0x61,
0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x3a, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0c,
0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x67, 0x6f, 0x38, 0x2e, 0x64, 0x65, 0x76, 0x63, 0x6c,
0x6f, 0x75, 0x64, 0x2e, 0x6d, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x74, 0x6f, 0x6b, 0x65,
0x6e, 0x2e, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x52, 0x04, 0x74, 0x79,
0x70, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18,
0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65,
0x12, 0x14, 0x0a, 0x05, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52,
0x05, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69,
0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73,
0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2f, 0x0a, 0x13, 0x61, 0x76, 0x61, 0x69,
0x6c, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18,
0x10, 0x20, 0x03, 0x28, 0x09, 0x52, 0x12, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65,
0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x3a, 0x0a, 0x06, 0x73, 0x74, 0x61,
0x74, 0x75, 0x73, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x6f, 0x38, 0x2e,
0x64, 0x65, 0x76, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6d, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72,
0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73,
0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x40, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f,
0x6e, 0x18, 0x12, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x38, 0x2e, 0x64, 0x65,
0x76, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6d, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x74,
0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x6c,
0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xbc, 0x01, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74,
0x75, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x69, 0x73, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01,
0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x69, 0x73, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x4a, 0x0a,
0x0a, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
0x0e, 0x32, 0x26, 0x2e, 0x67, 0x6f, 0x38, 0x2e, 0x64, 0x65, 0x76, 0x63, 0x6c, 0x6f, 0x75, 0x64,
0x2e, 0x6d, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x42,
0x4c, 0x4f, 0x43, 0x4b, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x48, 0x00, 0x52, 0x09, 0x62, 0x6c, 0x6f,
0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x88, 0x01, 0x01, 0x12, 0x19, 0x0a, 0x08, 0x62, 0x6c, 0x6f,
0x63, 0x6b, 0x5f, 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x62, 0x6c, 0x6f,
0x63, 0x6b, 0x41, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x72, 0x65,
0x61, 0x73, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63,
0x6b, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x62, 0x6c, 0x6f, 0x63,
0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, 0x99, 0x01, 0x0a, 0x08, 0x4c, 0x6f, 0x63, 0x61, 0x74,
0x69, 0x6f, 0x6e, 0x12, 0x47, 0x0a, 0x0b, 0x69, 0x70, 0x5f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69,
0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x67, 0x6f, 0x38, 0x2e, 0x64,
0x65, 0x76, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6d, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e,
0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x49, 0x50, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,
0x52, 0x0a, 0x69, 0x70, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x44, 0x0a, 0x0a,
0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x25, 0x2e, 0x67, 0x6f, 0x38, 0x2e, 0x64, 0x65, 0x76, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
0x6d, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x55, 0x73,
0x65, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x09, 0x75, 0x73, 0x65, 0x72, 0x41, 0x67, 0x65,
0x6e, 0x74, 0x22, 0xb6, 0x01, 0x0a, 0x0a, 0x49, 0x50, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f,
0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x69, 0x70, 0x18, 0x01,
0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x49, 0x70, 0x12, 0x17,
0x0a, 0x07, 0x63, 0x69, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52,
0x06, 0x63, 0x69, 0x74, 0x79, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74,
0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72,
0x79, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28,
0x09, 0x52, 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f,
0x76, 0x69, 0x6e, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f,
0x76, 0x69, 0x6e, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x69, 0x74, 0x79, 0x18, 0x06, 0x20,
0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x69, 0x74, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x69, 0x73, 0x70,
0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x69, 0x73, 0x70, 0x22, 0xcb, 0x01, 0x0a, 0x09,
0x55, 0x73, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x6f, 0x73, 0x18,
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x6f, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x6c, 0x61,
0x74, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x6c, 0x61,
0x74, 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x5f,
0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x65, 0x6e, 0x67, 0x69,
0x6e, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65,
0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d,
0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x0a,
0x0c, 0x62, 0x72, 0x6f, 0x77, 0x73, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20,
0x01, 0x28, 0x09, 0x52, 0x0b, 0x62, 0x72, 0x6f, 0x77, 0x73, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65,
0x12, 0x27, 0x0a, 0x0f, 0x62, 0x72, 0x6f, 0x77, 0x73, 0x65, 0x72, 0x5f, 0x76, 0x65, 0x72, 0x73,
0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x62, 0x72, 0x6f, 0x77, 0x73,
0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x2a, 0x1c, 0x0a, 0x08, 0x50, 0x4c, 0x41,
0x54, 0x46, 0x4f, 0x52, 0x4d, 0x12, 0x07, 0x0a, 0x03, 0x57, 0x45, 0x42, 0x10, 0x00, 0x12, 0x07,
0x0a, 0x03, 0x41, 0x50, 0x49, 0x10, 0x01, 0x2a, 0x8c, 0x01, 0x0a, 0x0a, 0x47, 0x52, 0x41, 0x4e,
0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x12, 0x0c, 0x0a, 0x08, 0x50, 0x41, 0x53, 0x53, 0x57, 0x4f,
0x52, 0x44, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x4c, 0x44, 0x41, 0x50, 0x10, 0x01, 0x12, 0x0b,
0x0a, 0x07, 0x52, 0x45, 0x46, 0x52, 0x45, 0x53, 0x48, 0x10, 0x02, 0x12, 0x11, 0x0a, 0x0d, 0x50,
0x52, 0x49, 0x56, 0x41, 0x54, 0x45, 0x5f, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x10, 0x03, 0x12, 0x0a,
0x0a, 0x06, 0x43, 0x4c, 0x49, 0x45, 0x4e, 0x54, 0x10, 0x04, 0x12, 0x0d, 0x0a, 0x09, 0x41, 0x55,
0x54, 0x48, 0x5f, 0x43, 0x4f, 0x44, 0x45, 0x10, 0x05, 0x12, 0x0c, 0x0a, 0x08, 0x49, 0x4d, 0x50,
0x4c, 0x49, 0x43, 0x49, 0x54, 0x10, 0x06, 0x12, 0x0f, 0x0a, 0x0b, 0x57, 0x45, 0x43, 0x48, 0x41,
0x54, 0x5f, 0x57, 0x4f, 0x52, 0x4b, 0x10, 0x07, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x49, 0x4e, 0x47,
0x44, 0x49, 0x4e, 0x47, 0x10, 0x08, 0x2a, 0x2a, 0x0a, 0x0a, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x5f,
0x54, 0x59, 0x50, 0x45, 0x12, 0x0a, 0x0a, 0x06, 0x42, 0x45, 0x41, 0x52, 0x45, 0x52, 0x10, 0x00,
0x12, 0x07, 0x0a, 0x03, 0x4d, 0x41, 0x43, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x4a, 0x57, 0x54,
0x10, 0x02, 0x2a, 0x5a, 0x0a, 0x0a, 0x42, 0x4c, 0x4f, 0x43, 0x4b, 0x5f, 0x54, 0x59, 0x50, 0x45,
0x12, 0x19, 0x0a, 0x15, 0x52, 0x45, 0x46, 0x52, 0x45, 0x53, 0x48, 0x5f, 0x54, 0x4f, 0x4b, 0x45,
0x4e, 0x5f, 0x45, 0x58, 0x50, 0x49, 0x52, 0x45, 0x44, 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, 0x4f,
0x54, 0x48, 0x45, 0x52, 0x5f, 0x50, 0x4c, 0x41, 0x43, 0x45, 0x5f, 0x4c, 0x4f, 0x47, 0x47, 0x45,
0x44, 0x5f, 0x49, 0x4e, 0x10, 0x01, 0x12, 0x16, 0x0a, 0x12, 0x4f, 0x54, 0x48, 0x45, 0x52, 0x5f,
0x49, 0x50, 0x5f, 0x4c, 0x4f, 0x47, 0x47, 0x45, 0x44, 0x5f, 0x49, 0x4e, 0x10, 0x02, 0x42, 0x3e,
0x5a, 0x3c, 0x67, 0x69, 0x74, 0x65, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2d, 0x63,
0x6f, 0x75, 0x72, 0x73, 0x65, 0x2f, 0x67, 0x6f, 0x38, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,
0x74, 0x73, 0x2f, 0x64, 0x65, 0x76, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x6d, 0x63, 0x65, 0x6e,
0x74, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x62, 0x06,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_apps_token_pb_token_proto_rawDescOnce sync.Once
file_apps_token_pb_token_proto_rawDescData = file_apps_token_pb_token_proto_rawDesc
)
func file_apps_token_pb_token_proto_rawDescGZIP() []byte {
file_apps_token_pb_token_proto_rawDescOnce.Do(func() {
file_apps_token_pb_token_proto_rawDescData = protoimpl.X.CompressGZIP(file_apps_token_pb_token_proto_rawDescData)
})
return file_apps_token_pb_token_proto_rawDescData
}
var file_apps_token_pb_token_proto_enumTypes = make([]protoimpl.EnumInfo, 4)
var file_apps_token_pb_token_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
var file_apps_token_pb_token_proto_goTypes = []interface{}{
(PLATFORM)(0), // 0: go8.devcloud.mcenter.token.PLATFORM
(GRANT_TYPE)(0), // 1: go8.devcloud.mcenter.token.GRANT_TYPE
(TOKEN_TYPE)(0), // 2: go8.devcloud.mcenter.token.TOKEN_TYPE
(BLOCK_TYPE)(0), // 3: go8.devcloud.mcenter.token.BLOCK_TYPE
(*TokenSet)(nil), // 4: go8.devcloud.mcenter.token.TokenSet
(*Token)(nil), // 5: go8.devcloud.mcenter.token.Token
(*Status)(nil), // 6: go8.devcloud.mcenter.token.Status
(*Location)(nil), // 7: go8.devcloud.mcenter.token.Location
(*IPLocation)(nil), // 8: go8.devcloud.mcenter.token.IPLocation
(*UserAgent)(nil), // 9: go8.devcloud.mcenter.token.UserAgent
(user.TYPE)(0), // 10: go8.devcloud.mcenter.user.TYPE
}
var file_apps_token_pb_token_proto_depIdxs = []int32{
5, // 0: go8.devcloud.mcenter.token.TokenSet.items:type_name -> go8.devcloud.mcenter.token.Token
0, // 1: go8.devcloud.mcenter.token.Token.platform:type_name -> go8.devcloud.mcenter.token.PLATFORM
10, // 2: go8.devcloud.mcenter.token.Token.user_type:type_name -> go8.devcloud.mcenter.user.TYPE
1, // 3: go8.devcloud.mcenter.token.Token.grant_type:type_name -> go8.devcloud.mcenter.token.GRANT_TYPE
2, // 4: go8.devcloud.mcenter.token.Token.type:type_name -> go8.devcloud.mcenter.token.TOKEN_TYPE
6, // 5: go8.devcloud.mcenter.token.Token.status:type_name -> go8.devcloud.mcenter.token.Status
7, // 6: go8.devcloud.mcenter.token.Token.location:type_name -> go8.devcloud.mcenter.token.Location
3, // 7: go8.devcloud.mcenter.token.Status.block_type:type_name -> go8.devcloud.mcenter.token.BLOCK_TYPE
8, // 8: go8.devcloud.mcenter.token.Location.ip_location:type_name -> go8.devcloud.mcenter.token.IPLocation
9, // 9: go8.devcloud.mcenter.token.Location.user_agent:type_name -> go8.devcloud.mcenter.token.UserAgent
10, // [10:10] is the sub-list for method output_type
10, // [10:10] is the sub-list for method input_type
10, // [10:10] is the sub-list for extension type_name
10, // [10:10] is the sub-list for extension extendee
0, // [0:10] is the sub-list for field type_name
}
func init() { file_apps_token_pb_token_proto_init() }
func file_apps_token_pb_token_proto_init() {
if File_apps_token_pb_token_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_apps_token_pb_token_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*TokenSet); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_apps_token_pb_token_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Token); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_apps_token_pb_token_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Status); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_apps_token_pb_token_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Location); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_apps_token_pb_token_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*IPLocation); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_apps_token_pb_token_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UserAgent); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
file_apps_token_pb_token_proto_msgTypes[2].OneofWrappers = []interface{}{}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_apps_token_pb_token_proto_rawDesc,
NumEnums: 4,
NumMessages: 6,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_apps_token_pb_token_proto_goTypes,
DependencyIndexes: file_apps_token_pb_token_proto_depIdxs,
EnumInfos: file_apps_token_pb_token_proto_enumTypes,
MessageInfos: file_apps_token_pb_token_proto_msgTypes,
}.Build()
File_apps_token_pb_token_proto = out.File
file_apps_token_pb_token_proto_rawDesc = nil
file_apps_token_pb_token_proto_goTypes = nil
file_apps_token_pb_token_proto_depIdxs = nil
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。