github.com/infraboard/keyauth@v0.8.1/apps/application/pb/application.proto (about) 1 syntax = "proto3"; 2 3 package infraboard.keyauth.application; 4 option go_package = "github.com/infraboard/keyauth/apps/application"; 5 6 import "apps/application/pb/request.proto"; 7 8 // Application is oauth2's client: https://tools.ietf.org/html/rfc6749#section-2 9 message Application { 10 // 唯一ID 11 // @gotags: bson:"_id" json:"id" 12 string id = 1; 13 // 是否是内建应用 14 // @gotags: bson:"build_in" json:"build_in" 15 bool build_in =2; 16 // 所处于域 17 // @gotags: bson:"domain" json:"domain" 18 string domain =3; 19 // 应用属于那个用户 20 // @gotags: bson:"user" json:"create_by" 21 string create_by = 4; 22 // 应用创建的时间 23 // @gotags: bson:"create_at" json:"create_at" 24 int64 create_at = 5; 25 // 应用更新的时间 26 // @gotags: bson:"update_at" json:"update_at" 27 int64 update_at = 6; 28 // 应用客户端ID 29 // @gotags: bson:"client_id" json:"client_id" 30 string client_id = 7; 31 // 应用客户端秘钥 32 // @gotags: bson:"client_secret" json:"client_secret" 33 string client_secret =8; 34 // 是否冻结应用, 冻结应用后, 该应用无法通过凭证获取访问凭证(token) 35 // @gotags: bson:"locked" json:"locked" 36 bool locked = 9; 37 // 应用名称 38 // @gotags: bson:"name" json:"name" 39 string name = 10; 40 // 应用的网站地址 41 // @gotags: bson:"website" json:"website" 42 string website = 11; 43 // 应用的LOGO 44 // @gotags: bson:"logo_image" json:"logo_image" 45 string logo_image = 12; 46 // 应用简单的描述 47 // @gotags: bson:"description" json:"description" 48 string description = 13; 49 // 应用重定向URI, Oauht2时需要该参数 50 // @gotags: bson:"redirect_uri" json:"redirect_uri" 51 string redirect_uri = 14; 52 // 应用申请的token的过期时间 53 // @gotags: bson:"access_token_expire_second" json:"access_token_expire_second" 54 int64 access_token_expire_second = 15; 55 // 刷新token过期时间 56 // @gotags: bson:"refresh_token_expire_second" json:"refresh_token_expire_second" 57 int64 refresh_token_expire_second = 16; 58 // 客户端类型 59 // @gotags: bson:"client_type" json:"client_type" 60 ClientType client_type = 17; 61 } 62 63 message Set { 64 // @gotags: bson:"total" json:"total" 65 int64 total = 1; 66 // @gotags: bson:"items" json:"items" 67 repeated Application items = 2; 68 }