announcement.pb.go 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: announcement.proto
  3. // package声明符,用来防止不同的消息类型有命名冲突
  4. package v1
  5. import (
  6. fmt "fmt"
  7. proto "github.com/golang/protobuf/proto"
  8. math "math"
  9. )
  10. // Reference imports to suppress errors if they are not otherwise used.
  11. var _ = proto.Marshal
  12. var _ = fmt.Errorf
  13. var _ = math.Inf
  14. // This is a compile-time assertion to ensure that this generated file
  15. // is compatible with the proto package it is being compiled against.
  16. // A compilation error at this line likely means your copy of the
  17. // proto package needs to be updated.
  18. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
  19. type AnnouncementListRequest struct {
  20. Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page"`
  21. PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size"`
  22. GardenId int64 `protobuf:"varint,3,opt,name=garden_id,json=gardenId,proto3" json:"garden_id"`
  23. Uid int64 `protobuf:"varint,4,opt,name=uid,proto3" json:"uid"`
  24. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  25. XXX_unrecognized []byte `json:"-"`
  26. XXX_sizecache int32 `json:"-"`
  27. }
  28. func (m *AnnouncementListRequest) Reset() { *m = AnnouncementListRequest{} }
  29. func (m *AnnouncementListRequest) String() string { return proto.CompactTextString(m) }
  30. func (*AnnouncementListRequest) ProtoMessage() {}
  31. func (*AnnouncementListRequest) Descriptor() ([]byte, []int) {
  32. return fileDescriptor_0080e911b962c5cf, []int{0}
  33. }
  34. func (m *AnnouncementListRequest) XXX_Unmarshal(b []byte) error {
  35. return xxx_messageInfo_AnnouncementListRequest.Unmarshal(m, b)
  36. }
  37. func (m *AnnouncementListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  38. return xxx_messageInfo_AnnouncementListRequest.Marshal(b, m, deterministic)
  39. }
  40. func (m *AnnouncementListRequest) XXX_Merge(src proto.Message) {
  41. xxx_messageInfo_AnnouncementListRequest.Merge(m, src)
  42. }
  43. func (m *AnnouncementListRequest) XXX_Size() int {
  44. return xxx_messageInfo_AnnouncementListRequest.Size(m)
  45. }
  46. func (m *AnnouncementListRequest) XXX_DiscardUnknown() {
  47. xxx_messageInfo_AnnouncementListRequest.DiscardUnknown(m)
  48. }
  49. var xxx_messageInfo_AnnouncementListRequest proto.InternalMessageInfo
  50. func (m *AnnouncementListRequest) GetPage() int64 {
  51. if m != nil {
  52. return m.Page
  53. }
  54. return 0
  55. }
  56. func (m *AnnouncementListRequest) GetPageSize() int64 {
  57. if m != nil {
  58. return m.PageSize
  59. }
  60. return 0
  61. }
  62. func (m *AnnouncementListRequest) GetGardenId() int64 {
  63. if m != nil {
  64. return m.GardenId
  65. }
  66. return 0
  67. }
  68. func (m *AnnouncementListRequest) GetUid() int64 {
  69. if m != nil {
  70. return m.Uid
  71. }
  72. return 0
  73. }
  74. type AnnouncementItem struct {
  75. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id"`
  76. Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title"`
  77. Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content"`
  78. CreatedAt string `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at"`
  79. ReadCount int64 `protobuf:"varint,5,opt,name=read_count,json=readCount,proto3" json:"read_count"`
  80. Read bool `protobuf:"varint,6,opt,name=read,proto3" json:"read"`
  81. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  82. XXX_unrecognized []byte `json:"-"`
  83. XXX_sizecache int32 `json:"-"`
  84. }
  85. func (m *AnnouncementItem) Reset() { *m = AnnouncementItem{} }
  86. func (m *AnnouncementItem) String() string { return proto.CompactTextString(m) }
  87. func (*AnnouncementItem) ProtoMessage() {}
  88. func (*AnnouncementItem) Descriptor() ([]byte, []int) {
  89. return fileDescriptor_0080e911b962c5cf, []int{1}
  90. }
  91. func (m *AnnouncementItem) XXX_Unmarshal(b []byte) error {
  92. return xxx_messageInfo_AnnouncementItem.Unmarshal(m, b)
  93. }
  94. func (m *AnnouncementItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  95. return xxx_messageInfo_AnnouncementItem.Marshal(b, m, deterministic)
  96. }
  97. func (m *AnnouncementItem) XXX_Merge(src proto.Message) {
  98. xxx_messageInfo_AnnouncementItem.Merge(m, src)
  99. }
  100. func (m *AnnouncementItem) XXX_Size() int {
  101. return xxx_messageInfo_AnnouncementItem.Size(m)
  102. }
  103. func (m *AnnouncementItem) XXX_DiscardUnknown() {
  104. xxx_messageInfo_AnnouncementItem.DiscardUnknown(m)
  105. }
  106. var xxx_messageInfo_AnnouncementItem proto.InternalMessageInfo
  107. func (m *AnnouncementItem) GetId() int64 {
  108. if m != nil {
  109. return m.Id
  110. }
  111. return 0
  112. }
  113. func (m *AnnouncementItem) GetTitle() string {
  114. if m != nil {
  115. return m.Title
  116. }
  117. return ""
  118. }
  119. func (m *AnnouncementItem) GetContent() string {
  120. if m != nil {
  121. return m.Content
  122. }
  123. return ""
  124. }
  125. func (m *AnnouncementItem) GetCreatedAt() string {
  126. if m != nil {
  127. return m.CreatedAt
  128. }
  129. return ""
  130. }
  131. func (m *AnnouncementItem) GetReadCount() int64 {
  132. if m != nil {
  133. return m.ReadCount
  134. }
  135. return 0
  136. }
  137. func (m *AnnouncementItem) GetRead() bool {
  138. if m != nil {
  139. return m.Read
  140. }
  141. return false
  142. }
  143. type AnnouncementListReply struct {
  144. Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page"`
  145. Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total"`
  146. List []*AnnouncementItem `protobuf:"bytes,3,rep,name=list,proto3" json:"list"`
  147. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  148. XXX_unrecognized []byte `json:"-"`
  149. XXX_sizecache int32 `json:"-"`
  150. }
  151. func (m *AnnouncementListReply) Reset() { *m = AnnouncementListReply{} }
  152. func (m *AnnouncementListReply) String() string { return proto.CompactTextString(m) }
  153. func (*AnnouncementListReply) ProtoMessage() {}
  154. func (*AnnouncementListReply) Descriptor() ([]byte, []int) {
  155. return fileDescriptor_0080e911b962c5cf, []int{2}
  156. }
  157. func (m *AnnouncementListReply) XXX_Unmarshal(b []byte) error {
  158. return xxx_messageInfo_AnnouncementListReply.Unmarshal(m, b)
  159. }
  160. func (m *AnnouncementListReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  161. return xxx_messageInfo_AnnouncementListReply.Marshal(b, m, deterministic)
  162. }
  163. func (m *AnnouncementListReply) XXX_Merge(src proto.Message) {
  164. xxx_messageInfo_AnnouncementListReply.Merge(m, src)
  165. }
  166. func (m *AnnouncementListReply) XXX_Size() int {
  167. return xxx_messageInfo_AnnouncementListReply.Size(m)
  168. }
  169. func (m *AnnouncementListReply) XXX_DiscardUnknown() {
  170. xxx_messageInfo_AnnouncementListReply.DiscardUnknown(m)
  171. }
  172. var xxx_messageInfo_AnnouncementListReply proto.InternalMessageInfo
  173. func (m *AnnouncementListReply) GetPage() int64 {
  174. if m != nil {
  175. return m.Page
  176. }
  177. return 0
  178. }
  179. func (m *AnnouncementListReply) GetTotal() int64 {
  180. if m != nil {
  181. return m.Total
  182. }
  183. return 0
  184. }
  185. func (m *AnnouncementListReply) GetList() []*AnnouncementItem {
  186. if m != nil {
  187. return m.List
  188. }
  189. return nil
  190. }
  191. type AnnouncementReadAddRequest struct {
  192. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id"`
  193. GardenId int64 `protobuf:"varint,2,opt,name=garden_id,json=gardenId,proto3" json:"garden_id"`
  194. Uid int64 `protobuf:"varint,3,opt,name=uid,proto3" json:"uid"`
  195. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  196. XXX_unrecognized []byte `json:"-"`
  197. XXX_sizecache int32 `json:"-"`
  198. }
  199. func (m *AnnouncementReadAddRequest) Reset() { *m = AnnouncementReadAddRequest{} }
  200. func (m *AnnouncementReadAddRequest) String() string { return proto.CompactTextString(m) }
  201. func (*AnnouncementReadAddRequest) ProtoMessage() {}
  202. func (*AnnouncementReadAddRequest) Descriptor() ([]byte, []int) {
  203. return fileDescriptor_0080e911b962c5cf, []int{3}
  204. }
  205. func (m *AnnouncementReadAddRequest) XXX_Unmarshal(b []byte) error {
  206. return xxx_messageInfo_AnnouncementReadAddRequest.Unmarshal(m, b)
  207. }
  208. func (m *AnnouncementReadAddRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  209. return xxx_messageInfo_AnnouncementReadAddRequest.Marshal(b, m, deterministic)
  210. }
  211. func (m *AnnouncementReadAddRequest) XXX_Merge(src proto.Message) {
  212. xxx_messageInfo_AnnouncementReadAddRequest.Merge(m, src)
  213. }
  214. func (m *AnnouncementReadAddRequest) XXX_Size() int {
  215. return xxx_messageInfo_AnnouncementReadAddRequest.Size(m)
  216. }
  217. func (m *AnnouncementReadAddRequest) XXX_DiscardUnknown() {
  218. xxx_messageInfo_AnnouncementReadAddRequest.DiscardUnknown(m)
  219. }
  220. var xxx_messageInfo_AnnouncementReadAddRequest proto.InternalMessageInfo
  221. func (m *AnnouncementReadAddRequest) GetId() int64 {
  222. if m != nil {
  223. return m.Id
  224. }
  225. return 0
  226. }
  227. func (m *AnnouncementReadAddRequest) GetGardenId() int64 {
  228. if m != nil {
  229. return m.GardenId
  230. }
  231. return 0
  232. }
  233. func (m *AnnouncementReadAddRequest) GetUid() int64 {
  234. if m != nil {
  235. return m.Uid
  236. }
  237. return 0
  238. }
  239. type AnnouncementReadAddReply struct {
  240. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  241. XXX_unrecognized []byte `json:"-"`
  242. XXX_sizecache int32 `json:"-"`
  243. }
  244. func (m *AnnouncementReadAddReply) Reset() { *m = AnnouncementReadAddReply{} }
  245. func (m *AnnouncementReadAddReply) String() string { return proto.CompactTextString(m) }
  246. func (*AnnouncementReadAddReply) ProtoMessage() {}
  247. func (*AnnouncementReadAddReply) Descriptor() ([]byte, []int) {
  248. return fileDescriptor_0080e911b962c5cf, []int{4}
  249. }
  250. func (m *AnnouncementReadAddReply) XXX_Unmarshal(b []byte) error {
  251. return xxx_messageInfo_AnnouncementReadAddReply.Unmarshal(m, b)
  252. }
  253. func (m *AnnouncementReadAddReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  254. return xxx_messageInfo_AnnouncementReadAddReply.Marshal(b, m, deterministic)
  255. }
  256. func (m *AnnouncementReadAddReply) XXX_Merge(src proto.Message) {
  257. xxx_messageInfo_AnnouncementReadAddReply.Merge(m, src)
  258. }
  259. func (m *AnnouncementReadAddReply) XXX_Size() int {
  260. return xxx_messageInfo_AnnouncementReadAddReply.Size(m)
  261. }
  262. func (m *AnnouncementReadAddReply) XXX_DiscardUnknown() {
  263. xxx_messageInfo_AnnouncementReadAddReply.DiscardUnknown(m)
  264. }
  265. var xxx_messageInfo_AnnouncementReadAddReply proto.InternalMessageInfo
  266. func init() {
  267. proto.RegisterType((*AnnouncementListRequest)(nil), "pb_v1.AnnouncementListRequest")
  268. proto.RegisterType((*AnnouncementItem)(nil), "pb_v1.AnnouncementItem")
  269. proto.RegisterType((*AnnouncementListReply)(nil), "pb_v1.AnnouncementListReply")
  270. proto.RegisterType((*AnnouncementReadAddRequest)(nil), "pb_v1.AnnouncementReadAddRequest")
  271. proto.RegisterType((*AnnouncementReadAddReply)(nil), "pb_v1.AnnouncementReadAddReply")
  272. }
  273. func init() {
  274. proto.RegisterFile("announcement.proto", fileDescriptor_0080e911b962c5cf)
  275. }
  276. var fileDescriptor_0080e911b962c5cf = []byte{
  277. // 343 bytes of a gzipped FileDescriptorProto
  278. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x92, 0x51, 0x8b, 0xda, 0x40,
  279. 0x14, 0x85, 0x49, 0xa2, 0xd6, 0xdc, 0x42, 0x91, 0xa1, 0xc5, 0xc1, 0x52, 0x90, 0x3c, 0x09, 0x45,
  280. 0xc5, 0xf6, 0x17, 0xd8, 0x3e, 0x09, 0x7d, 0x9a, 0xbe, 0xed, 0x3e, 0x84, 0x31, 0x73, 0xd1, 0x81,
  281. 0x38, 0x33, 0x9b, 0xdc, 0xb8, 0xc4, 0xdf, 0xb3, 0x3f, 0x74, 0x99, 0x89, 0xb2, 0xae, 0xeb, 0x53,
  282. 0xee, 0x39, 0x27, 0xe4, 0xcc, 0xfd, 0x32, 0xc0, 0xa4, 0x31, 0xb6, 0x31, 0x05, 0x1e, 0xd0, 0xd0,
  283. 0xc2, 0x55, 0x96, 0x2c, 0xeb, 0xbb, 0x6d, 0x7e, 0x5c, 0x65, 0x2d, 0x8c, 0xd7, 0x57, 0xe1, 0x3f,
  284. 0x5d, 0x93, 0xc0, 0xa7, 0x06, 0x6b, 0x62, 0x0c, 0x7a, 0x4e, 0xee, 0x90, 0x47, 0xd3, 0x68, 0x96,
  285. 0x88, 0x30, 0xb3, 0xef, 0x90, 0xfa, 0x67, 0x5e, 0xeb, 0x13, 0xf2, 0x38, 0x04, 0x43, 0x6f, 0xfc,
  286. 0xd7, 0xa7, 0x10, 0xee, 0x64, 0xa5, 0xd0, 0xe4, 0x5a, 0xf1, 0xa4, 0x0b, 0x3b, 0x63, 0xa3, 0xd8,
  287. 0x08, 0x92, 0x46, 0x2b, 0xde, 0x0b, 0xb6, 0x1f, 0xb3, 0x97, 0x08, 0x46, 0xd7, 0xdd, 0x1b, 0xc2,
  288. 0x03, 0xfb, 0x02, 0xb1, 0x56, 0xe7, 0xca, 0x58, 0x2b, 0xf6, 0x15, 0xfa, 0xa4, 0xa9, 0xec, 0xca,
  289. 0x52, 0xd1, 0x09, 0xc6, 0xe1, 0x53, 0x61, 0x0d, 0xa1, 0xa1, 0xd0, 0x93, 0x8a, 0x8b, 0x64, 0x3f,
  290. 0x00, 0x8a, 0x0a, 0x25, 0xa1, 0xca, 0x25, 0x85, 0xb6, 0x54, 0xa4, 0x67, 0x67, 0x1d, 0xe2, 0x0a,
  291. 0xa5, 0xca, 0x0b, 0xdb, 0x18, 0xe2, 0xfd, 0x50, 0x93, 0x7a, 0xe7, 0xaf, 0x37, 0xfc, 0xca, 0x5e,
  292. 0xf0, 0xc1, 0x34, 0x9a, 0x0d, 0x45, 0x98, 0x33, 0x03, 0xdf, 0x3e, 0x12, 0x72, 0x65, 0x7b, 0x97,
  293. 0x8f, 0x3f, 0xae, 0x25, 0x59, 0x9e, 0xd9, 0x74, 0x82, 0xfd, 0x84, 0x5e, 0xa9, 0x6b, 0x7f, 0xd6,
  294. 0x64, 0xf6, 0xf9, 0xd7, 0x78, 0x11, 0xd0, 0x2f, 0x6e, 0x77, 0x17, 0xe1, 0xa5, 0xec, 0x11, 0x26,
  295. 0xd7, 0x89, 0x40, 0xa9, 0xd6, 0x4a, 0x5d, 0x7e, 0xca, 0x2d, 0x9f, 0x77, 0xcc, 0xe3, 0xfb, 0xcc,
  296. 0x93, 0x37, 0xe6, 0x13, 0xe0, 0x77, 0x3f, 0xee, 0xca, 0xf6, 0x4f, 0xf6, 0x30, 0x75, 0x95, 0x75,
  297. 0x58, 0x51, 0x3b, 0xdf, 0xdb, 0xa6, 0xc6, 0xbd, 0x2d, 0xd5, 0x7c, 0x27, 0x09, 0x9f, 0x65, 0xbb,
  298. 0x74, 0xdb, 0xe5, 0x71, 0xb5, 0x1d, 0x84, 0xcb, 0xf3, 0xfb, 0x35, 0x00, 0x00, 0xff, 0xff, 0xbc,
  299. 0xf5, 0x65, 0x4c, 0x52, 0x02, 0x00, 0x00,
  300. }