BaseApi.ts 51 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431
  1. import api, {ResponseData} from "../api.ts";
  2. import {BaseListVo} from "../detail/DetailApi.ts";
  3. export function GetBaseArticleById(id: number | string) {
  4. return api.GetDataByPath("/back/base/article?id=" + id, {}, true) as Promise<ResponseData<Article>>;
  5. }
  6. export function GetBaseArticleListByArticle(param: Article, pageNum = 1, pageSize = 10) {
  7. return api.PostDataByPath("/back/base/article/list", {param: param,pageNum: pageNum,pageSize: pageSize}, true) as Promise<ResponseData<BaseListVo<Article>>>;
  8. }
  9. export function GetBaseArticleListByIds(ids: number[] | string[]) {
  10. return api.PostDataByPath("/back/base/article/in", {
  11. ids: ids
  12. }, true) as Promise<ResponseData<Article[]>>;
  13. }
  14. export function SaveBaseArticle(Article: Article) {
  15. return api.PostDataByPath("/back/base/article", { article: Article}, true) as Promise<ResponseData<Article>>;
  16. }
  17. export function UpdateBaseArticle(Article: Article, id: number | string) {
  18. return api.PutDataByPath("/back/base/article", { article: Article, id: id}, true) as Promise<ResponseData<Article>>;
  19. }
  20. export function DeleteBaseArticleById(id: number | string) {
  21. return api.DeleteDataByPath("/back/base/article?id=" + id, {}, true) as Promise<ResponseData<any>>;
  22. }
  23. export function GetBaseArticleTagById(id: number | string) {
  24. return api.GetDataByPath("/back/base/articleTag?id=" + id, {}, true) as Promise<ResponseData<ArticleTag>>;
  25. }
  26. export function GetBaseArticleTagListByArticleTag(param: ArticleTag, pageNum = 1, pageSize = 10) {
  27. return api.PostDataByPath("/back/base/articleTag/list", {param: param,pageNum: pageNum,pageSize: pageSize}, true) as Promise<ResponseData<BaseListVo<ArticleTag>>>;
  28. }
  29. export function GetBaseArticleTagListByIds(ids: number[] | string[]) {
  30. return api.PostDataByPath("/back/base/articleTag/in", {
  31. ids: ids
  32. }, true) as Promise<ResponseData<ArticleTag[]>>;
  33. }
  34. export function SaveBaseArticleTag(ArticleTag: ArticleTag) {
  35. return api.PostDataByPath("/back/base/articleTag", { articleTag: ArticleTag}, true) as Promise<ResponseData<ArticleTag>>;
  36. }
  37. export function UpdateBaseArticleTag(ArticleTag: ArticleTag, id: number | string) {
  38. return api.PutDataByPath("/back/base/articleTag", { articleTag: ArticleTag, id: id}, true) as Promise<ResponseData<ArticleTag>>;
  39. }
  40. export function DeleteBaseArticleTagById(id: number | string) {
  41. return api.DeleteDataByPath("/back/base/articleTag?id=" + id, {}, true) as Promise<ResponseData<any>>;
  42. }
  43. export function GetBaseArticleTopicById(id: number | string) {
  44. return api.GetDataByPath("/back/base/articleTopic?id=" + id, {}, true) as Promise<ResponseData<ArticleTopic>>;
  45. }
  46. export function GetBaseArticleTopicListByArticleTopic(param: ArticleTopic, pageNum = 1, pageSize = 10) {
  47. return api.PostDataByPath("/back/base/articleTopic/list", {param: param,pageNum: pageNum,pageSize: pageSize}, true) as Promise<ResponseData<BaseListVo<ArticleTopic>>>;
  48. }
  49. export function GetBaseArticleTopicListByIds(ids: number[] | string[]) {
  50. return api.PostDataByPath("/back/base/articleTopic/in", {
  51. ids: ids
  52. }, true) as Promise<ResponseData<ArticleTopic[]>>;
  53. }
  54. export function SaveBaseArticleTopic(ArticleTopic: ArticleTopic) {
  55. return api.PostDataByPath("/back/base/articleTopic", { articleTopic: ArticleTopic}, true) as Promise<ResponseData<ArticleTopic>>;
  56. }
  57. export function UpdateBaseArticleTopic(ArticleTopic: ArticleTopic, id: number | string) {
  58. return api.PutDataByPath("/back/base/articleTopic", { articleTopic: ArticleTopic, id: id}, true) as Promise<ResponseData<ArticleTopic>>;
  59. }
  60. export function DeleteBaseArticleTopicById(id: number | string) {
  61. return api.DeleteDataByPath("/back/base/articleTopic?id=" + id, {}, true) as Promise<ResponseData<any>>;
  62. }
  63. export function GetBaseBackAuthorityById(id: number | string) {
  64. return api.GetDataByPath("/back/base/backAuthority?id=" + id, {}, true) as Promise<ResponseData<BackAuthority>>;
  65. }
  66. export function GetBaseBackAuthorityListByBackAuthority(param: BackAuthority, pageNum = 1, pageSize = 10) {
  67. return api.PostDataByPath("/back/base/backAuthority/list", {param: param,pageNum: pageNum,pageSize: pageSize}, true) as Promise<ResponseData<BaseListVo<BackAuthority>>>;
  68. }
  69. export function GetBaseBackAuthorityListByIds(ids: number[] | string[]) {
  70. return api.PostDataByPath("/back/base/backAuthority/in", {
  71. ids: ids
  72. }, true) as Promise<ResponseData<BackAuthority[]>>;
  73. }
  74. export function SaveBaseBackAuthority(BackAuthority: BackAuthority) {
  75. return api.PostDataByPath("/back/base/backAuthority", { backAuthority: BackAuthority}, true) as Promise<ResponseData<BackAuthority>>;
  76. }
  77. export function UpdateBaseBackAuthority(BackAuthority: BackAuthority, id: number | string) {
  78. return api.PutDataByPath("/back/base/backAuthority", { backAuthority: BackAuthority, id: id}, true) as Promise<ResponseData<BackAuthority>>;
  79. }
  80. export function DeleteBaseBackAuthorityById(id: number | string) {
  81. return api.DeleteDataByPath("/back/base/backAuthority?id=" + id, {}, true) as Promise<ResponseData<any>>;
  82. }
  83. export function GetBaseBackMenuById(id: number | string) {
  84. return api.GetDataByPath("/back/base/backMenu?id=" + id, {}, true) as Promise<ResponseData<BackMenu>>;
  85. }
  86. export function GetBaseBackMenuListByBackMenu(param: BackMenu, pageNum = 1, pageSize = 10) {
  87. return api.PostDataByPath("/back/base/backMenu/list", {param: param,pageNum: pageNum,pageSize: pageSize}, true) as Promise<ResponseData<BaseListVo<BackMenu>>>;
  88. }
  89. export function GetBaseBackMenuListByIds(ids: number[] | string[]) {
  90. return api.PostDataByPath("/back/base/backMenu/in", {
  91. ids: ids
  92. }, true) as Promise<ResponseData<BackMenu[]>>;
  93. }
  94. export function SaveBaseBackMenu(BackMenu: BackMenu) {
  95. return api.PostDataByPath("/back/base/backMenu", { backMenu: BackMenu}, true) as Promise<ResponseData<BackMenu>>;
  96. }
  97. export function UpdateBaseBackMenu(BackMenu: BackMenu, id: number | string) {
  98. return api.PutDataByPath("/back/base/backMenu", { backMenu: BackMenu, id: id}, true) as Promise<ResponseData<BackMenu>>;
  99. }
  100. export function DeleteBaseBackMenuById(id: number | string) {
  101. return api.DeleteDataByPath("/back/base/backMenu?id=" + id, {}, true) as Promise<ResponseData<any>>;
  102. }
  103. export function GetBaseBackRoleById(id: number | string) {
  104. return api.GetDataByPath("/back/base/backRole?id=" + id, {}, true) as Promise<ResponseData<BackRole>>;
  105. }
  106. export function GetBaseBackRoleListByBackRole(param: BackRole, pageNum = 1, pageSize = 10) {
  107. return api.PostDataByPath("/back/base/backRole/list", {param: param,pageNum: pageNum,pageSize: pageSize}, true) as Promise<ResponseData<BaseListVo<BackRole>>>;
  108. }
  109. export function GetBaseBackRoleListByIds(ids: number[] | string[]) {
  110. return api.PostDataByPath("/back/base/backRole/in", {
  111. ids: ids
  112. }, true) as Promise<ResponseData<BackRole[]>>;
  113. }
  114. export function SaveBaseBackRole(BackRole: BackRole) {
  115. return api.PostDataByPath("/back/base/backRole", { backRole: BackRole}, true) as Promise<ResponseData<BackRole>>;
  116. }
  117. export function UpdateBaseBackRole(BackRole: BackRole, id: number | string) {
  118. return api.PutDataByPath("/back/base/backRole", { backRole: BackRole, id: id}, true) as Promise<ResponseData<BackRole>>;
  119. }
  120. export function DeleteBaseBackRoleById(id: number | string) {
  121. return api.DeleteDataByPath("/back/base/backRole?id=" + id, {}, true) as Promise<ResponseData<any>>;
  122. }
  123. export function GetBaseBackRoleAuthorityById(id: number | string) {
  124. return api.GetDataByPath("/back/base/backRoleAuthority?id=" + id, {}, true) as Promise<ResponseData<BackRoleAuthority>>;
  125. }
  126. export function GetBaseBackRoleAuthorityListByBackRoleAuthority(param: BackRoleAuthority, pageNum = 1, pageSize = 10) {
  127. return api.PostDataByPath("/back/base/backRoleAuthority/list", {param: param,pageNum: pageNum,pageSize: pageSize}, true) as Promise<ResponseData<BaseListVo<BackRoleAuthority>>>;
  128. }
  129. export function GetBaseBackRoleAuthorityListByIds(ids: number[] | string[]) {
  130. return api.PostDataByPath("/back/base/backRoleAuthority/in", {
  131. ids: ids
  132. }, true) as Promise<ResponseData<BackRoleAuthority[]>>;
  133. }
  134. export function SaveBaseBackRoleAuthority(BackRoleAuthority: BackRoleAuthority) {
  135. return api.PostDataByPath("/back/base/backRoleAuthority", { backRoleAuthority: BackRoleAuthority}, true) as Promise<ResponseData<BackRoleAuthority>>;
  136. }
  137. export function UpdateBaseBackRoleAuthority(BackRoleAuthority: BackRoleAuthority, id: number | string) {
  138. return api.PutDataByPath("/back/base/backRoleAuthority", { backRoleAuthority: BackRoleAuthority, id: id}, true) as Promise<ResponseData<BackRoleAuthority>>;
  139. }
  140. export function DeleteBaseBackRoleAuthorityById(id: number | string) {
  141. return api.DeleteDataByPath("/back/base/backRoleAuthority?id=" + id, {}, true) as Promise<ResponseData<any>>;
  142. }
  143. export function GetBaseBackRoleMenuById(id: number | string) {
  144. return api.GetDataByPath("/back/base/backRoleMenu?id=" + id, {}, true) as Promise<ResponseData<BackRoleMenu>>;
  145. }
  146. export function GetBaseBackRoleMenuListByBackRoleMenu(param: BackRoleMenu, pageNum = 1, pageSize = 10) {
  147. return api.PostDataByPath("/back/base/backRoleMenu/list", {param: param,pageNum: pageNum,pageSize: pageSize}, true) as Promise<ResponseData<BaseListVo<BackRoleMenu>>>;
  148. }
  149. export function GetBaseBackRoleMenuListByIds(ids: number[] | string[]) {
  150. return api.PostDataByPath("/back/base/backRoleMenu/in", {
  151. ids: ids
  152. }, true) as Promise<ResponseData<BackRoleMenu[]>>;
  153. }
  154. export function SaveBaseBackRoleMenu(BackRoleMenu: BackRoleMenu) {
  155. return api.PostDataByPath("/back/base/backRoleMenu", { backRoleMenu: BackRoleMenu}, true) as Promise<ResponseData<BackRoleMenu>>;
  156. }
  157. export function UpdateBaseBackRoleMenu(BackRoleMenu: BackRoleMenu, id: number | string) {
  158. return api.PutDataByPath("/back/base/backRoleMenu", { backRoleMenu: BackRoleMenu, id: id}, true) as Promise<ResponseData<BackRoleMenu>>;
  159. }
  160. export function DeleteBaseBackRoleMenuById(id: number | string) {
  161. return api.DeleteDataByPath("/back/base/backRoleMenu?id=" + id, {}, true) as Promise<ResponseData<any>>;
  162. }
  163. export function GetBaseGenTableById(id: number | string) {
  164. return api.GetDataByPath("/back/base/genTable?id=" + id, {}, true) as Promise<ResponseData<GenTable>>;
  165. }
  166. export function GetBaseGenTableListByGenTable(param: GenTable, pageNum = 1, pageSize = 10) {
  167. return api.PostDataByPath("/back/base/genTable/list", {param: param,pageNum: pageNum,pageSize: pageSize}, true) as Promise<ResponseData<BaseListVo<GenTable>>>;
  168. }
  169. export function GetBaseGenTableListByIds(ids: number[] | string[]) {
  170. return api.PostDataByPath("/back/base/genTable/in", {
  171. ids: ids
  172. }, true) as Promise<ResponseData<GenTable[]>>;
  173. }
  174. export function SaveBaseGenTable(GenTable: GenTable) {
  175. return api.PostDataByPath("/back/base/genTable", { genTable: GenTable}, true) as Promise<ResponseData<GenTable>>;
  176. }
  177. export function UpdateBaseGenTable(GenTable: GenTable, id: number | string) {
  178. return api.PutDataByPath("/back/base/genTable", { genTable: GenTable, id: id}, true) as Promise<ResponseData<GenTable>>;
  179. }
  180. export function DeleteBaseGenTableById(id: number | string) {
  181. return api.DeleteDataByPath("/back/base/genTable?id=" + id, {}, true) as Promise<ResponseData<any>>;
  182. }
  183. export function GetBaseGenTableColumnById(id: number | string) {
  184. return api.GetDataByPath("/back/base/genTableColumn?id=" + id, {}, true) as Promise<ResponseData<GenTableColumn>>;
  185. }
  186. export function GetBaseGenTableColumnListByGenTableColumn(param: GenTableColumn, pageNum = 1, pageSize = 10) {
  187. return api.PostDataByPath("/back/base/genTableColumn/list", {param: param,pageNum: pageNum,pageSize: pageSize}, true) as Promise<ResponseData<BaseListVo<GenTableColumn>>>;
  188. }
  189. export function GetBaseGenTableColumnListByIds(ids: number[] | string[]) {
  190. return api.PostDataByPath("/back/base/genTableColumn/in", {
  191. ids: ids
  192. }, true) as Promise<ResponseData<GenTableColumn[]>>;
  193. }
  194. export function SaveBaseGenTableColumn(GenTableColumn: GenTableColumn) {
  195. return api.PostDataByPath("/back/base/genTableColumn", { genTableColumn: GenTableColumn}, true) as Promise<ResponseData<GenTableColumn>>;
  196. }
  197. export function UpdateBaseGenTableColumn(GenTableColumn: GenTableColumn, id: number | string) {
  198. return api.PutDataByPath("/back/base/genTableColumn", { genTableColumn: GenTableColumn, id: id}, true) as Promise<ResponseData<GenTableColumn>>;
  199. }
  200. export function DeleteBaseGenTableColumnById(id: number | string) {
  201. return api.DeleteDataByPath("/back/base/genTableColumn?id=" + id, {}, true) as Promise<ResponseData<any>>;
  202. }
  203. export function GetBaseGoodsById(id: number | string) {
  204. return api.GetDataByPath("/back/base/goods?id=" + id, {}, true) as Promise<ResponseData<Goods>>;
  205. }
  206. export function GetBaseGoodsListByGoods(param: Goods, pageNum = 1, pageSize = 10) {
  207. return api.PostDataByPath("/back/base/goods/list", {param: param,pageNum: pageNum,pageSize: pageSize}, true) as Promise<ResponseData<BaseListVo<Goods>>>;
  208. }
  209. export function GetBaseGoodsListByIds(ids: number[] | string[]) {
  210. return api.PostDataByPath("/back/base/goods/in", {
  211. ids: ids
  212. }, true) as Promise<ResponseData<Goods[]>>;
  213. }
  214. export function SaveBaseGoods(Goods: Goods) {
  215. return api.PostDataByPath("/back/base/goods", { goods: Goods}, true) as Promise<ResponseData<Goods>>;
  216. }
  217. export function UpdateBaseGoods(Goods: Goods, id: number | string) {
  218. return api.PutDataByPath("/back/base/goods", { goods: Goods, id: id}, true) as Promise<ResponseData<Goods>>;
  219. }
  220. export function DeleteBaseGoodsById(id: number | string) {
  221. return api.DeleteDataByPath("/back/base/goods?id=" + id, {}, true) as Promise<ResponseData<any>>;
  222. }
  223. export function GetBaseGoodsCommodityAreaById(id: number | string) {
  224. return api.GetDataByPath("/back/base/goodsCommodityArea?id=" + id, {}, true) as Promise<ResponseData<GoodsCommodityArea>>;
  225. }
  226. export function GetBaseGoodsCommodityAreaListByGoodsCommodityArea(param: GoodsCommodityArea, pageNum = 1, pageSize = 10) {
  227. return api.PostDataByPath("/back/base/goodsCommodityArea/list", {param: param,pageNum: pageNum,pageSize: pageSize}, true) as Promise<ResponseData<BaseListVo<GoodsCommodityArea>>>;
  228. }
  229. export function GetBaseGoodsCommodityAreaListByIds(ids: number[] | string[]) {
  230. return api.PostDataByPath("/back/base/goodsCommodityArea/in", {
  231. ids: ids
  232. }, true) as Promise<ResponseData<GoodsCommodityArea[]>>;
  233. }
  234. export function SaveBaseGoodsCommodityArea(GoodsCommodityArea: GoodsCommodityArea) {
  235. return api.PostDataByPath("/back/base/goodsCommodityArea", { goodsCommodityArea: GoodsCommodityArea}, true) as Promise<ResponseData<GoodsCommodityArea>>;
  236. }
  237. export function UpdateBaseGoodsCommodityArea(GoodsCommodityArea: GoodsCommodityArea, id: number | string) {
  238. return api.PutDataByPath("/back/base/goodsCommodityArea", { goodsCommodityArea: GoodsCommodityArea, id: id}, true) as Promise<ResponseData<GoodsCommodityArea>>;
  239. }
  240. export function DeleteBaseGoodsCommodityAreaById(id: number | string) {
  241. return api.DeleteDataByPath("/back/base/goodsCommodityArea?id=" + id, {}, true) as Promise<ResponseData<any>>;
  242. }
  243. export function GetBaseGoodsCouponById(id: number | string) {
  244. return api.GetDataByPath("/back/base/goodsCoupon?id=" + id, {}, true) as Promise<ResponseData<GoodsCoupon>>;
  245. }
  246. export function GetBaseGoodsCouponListByGoodsCoupon(param: GoodsCoupon, pageNum = 1, pageSize = 10) {
  247. return api.PostDataByPath("/back/base/goodsCoupon/list", {param: param,pageNum: pageNum,pageSize: pageSize}, true) as Promise<ResponseData<BaseListVo<GoodsCoupon>>>;
  248. }
  249. export function GetBaseGoodsCouponListByIds(ids: number[] | string[]) {
  250. return api.PostDataByPath("/back/base/goodsCoupon/in", {
  251. ids: ids
  252. }, true) as Promise<ResponseData<GoodsCoupon[]>>;
  253. }
  254. export function SaveBaseGoodsCoupon(GoodsCoupon: GoodsCoupon) {
  255. return api.PostDataByPath("/back/base/goodsCoupon", { goodsCoupon: GoodsCoupon}, true) as Promise<ResponseData<GoodsCoupon>>;
  256. }
  257. export function UpdateBaseGoodsCoupon(GoodsCoupon: GoodsCoupon, id: number | string) {
  258. return api.PutDataByPath("/back/base/goodsCoupon", { goodsCoupon: GoodsCoupon, id: id}, true) as Promise<ResponseData<GoodsCoupon>>;
  259. }
  260. export function DeleteBaseGoodsCouponById(id: number | string) {
  261. return api.DeleteDataByPath("/back/base/goodsCoupon?id=" + id, {}, true) as Promise<ResponseData<any>>;
  262. }
  263. export function GetBaseGoodsCouponUserById(id: number | string) {
  264. return api.GetDataByPath("/back/base/goodsCouponUser?id=" + id, {}, true) as Promise<ResponseData<GoodsCouponUser>>;
  265. }
  266. export function GetBaseGoodsCouponUserListByGoodsCouponUser(param: GoodsCouponUser, pageNum = 1, pageSize = 10) {
  267. return api.PostDataByPath("/back/base/goodsCouponUser/list", {param: param,pageNum: pageNum,pageSize: pageSize}, true) as Promise<ResponseData<BaseListVo<GoodsCouponUser>>>;
  268. }
  269. export function GetBaseGoodsCouponUserListByIds(ids: number[] | string[]) {
  270. return api.PostDataByPath("/back/base/goodsCouponUser/in", {
  271. ids: ids
  272. }, true) as Promise<ResponseData<GoodsCouponUser[]>>;
  273. }
  274. export function SaveBaseGoodsCouponUser(GoodsCouponUser: GoodsCouponUser) {
  275. return api.PostDataByPath("/back/base/goodsCouponUser", { goodsCouponUser: GoodsCouponUser}, true) as Promise<ResponseData<GoodsCouponUser>>;
  276. }
  277. export function UpdateBaseGoodsCouponUser(GoodsCouponUser: GoodsCouponUser, id: number | string) {
  278. return api.PutDataByPath("/back/base/goodsCouponUser", { goodsCouponUser: GoodsCouponUser, id: id}, true) as Promise<ResponseData<GoodsCouponUser>>;
  279. }
  280. export function DeleteBaseGoodsCouponUserById(id: number | string) {
  281. return api.DeleteDataByPath("/back/base/goodsCouponUser?id=" + id, {}, true) as Promise<ResponseData<any>>;
  282. }
  283. export function GetBaseGoodsIntroductionById(id: number | string) {
  284. return api.GetDataByPath("/back/base/goodsIntroduction?id=" + id, {}, true) as Promise<ResponseData<GoodsIntroduction>>;
  285. }
  286. export function GetBaseGoodsIntroductionListByGoodsIntroduction(param: GoodsIntroduction, pageNum = 1, pageSize = 10) {
  287. return api.PostDataByPath("/back/base/goodsIntroduction/list", {param: param,pageNum: pageNum,pageSize: pageSize}, true) as Promise<ResponseData<BaseListVo<GoodsIntroduction>>>;
  288. }
  289. export function GetBaseGoodsIntroductionListByIds(ids: number[] | string[]) {
  290. return api.PostDataByPath("/back/base/goodsIntroduction/in", {
  291. ids: ids
  292. }, true) as Promise<ResponseData<GoodsIntroduction[]>>;
  293. }
  294. export function SaveBaseGoodsIntroduction(GoodsIntroduction: GoodsIntroduction) {
  295. return api.PostDataByPath("/back/base/goodsIntroduction", { goodsIntroduction: GoodsIntroduction}, true) as Promise<ResponseData<GoodsIntroduction>>;
  296. }
  297. export function UpdateBaseGoodsIntroduction(GoodsIntroduction: GoodsIntroduction, id: number | string) {
  298. return api.PutDataByPath("/back/base/goodsIntroduction", { goodsIntroduction: GoodsIntroduction, id: id}, true) as Promise<ResponseData<GoodsIntroduction>>;
  299. }
  300. export function DeleteBaseGoodsIntroductionById(id: number | string) {
  301. return api.DeleteDataByPath("/back/base/goodsIntroduction?id=" + id, {}, true) as Promise<ResponseData<any>>;
  302. }
  303. export function GetBaseGoodsOrderById(id: number | string) {
  304. return api.GetDataByPath("/back/base/goodsOrder?id=" + id, {}, true) as Promise<ResponseData<GoodsOrder>>;
  305. }
  306. export function GetBaseGoodsOrderListByGoodsOrder(param: GoodsOrder, pageNum = 1, pageSize = 10) {
  307. return api.PostDataByPath("/back/base/goodsOrder/list", {param: param,pageNum: pageNum,pageSize: pageSize}, true) as Promise<ResponseData<BaseListVo<GoodsOrder>>>;
  308. }
  309. export function GetBaseGoodsOrderListByIds(ids: number[] | string[]) {
  310. return api.PostDataByPath("/back/base/goodsOrder/in", {
  311. ids: ids
  312. }, true) as Promise<ResponseData<GoodsOrder[]>>;
  313. }
  314. export function SaveBaseGoodsOrder(GoodsOrder: GoodsOrder) {
  315. return api.PostDataByPath("/back/base/goodsOrder", { goodsOrder: GoodsOrder}, true) as Promise<ResponseData<GoodsOrder>>;
  316. }
  317. export function UpdateBaseGoodsOrder(GoodsOrder: GoodsOrder, id: number | string) {
  318. return api.PutDataByPath("/back/base/goodsOrder", { goodsOrder: GoodsOrder, id: id}, true) as Promise<ResponseData<GoodsOrder>>;
  319. }
  320. export function DeleteBaseGoodsOrderById(id: number | string) {
  321. return api.DeleteDataByPath("/back/base/goodsOrder?id=" + id, {}, true) as Promise<ResponseData<any>>;
  322. }
  323. export function GetBaseGoodsSkuById(id: number | string) {
  324. return api.GetDataByPath("/back/base/goodsSku?id=" + id, {}, true) as Promise<ResponseData<GoodsSku>>;
  325. }
  326. export function GetBaseGoodsSkuListByGoodsSku(param: GoodsSku, pageNum = 1, pageSize = 10) {
  327. return api.PostDataByPath("/back/base/goodsSku/list", {param: param,pageNum: pageNum,pageSize: pageSize}, true) as Promise<ResponseData<BaseListVo<GoodsSku>>>;
  328. }
  329. export function GetBaseGoodsSkuListByIds(ids: number[] | string[]) {
  330. return api.PostDataByPath("/back/base/goodsSku/in", {
  331. ids: ids
  332. }, true) as Promise<ResponseData<GoodsSku[]>>;
  333. }
  334. export function SaveBaseGoodsSku(GoodsSku: GoodsSku) {
  335. return api.PostDataByPath("/back/base/goodsSku", { goodsSku: GoodsSku}, true) as Promise<ResponseData<GoodsSku>>;
  336. }
  337. export function UpdateBaseGoodsSku(GoodsSku: GoodsSku, id: number | string) {
  338. return api.PutDataByPath("/back/base/goodsSku", { goodsSku: GoodsSku, id: id}, true) as Promise<ResponseData<GoodsSku>>;
  339. }
  340. export function DeleteBaseGoodsSkuById(id: number | string) {
  341. return api.DeleteDataByPath("/back/base/goodsSku?id=" + id, {}, true) as Promise<ResponseData<any>>;
  342. }
  343. export function GetBaseGoodsSkuCardById(id: number | string) {
  344. return api.GetDataByPath("/back/base/goodsSkuCard?id=" + id, {}, true) as Promise<ResponseData<GoodsSkuCard>>;
  345. }
  346. export function GetBaseGoodsSkuCardListByGoodsSkuCard(param: GoodsSkuCard, pageNum = 1, pageSize = 10) {
  347. return api.PostDataByPath("/back/base/goodsSkuCard/list", {param: param,pageNum: pageNum,pageSize: pageSize}, true) as Promise<ResponseData<BaseListVo<GoodsSkuCard>>>;
  348. }
  349. export function GetBaseGoodsSkuCardListByIds(ids: number[] | string[]) {
  350. return api.PostDataByPath("/back/base/goodsSkuCard/in", {
  351. ids: ids
  352. }, true) as Promise<ResponseData<GoodsSkuCard[]>>;
  353. }
  354. export function SaveBaseGoodsSkuCard(GoodsSkuCard: GoodsSkuCard) {
  355. return api.PostDataByPath("/back/base/goodsSkuCard", { goodsSkuCard: GoodsSkuCard}, true) as Promise<ResponseData<GoodsSkuCard>>;
  356. }
  357. export function UpdateBaseGoodsSkuCard(GoodsSkuCard: GoodsSkuCard, id: number | string) {
  358. return api.PutDataByPath("/back/base/goodsSkuCard", { goodsSkuCard: GoodsSkuCard, id: id}, true) as Promise<ResponseData<GoodsSkuCard>>;
  359. }
  360. export function DeleteBaseGoodsSkuCardById(id: number | string) {
  361. return api.DeleteDataByPath("/back/base/goodsSkuCard?id=" + id, {}, true) as Promise<ResponseData<any>>;
  362. }
  363. export function GetBaseGoodsTagById(id: number | string) {
  364. return api.GetDataByPath("/back/base/goodsTag?id=" + id, {}, true) as Promise<ResponseData<GoodsTag>>;
  365. }
  366. export function GetBaseGoodsTagListByGoodsTag(param: GoodsTag, pageNum = 1, pageSize = 10) {
  367. return api.PostDataByPath("/back/base/goodsTag/list", {param: param,pageNum: pageNum,pageSize: pageSize}, true) as Promise<ResponseData<BaseListVo<GoodsTag>>>;
  368. }
  369. export function GetBaseGoodsTagListByIds(ids: number[] | string[]) {
  370. return api.PostDataByPath("/back/base/goodsTag/in", {
  371. ids: ids
  372. }, true) as Promise<ResponseData<GoodsTag[]>>;
  373. }
  374. export function SaveBaseGoodsTag(GoodsTag: GoodsTag) {
  375. return api.PostDataByPath("/back/base/goodsTag", { goodsTag: GoodsTag}, true) as Promise<ResponseData<GoodsTag>>;
  376. }
  377. export function UpdateBaseGoodsTag(GoodsTag: GoodsTag, id: number | string) {
  378. return api.PutDataByPath("/back/base/goodsTag", { goodsTag: GoodsTag, id: id}, true) as Promise<ResponseData<GoodsTag>>;
  379. }
  380. export function DeleteBaseGoodsTagById(id: number | string) {
  381. return api.DeleteDataByPath("/back/base/goodsTag?id=" + id, {}, true) as Promise<ResponseData<any>>;
  382. }
  383. export function GetBaseGoodsTypeById(id: number | string) {
  384. return api.GetDataByPath("/back/base/goodsType?id=" + id, {}, true) as Promise<ResponseData<GoodsType>>;
  385. }
  386. export function GetBaseGoodsTypeListByGoodsType(param: GoodsType, pageNum = 1, pageSize = 10) {
  387. return api.PostDataByPath("/back/base/goodsType/list", {param: param,pageNum: pageNum,pageSize: pageSize}, true) as Promise<ResponseData<BaseListVo<GoodsType>>>;
  388. }
  389. export function GetBaseGoodsTypeListByIds(ids: number[] | string[]) {
  390. return api.PostDataByPath("/back/base/goodsType/in", {
  391. ids: ids
  392. }, true) as Promise<ResponseData<GoodsType[]>>;
  393. }
  394. export function SaveBaseGoodsType(GoodsType: GoodsType) {
  395. return api.PostDataByPath("/back/base/goodsType", { goodsType: GoodsType}, true) as Promise<ResponseData<GoodsType>>;
  396. }
  397. export function UpdateBaseGoodsType(GoodsType: GoodsType, id: number | string) {
  398. return api.PutDataByPath("/back/base/goodsType", { goodsType: GoodsType, id: id}, true) as Promise<ResponseData<GoodsType>>;
  399. }
  400. export function DeleteBaseGoodsTypeById(id: number | string) {
  401. return api.DeleteDataByPath("/back/base/goodsType?id=" + id, {}, true) as Promise<ResponseData<any>>;
  402. }
  403. export function GetBaseUserById(id: number | string) {
  404. return api.GetDataByPath("/back/base/user?id=" + id, {}, true) as Promise<ResponseData<User>>;
  405. }
  406. export function GetBaseUserListByUser(param: User, pageNum = 1, pageSize = 10) {
  407. return api.PostDataByPath("/back/base/user/list", {param: param,pageNum: pageNum,pageSize: pageSize}, true) as Promise<ResponseData<BaseListVo<User>>>;
  408. }
  409. export function GetBaseUserListByIds(ids: number[] | string[]) {
  410. return api.PostDataByPath("/back/base/user/in", {
  411. ids: ids
  412. }, true) as Promise<ResponseData<User[]>>;
  413. }
  414. export function SaveBaseUser(User: User) {
  415. return api.PostDataByPath("/back/base/user", { user: User}, true) as Promise<ResponseData<User>>;
  416. }
  417. export function UpdateBaseUser(User: User, id: number | string) {
  418. return api.PutDataByPath("/back/base/user", { user: User, id: id}, true) as Promise<ResponseData<User>>;
  419. }
  420. export function DeleteBaseUserById(id: number | string) {
  421. return api.DeleteDataByPath("/back/base/user?id=" + id, {}, true) as Promise<ResponseData<any>>;
  422. }
  423. export function GetBaseUserWalletById(id: number | string) {
  424. return api.GetDataByPath("/back/base/userWallet?id=" + id, {}, true) as Promise<ResponseData<UserWallet>>;
  425. }
  426. export function GetBaseUserWalletListByUserWallet(param: UserWallet, pageNum = 1, pageSize = 10) {
  427. return api.PostDataByPath("/back/base/userWallet/list", {param: param,pageNum: pageNum,pageSize: pageSize}, true) as Promise<ResponseData<BaseListVo<UserWallet>>>;
  428. }
  429. export function GetBaseUserWalletListByIds(ids: number[] | string[]) {
  430. return api.PostDataByPath("/back/base/userWallet/in", {
  431. ids: ids
  432. }, true) as Promise<ResponseData<UserWallet[]>>;
  433. }
  434. export function SaveBaseUserWallet(UserWallet: UserWallet) {
  435. return api.PostDataByPath("/back/base/userWallet", { userWallet: UserWallet}, true) as Promise<ResponseData<UserWallet>>;
  436. }
  437. export function UpdateBaseUserWallet(UserWallet: UserWallet, id: number | string) {
  438. return api.PutDataByPath("/back/base/userWallet", { userWallet: UserWallet, id: id}, true) as Promise<ResponseData<UserWallet>>;
  439. }
  440. export function DeleteBaseUserWalletById(id: number | string) {
  441. return api.DeleteDataByPath("/back/base/userWallet?id=" + id, {}, true) as Promise<ResponseData<any>>;
  442. }
  443. export function GetBaseDictDataById(id: number | string) {
  444. return api.GetDataByPath("/back/base/dictData?id=" + id, {}, true) as Promise<ResponseData<DictData>>;
  445. }
  446. export function GetBaseDictDataListByDictData(param: DictData, pageNum = 1, pageSize = 10) {
  447. return api.PostDataByPath("/back/base/dictData/list", {param: param,pageNum: pageNum,pageSize: pageSize}, true) as Promise<ResponseData<BaseListVo<DictData>>>;
  448. }
  449. export function GetBaseDictDataListByIds(ids: number[] | string[]) {
  450. return api.PostDataByPath("/back/base/dictData/in", {
  451. ids: ids
  452. }, true) as Promise<ResponseData<DictData[]>>;
  453. }
  454. export function SaveBaseDictData(DictData: DictData) {
  455. return api.PostDataByPath("/back/base/dictData", { dictData: DictData}, true) as Promise<ResponseData<DictData>>;
  456. }
  457. export function UpdateBaseDictData(DictData: DictData, id: number | string) {
  458. return api.PutDataByPath("/back/base/dictData", { dictData: DictData, id: id}, true) as Promise<ResponseData<DictData>>;
  459. }
  460. export function DeleteBaseDictDataById(id: number | string) {
  461. return api.DeleteDataByPath("/back/base/dictData?id=" + id, {}, true) as Promise<ResponseData<any>>;
  462. }
  463. export function GetBaseDictTypeById(id: number | string) {
  464. return api.GetDataByPath("/back/base/dictType?id=" + id, {}, true) as Promise<ResponseData<DictType>>;
  465. }
  466. export function GetBaseDictTypeListByDictType(param: DictType, pageNum = 1, pageSize = 10) {
  467. return api.PostDataByPath("/back/base/dictType/list", {param: param,pageNum: pageNum,pageSize: pageSize}, true) as Promise<ResponseData<BaseListVo<DictType>>>;
  468. }
  469. export function GetBaseDictTypeListByIds(ids: number[] | string[]) {
  470. return api.PostDataByPath("/back/base/dictType/in", {
  471. ids: ids
  472. }, true) as Promise<ResponseData<DictType[]>>;
  473. }
  474. export function SaveBaseDictType(DictType: DictType) {
  475. return api.PostDataByPath("/back/base/dictType", { dictType: DictType}, true) as Promise<ResponseData<DictType>>;
  476. }
  477. export function UpdateBaseDictType(DictType: DictType, id: number | string) {
  478. return api.PutDataByPath("/back/base/dictType", { dictType: DictType, id: id}, true) as Promise<ResponseData<DictType>>;
  479. }
  480. export function DeleteBaseDictTypeById(id: number | string) {
  481. return api.DeleteDataByPath("/back/base/dictType?id=" + id, {}, true) as Promise<ResponseData<any>>;
  482. }
  483. export function GetBaseManageUserById(id: number | string) {
  484. return api.GetDataByPath("/back/base/manageUser?id=" + id, {}, true) as Promise<ResponseData<ManageUser>>;
  485. }
  486. export function GetBaseManageUserListByManageUser(param: ManageUser, pageNum = 1, pageSize = 10) {
  487. return api.PostDataByPath("/back/base/manageUser/list", {param: param,pageNum: pageNum,pageSize: pageSize}, true) as Promise<ResponseData<BaseListVo<ManageUser>>>;
  488. }
  489. export function GetBaseManageUserListByIds(ids: number[] | string[]) {
  490. return api.PostDataByPath("/back/base/manageUser/in", {
  491. ids: ids
  492. }, true) as Promise<ResponseData<ManageUser[]>>;
  493. }
  494. export function SaveBaseManageUser(ManageUser: ManageUser) {
  495. return api.PostDataByPath("/back/base/manageUser", { manageUser: ManageUser}, true) as Promise<ResponseData<ManageUser>>;
  496. }
  497. export function UpdateBaseManageUser(ManageUser: ManageUser, id: number | string) {
  498. return api.PutDataByPath("/back/base/manageUser", { manageUser: ManageUser, id: id}, true) as Promise<ResponseData<ManageUser>>;
  499. }
  500. export function DeleteBaseManageUserById(id: number | string) {
  501. return api.DeleteDataByPath("/back/base/manageUser?id=" + id, {}, true) as Promise<ResponseData<any>>;
  502. }
  503. export function GetBaseShopTopicById(id: number | string) {
  504. return api.GetDataByPath("/back/base/shopTopic?id=" + id, {}, true) as Promise<ResponseData<ShopTopic>>;
  505. }
  506. export function GetBaseShopTopicListByShopTopic(param: ShopTopic, pageNum = 1, pageSize = 10) {
  507. return api.PostDataByPath("/back/base/shopTopic/list", {param: param,pageNum: pageNum,pageSize: pageSize}, true) as Promise<ResponseData<BaseListVo<ShopTopic>>>;
  508. }
  509. export function GetBaseShopTopicListByIds(ids: number[] | string[]) {
  510. return api.PostDataByPath("/back/base/shopTopic/in", {
  511. ids: ids
  512. }, true) as Promise<ResponseData<ShopTopic[]>>;
  513. }
  514. export function SaveBaseShopTopic(ShopTopic: ShopTopic) {
  515. return api.PostDataByPath("/back/base/shopTopic", { shopTopic: ShopTopic}, true) as Promise<ResponseData<ShopTopic>>;
  516. }
  517. export function UpdateBaseShopTopic(ShopTopic: ShopTopic, id: number | string) {
  518. return api.PutDataByPath("/back/base/shopTopic", { shopTopic: ShopTopic, id: id}, true) as Promise<ResponseData<ShopTopic>>;
  519. }
  520. export function DeleteBaseShopTopicById(id: number | string) {
  521. return api.DeleteDataByPath("/back/base/shopTopic?id=" + id, {}, true) as Promise<ResponseData<any>>;
  522. }
  523. export function GetBaseShopAdviceCarouselById(id: number | string) {
  524. return api.GetDataByPath("/back/base/shopAdviceCarousel?id=" + id, {}, true) as Promise<ResponseData<ShopAdviceCarousel>>;
  525. }
  526. export function GetBaseShopAdviceCarouselListByShopAdviceCarousel(param: ShopAdviceCarousel, pageNum = 1, pageSize = 10) {
  527. return api.PostDataByPath("/back/base/shopAdviceCarousel/list", {param: param,pageNum: pageNum,pageSize: pageSize}, true) as Promise<ResponseData<BaseListVo<ShopAdviceCarousel>>>;
  528. }
  529. export function GetBaseShopAdviceCarouselListByIds(ids: number[] | string[]) {
  530. return api.PostDataByPath("/back/base/shopAdviceCarousel/in", {
  531. ids: ids
  532. }, true) as Promise<ResponseData<ShopAdviceCarousel[]>>;
  533. }
  534. export function SaveBaseShopAdviceCarousel(ShopAdviceCarousel: ShopAdviceCarousel) {
  535. return api.PostDataByPath("/back/base/shopAdviceCarousel", { shopAdviceCarousel: ShopAdviceCarousel}, true) as Promise<ResponseData<ShopAdviceCarousel>>;
  536. }
  537. export function UpdateBaseShopAdviceCarousel(ShopAdviceCarousel: ShopAdviceCarousel, id: number | string) {
  538. return api.PutDataByPath("/back/base/shopAdviceCarousel", { shopAdviceCarousel: ShopAdviceCarousel, id: id}, true) as Promise<ResponseData<ShopAdviceCarousel>>;
  539. }
  540. export function DeleteBaseShopAdviceCarouselById(id: number | string) {
  541. return api.DeleteDataByPath("/back/base/shopAdviceCarousel?id=" + id, {}, true) as Promise<ResponseData<any>>;
  542. }
  543. export function GetBaseShopTopicSkuById(id: number | string) {
  544. return api.GetDataByPath("/back/base/shopTopicSku?id=" + id, {}, true) as Promise<ResponseData<ShopTopicSku>>;
  545. }
  546. export function GetBaseShopTopicSkuListByShopTopicSku(param: ShopTopicSku, pageNum = 1, pageSize = 10) {
  547. return api.PostDataByPath("/back/base/shopTopicSku/list", {param: param,pageNum: pageNum,pageSize: pageSize}, true) as Promise<ResponseData<BaseListVo<ShopTopicSku>>>;
  548. }
  549. export function GetBaseShopTopicSkuListByIds(ids: number[] | string[]) {
  550. return api.PostDataByPath("/back/base/shopTopicSku/in", {
  551. ids: ids
  552. }, true) as Promise<ResponseData<ShopTopicSku[]>>;
  553. }
  554. export function SaveBaseShopTopicSku(ShopTopicSku: ShopTopicSku) {
  555. return api.PostDataByPath("/back/base/shopTopicSku", { shopTopicSku: ShopTopicSku}, true) as Promise<ResponseData<ShopTopicSku>>;
  556. }
  557. export function UpdateBaseShopTopicSku(ShopTopicSku: ShopTopicSku, id: number | string) {
  558. return api.PutDataByPath("/back/base/shopTopicSku", { shopTopicSku: ShopTopicSku, id: id}, true) as Promise<ResponseData<ShopTopicSku>>;
  559. }
  560. export function DeleteBaseShopTopicSkuById(id: number | string) {
  561. return api.DeleteDataByPath("/back/base/shopTopicSku?id=" + id, {}, true) as Promise<ResponseData<any>>;
  562. }
  563. export class Article{
  564. id: number
  565. articletitle: string
  566. articlecontent: string
  567. state: string
  568. articletagids: string
  569. articletopicid: number
  570. image: string
  571. publishtime: string
  572. eyefill: number
  573. likecount: number
  574. createby: string
  575. createtime: string
  576. updateby: string
  577. updatetime: string
  578. static Create(){
  579. return new Article(null,null,null,null,null,null,null,null,null,null,null,null,null,null,);
  580. }
  581. constructor( id: number,articletitle: string,articlecontent: string,state: string,articletagids: string,articletopicid: number,image: string,publishtime: string,eyefill: number,likecount: number,createby: string,createtime: string,updateby: string,updatetime: string,) {
  582. this.id = id;
  583. this.articletitle = articletitle;
  584. this.articlecontent = articlecontent;
  585. this.state = state;
  586. this.articletagids = articletagids;
  587. this.articletopicid = articletopicid;
  588. this.image = image;
  589. this.publishtime = publishtime;
  590. this.eyefill = eyefill;
  591. this.likecount = likecount;
  592. this.createby = createby;
  593. this.createtime = createtime;
  594. this.updateby = updateby;
  595. this.updatetime = updatetime;
  596. }
  597. }
  598. export class ArticleTag{
  599. id: number
  600. tagname: string
  601. tagdesc: string
  602. static Create(){
  603. return new ArticleTag(null,null,null,);
  604. }
  605. constructor( id: number,tagname: string,tagdesc: string,) {
  606. this.id = id;
  607. this.tagname = tagname;
  608. this.tagdesc = tagdesc;
  609. }
  610. }
  611. export class ArticleTopic{
  612. id: number
  613. image: string
  614. topicname: string
  615. topicdesc: string
  616. static Create(){
  617. return new ArticleTopic(null,null,null,null,);
  618. }
  619. constructor( id: number,image: string,topicname: string,topicdesc: string,) {
  620. this.id = id;
  621. this.image = image;
  622. this.topicname = topicname;
  623. this.topicdesc = topicdesc;
  624. }
  625. }
  626. export class BackAuthority{
  627. id: number
  628. authorityname: string
  629. authoritypath: string
  630. method: string
  631. state: string
  632. authorityverification: string
  633. createtime: string
  634. static Create(){
  635. return new BackAuthority(null,null,null,null,null,null,null,);
  636. }
  637. constructor( id: number,authorityname: string,authoritypath: string,method: string,state: string,authorityverification: string,createtime: string,) {
  638. this.id = id;
  639. this.authorityname = authorityname;
  640. this.authoritypath = authoritypath;
  641. this.method = method;
  642. this.state = state;
  643. this.authorityverification = authorityverification;
  644. this.createtime = createtime;
  645. }
  646. }
  647. export class BackMenu{
  648. id: number
  649. backmenuname: string
  650. backmenupater: number
  651. sort: number
  652. icon: string
  653. remark: string
  654. backrouterpath: string
  655. state: string
  656. static Create(){
  657. return new BackMenu(null,null,null,null,null,null,null,null,);
  658. }
  659. constructor( id: number,backmenuname: string,backmenupater: number,sort: number,icon: string,remark: string,backrouterpath: string,state: string,) {
  660. this.id = id;
  661. this.backmenuname = backmenuname;
  662. this.backmenupater = backmenupater;
  663. this.sort = sort;
  664. this.icon = icon;
  665. this.remark = remark;
  666. this.backrouterpath = backrouterpath;
  667. this.state = state;
  668. }
  669. }
  670. export class BackRole{
  671. id: number
  672. rolename: string
  673. static Create(){
  674. return new BackRole(null,null,);
  675. }
  676. constructor( id: number,rolename: string,) {
  677. this.id = id;
  678. this.rolename = rolename;
  679. }
  680. }
  681. export class BackRoleAuthority{
  682. id: number
  683. roleid: number
  684. authorityid: number
  685. static Create(){
  686. return new BackRoleAuthority(null,null,null,);
  687. }
  688. constructor( id: number,roleid: number,authorityid: number,) {
  689. this.id = id;
  690. this.roleid = roleid;
  691. this.authorityid = authorityid;
  692. }
  693. }
  694. export class BackRoleMenu{
  695. id: number
  696. roleid: number
  697. menuid: number
  698. static Create(){
  699. return new BackRoleMenu(null,null,null,);
  700. }
  701. constructor( id: number,roleid: number,menuid: number,) {
  702. this.id = id;
  703. this.roleid = roleid;
  704. this.menuid = menuid;
  705. }
  706. }
  707. export class GenTable{
  708. id: number
  709. tablename: string
  710. tablecomment: string
  711. name: string
  712. routername: string
  713. remark: string
  714. static Create(){
  715. return new GenTable(null,null,null,null,null,null,);
  716. }
  717. constructor( id: number,tablename: string,tablecomment: string,name: string,routername: string,remark: string,) {
  718. this.id = id;
  719. this.tablename = tablename;
  720. this.tablecomment = tablecomment;
  721. this.name = name;
  722. this.routername = routername;
  723. this.remark = remark;
  724. }
  725. }
  726. export class GenTableColumn{
  727. id: number
  728. tableid: number
  729. sort: number
  730. columnname: string
  731. columncomment: string
  732. columntype: string
  733. gotype: string
  734. gofield: string
  735. iskey: string
  736. isincrement: string
  737. isrequired: string
  738. querytype: string
  739. vueshowtype: string
  740. dicttype: string
  741. static Create(){
  742. return new GenTableColumn(null,null,null,null,null,null,null,null,null,null,null,null,null,null,);
  743. }
  744. constructor( id: number,tableid: number,sort: number,columnname: string,columncomment: string,columntype: string,gotype: string,gofield: string,iskey: string,isincrement: string,isrequired: string,querytype: string,vueshowtype: string,dicttype: string,) {
  745. this.id = id;
  746. this.tableid = tableid;
  747. this.sort = sort;
  748. this.columnname = columnname;
  749. this.columncomment = columncomment;
  750. this.columntype = columntype;
  751. this.gotype = gotype;
  752. this.gofield = gofield;
  753. this.iskey = iskey;
  754. this.isincrement = isincrement;
  755. this.isrequired = isrequired;
  756. this.querytype = querytype;
  757. this.vueshowtype = vueshowtype;
  758. this.dicttype = dicttype;
  759. }
  760. }
  761. export class Goods{
  762. id: number
  763. typeid: number
  764. goodsname: string
  765. introductionid: number
  766. salesvolume: number
  767. tagids: string
  768. static Create(){
  769. return new Goods(null,null,null,null,null,null,);
  770. }
  771. constructor( id: number,typeid: number,goodsname: string,introductionid: number,salesvolume: number,tagids: string,) {
  772. this.id = id;
  773. this.typeid = typeid;
  774. this.goodsname = goodsname;
  775. this.introductionid = introductionid;
  776. this.salesvolume = salesvolume;
  777. this.tagids = tagids;
  778. }
  779. }
  780. export class GoodsCommodityArea{
  781. id: number
  782. goodsid: number
  783. commodityareaname: string
  784. detailimage: string
  785. detailintroductionid: number
  786. static Create(){
  787. return new GoodsCommodityArea(null,null,null,null,null,);
  788. }
  789. constructor( id: number,goodsid: number,commodityareaname: string,detailimage: string,detailintroductionid: number,) {
  790. this.id = id;
  791. this.goodsid = goodsid;
  792. this.commodityareaname = commodityareaname;
  793. this.detailimage = detailimage;
  794. this.detailintroductionid = detailintroductionid;
  795. }
  796. }
  797. export class GoodsCoupon{
  798. id: number
  799. couponname: string
  800. coupondesc: string
  801. cashbackpoint: number
  802. cashbackprice: number
  803. conditionbytopic: string
  804. conditionbytype: string
  805. conditionbygoods: string
  806. grantcount: string
  807. count: number
  808. receivetype: string
  809. validity: string
  810. validityperiod: string
  811. static Create(){
  812. return new GoodsCoupon(null,null,null,null,null,null,null,null,null,null,null,null,null,);
  813. }
  814. constructor( id: number,couponname: string,coupondesc: string,cashbackpoint: number,cashbackprice: number,conditionbytopic: string,conditionbytype: string,conditionbygoods: string,grantcount: string,count: number,receivetype: string,validity: string,validityperiod: string,) {
  815. this.id = id;
  816. this.couponname = couponname;
  817. this.coupondesc = coupondesc;
  818. this.cashbackpoint = cashbackpoint;
  819. this.cashbackprice = cashbackprice;
  820. this.conditionbytopic = conditionbytopic;
  821. this.conditionbytype = conditionbytype;
  822. this.conditionbygoods = conditionbygoods;
  823. this.grantcount = grantcount;
  824. this.count = count;
  825. this.receivetype = receivetype;
  826. this.validity = validity;
  827. this.validityperiod = validityperiod;
  828. }
  829. }
  830. export class GoodsCouponUser{
  831. id: number
  832. userid: number
  833. couponid: number
  834. collectiontime: string
  835. state: string
  836. static Create(){
  837. return new GoodsCouponUser(null,null,null,null,null,);
  838. }
  839. constructor( id: number,userid: number,couponid: number,collectiontime: string,state: string,) {
  840. this.id = id;
  841. this.userid = userid;
  842. this.couponid = couponid;
  843. this.collectiontime = collectiontime;
  844. this.state = state;
  845. }
  846. }
  847. export class GoodsIntroduction{
  848. id: number
  849. goodsarticlename: string
  850. goodsarticle: string
  851. createby: string
  852. createtime: string
  853. updateby: string
  854. updatetime: string
  855. static Create(){
  856. return new GoodsIntroduction(null,null,null,null,null,null,null,);
  857. }
  858. constructor( id: number,goodsarticlename: string,goodsarticle: string,createby: string,createtime: string,updateby: string,updatetime: string,) {
  859. this.id = id;
  860. this.goodsarticlename = goodsarticlename;
  861. this.goodsarticle = goodsarticle;
  862. this.createby = createby;
  863. this.createtime = createtime;
  864. this.updateby = updateby;
  865. this.updatetime = updatetime;
  866. }
  867. }
  868. export class GoodsOrder{
  869. id: number
  870. ordername: string
  871. skuid: number
  872. count: number
  873. price: number
  874. totalprice: number
  875. contactinformation: string
  876. couponuserid: number
  877. state: string
  878. createby: number
  879. createtime: string
  880. static Create(){
  881. return new GoodsOrder(null,null,null,null,null,null,null,null,null,null,null,);
  882. }
  883. constructor( id: number,ordername: string,skuid: number,count: number,price: number,totalprice: number,contactinformation: string,couponuserid: number,state: string,createby: number,createtime: string,) {
  884. this.id = id;
  885. this.ordername = ordername;
  886. this.skuid = skuid;
  887. this.count = count;
  888. this.price = price;
  889. this.totalprice = totalprice;
  890. this.contactinformation = contactinformation;
  891. this.couponuserid = couponuserid;
  892. this.state = state;
  893. this.createby = createby;
  894. this.createtime = createtime;
  895. }
  896. }
  897. export class GoodsSku{
  898. id: number
  899. skuimage: string
  900. skuname: string
  901. price: number
  902. historicalprices: number
  903. inventorynumber: number
  904. commodityareaid: number
  905. goodsid: number
  906. createby: string
  907. createtime: string
  908. static Create(){
  909. return new GoodsSku(null,null,null,null,null,null,null,null,null,null,);
  910. }
  911. constructor( id: number,skuimage: string,skuname: string,price: number,historicalprices: number,inventorynumber: number,commodityareaid: number,goodsid: number,createby: string,createtime: string,) {
  912. this.id = id;
  913. this.skuimage = skuimage;
  914. this.skuname = skuname;
  915. this.price = price;
  916. this.historicalprices = historicalprices;
  917. this.inventorynumber = inventorynumber;
  918. this.commodityareaid = commodityareaid;
  919. this.goodsid = goodsid;
  920. this.createby = createby;
  921. this.createtime = createtime;
  922. }
  923. }
  924. export class GoodsSkuCard{
  925. id: number
  926. cardname: string
  927. state: string
  928. count: number
  929. totalcount: string
  930. cardkey: string
  931. use: string
  932. uploadtime: string
  933. skuid: number
  934. sort: string
  935. static Create(){
  936. return new GoodsSkuCard(null,null,null,null,null,null,null,null,null,null,);
  937. }
  938. constructor( id: number,cardname: string,state: string,count: number,totalcount: string,cardkey: string,use: string,uploadtime: string,skuid: number,sort: string,) {
  939. this.id = id;
  940. this.cardname = cardname;
  941. this.state = state;
  942. this.count = count;
  943. this.totalcount = totalcount;
  944. this.cardkey = cardkey;
  945. this.use = use;
  946. this.uploadtime = uploadtime;
  947. this.skuid = skuid;
  948. this.sort = sort;
  949. }
  950. }
  951. export class GoodsTag{
  952. id: number
  953. name: string
  954. iconurl: string
  955. tag: string
  956. static Create(){
  957. return new GoodsTag(null,null,null,null,);
  958. }
  959. constructor( id: number,name: string,iconurl: string,tag: string,) {
  960. this.id = id;
  961. this.name = name;
  962. this.iconurl = iconurl;
  963. this.tag = tag;
  964. }
  965. }
  966. export class GoodsType{
  967. id: number
  968. sort: number
  969. typeimage: string
  970. typename: string
  971. createtime: string
  972. static Create(){
  973. return new GoodsType(null,null,null,null,null,);
  974. }
  975. constructor( id: number,sort: number,typeimage: string,typename: string,createtime: string,) {
  976. this.id = id;
  977. this.sort = sort;
  978. this.typeimage = typeimage;
  979. this.typename = typename;
  980. this.createtime = createtime;
  981. }
  982. }
  983. export class User{
  984. id: number
  985. username: string
  986. password: string
  987. creationtime: number
  988. logintime: number
  989. status: string
  990. roleid: number
  991. phone: string
  992. email: string
  993. name: string
  994. avatar: string
  995. recommendcode: string
  996. static Create(){
  997. return new User(null,null,null,null,null,null,null,null,null,null,null,null,);
  998. }
  999. constructor( id: number,username: string,password: string,creationtime: number,logintime: number,status: string,roleid: number,phone: string,email: string,name: string,avatar: string,recommendcode: string,) {
  1000. this.id = id;
  1001. this.username = username;
  1002. this.password = password;
  1003. this.creationtime = creationtime;
  1004. this.logintime = logintime;
  1005. this.status = status;
  1006. this.roleid = roleid;
  1007. this.phone = phone;
  1008. this.email = email;
  1009. this.name = name;
  1010. this.avatar = avatar;
  1011. this.recommendcode = recommendcode;
  1012. }
  1013. }
  1014. export class UserWallet{
  1015. id: number
  1016. userid: number
  1017. balance: number
  1018. promotionamount: number
  1019. rechargeamount: number
  1020. static Create(){
  1021. return new UserWallet(null,null,null,null,null,);
  1022. }
  1023. constructor( id: number,userid: number,balance: number,promotionamount: number,rechargeamount: number,) {
  1024. this.id = id;
  1025. this.userid = userid;
  1026. this.balance = balance;
  1027. this.promotionamount = promotionamount;
  1028. this.rechargeamount = rechargeamount;
  1029. }
  1030. }
  1031. export class DictData{
  1032. id: number
  1033. sort: number
  1034. dictlabel: string
  1035. dictvalue: string
  1036. dicttype: string
  1037. status: string
  1038. cssstyle: string
  1039. isdefault: string
  1040. remark: string
  1041. static Create(){
  1042. return new DictData(null,null,null,null,null,null,null,null,null,);
  1043. }
  1044. constructor( id: number,sort: number,dictlabel: string,dictvalue: string,dicttype: string,status: string,cssstyle: string,isdefault: string,remark: string,) {
  1045. this.id = id;
  1046. this.sort = sort;
  1047. this.dictlabel = dictlabel;
  1048. this.dictvalue = dictvalue;
  1049. this.dicttype = dicttype;
  1050. this.status = status;
  1051. this.cssstyle = cssstyle;
  1052. this.isdefault = isdefault;
  1053. this.remark = remark;
  1054. }
  1055. }
  1056. export class DictType{
  1057. id: number
  1058. dictname: string
  1059. dicttype: string
  1060. status: string
  1061. remark: string
  1062. static Create(){
  1063. return new DictType(null,null,null,null,null,);
  1064. }
  1065. constructor( id: number,dictname: string,dicttype: string,status: string,remark: string,) {
  1066. this.id = id;
  1067. this.dictname = dictname;
  1068. this.dicttype = dicttype;
  1069. this.status = status;
  1070. this.remark = remark;
  1071. }
  1072. }
  1073. export class ManageUser{
  1074. id: number
  1075. name: string
  1076. username: string
  1077. password: string
  1078. creationtime: number
  1079. logintime: number
  1080. status: string
  1081. roleid: number
  1082. phone: string
  1083. email: string
  1084. avatar: string
  1085. static Create(){
  1086. return new ManageUser(null,null,null,null,null,null,null,null,null,null,null,);
  1087. }
  1088. constructor( id: number,name: string,username: string,password: string,creationtime: number,logintime: number,status: string,roleid: number,phone: string,email: string,avatar: string,) {
  1089. this.id = id;
  1090. this.name = name;
  1091. this.username = username;
  1092. this.password = password;
  1093. this.creationtime = creationtime;
  1094. this.logintime = logintime;
  1095. this.status = status;
  1096. this.roleid = roleid;
  1097. this.phone = phone;
  1098. this.email = email;
  1099. this.avatar = avatar;
  1100. }
  1101. }
  1102. export class ShopTopic{
  1103. id: number
  1104. rolename: string
  1105. static Create(){
  1106. return new ShopTopic(null,null,);
  1107. }
  1108. constructor( id: number,rolename: string,) {
  1109. this.id = id;
  1110. this.rolename = rolename;
  1111. }
  1112. }
  1113. export class ShopAdviceCarousel{
  1114. authorityid: number
  1115. roleid: number
  1116. static Create(){
  1117. return new ShopAdviceCarousel(null,null,);
  1118. }
  1119. constructor( authorityid: number,roleid: number,) {
  1120. this.authorityid = authorityid;
  1121. this.roleid = roleid;
  1122. }
  1123. }
  1124. export class ShopTopicSku{
  1125. id: number
  1126. sort: string
  1127. imageurl: string
  1128. skuid: number
  1129. show: string
  1130. createby: string
  1131. createtime: string
  1132. updateby: string
  1133. updatetime: string
  1134. static Create(){
  1135. return new ShopTopicSku(null,null,null,null,null,null,null,null,null,);
  1136. }
  1137. constructor( id: number,sort: string,imageurl: string,skuid: number,show: string,createby: string,createtime: string,updateby: string,updatetime: string,) {
  1138. this.id = id;
  1139. this.sort = sort;
  1140. this.imageurl = imageurl;
  1141. this.skuid = skuid;
  1142. this.show = show;
  1143. this.createby = createby;
  1144. this.createtime = createtime;
  1145. this.updateby = updateby;
  1146. this.updatetime = updatetime;
  1147. }
  1148. }