copy.go 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. // +build !ignore_autogenerated
  2. // Code generated by deepcopy-gen. DO NOT EDIT.
  3. package v1
  4. import (
  5. model "go-common/app/tool/gengo/cmd/deepcopy-gen/examples/model"
  6. )
  7. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  8. func (in *BaseInfoReply) DeepCopyInto(out *BaseInfoReply) {
  9. *out = *in
  10. return
  11. }
  12. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BaseInfoReply.
  13. func (in *BaseInfoReply) DeepCopy() *BaseInfoReply {
  14. if in == nil {
  15. return nil
  16. }
  17. out := new(BaseInfoReply)
  18. in.DeepCopyInto(out)
  19. return out
  20. }
  21. // DeepCopyAsIntoMemberBase is an autogenerated deepcopy function, copying the receiver, writing into model.MemberBase.
  22. func (in *BaseInfoReply) DeepCopyAsIntoMemberBase(out *model.MemberBase) {
  23. out.Mid = in.Mid
  24. out.Name = in.Name
  25. out.Sex = in.Sex
  26. out.Face = in.Face
  27. out.Sign = in.Sign
  28. out.Rank = in.Rank
  29. out.Birthday = in.Birthday
  30. return
  31. }
  32. // DeepCopyFromMemberBase is an autogenerated deepcopy function, copying the receiver, writing into model.MemberBase.
  33. func (out *BaseInfoReply) DeepCopyFromMemberBase(in *model.MemberBase) {
  34. out.Mid = in.Mid
  35. out.Name = in.Name
  36. out.Sex = in.Sex
  37. out.Face = in.Face
  38. out.Sign = in.Sign
  39. out.Rank = in.Rank
  40. out.Birthday = in.Birthday
  41. return
  42. }
  43. // DeepCopyAsMemberBase is an autogenerated deepcopy function, copying the receiver, creating a new model.MemberBase.
  44. func (in *BaseInfoReply) DeepCopyAsMemberBase() *model.MemberBase {
  45. if in == nil {
  46. return nil
  47. }
  48. out := new(model.MemberBase)
  49. in.DeepCopyAsIntoMemberBase(out)
  50. return out
  51. }
  52. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  53. func (in *MidsReply) DeepCopyInto(out *MidsReply) {
  54. *out = *in
  55. if in.Mids != nil {
  56. in, out := &in.Mids, &out.Mids
  57. *out = make([]int64, len(*in))
  58. copy(*out, *in)
  59. }
  60. return
  61. }
  62. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MidsReply.
  63. func (in *MidsReply) DeepCopy() *MidsReply {
  64. if in == nil {
  65. return nil
  66. }
  67. out := new(MidsReply)
  68. in.DeepCopyInto(out)
  69. return out
  70. }
  71. // DeepCopyAsIntoMids is an autogenerated deepcopy function, copying the receiver, writing into model.Mids.
  72. func (in *MidsReply) DeepCopyAsIntoMids(out *model.Mids) {
  73. if in.Mids != nil {
  74. in, out := &in.Mids, &out.Mids
  75. *out = make([]int64, len(*in))
  76. copy(*out, *in)
  77. }
  78. return
  79. }
  80. // DeepCopyFromMids is an autogenerated deepcopy function, copying the receiver, writing into model.Mids.
  81. func (out *MidsReply) DeepCopyFromMids(in *model.Mids) {
  82. if in.Mids != nil {
  83. in, out := &in.Mids, &out.Mids
  84. *out = make([]int64, len(*in))
  85. copy(*out, *in)
  86. }
  87. return
  88. }
  89. // DeepCopyAsMids is an autogenerated deepcopy function, copying the receiver, creating a new model.Mids.
  90. func (in *MidsReply) DeepCopyAsMids() *model.Mids {
  91. if in == nil {
  92. return nil
  93. }
  94. out := new(model.Mids)
  95. in.DeepCopyAsIntoMids(out)
  96. return out
  97. }
  98. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  99. func (in *NamesReply) DeepCopyInto(out *NamesReply) {
  100. *out = *in
  101. if in.Names != nil {
  102. in, out := &in.Names, &out.Names
  103. *out = make(map[int64]string, len(*in))
  104. for key, val := range *in {
  105. (*out)[key] = val
  106. }
  107. }
  108. return
  109. }
  110. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamesReply.
  111. func (in *NamesReply) DeepCopy() *NamesReply {
  112. if in == nil {
  113. return nil
  114. }
  115. out := new(NamesReply)
  116. in.DeepCopyInto(out)
  117. return out
  118. }
  119. // DeepCopyAsIntoNames is an autogenerated deepcopy function, copying the receiver, writing into model.Names.
  120. func (in *NamesReply) DeepCopyAsIntoNames(out *model.Names) {
  121. if in.Names != nil {
  122. in, out := &in.Names, &out.Names
  123. *out = make(map[int64]string, len(*in))
  124. for key, val := range *in {
  125. (*out)[key] = val
  126. }
  127. }
  128. return
  129. }
  130. // DeepCopyFromNames is an autogenerated deepcopy function, copying the receiver, writing into model.Names.
  131. func (out *NamesReply) DeepCopyFromNames(in *model.Names) {
  132. if in.Names != nil {
  133. in, out := &in.Names, &out.Names
  134. *out = make(map[int64]string, len(*in))
  135. for key, val := range *in {
  136. (*out)[key] = val
  137. }
  138. }
  139. return
  140. }
  141. // DeepCopyAsNames is an autogenerated deepcopy function, copying the receiver, creating a new model.Names.
  142. func (in *NamesReply) DeepCopyAsNames() *model.Names {
  143. if in == nil {
  144. return nil
  145. }
  146. out := new(model.Names)
  147. in.DeepCopyAsIntoNames(out)
  148. return out
  149. }