structs.go 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  1. // Author : Eric Kim
  2. // Build Date : 23 Jul 2008 Last Update 02 Aug 2008
  3. // End-Agent for Passcon Multi OS go binding with Windows, MacOS, iOS, and Android
  4. // All rights are reserved.
  5. package locals
  6. import (
  7. "github.com/go-xorm/xorm"
  8. )
  9. // 1. DB /////////////////////////////////////////////////////////////////
  10. type DbCom struct {
  11. StartTime int64 `xorm:"created"`
  12. EndTime int64
  13. UpdateTime int64 `xorm:"updated"`
  14. Ip string
  15. Usr int64
  16. }
  17. // 2. Request /////////////////////////////////////////////////////////////////
  18. type ListFormBalanceVars struct {
  19. YyyyMm string
  20. SelectedId int
  21. StartCode string
  22. EndCode string
  23. }
  24. type CompanySearchVars struct {
  25. CompanyName string
  26. MainContact string
  27. MobileNo string
  28. TelNo string
  29. OrderBy string
  30. }
  31. type MediaSearchVars struct {
  32. StartDate string
  33. EndDate string
  34. SlipNo string
  35. MediaName string
  36. FileName string
  37. LinkLocation string
  38. Linked string
  39. NickName string
  40. BranchName string
  41. OrderBy string
  42. }
  43. type ItemSearchVars struct {
  44. IgroupId int
  45. ItemCode string
  46. ItemName string
  47. SubName string
  48. OrderBy string
  49. }
  50. type SlipSearchVars struct {
  51. StartDate string
  52. EndDate string
  53. SlipNo string
  54. CompanyName string
  55. ItemCode string
  56. QuerySpeed string
  57. OrderBy string
  58. }
  59. type SlipSearchFields struct {
  60. SlipDateField string
  61. SlipNoField string
  62. }
  63. type SingleVars struct {
  64. QueryName string
  65. Id int
  66. }
  67. type SetupBase struct {
  68. SetupCode string
  69. SetupJson string
  70. }
  71. type QueryVars struct {
  72. QueryName string
  73. FilterName string
  74. FilterValue string
  75. SimpleFilter string
  76. SubSimpleFilter string
  77. IsntPagination bool
  78. TestMode string
  79. }
  80. type SelectType1Vars struct {
  81. ListToken string
  82. NameValue string
  83. // Str []FilterBase
  84. // Chk []OptBase
  85. // Rng []RngBase
  86. // Dec []RngBase
  87. // StrItem []FilterBase
  88. // ChkItem []OptBase
  89. // RngItem []RngBase
  90. // DecItem []RngBase
  91. Having SelectFilters
  92. Where SelectFilters
  93. IsDownloadList bool
  94. Balance string
  95. OrderBy string
  96. }
  97. type SelectFilters struct {
  98. Prefix string
  99. Str []FilterBase
  100. Chk []OptBase
  101. Rng []RngBase
  102. Dec []RngBase
  103. }
  104. type OptBase struct {
  105. Opt []FilterBase
  106. }
  107. type FilterBase struct {
  108. FilterValue string
  109. }
  110. type RngBase struct {
  111. FromValue string
  112. ToValue string
  113. }
  114. type PopupList1Vars struct {
  115. PopupFilterName string
  116. PopupFilterValue string
  117. SumFilterType string // "" : Body/Sum 동시적용 1: Sum만 적용, 7: Filter OR SumFilter 로 둘다 적용, 8: OR 로 묶어 Sum만 적용
  118. SumFilterName string
  119. SumFilterValue string
  120. SumSimpleFilter string
  121. }
  122. type ListType1Vars struct {
  123. ListToken string
  124. FilterDate string
  125. StartDate string
  126. EndDate string
  127. FilterFirst string
  128. StartFirst string
  129. EndFirst string
  130. FilterSecond string
  131. StartSecond string
  132. EndSecond string
  133. FilterThird string
  134. StartThird string
  135. EndThird string
  136. FilterFourth string
  137. StartFourth string
  138. EndFourth string
  139. IsAddTotalLine bool
  140. IsExcelColumn bool
  141. IsShowOnlyClosed bool
  142. IsDownloadList bool
  143. IsntPageReturn bool
  144. IsTmpSqlUsed bool
  145. Balance string
  146. OrderBy string
  147. ListFilterName string
  148. ListFilterValue string
  149. ListSimpleFilter string
  150. // SimpleFilter string
  151. // SumFilterType string // "" : Body/Sum 동시적용 1: Sum만 적용, 7: Filter OR SumFilter 로 둘다 적용, 8: OR 로 묶어 Sum만 적용
  152. // SumFilterName string
  153. // SumFilterValue string
  154. // SumSimpleFilter string
  155. }
  156. type BodyCopyPageVars struct {
  157. SlipNoField string
  158. SlipNo string
  159. ItemCode string
  160. CompanyName string
  161. ShowOnlyClosed string
  162. Balance string
  163. DaysFromToday string
  164. OrderBy string
  165. }
  166. type PageVars struct {
  167. MyFilter string
  168. QueryCnt int64
  169. Query string
  170. Fields string
  171. Asc string
  172. Desc string
  173. Limit int
  174. Offset int
  175. ReturnJson string
  176. }
  177. type InputFieldJson struct {
  178. StartDate string
  179. EndDate string
  180. Order int
  181. Select int
  182. QueryInput string
  183. }
  184. type Login struct {
  185. UserId string
  186. Password string
  187. }
  188. // 3. Answer /////////////////////////////////////////////////////////////////
  189. type AnswerBase struct {
  190. SvcSts string
  191. SvcMsg string
  192. }
  193. type ActRowCom struct {
  194. AnswerBase
  195. IdBase
  196. }
  197. type ActPageCom struct {
  198. AnswerBase
  199. IdPageBase
  200. }
  201. type BodyCopyBase struct {
  202. BdId int
  203. Qty string
  204. }
  205. type IdBase struct {
  206. Id int
  207. }
  208. type IdPageBase struct {
  209. Page []IdBase
  210. }
  211. type AbangoApp struct {
  212. YDB *xorm.Engine
  213. }
  214. type InsertVars struct {
  215. QueryName string
  216. InsertType string
  217. ListToken string
  218. IsTruncateTable bool
  219. IsBackupTable bool
  220. IsBackupDb bool
  221. }