From 9dd13ed7b3e228d972dc57c652cb6552da71294c Mon Sep 17 00:00:00 2001 From: “2926542760@qq.com” <2926542760@qq.com> Date: Sun, 25 Jun 2023 23:12:33 +0800 Subject: [PATCH] 备份 --- antis-ncc-admin/.env.production | 4 ++-- antis-ncc-admin/src/assets/images/ncc1.png | Bin 6669 -> 0 bytes antis-ncc-admin/src/assets/images/ncc2.png | Bin 11420 -> 0 bytes antis-ncc-admin/src/utils/define.js | 3 ++- antis-ncc-admin/src/views/permission/user/Form.vue | 12 ++++++++++++ antis-ncc-admin/src/views/permission/user/index.vue | 12 ++++++++++++ antis-ncc-admin/src/views/tbArea/Form.vue | 6 +++--- antis-ncc-admin/src/views/tbArea/index.vue | 8 ++++---- antis-ncc-admin/src/views/tbAreaLine/ExportBox.vue | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-admin/src/views/tbAreaLine/Form.vue | 178 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-admin/src/views/tbAreaLine/index.vue | 242 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-admin/src/views/tbAreaLineNode/ExportBox.vue | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-admin/src/views/tbAreaLineNode/Form.vue | 201 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-admin/src/views/tbAreaLineNode/index.vue | 292 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-admin/src/views/tbBoxLog/ExportBox.vue | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-admin/src/views/tbBoxLog/Form.vue | 260 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-admin/src/views/tbBoxLog/index.vue | 385 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-admin/src/views/tbBoxOrder/ExportBox.vue | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-admin/src/views/tbBoxOrder/Form.vue | 311 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-admin/src/views/tbBoxOrder/index.vue | 486 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-admin/src/views/tbMbtCharacter/Form.vue | 6 +++--- antis-ncc-admin/src/views/tbMbtCharacter/index.vue | 8 ++++---- antis-ncc-admin/src/views/tbMbtLine/ExportBox.vue | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-admin/src/views/tbMbtLine/Form.vue | 178 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-admin/src/views/tbMbtLine/index.vue | 242 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-admin/src/views/tbMbtLineNode/ExportBox.vue | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-admin/src/views/tbMbtLineNode/Form.vue | 204 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-admin/src/views/tbMbtLineNode/index.vue | 294 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-admin/src/views/tbMyBoxCoupon/ExportBox.vue | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-admin/src/views/tbMyBoxCoupon/Form.vue | 209 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-admin/src/views/tbMyBoxCoupon/index.vue | 335 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-admin/src/views/tbRecommend/ExportBox.vue | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-admin/src/views/tbRecommend/Form.vue | 127 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-admin/src/views/tbRecommend/index.vue | 186 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-admin/src/views/tbSettingPrice/ExportBox.vue | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-admin/src/views/tbSettingPrice/Form.vue | 148 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-admin/src/views/tbSettingPrice/index.vue | 221 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-admin/src/views/tbTicketsOrder/ExportBox.vue | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-admin/src/views/tbTicketsOrder/Form.vue | 231 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-admin/src/views/tbTicketsOrder/index.vue | 290 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-admin/src/views/tbTravelSpot/ExportBox.vue | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-admin/src/views/tbTravelSpot/Form.vue | 223 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-admin/src/views/tbTravelSpot/index.vue | 222 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-admin/src/views/tbUserAgreement/ExportBox.vue | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-admin/src/views/tbUserAgreement/Form.vue | 127 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-admin/src/views/tbUserAgreement/index.vue | 206 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-admin/src/views/tbVideo/Form.vue | 4 ++-- antis-ncc-admin/src/views/tbVideo/index.vue | 8 ++++---- antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路/Dto/TbMbtLineCrInput.cs | 43 +++++++++++++++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路/Dto/TbMbtLineInfoOutput.cs | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路/Dto/TbMbtLineListOutput.cs | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路/Dto/TbMbtLineListQueryInput.cs | 38 ++++++++++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路/Dto/TbMbtLineUpInput.cs | 17 +++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路/Entity/TbMbtLineEntity.cs | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路/Mapper/TbMbtLineMapper.cs | 21 +++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路节点/Dto/TbMbtLineNodeCrInput.cs | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路节点/Dto/TbMbtLineNodeInfoOutput.cs | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路节点/Dto/TbMbtLineNodeListOutput.cs | 76 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路节点/Dto/TbMbtLineNodeListQueryInput.cs | 43 +++++++++++++++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路节点/Dto/TbMbtLineNodeUpInput.cs | 17 +++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路节点/Entity/TbMbtLineNodeEntity.cs | 69 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路节点/Mapper/TbMbtLineNodeMapper.cs | 21 +++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/NCC.BlindBox.Entitys.csproj | 4 +++- antis-ncc-net-core/NCC.BlindBox.Entitys/价格设定/Dto/TbSettingPriceCrInput.cs | 32 ++++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/价格设定/Dto/TbSettingPriceInfoOutput.cs | 37 +++++++++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/价格设定/Dto/TbSettingPriceListOutput.cs | 36 ++++++++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/价格设定/Dto/TbSettingPriceListQueryInput.cs | 28 ++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/价格设定/Dto/TbSettingPriceUpInput.cs | 17 +++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/价格设定/Entity/TbSettingPriceEntity.cs | 45 +++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/价格设定/Mapper/TbSettingPriceMapper.cs | 14 ++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路/Dto/TbAreaLineCrInput.cs | 43 +++++++++++++++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路/Dto/TbAreaLineInfoOutput.cs | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路/Dto/TbAreaLineListOutput.cs | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路/Dto/TbAreaLineListQueryInput.cs | 38 ++++++++++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路/Dto/TbAreaLineUpInput.cs | 17 +++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路/Entity/TbAreaLineEntity.cs | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路/Mapper/TbAreaLineMapper.cs | 21 +++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路节点/Dto/TbAreaLineNodeCrInput.cs | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路节点/Dto/TbAreaLineNodeInfoOutput.cs | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路节点/Dto/TbAreaLineNodeListOutput.cs | 79 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路节点/Dto/TbAreaLineNodeListQueryInput.cs | 43 +++++++++++++++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路节点/Dto/TbAreaLineNodeUpInput.cs | 17 +++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路节点/Entity/TbAreaLineNodeEntity.cs | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路节点/Mapper/TbAreaLineNodeMapper.cs | 21 +++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/抽奖记录/Dto/TbBoxLogCrInput.cs | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/抽奖记录/Dto/TbBoxLogInfoOutput.cs | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/抽奖记录/Dto/TbBoxLogListOutput.cs | 90 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/抽奖记录/Dto/TbBoxLogListQueryInput.cs | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/抽奖记录/Dto/TbBoxLogUpInput.cs | 17 +++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/抽奖记录/Entity/TbBoxLogEntity.cs | 74 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/抽奖记录/Mapper/TbBoxLogMapper.cs | 14 ++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/旅游景点/Dto/TbTravelSpotCrInput.cs | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/旅游景点/Dto/TbTravelSpotInfoOutput.cs | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/旅游景点/Dto/TbTravelSpotListOutput.cs | 93 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/旅游景点/Dto/TbTravelSpotListQueryInput.cs | 33 +++++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/旅游景点/Dto/TbTravelSpotUpInput.cs | 17 +++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/旅游景点/Entity/TbTravelSpotEntity.cs | 75 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/旅游景点/Mapper/TbTravelSpotMapper.cs | 23 +++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/用户协议/Dto/TbUserAgreementCrInput.cs | 27 +++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/用户协议/Dto/TbUserAgreementInfoOutput.cs | 32 ++++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/用户协议/Dto/TbUserAgreementListOutput.cs | 32 ++++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/用户协议/Dto/TbUserAgreementListQueryInput.cs | 23 +++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/用户协议/Dto/TbUserAgreementUpInput.cs | 17 +++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/用户协议/Entity/TbUserAgreementEntity.cs | 39 +++++++++++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/用户协议/Mapper/TbUserAgreementMapper.cs | 14 ++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒介绍/Dto/TbRecommendCrInput.cs | 27 +++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒介绍/Dto/TbRecommendInfoOutput.cs | 32 ++++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒介绍/Dto/TbRecommendListOutput.cs | 31 +++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒介绍/Dto/TbRecommendListQueryInput.cs | 23 +++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒介绍/Dto/TbRecommendUpInput.cs | 17 +++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒介绍/Entity/TbRecommendEntity.cs | 39 +++++++++++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒介绍/Mapper/TbRecommendMapper.cs | 14 ++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒券/Dto/TbMyBoxCouponCrInput.cs | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒券/Dto/TbMyBoxCouponInfoOutput.cs | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒券/Dto/TbMyBoxCouponListOutput.cs | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒券/Dto/TbMyBoxCouponListQueryInput.cs | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒券/Dto/TbMyBoxCouponUpInput.cs | 17 +++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒券/Entity/TbMyBoxCouponEntity.cs | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒券/Mapper/TbMyBoxCouponMapper.cs | 14 ++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒订单/Dto/TbBoxOrderCrInput.cs | 87 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒订单/Dto/TbBoxOrderInfoOutput.cs | 102 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒订单/Dto/TbBoxOrderListOutput.cs | 159 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒订单/Dto/TbBoxOrderListQueryInput.cs | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒订单/Dto/TbBoxOrderUpInput.cs | 17 +++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒订单/Entity/TbBoxOrderEntity.cs | 122 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒订单/Mapper/TbBoxOrderMapper.cs | 21 +++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/视频信息/Dto/TbVideoListOutput.cs | 21 ++++++++++++++++++++- antis-ncc-net-core/NCC.BlindBox.Entitys/门票订单/Dto/TbTicketsOrderCrInput.cs | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/门票订单/Dto/TbTicketsOrderInfoOutput.cs | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/门票订单/Dto/TbTicketsOrderListOutput.cs | 76 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/门票订单/Dto/TbTicketsOrderListQueryInput.cs | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/门票订单/Dto/TbTicketsOrderUpInput.cs | 17 +++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/门票订单/Entity/TbTicketsOrderEntity.cs | 81 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Entitys/门票订单/Mapper/TbTicketsOrderMapper.cs | 14 ++++++++++++++ antis-ncc-net-core/NCC.BlindBox.Interfaces/MBT人格线路/ITbMbtLineService.cs | 6 ++++++ antis-ncc-net-core/NCC.BlindBox.Interfaces/MBT人格线路节点/ITbMbtLineNodeService.cs | 6 ++++++ antis-ncc-net-core/NCC.BlindBox.Interfaces/NCC.BlindBox.Interfaces.csproj | 3 ++- antis-ncc-net-core/NCC.BlindBox.Interfaces/价格设定/ITbSettingPriceService.cs | 6 ++++++ antis-ncc-net-core/NCC.BlindBox.Interfaces/地域线路/ITbAreaLineService.cs | 6 ++++++ antis-ncc-net-core/NCC.BlindBox.Interfaces/地域线路节点/ITbAreaLineNodeService.cs | 6 ++++++ antis-ncc-net-core/NCC.BlindBox.Interfaces/抽奖记录/ITbBoxLogService.cs | 6 ++++++ antis-ncc-net-core/NCC.BlindBox.Interfaces/旅游景点/ITbTravelSpotService.cs | 6 ++++++ antis-ncc-net-core/NCC.BlindBox.Interfaces/用户协议/ITbUserAgreementService.cs | 6 ++++++ antis-ncc-net-core/NCC.BlindBox.Interfaces/盲盒介绍/ITbRecommendService.cs | 6 ++++++ antis-ncc-net-core/NCC.BlindBox.Interfaces/盲盒券/ITbMyBoxCouponService.cs | 6 ++++++ antis-ncc-net-core/NCC.BlindBox.Interfaces/盲盒订单/ITbBoxOrderService.cs | 6 ++++++ antis-ncc-net-core/NCC.BlindBox.Interfaces/门票订单/ITbTicketsOrderService.cs | 6 ++++++ antis-ncc-net-core/NCC.BlindBox/BlindBoxStatus.cs | 101 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox/MBT人格/TbMbtCharacterService.cs | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-- antis-ncc-net-core/NCC.BlindBox/MBT人格线路/TbMbtLineService.cs | 334 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox/MBT人格线路节点/TbMbtLineNodeService.cs | 320 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox/NCC.BlindBox.csproj | 1 + antis-ncc-net-core/NCC.BlindBox/价格设定/TbSettingPriceService.cs | 304 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox/地域管理/TbAreaService.cs | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-- antis-ncc-net-core/NCC.BlindBox/地域线路/TbAreaLineService.cs | 330 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox/地域线路节点/TbAreaLineNodeService.cs | 324 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox/抽奖记录/TbBoxLogService.cs | 329 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox/旅游景点/TbTravelSpotService.cs | 311 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox/用户协议/TbUserAgreementService.cs | 301 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox/盲盒介绍/TbRecommendService.cs | 222 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox/盲盒券/TbMyBoxCouponService.cs | 363 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox/盲盒订单/TbBoxOrderService.cs | 942 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-net-core/NCC.BlindBox/视频信息/TbVideoService.cs | 5 ++++- antis-ncc-net-core/NCC.BlindBox/门票订单/TbTicketsOrderService.cs | 474 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-net-core/src/Application/NCC.API.Core/Startup.cs | 9 ++++++++- antis-ncc-net-core/src/Application/NCC.API/appsettings.json | 8 +++++--- antis-ncc-net-core/src/Infrastructure/NCC.Pay/NCC.Core.Pay/Interface/IWePay.cs | 2 +- antis-ncc-net-core/src/Infrastructure/NCC.Pay/NCC.Core.Pay/WePay.cs | 16 ++++++++-------- antis-ncc-net-core/src/Modularity/Common/NCC.Common/CustomExtend/Config/PaymentSettingsOptions.cs | 4 ++++ antis-ncc-net-core/src/Modularity/Common/NCC.Common/Helper/ServiceHelper.cs | 28 ++++++++++++++++++++++++++++ antis-ncc-net-core/src/Modularity/Food/NCC.Food/BaseOrderService.cs | 2 +- antis-ncc-net-core/src/Modularity/OAuth/NCC.OAuth/Service/OAuthService.cs | 27 ++++++++++++++------------- antis-ncc-net-core/src/Modularity/System/NCC.System.Entitys/Dto/Permission/User/UserCrInput.cs | 11 +++++++++++ antis-ncc-net-core/src/Modularity/System/NCC.System.Entitys/Dto/Permission/User/UserInfoOutput.cs | 10 ++++++++++ antis-ncc-net-core/src/Modularity/System/NCC.System.Entitys/Dto/Permission/User/UserListOutput.cs | 8 ++++++++ antis-ncc-net-core/src/Modularity/System/NCC.System.Entitys/Entity/Permission/UserEntity.cs | 11 +++++++++++ antis-ncc-net-core/src/Modularity/System/NCC.System/Service/Common/FileService.cs | 4 +++- antis-ncc-net-core/src/Modularity/System/NCC.System/Service/Permission/UsersService.cs | 133 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------ 178 files changed, 15622 insertions(+), 65 deletions(-) create mode 100644 antis-ncc-admin/src/views/tbAreaLine/ExportBox.vue create mode 100644 antis-ncc-admin/src/views/tbAreaLine/Form.vue create mode 100644 antis-ncc-admin/src/views/tbAreaLine/index.vue create mode 100644 antis-ncc-admin/src/views/tbAreaLineNode/ExportBox.vue create mode 100644 antis-ncc-admin/src/views/tbAreaLineNode/Form.vue create mode 100644 antis-ncc-admin/src/views/tbAreaLineNode/index.vue create mode 100644 antis-ncc-admin/src/views/tbBoxLog/ExportBox.vue create mode 100644 antis-ncc-admin/src/views/tbBoxLog/Form.vue create mode 100644 antis-ncc-admin/src/views/tbBoxLog/index.vue create mode 100644 antis-ncc-admin/src/views/tbBoxOrder/ExportBox.vue create mode 100644 antis-ncc-admin/src/views/tbBoxOrder/Form.vue create mode 100644 antis-ncc-admin/src/views/tbBoxOrder/index.vue create mode 100644 antis-ncc-admin/src/views/tbMbtLine/ExportBox.vue create mode 100644 antis-ncc-admin/src/views/tbMbtLine/Form.vue create mode 100644 antis-ncc-admin/src/views/tbMbtLine/index.vue create mode 100644 antis-ncc-admin/src/views/tbMbtLineNode/ExportBox.vue create mode 100644 antis-ncc-admin/src/views/tbMbtLineNode/Form.vue create mode 100644 antis-ncc-admin/src/views/tbMbtLineNode/index.vue create mode 100644 antis-ncc-admin/src/views/tbMyBoxCoupon/ExportBox.vue create mode 100644 antis-ncc-admin/src/views/tbMyBoxCoupon/Form.vue create mode 100644 antis-ncc-admin/src/views/tbMyBoxCoupon/index.vue create mode 100644 antis-ncc-admin/src/views/tbRecommend/ExportBox.vue create mode 100644 antis-ncc-admin/src/views/tbRecommend/Form.vue create mode 100644 antis-ncc-admin/src/views/tbRecommend/index.vue create mode 100644 antis-ncc-admin/src/views/tbSettingPrice/ExportBox.vue create mode 100644 antis-ncc-admin/src/views/tbSettingPrice/Form.vue create mode 100644 antis-ncc-admin/src/views/tbSettingPrice/index.vue create mode 100644 antis-ncc-admin/src/views/tbTicketsOrder/ExportBox.vue create mode 100644 antis-ncc-admin/src/views/tbTicketsOrder/Form.vue create mode 100644 antis-ncc-admin/src/views/tbTicketsOrder/index.vue create mode 100644 antis-ncc-admin/src/views/tbTravelSpot/ExportBox.vue create mode 100644 antis-ncc-admin/src/views/tbTravelSpot/Form.vue create mode 100644 antis-ncc-admin/src/views/tbTravelSpot/index.vue create mode 100644 antis-ncc-admin/src/views/tbUserAgreement/ExportBox.vue create mode 100644 antis-ncc-admin/src/views/tbUserAgreement/Form.vue create mode 100644 antis-ncc-admin/src/views/tbUserAgreement/index.vue create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路/Dto/TbMbtLineCrInput.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路/Dto/TbMbtLineInfoOutput.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路/Dto/TbMbtLineListOutput.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路/Dto/TbMbtLineListQueryInput.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路/Dto/TbMbtLineUpInput.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路/Entity/TbMbtLineEntity.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路/Mapper/TbMbtLineMapper.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路节点/Dto/TbMbtLineNodeCrInput.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路节点/Dto/TbMbtLineNodeInfoOutput.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路节点/Dto/TbMbtLineNodeListOutput.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路节点/Dto/TbMbtLineNodeListQueryInput.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路节点/Dto/TbMbtLineNodeUpInput.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路节点/Entity/TbMbtLineNodeEntity.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路节点/Mapper/TbMbtLineNodeMapper.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/价格设定/Dto/TbSettingPriceCrInput.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/价格设定/Dto/TbSettingPriceInfoOutput.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/价格设定/Dto/TbSettingPriceListOutput.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/价格设定/Dto/TbSettingPriceListQueryInput.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/价格设定/Dto/TbSettingPriceUpInput.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/价格设定/Entity/TbSettingPriceEntity.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/价格设定/Mapper/TbSettingPriceMapper.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路/Dto/TbAreaLineCrInput.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路/Dto/TbAreaLineInfoOutput.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路/Dto/TbAreaLineListOutput.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路/Dto/TbAreaLineListQueryInput.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路/Dto/TbAreaLineUpInput.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路/Entity/TbAreaLineEntity.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路/Mapper/TbAreaLineMapper.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路节点/Dto/TbAreaLineNodeCrInput.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路节点/Dto/TbAreaLineNodeInfoOutput.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路节点/Dto/TbAreaLineNodeListOutput.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路节点/Dto/TbAreaLineNodeListQueryInput.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路节点/Dto/TbAreaLineNodeUpInput.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路节点/Entity/TbAreaLineNodeEntity.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路节点/Mapper/TbAreaLineNodeMapper.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/抽奖记录/Dto/TbBoxLogCrInput.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/抽奖记录/Dto/TbBoxLogInfoOutput.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/抽奖记录/Dto/TbBoxLogListOutput.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/抽奖记录/Dto/TbBoxLogListQueryInput.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/抽奖记录/Dto/TbBoxLogUpInput.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/抽奖记录/Entity/TbBoxLogEntity.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/抽奖记录/Mapper/TbBoxLogMapper.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/旅游景点/Dto/TbTravelSpotCrInput.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/旅游景点/Dto/TbTravelSpotInfoOutput.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/旅游景点/Dto/TbTravelSpotListOutput.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/旅游景点/Dto/TbTravelSpotListQueryInput.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/旅游景点/Dto/TbTravelSpotUpInput.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/旅游景点/Entity/TbTravelSpotEntity.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/旅游景点/Mapper/TbTravelSpotMapper.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/用户协议/Dto/TbUserAgreementCrInput.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/用户协议/Dto/TbUserAgreementInfoOutput.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/用户协议/Dto/TbUserAgreementListOutput.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/用户协议/Dto/TbUserAgreementListQueryInput.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/用户协议/Dto/TbUserAgreementUpInput.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/用户协议/Entity/TbUserAgreementEntity.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/用户协议/Mapper/TbUserAgreementMapper.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒介绍/Dto/TbRecommendCrInput.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒介绍/Dto/TbRecommendInfoOutput.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒介绍/Dto/TbRecommendListOutput.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒介绍/Dto/TbRecommendListQueryInput.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒介绍/Dto/TbRecommendUpInput.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒介绍/Entity/TbRecommendEntity.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒介绍/Mapper/TbRecommendMapper.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒券/Dto/TbMyBoxCouponCrInput.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒券/Dto/TbMyBoxCouponInfoOutput.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒券/Dto/TbMyBoxCouponListOutput.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒券/Dto/TbMyBoxCouponListQueryInput.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒券/Dto/TbMyBoxCouponUpInput.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒券/Entity/TbMyBoxCouponEntity.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒券/Mapper/TbMyBoxCouponMapper.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒订单/Dto/TbBoxOrderCrInput.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒订单/Dto/TbBoxOrderInfoOutput.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒订单/Dto/TbBoxOrderListOutput.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒订单/Dto/TbBoxOrderListQueryInput.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒订单/Dto/TbBoxOrderUpInput.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒订单/Entity/TbBoxOrderEntity.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒订单/Mapper/TbBoxOrderMapper.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/门票订单/Dto/TbTicketsOrderCrInput.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/门票订单/Dto/TbTicketsOrderInfoOutput.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/门票订单/Dto/TbTicketsOrderListOutput.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/门票订单/Dto/TbTicketsOrderListQueryInput.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/门票订单/Dto/TbTicketsOrderUpInput.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/门票订单/Entity/TbTicketsOrderEntity.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Entitys/门票订单/Mapper/TbTicketsOrderMapper.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Interfaces/MBT人格线路/ITbMbtLineService.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Interfaces/MBT人格线路节点/ITbMbtLineNodeService.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Interfaces/价格设定/ITbSettingPriceService.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Interfaces/地域线路/ITbAreaLineService.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Interfaces/地域线路节点/ITbAreaLineNodeService.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Interfaces/抽奖记录/ITbBoxLogService.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Interfaces/旅游景点/ITbTravelSpotService.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Interfaces/用户协议/ITbUserAgreementService.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Interfaces/盲盒介绍/ITbRecommendService.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Interfaces/盲盒券/ITbMyBoxCouponService.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Interfaces/盲盒订单/ITbBoxOrderService.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox.Interfaces/门票订单/ITbTicketsOrderService.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox/BlindBoxStatus.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox/MBT人格线路/TbMbtLineService.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox/MBT人格线路节点/TbMbtLineNodeService.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox/价格设定/TbSettingPriceService.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox/地域线路/TbAreaLineService.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox/地域线路节点/TbAreaLineNodeService.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox/抽奖记录/TbBoxLogService.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox/旅游景点/TbTravelSpotService.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox/用户协议/TbUserAgreementService.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox/盲盒介绍/TbRecommendService.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox/盲盒券/TbMyBoxCouponService.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox/盲盒订单/TbBoxOrderService.cs create mode 100644 antis-ncc-net-core/NCC.BlindBox/门票订单/TbTicketsOrderService.cs create mode 100644 antis-ncc-net-core/src/Modularity/Common/NCC.Common/Helper/ServiceHelper.cs diff --git a/antis-ncc-admin/.env.production b/antis-ncc-admin/.env.production index 8a4c001..e8108b6 100644 --- a/antis-ncc-admin/.env.production +++ b/antis-ncc-admin/.env.production @@ -1,5 +1,5 @@ # 生产默认配置 ENV = 'production' -VUE_APP_BASE_API = 'http://8.130.38.56:8099' -VUE_APP_BASE_WSS = 'ws://8.130.38.56:8099/websocket' +VUE_APP_BASE_API = 'https://www.chillyouthstudio.com' +VUE_APP_BASE_WSS = 'wss://www.chillyouthstudio.com/websocket' diff --git a/antis-ncc-admin/src/assets/images/ncc1.png b/antis-ncc-admin/src/assets/images/ncc1.png index 499af56..d108dfd 100644 Binary files a/antis-ncc-admin/src/assets/images/ncc1.png and b/antis-ncc-admin/src/assets/images/ncc1.png differ diff --git a/antis-ncc-admin/src/assets/images/ncc2.png b/antis-ncc-admin/src/assets/images/ncc2.png index 3fd9341..d108dfd 100644 Binary files a/antis-ncc-admin/src/assets/images/ncc2.png and b/antis-ncc-admin/src/assets/images/ncc2.png differ diff --git a/antis-ncc-admin/src/utils/define.js b/antis-ncc-admin/src/utils/define.js index 1ba56c9..d735971 100644 --- a/antis-ncc-admin/src/utils/define.js +++ b/antis-ncc-admin/src/utils/define.js @@ -1,7 +1,8 @@ // 开发环境接口配置 // JAVA Boot版本对应后端接口地址 // JAVA Cloud对应网关地址 -const APIURl = 'http://localhost:8061' +// const APIURl = 'http://localhost:8061' +const APIURl = 'https://www.chillyouthstudio.com' module.exports = { APIURl: APIURl, diff --git a/antis-ncc-admin/src/views/permission/user/Form.vue b/antis-ncc-admin/src/views/permission/user/Form.vue index 5533121..f46620b 100644 --- a/antis-ncc-admin/src/views/permission/user/Form.vue +++ b/antis-ncc-admin/src/views/permission/user/Form.vue @@ -27,6 +27,16 @@ + + + + + + + + + + @@ -162,6 +172,8 @@ urgentContacts: '', urgentTelePhone: '', postalAddress: '', + "schoolNumber":"", + "school":'' }, roleId: [], departmentTreeData: [], diff --git a/antis-ncc-admin/src/views/permission/user/index.vue b/antis-ncc-admin/src/views/permission/user/index.vue index d288c46..84b949f 100644 --- a/antis-ncc-admin/src/views/permission/user/index.vue +++ b/antis-ncc-admin/src/views/permission/user/index.vue @@ -68,6 +68,18 @@ {{scope.row.postalAddress}} + + + + {{scope.row.school}} + + + + + + {{scope.row.schoolNumber}} + + diff --git a/antis-ncc-admin/src/views/tbArea/Form.vue b/antis-ncc-admin/src/views/tbArea/Form.vue index 6f0751d..33a39e3 100644 --- a/antis-ncc-admin/src/views/tbArea/Form.vue +++ b/antis-ncc-admin/src/views/tbArea/Form.vue @@ -89,7 +89,7 @@ this.$refs['elForm'].resetFields(); if (this.dataForm.id) { request({ - url: '/api/Education/TbArea/' + this.dataForm.id, + url: '/api/Blind/TbArea/' + this.dataForm.id, method: 'get' }).then(res =>{ this.dataForm = res.data; @@ -102,7 +102,7 @@ if (valid) { if (!this.dataForm.id) { request({ - url: `/api/Education/TbArea`, + url: `/api/Blind/TbArea`, method: 'post', data: this.dataForm, }).then((res) => { @@ -118,7 +118,7 @@ }) } else { request({ - url: '/api/Education/TbArea/' + this.dataForm.id, + url: '/api/Blind/TbArea/' + this.dataForm.id, method: 'PUT', data: this.dataForm }).then((res) => { diff --git a/antis-ncc-admin/src/views/tbArea/index.vue b/antis-ncc-admin/src/views/tbArea/index.vue index 620b9e0..49d5bae 100644 --- a/antis-ncc-admin/src/views/tbArea/index.vue +++ b/antis-ncc-admin/src/views/tbArea/index.vue @@ -99,7 +99,7 @@ } } request({ - url: `/api/Education/TbArea`, + url: `/api/Blind/TbArea`, method: 'GET', data: query }).then(res => { @@ -113,7 +113,7 @@ type: 'warning' }).then(() => { request({ - url: `/api/Education/TbArea/${id}`, + url: `/api/Blind/TbArea/${id}`, method: 'DELETE' }).then(res => { this.$message({ @@ -145,7 +145,7 @@ type: 'warning' }).then(() => { request({ - url: `/api/Education/TbArea/batchRemove`, + url: `/api/Blind/TbArea/batchRemove`, method: 'POST', data: ids , }).then(res => { @@ -174,7 +174,7 @@ download(data) { let query = { ...data, ...this.listQuery, ...this.query } request({ - url: `/api/Education/TbArea/Actions/Export`, + url: `/api/Blind/TbArea/Actions/Export`, method: 'GET', data: query }).then(res => { diff --git a/antis-ncc-admin/src/views/tbAreaLine/ExportBox.vue b/antis-ncc-admin/src/views/tbAreaLine/ExportBox.vue new file mode 100644 index 0000000..4fc5c07 --- /dev/null +++ b/antis-ncc-admin/src/views/tbAreaLine/ExportBox.vue @@ -0,0 +1,66 @@ + + + + + + 当前页面数据 + 全部页面数据 + + + + 全选 + + + {{item.label}} + + + + + + 取 消 + 导 出 + + + + + + \ No newline at end of file diff --git a/antis-ncc-admin/src/views/tbAreaLine/Form.vue b/antis-ncc-admin/src/views/tbAreaLine/Form.vue new file mode 100644 index 0000000..a8ea308 --- /dev/null +++ b/antis-ncc-admin/src/views/tbAreaLine/Form.vue @@ -0,0 +1,178 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 取 消 + 确 定 + + + + diff --git a/antis-ncc-admin/src/views/tbAreaLine/index.vue b/antis-ncc-admin/src/views/tbAreaLine/index.vue new file mode 100644 index 0000000..08ad760 --- /dev/null +++ b/antis-ncc-admin/src/views/tbAreaLine/index.vue @@ -0,0 +1,242 @@ + + + + + + + + + + + + + + + + + + + + + + + + + 查询 + 重置 + + + + + + + + 新增 + 导出 + 批量删除 + + + + + + + + + + + {{ scope.row.area&&scope.row.area.Name}} + + + + + + + + 编辑 + 删除 + + + + + + + + + + + \ No newline at end of file diff --git a/antis-ncc-admin/src/views/tbAreaLineNode/ExportBox.vue b/antis-ncc-admin/src/views/tbAreaLineNode/ExportBox.vue new file mode 100644 index 0000000..4fc5c07 --- /dev/null +++ b/antis-ncc-admin/src/views/tbAreaLineNode/ExportBox.vue @@ -0,0 +1,66 @@ + + + + + + 当前页面数据 + 全部页面数据 + + + + 全选 + + + {{item.label}} + + + + + + 取 消 + 导 出 + + + + + + \ No newline at end of file diff --git a/antis-ncc-admin/src/views/tbAreaLineNode/Form.vue b/antis-ncc-admin/src/views/tbAreaLineNode/Form.vue new file mode 100644 index 0000000..da16280 --- /dev/null +++ b/antis-ncc-admin/src/views/tbAreaLineNode/Form.vue @@ -0,0 +1,201 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 取 消 + 确 定 + + + + diff --git a/antis-ncc-admin/src/views/tbAreaLineNode/index.vue b/antis-ncc-admin/src/views/tbAreaLineNode/index.vue new file mode 100644 index 0000000..f1bf3ef --- /dev/null +++ b/antis-ncc-admin/src/views/tbAreaLineNode/index.vue @@ -0,0 +1,292 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 查询 + 重置 + 展开 + + 收起 + + + + + + + + 新增 + 导出 + 批量删除 + + + + + + + + + + + {{ scope.row.areaLine&&scope.row.areaLine.Title }} + + + + + + + + + + 编辑 + 删除 + + + + + + + + + + + + diff --git a/antis-ncc-admin/src/views/tbBoxLog/ExportBox.vue b/antis-ncc-admin/src/views/tbBoxLog/ExportBox.vue new file mode 100644 index 0000000..4fc5c07 --- /dev/null +++ b/antis-ncc-admin/src/views/tbBoxLog/ExportBox.vue @@ -0,0 +1,66 @@ + + + + + + 当前页面数据 + 全部页面数据 + + + + 全选 + + + {{item.label}} + + + + + + 取 消 + 导 出 + + + + + + \ No newline at end of file diff --git a/antis-ncc-admin/src/views/tbBoxLog/Form.vue b/antis-ncc-admin/src/views/tbBoxLog/Form.vue new file mode 100644 index 0000000..053e522 --- /dev/null +++ b/antis-ncc-admin/src/views/tbBoxLog/Form.vue @@ -0,0 +1,260 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 取 消 + 确 定 + + + + diff --git a/antis-ncc-admin/src/views/tbBoxLog/index.vue b/antis-ncc-admin/src/views/tbBoxLog/index.vue new file mode 100644 index 0000000..444c0a0 --- /dev/null +++ b/antis-ncc-admin/src/views/tbBoxLog/index.vue @@ -0,0 +1,385 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 查询 + 重置 + 展开 + + 收起 + + + + + + + + 新增 + 导出 + 批量删除 + + + + + + + + + + + + {{scope.row.user&&scope.row.user.RealName}} + + + + {{ scope.row.boxOrder&&scope.row.boxOrder.OrderNumber }} + + + {{ scope.row.type | dynamicText(typeOptions) }} + + + {{ scope.row.areaLine&&scope.row.areaLine.Title}} + + + {{ scope.row.mbtLine&&scope.row.mbtLine.Name}} + + + {{ scope.row.area&&scope.row.area.Name}} + + + {{ scope.row.mbt&&scope.row.mbt.Name}} + + + + + + 编辑 + 删除 + + + + + + + + + + + + diff --git a/antis-ncc-admin/src/views/tbBoxOrder/ExportBox.vue b/antis-ncc-admin/src/views/tbBoxOrder/ExportBox.vue new file mode 100644 index 0000000..4fc5c07 --- /dev/null +++ b/antis-ncc-admin/src/views/tbBoxOrder/ExportBox.vue @@ -0,0 +1,66 @@ + + + + + + 当前页面数据 + 全部页面数据 + + + + 全选 + + + {{item.label}} + + + + + + 取 消 + 导 出 + + + + + + \ No newline at end of file diff --git a/antis-ncc-admin/src/views/tbBoxOrder/Form.vue b/antis-ncc-admin/src/views/tbBoxOrder/Form.vue new file mode 100644 index 0000000..b7252e1 --- /dev/null +++ b/antis-ncc-admin/src/views/tbBoxOrder/Form.vue @@ -0,0 +1,311 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 取 消 + 确 定 + + + + diff --git a/antis-ncc-admin/src/views/tbBoxOrder/index.vue b/antis-ncc-admin/src/views/tbBoxOrder/index.vue new file mode 100644 index 0000000..b901b34 --- /dev/null +++ b/antis-ncc-admin/src/views/tbBoxOrder/index.vue @@ -0,0 +1,486 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 查询 + 重置 + 展开 + + 收起 + + + + + + + + 新增 + 导出 + 批量删除 + + + + + + + + + + + + {{scope.row.user&&scope.row.user.RealName}} + + + + + {{scope.row.user&&scope.row.user.School}} + + + + + {{scope.row.user&&scope.row.user.SchoolNumber}} + + + + + {{scope.row.tickets&&scope.row.tickets.Name}} + + + + + {{scope.row.tickets&&scope.row.tickets.Phone}} + + + + + {{scope.row.tickets&&scope.row.tickets.IdCard}} + + + + + {{ scope.row.type | dynamicText(typeOptions) }} + + + {{ scope.row.area&&scope.row.area.Name}} + + + {{ scope.row.areaLine&&scope.row.areaLine.Title }} + + + {{ scope.row.mbt&&scope.row.mbt.Name}} + + + {{ scope.row.mbtLine&&scope.row.mbtLine.Name }} + + + {{ scope.row.status | dynamicText(statusOptions) }} + + + {{ scope.row.isMe | dynamicText(isMeOptions) }} + + + + {{scope.row.giveUser&&scope.row.giveUser.RealName}} + + + + {{ scope.row.myBoxCoupon&&scope.row.myBoxCoupon.Title }} + + + + + + + 编辑 + 删除 + + + + + + + + + + + + diff --git a/antis-ncc-admin/src/views/tbMbtCharacter/Form.vue b/antis-ncc-admin/src/views/tbMbtCharacter/Form.vue index 40b7273..955acc1 100644 --- a/antis-ncc-admin/src/views/tbMbtCharacter/Form.vue +++ b/antis-ncc-admin/src/views/tbMbtCharacter/Form.vue @@ -89,7 +89,7 @@ this.$refs['elForm'].resetFields(); if (this.dataForm.id) { request({ - url: '/api/Education/TbMbtCharacter/' + this.dataForm.id, + url: '/api/Blind/TbMbtCharacter/' + this.dataForm.id, method: 'get' }).then(res =>{ this.dataForm = res.data; @@ -102,7 +102,7 @@ if (valid) { if (!this.dataForm.id) { request({ - url: `/api/Education/TbMbtCharacter`, + url: `/api/Blind/TbMbtCharacter`, method: 'post', data: this.dataForm, }).then((res) => { @@ -118,7 +118,7 @@ }) } else { request({ - url: '/api/Education/TbMbtCharacter/' + this.dataForm.id, + url: '/api/Blind/TbMbtCharacter/' + this.dataForm.id, method: 'PUT', data: this.dataForm }).then((res) => { diff --git a/antis-ncc-admin/src/views/tbMbtCharacter/index.vue b/antis-ncc-admin/src/views/tbMbtCharacter/index.vue index 788d90e..572faaf 100644 --- a/antis-ncc-admin/src/views/tbMbtCharacter/index.vue +++ b/antis-ncc-admin/src/views/tbMbtCharacter/index.vue @@ -99,7 +99,7 @@ } } request({ - url: `/api/Education/TbMbtCharacter`, + url: `/api/Blind/TbMbtCharacter`, method: 'GET', data: query }).then(res => { @@ -113,7 +113,7 @@ type: 'warning' }).then(() => { request({ - url: `/api/Education/TbMbtCharacter/${id}`, + url: `/api/Blind/TbMbtCharacter/${id}`, method: 'DELETE' }).then(res => { this.$message({ @@ -145,7 +145,7 @@ type: 'warning' }).then(() => { request({ - url: `/api/Education/TbMbtCharacter/batchRemove`, + url: `/api/Blind/TbMbtCharacter/batchRemove`, method: 'POST', data: ids , }).then(res => { @@ -174,7 +174,7 @@ download(data) { let query = { ...data, ...this.listQuery, ...this.query } request({ - url: `/api/Education/TbMbtCharacter/Actions/Export`, + url: `/api/Blind/TbMbtCharacter/Actions/Export`, method: 'GET', data: query }).then(res => { diff --git a/antis-ncc-admin/src/views/tbMbtLine/ExportBox.vue b/antis-ncc-admin/src/views/tbMbtLine/ExportBox.vue new file mode 100644 index 0000000..4fc5c07 --- /dev/null +++ b/antis-ncc-admin/src/views/tbMbtLine/ExportBox.vue @@ -0,0 +1,66 @@ + + + + + + 当前页面数据 + 全部页面数据 + + + + 全选 + + + {{item.label}} + + + + + + 取 消 + 导 出 + + + + + + \ No newline at end of file diff --git a/antis-ncc-admin/src/views/tbMbtLine/Form.vue b/antis-ncc-admin/src/views/tbMbtLine/Form.vue new file mode 100644 index 0000000..cceffb2 --- /dev/null +++ b/antis-ncc-admin/src/views/tbMbtLine/Form.vue @@ -0,0 +1,178 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 取 消 + 确 定 + + + + diff --git a/antis-ncc-admin/src/views/tbMbtLine/index.vue b/antis-ncc-admin/src/views/tbMbtLine/index.vue new file mode 100644 index 0000000..0f3d405 --- /dev/null +++ b/antis-ncc-admin/src/views/tbMbtLine/index.vue @@ -0,0 +1,242 @@ + + + + + + + + + + + + + + + + + + + + + + + + + 查询 + 重置 + + + + + + + + 新增 + 导出 + 批量删除 + + + + + + + + + + + {{ scope.row.mbt&&scope.row.mbt.Name }} + + + + + + + + 编辑 + 删除 + + + + + + + + + + + \ No newline at end of file diff --git a/antis-ncc-admin/src/views/tbMbtLineNode/ExportBox.vue b/antis-ncc-admin/src/views/tbMbtLineNode/ExportBox.vue new file mode 100644 index 0000000..4fc5c07 --- /dev/null +++ b/antis-ncc-admin/src/views/tbMbtLineNode/ExportBox.vue @@ -0,0 +1,66 @@ + + + + + + 当前页面数据 + 全部页面数据 + + + + 全选 + + + {{item.label}} + + + + + + 取 消 + 导 出 + + + + + + \ No newline at end of file diff --git a/antis-ncc-admin/src/views/tbMbtLineNode/Form.vue b/antis-ncc-admin/src/views/tbMbtLineNode/Form.vue new file mode 100644 index 0000000..4de3957 --- /dev/null +++ b/antis-ncc-admin/src/views/tbMbtLineNode/Form.vue @@ -0,0 +1,204 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 取 消 + 确 定 + + + + diff --git a/antis-ncc-admin/src/views/tbMbtLineNode/index.vue b/antis-ncc-admin/src/views/tbMbtLineNode/index.vue new file mode 100644 index 0000000..5bb4490 --- /dev/null +++ b/antis-ncc-admin/src/views/tbMbtLineNode/index.vue @@ -0,0 +1,294 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 查询 + 重置 + 展开 + + 收起 + + + + + + + + 新增 + 导出 + 批量删除 + + + + + + + + + + + {{ scope.row.mbtLine&&scope.row.mbtLine.Name }} + + + + + + + + + + + 编辑 + 删除 + + + + + + + + + + + + diff --git a/antis-ncc-admin/src/views/tbMyBoxCoupon/ExportBox.vue b/antis-ncc-admin/src/views/tbMyBoxCoupon/ExportBox.vue new file mode 100644 index 0000000..4fc5c07 --- /dev/null +++ b/antis-ncc-admin/src/views/tbMyBoxCoupon/ExportBox.vue @@ -0,0 +1,66 @@ + + + + + + 当前页面数据 + 全部页面数据 + + + + 全选 + + + {{item.label}} + + + + + + 取 消 + 导 出 + + + + + + \ No newline at end of file diff --git a/antis-ncc-admin/src/views/tbMyBoxCoupon/Form.vue b/antis-ncc-admin/src/views/tbMyBoxCoupon/Form.vue new file mode 100644 index 0000000..7530806 --- /dev/null +++ b/antis-ncc-admin/src/views/tbMyBoxCoupon/Form.vue @@ -0,0 +1,209 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 取 消 + 确 定 + + + + diff --git a/antis-ncc-admin/src/views/tbMyBoxCoupon/index.vue b/antis-ncc-admin/src/views/tbMyBoxCoupon/index.vue new file mode 100644 index 0000000..b486ebe --- /dev/null +++ b/antis-ncc-admin/src/views/tbMyBoxCoupon/index.vue @@ -0,0 +1,335 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 查询 + 重置 + 展开 + + 收起 + + + + + + + + 新增 + 导出 + 批量删除 + + + + + + + + + + + + + + {{scope.row.user&&scope.row.user.RealName}} + + + + + {{scope.row.giveUser&&scope.row.giveUser.RealName}} + + + + {{ scope.row.type | dynamicText(typeOptions) }} + + + {{ scope.row.order&&scope.row.order.OrderNumber}} + + + + + + + 编辑 + 删除 + + + + + + + + + + + + diff --git a/antis-ncc-admin/src/views/tbRecommend/ExportBox.vue b/antis-ncc-admin/src/views/tbRecommend/ExportBox.vue new file mode 100644 index 0000000..4fc5c07 --- /dev/null +++ b/antis-ncc-admin/src/views/tbRecommend/ExportBox.vue @@ -0,0 +1,66 @@ + + + + + + 当前页面数据 + 全部页面数据 + + + + 全选 + + + {{item.label}} + + + + + + 取 消 + 导 出 + + + + + + \ No newline at end of file diff --git a/antis-ncc-admin/src/views/tbRecommend/Form.vue b/antis-ncc-admin/src/views/tbRecommend/Form.vue new file mode 100644 index 0000000..4fbea1d --- /dev/null +++ b/antis-ncc-admin/src/views/tbRecommend/Form.vue @@ -0,0 +1,127 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + 取 消 + 确 定 + + + + diff --git a/antis-ncc-admin/src/views/tbRecommend/index.vue b/antis-ncc-admin/src/views/tbRecommend/index.vue new file mode 100644 index 0000000..51b9f7a --- /dev/null +++ b/antis-ncc-admin/src/views/tbRecommend/index.vue @@ -0,0 +1,186 @@ + + + + + + + + 查询 + 重置 + + + + + + + + 新增 + 批量删除 + + + + + + + + + + + + + + 编辑 + 删除 + + + + + + + + + + + \ No newline at end of file diff --git a/antis-ncc-admin/src/views/tbSettingPrice/ExportBox.vue b/antis-ncc-admin/src/views/tbSettingPrice/ExportBox.vue new file mode 100644 index 0000000..4fc5c07 --- /dev/null +++ b/antis-ncc-admin/src/views/tbSettingPrice/ExportBox.vue @@ -0,0 +1,66 @@ + + + + + + 当前页面数据 + 全部页面数据 + + + + 全选 + + + {{item.label}} + + + + + + 取 消 + 导 出 + + + + + + \ No newline at end of file diff --git a/antis-ncc-admin/src/views/tbSettingPrice/Form.vue b/antis-ncc-admin/src/views/tbSettingPrice/Form.vue new file mode 100644 index 0000000..52a44a5 --- /dev/null +++ b/antis-ncc-admin/src/views/tbSettingPrice/Form.vue @@ -0,0 +1,148 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 取 消 + 确 定 + + + + diff --git a/antis-ncc-admin/src/views/tbSettingPrice/index.vue b/antis-ncc-admin/src/views/tbSettingPrice/index.vue new file mode 100644 index 0000000..fc54c68 --- /dev/null +++ b/antis-ncc-admin/src/views/tbSettingPrice/index.vue @@ -0,0 +1,221 @@ + + + + + + + + + + + + + + + 查询 + 重置 + + + + + + + + 新增 + 导出 + 批量删除 + + + + + + + + + + + + {{ scope.row.type | dynamicText(typeOptions) }} + + + + + + 编辑 + 删除 + + + + + + + + + + + \ No newline at end of file diff --git a/antis-ncc-admin/src/views/tbTicketsOrder/ExportBox.vue b/antis-ncc-admin/src/views/tbTicketsOrder/ExportBox.vue new file mode 100644 index 0000000..4fc5c07 --- /dev/null +++ b/antis-ncc-admin/src/views/tbTicketsOrder/ExportBox.vue @@ -0,0 +1,66 @@ + + + + + + 当前页面数据 + 全部页面数据 + + + + 全选 + + + {{item.label}} + + + + + + 取 消 + 导 出 + + + + + + \ No newline at end of file diff --git a/antis-ncc-admin/src/views/tbTicketsOrder/Form.vue b/antis-ncc-admin/src/views/tbTicketsOrder/Form.vue new file mode 100644 index 0000000..554819c --- /dev/null +++ b/antis-ncc-admin/src/views/tbTicketsOrder/Form.vue @@ -0,0 +1,231 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 取 消 + 确 定 + + + + diff --git a/antis-ncc-admin/src/views/tbTicketsOrder/index.vue b/antis-ncc-admin/src/views/tbTicketsOrder/index.vue new file mode 100644 index 0000000..7e790d8 --- /dev/null +++ b/antis-ncc-admin/src/views/tbTicketsOrder/index.vue @@ -0,0 +1,290 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 查询 + 重置 + 展开 + 收起 + + + + + + + + 新增 + 导出 + 批量删除 + + + + + + + + + + + + {{scope.row.user&&scope.row.user.RealName}} + + + + + + + + + {{ scope.row.status | dynamicText(statusOptions) }} + + + + {{ scope.row.orderId | dynamicText(orderIdOptions) }} + + + + + + 编辑 + 删除 + + + + + + + + + + + \ No newline at end of file diff --git a/antis-ncc-admin/src/views/tbTravelSpot/ExportBox.vue b/antis-ncc-admin/src/views/tbTravelSpot/ExportBox.vue new file mode 100644 index 0000000..4fc5c07 --- /dev/null +++ b/antis-ncc-admin/src/views/tbTravelSpot/ExportBox.vue @@ -0,0 +1,66 @@ + + + + + + 当前页面数据 + 全部页面数据 + + + + 全选 + + + {{item.label}} + + + + + + 取 消 + 导 出 + + + + + + \ No newline at end of file diff --git a/antis-ncc-admin/src/views/tbTravelSpot/Form.vue b/antis-ncc-admin/src/views/tbTravelSpot/Form.vue new file mode 100644 index 0000000..aa7c66b --- /dev/null +++ b/antis-ncc-admin/src/views/tbTravelSpot/Form.vue @@ -0,0 +1,223 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 取 消 + 确 定 + + + + diff --git a/antis-ncc-admin/src/views/tbTravelSpot/index.vue b/antis-ncc-admin/src/views/tbTravelSpot/index.vue new file mode 100644 index 0000000..a29e62e --- /dev/null +++ b/antis-ncc-admin/src/views/tbTravelSpot/index.vue @@ -0,0 +1,222 @@ + + + + + + + + + + + + + + + + + + 查询 + 重置 + + + + + + + + 新增 + 导出 + 批量删除 + + + + + + + + + + + + + + + + 编辑 + 删除 + + + + + + + + + + + \ No newline at end of file diff --git a/antis-ncc-admin/src/views/tbUserAgreement/ExportBox.vue b/antis-ncc-admin/src/views/tbUserAgreement/ExportBox.vue new file mode 100644 index 0000000..4fc5c07 --- /dev/null +++ b/antis-ncc-admin/src/views/tbUserAgreement/ExportBox.vue @@ -0,0 +1,66 @@ + + + + + + 当前页面数据 + 全部页面数据 + + + + 全选 + + + {{item.label}} + + + + + + 取 消 + 导 出 + + + + + + \ No newline at end of file diff --git a/antis-ncc-admin/src/views/tbUserAgreement/Form.vue b/antis-ncc-admin/src/views/tbUserAgreement/Form.vue new file mode 100644 index 0000000..e88ed1e --- /dev/null +++ b/antis-ncc-admin/src/views/tbUserAgreement/Form.vue @@ -0,0 +1,127 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + 取 消 + 确 定 + + + + diff --git a/antis-ncc-admin/src/views/tbUserAgreement/index.vue b/antis-ncc-admin/src/views/tbUserAgreement/index.vue new file mode 100644 index 0000000..9e9d159 --- /dev/null +++ b/antis-ncc-admin/src/views/tbUserAgreement/index.vue @@ -0,0 +1,206 @@ + + + + + + + + 查询 + 重置 + + + + + + + + 新增 + 导出 + 批量删除 + + + + + + + + + + + + + + 编辑 + 删除 + + + + + + + + + + + \ No newline at end of file diff --git a/antis-ncc-admin/src/views/tbVideo/Form.vue b/antis-ncc-admin/src/views/tbVideo/Form.vue index 3fbf981..2f74def 100644 --- a/antis-ncc-admin/src/views/tbVideo/Form.vue +++ b/antis-ncc-admin/src/views/tbVideo/Form.vue @@ -75,7 +75,7 @@ this.$refs['elForm'].resetFields(); if (this.dataForm.id) { request({ - url: '/api/Education/TbVideo/' + this.dataForm.id, + url: '/api/Blind/TbVideo/' + this.dataForm.id, method: 'get' }).then(res =>{ this.dataForm = res.data; @@ -89,7 +89,7 @@ if (valid) { if (!this.dataForm.id) { request({ - url: `/api/Education/TbVideo`, + url: `/api/Blind/TbVideo`, method: 'post', data: this.dataForm, }).then((res) => { diff --git a/antis-ncc-admin/src/views/tbVideo/index.vue b/antis-ncc-admin/src/views/tbVideo/index.vue index 213451f..c249eb1 100644 --- a/antis-ncc-admin/src/views/tbVideo/index.vue +++ b/antis-ncc-admin/src/views/tbVideo/index.vue @@ -91,7 +91,7 @@ } } request({ - url: `/api/Education/TbVideo`, + url: `/api/Blind/TbVideo`, method: 'GET', data: query }).then(res => { @@ -105,7 +105,7 @@ type: 'warning' }).then(() => { request({ - url: `/api/Education/TbVideo/${id}`, + url: `/api/Blind/TbVideo/${id}`, method: 'DELETE' }).then(res => { this.$message({ @@ -137,7 +137,7 @@ type: 'warning' }).then(() => { request({ - url: `/api/Education/TbVideo/batchRemove`, + url: `/api/Blind/TbVideo/batchRemove`, method: 'POST', data: ids , }).then(res => { @@ -166,7 +166,7 @@ download(data) { let query = { ...data, ...this.listQuery, ...this.query } request({ - url: `/api/Education/TbVideo/Actions/Export`, + url: `/api/Blind/TbVideo/Actions/Export`, method: 'GET', data: query }).then(res => { diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路/Dto/TbMbtLineCrInput.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路/Dto/TbMbtLineCrInput.cs new file mode 100644 index 0000000..e5417e9 --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路/Dto/TbMbtLineCrInput.cs @@ -0,0 +1,43 @@ +using System; +using System.Collections.Generic; +using NCC.Common.Model; + +namespace NCC.Blind.Entitys.Dto.TbMbtLine +{ + /// + /// MBT人格线路修改输入参数 + /// + public class TbMbtLineCrInput + { + /// + /// 标题 + /// + public string name { get; set; } + + /// + /// MBT人格ID + /// + public string mbtId { get; set; } + + /// + /// 线路概况 + /// + public string remark { get; set; } + + /// + /// 线路图片 + /// + public List banner { get; set; } + + /// + /// 创建时间 + /// + public DateTime? creatorTime { get; set; } + + /// + /// 修改时间 + /// + public DateTime? lastModifyTime { get; set; } + + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路/Dto/TbMbtLineInfoOutput.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路/Dto/TbMbtLineInfoOutput.cs new file mode 100644 index 0000000..b902462 --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路/Dto/TbMbtLineInfoOutput.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using NCC.Common.Model; + +namespace NCC.Blind.Entitys.Dto.TbMbtLine +{ + /// + /// MBT人格线路输出参数 + /// + public class TbMbtLineInfoOutput + { + /// + /// 主键 + /// + public string id { get; set; } + + /// + /// 标题 + /// + public string name { get; set; } + + /// + /// MBT人格ID + /// + public string mbtId { get; set; } + + /// + /// 线路概况 + /// + public string remark { get; set; } + + /// + /// 线路图片 + /// + public List banner { get; set; } + + /// + /// 创建时间 + /// + public DateTime? creatorTime { get; set; } + + /// + /// 修改时间 + /// + public DateTime? lastModifyTime { get; set; } + + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路/Dto/TbMbtLineListOutput.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路/Dto/TbMbtLineListOutput.cs new file mode 100644 index 0000000..f30b512 --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路/Dto/TbMbtLineListOutput.cs @@ -0,0 +1,68 @@ +using Aspose.Words.Lists; +using NCC.Common.Model; +using NCC.Education.Entitys; +using Newtonsoft.Json; +using System; +using System.Collections.Generic; + +namespace NCC.Blind.Entitys.Dto.TbMbtLine +{ + /// + /// MBT人格线路输入参数 + /// + public class TbMbtLineListOutput + { + /// + /// 主键 + /// + public string id { get; set; } + + /// + /// 标题 + /// + public string name { get; set; } + + /// + /// MBT人格ID + /// + public string mbtId { get; set; } + + /// + /// MBT人格信息 + /// + public TbMbtCharacterEntity mbt { get; set; } + + /// + /// 线路概况 + /// + public string remark { get; set; } + + /// + /// 创建时间 + /// + public DateTime? creatorTime { get; set; } + + /// + /// 修改时间 + /// + public DateTime? lastModifyTime { get; set; } + /// + /// 图片信息 + /// + public string banner { get; set; } + /// + /// 图片信息 + /// + public List Banner { get + { + try + { + return JsonConvert.DeserializeObject>(banner); + }catch(Exception ex) + { + return new List(); + } + } } + + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路/Dto/TbMbtLineListQueryInput.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路/Dto/TbMbtLineListQueryInput.cs new file mode 100644 index 0000000..9e32e1e --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路/Dto/TbMbtLineListQueryInput.cs @@ -0,0 +1,38 @@ +using NCC.Common.Filter; +using System.Collections.Generic; + +namespace NCC.Blind.Entitys.Dto.TbMbtLine +{ + /// + /// MBT人格线路列表查询输入 + /// + public class TbMbtLineListQueryInput : PageInputBase + { + /// + /// 选择导出数据key + /// + public string selectKey { get; set; } + + /// + /// + /// + public int dataType { get; set; } + + + /// + /// 标题 + /// + public string name { get; set; } + + /// + /// MBT人格ID + /// + public string mbtId { get; set; } + + /// + /// 线路概况 + /// + public string remark { get; set; } + + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路/Dto/TbMbtLineUpInput.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路/Dto/TbMbtLineUpInput.cs new file mode 100644 index 0000000..50e367a --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路/Dto/TbMbtLineUpInput.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; + +namespace NCC.Blind.Entitys.Dto.TbMbtLine +{ + /// + /// MBT人格线路更新输入参数 + /// + public class TbMbtLineUpInput : TbMbtLineCrInput + { + /// + /// 主键 + /// + public string id { get; set; } + + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路/Entity/TbMbtLineEntity.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路/Entity/TbMbtLineEntity.cs new file mode 100644 index 0000000..d453de1 --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路/Entity/TbMbtLineEntity.cs @@ -0,0 +1,57 @@ +using NCC.Common.Const; +using SqlSugar; +using System; + +namespace NCC.Blind.Entitys +{ + /// + /// MBT人格线路 + /// + [SugarTable("tb_MbtLine")] + [Tenant(ClaimConst.TENANT_ID)] + public class TbMbtLineEntity + { + /// + /// 主键 + /// + [SugarColumn(ColumnName = "F_Id", IsPrimaryKey = true)] + public string Id { get; set; } + + /// + /// 标题 + /// + [SugarColumn(ColumnName = "F_Name")] + public string Name { get; set; } + + /// + /// MBT人格ID + /// + [SugarColumn(ColumnName = "F_MbtId")] + public string MbtId { get; set; } + + /// + /// 线路概况 + /// + [SugarColumn(ColumnName = "F_Remark")] + public string Remark { get; set; } + + /// + /// 线路图片 + /// + [SugarColumn(ColumnName = "F_Banner")] + public string Banner { get; set; } + + /// + /// 创建时间 + /// + [SugarColumn(ColumnName = "F_CreatorTime")] + public DateTime? CreatorTime { get; set; } + + /// + /// 修改时间 + /// + [SugarColumn(ColumnName = "F_LastModifyTime")] + public DateTime? LastModifyTime { get; set; } + + } +} \ No newline at end of file diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路/Mapper/TbMbtLineMapper.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路/Mapper/TbMbtLineMapper.cs new file mode 100644 index 0000000..f6f1bea --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路/Mapper/TbMbtLineMapper.cs @@ -0,0 +1,21 @@ +using NCC.Common.Helper; +using NCC.Common.Model; +using NCC.Blind.Entitys.Dto.TbMbtLine; +using Mapster; +using System.Collections.Generic; + +namespace NCC.Blind.Entitys.Mapper.TbMbtLine +{ + public class Mapper : IRegister + { + public void Register(TypeAdapterConfig config) + { + config.ForType() + .Map(dest => dest.Banner, src => src.banner.ToJson()) + ; + config.ForType() + .Map(dest => dest.banner, src => src.Banner.ToObject>()) + ; + } + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路节点/Dto/TbMbtLineNodeCrInput.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路节点/Dto/TbMbtLineNodeCrInput.cs new file mode 100644 index 0000000..0e69023 --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路节点/Dto/TbMbtLineNodeCrInput.cs @@ -0,0 +1,52 @@ +using System; +using System.Collections.Generic; +using NCC.Common.Model; + +namespace NCC.Blind.Entitys.Dto.TbMbtLineNode +{ + /// + /// MBT人格线路节点修改输入参数 + /// + public class TbMbtLineNodeCrInput + { + /// + /// MBT人格线路ID + /// + public string mbtLineId { get; set; } + + /// + /// 节点标题 + /// + public string title { get; set; } + + /// + /// 节点简介 + /// + public string description { get; set; } + + /// + /// 节点图片 + /// + public List banner { get; set; } + + /// + /// 节点注意事项 + /// + public string remark { get; set; } + + /// + /// 创建时间 + /// + public DateTime? creatorTime { get; set; } + + /// + /// 修改时间 + /// + public DateTime? lastModifyTime { get; set; } + /// + /// 排序 + /// + public int? sorts { get; set; } + + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路节点/Dto/TbMbtLineNodeInfoOutput.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路节点/Dto/TbMbtLineNodeInfoOutput.cs new file mode 100644 index 0000000..59d96e5 --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路节点/Dto/TbMbtLineNodeInfoOutput.cs @@ -0,0 +1,57 @@ +using System; +using System.Collections.Generic; +using NCC.Common.Model; + +namespace NCC.Blind.Entitys.Dto.TbMbtLineNode +{ + /// + /// MBT人格线路节点输出参数 + /// + public class TbMbtLineNodeInfoOutput + { + /// + /// 主键 + /// + public string id { get; set; } + + /// + /// MBT人格线路ID + /// + public string mbtLineId { get; set; } + + /// + /// 节点标题 + /// + public string title { get; set; } + + /// + /// 节点简介 + /// + public string description { get; set; } + + /// + /// 节点图片 + /// + public List banner { get; set; } + + /// + /// 节点注意事项 + /// + public string remark { get; set; } + + /// + /// 创建时间 + /// + public DateTime? creatorTime { get; set; } + + /// + /// 修改时间 + /// + public DateTime? lastModifyTime { get; set; } + /// + /// 排序 + /// + public int? sorts { get; set; } + + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路节点/Dto/TbMbtLineNodeListOutput.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路节点/Dto/TbMbtLineNodeListOutput.cs new file mode 100644 index 0000000..3e14fd5 --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路节点/Dto/TbMbtLineNodeListOutput.cs @@ -0,0 +1,76 @@ +using Aspose.Words.Lists; +using NCC.Common.Model; +using Newtonsoft.Json; +using System; +using System.Collections.Generic; + +namespace NCC.Blind.Entitys.Dto.TbMbtLineNode +{ + /// + /// MBT人格线路节点输入参数 + /// + public class TbMbtLineNodeListOutput + { + /// + /// 主键 + /// + public string id { get; set; } + + /// + /// MBT人格线路ID + /// + public string mbtLineId { get; set; } + /// + /// MBT人格线路信息 + /// + public TbMbtLineEntity mbtLine { get; set; } + + /// + /// 节点标题 + /// + public string title { get; set; } + + /// + /// 节点简介 + /// + public string description { get; set; } + + /// + /// 节点注意事项 + /// + public string remark { get; set; } + + /// + /// 创建时间 + /// + public DateTime? creatorTime { get; set; } + + /// + /// 修改时间 + /// + public DateTime? lastModifyTime { get; set; } + /// + /// 排序 + /// + public int? sorts { get; set; } + + /// + /// 图片信息 + /// + public string banner { get; set; } + /// + /// 图片信息 + /// + public List Banner { get + { + try + { + return JsonConvert.DeserializeObject>(banner); + }catch(Exception ex) + { + return new List(); + } + } } + + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路节点/Dto/TbMbtLineNodeListQueryInput.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路节点/Dto/TbMbtLineNodeListQueryInput.cs new file mode 100644 index 0000000..6f5ea1a --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路节点/Dto/TbMbtLineNodeListQueryInput.cs @@ -0,0 +1,43 @@ +using NCC.Common.Filter; +using System.Collections.Generic; + +namespace NCC.Blind.Entitys.Dto.TbMbtLineNode +{ + /// + /// MBT人格线路节点列表查询输入 + /// + public class TbMbtLineNodeListQueryInput : PageInputBase + { + /// + /// 选择导出数据key + /// + public string selectKey { get; set; } + + /// + /// + /// + public int dataType { get; set; } + + + /// + /// MBT人格线路ID + /// + public string mbtLineId { get; set; } + + /// + /// 节点标题 + /// + public string title { get; set; } + + /// + /// 节点简介 + /// + public string description { get; set; } + + /// + /// 节点注意事项 + /// + public string remark { get; set; } + + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路节点/Dto/TbMbtLineNodeUpInput.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路节点/Dto/TbMbtLineNodeUpInput.cs new file mode 100644 index 0000000..198a914 --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路节点/Dto/TbMbtLineNodeUpInput.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; + +namespace NCC.Blind.Entitys.Dto.TbMbtLineNode +{ + /// + /// MBT人格线路节点更新输入参数 + /// + public class TbMbtLineNodeUpInput : TbMbtLineNodeCrInput + { + /// + /// 主键 + /// + public string id { get; set; } + + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路节点/Entity/TbMbtLineNodeEntity.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路节点/Entity/TbMbtLineNodeEntity.cs new file mode 100644 index 0000000..91a1fa1 --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路节点/Entity/TbMbtLineNodeEntity.cs @@ -0,0 +1,69 @@ +using NCC.Common.Const; +using SqlSugar; +using System; + +namespace NCC.Blind.Entitys +{ + /// + /// MBT人格线路节点 + /// + [SugarTable("tb_MbtLineNode")] + [Tenant(ClaimConst.TENANT_ID)] + public class TbMbtLineNodeEntity + { + /// + /// 主键 + /// + [SugarColumn(ColumnName = "F_Id", IsPrimaryKey = true)] + public string Id { get; set; } + + /// + /// MBT人格线路ID + /// + [SugarColumn(ColumnName = "F_MbtLineId")] + public string MbtLineId { get; set; } + + /// + /// 节点标题 + /// + [SugarColumn(ColumnName = "F_Title")] + public string Title { get; set; } + + /// + /// 节点简介 + /// + [SugarColumn(ColumnName = "F_Description")] + public string Description { get; set; } + + /// + /// 节点图片 + /// + [SugarColumn(ColumnName = "F_Banner")] + public string Banner { get; set; } + + /// + /// 节点注意事项 + /// + [SugarColumn(ColumnName = "F_Remark")] + public string Remark { get; set; } + + /// + /// 创建时间 + /// + [SugarColumn(ColumnName = "F_CreatorTime")] + public DateTime? CreatorTime { get; set; } + + /// + /// 修改时间 + /// + [SugarColumn(ColumnName = "F_LastModifyTime")] + public DateTime? LastModifyTime { get; set; } + + /// + /// 排序 + /// + [SugarColumn(ColumnName = "F_Sorts")] + public int? Sorts { get; set; } + + } +} \ No newline at end of file diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路节点/Mapper/TbMbtLineNodeMapper.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路节点/Mapper/TbMbtLineNodeMapper.cs new file mode 100644 index 0000000..d30498f --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/MBT人格线路节点/Mapper/TbMbtLineNodeMapper.cs @@ -0,0 +1,21 @@ +using NCC.Common.Helper; +using NCC.Common.Model; +using NCC.Blind.Entitys.Dto.TbMbtLineNode; +using Mapster; +using System.Collections.Generic; + +namespace NCC.Blind.Entitys.Mapper.TbMbtLineNode +{ + public class Mapper : IRegister + { + public void Register(TypeAdapterConfig config) + { + config.ForType() + .Map(dest => dest.Banner, src => src.banner.ToJson()) + ; + config.ForType() + .Map(dest => dest.banner, src => src.Banner.ToObject>()) + ; + } + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/NCC.BlindBox.Entitys.csproj b/antis-ncc-net-core/NCC.BlindBox.Entitys/NCC.BlindBox.Entitys.csproj index d1d4086..ba068fe 100644 --- a/antis-ncc-net-core/NCC.BlindBox.Entitys/NCC.BlindBox.Entitys.csproj +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/NCC.BlindBox.Entitys.csproj @@ -1,12 +1,14 @@ - + net5.0 + True + diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/价格设定/Dto/TbSettingPriceCrInput.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/价格设定/Dto/TbSettingPriceCrInput.cs new file mode 100644 index 0000000..c1c3f78 --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/价格设定/Dto/TbSettingPriceCrInput.cs @@ -0,0 +1,32 @@ +using System; +using System.Collections.Generic; + +namespace NCC.Blind.Entitys.Dto.TbSettingPrice +{ + /// + /// 价格设定修改输入参数 + /// + public class TbSettingPriceCrInput + { + /// + /// 价格 + /// + public decimal price { get; set; } + + /// + /// 类型 1--盲盒价格 2--门票价格 + /// + public string type { get; set; } + + /// + /// 创建时间 + /// + public DateTime? creatorTime { get; set; } + + /// + /// 修改时间 + /// + public DateTime? lastModifyTime { get; set; } + + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/价格设定/Dto/TbSettingPriceInfoOutput.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/价格设定/Dto/TbSettingPriceInfoOutput.cs new file mode 100644 index 0000000..b33780b --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/价格设定/Dto/TbSettingPriceInfoOutput.cs @@ -0,0 +1,37 @@ +using System; +using System.Collections.Generic; + +namespace NCC.Blind.Entitys.Dto.TbSettingPrice +{ + /// + /// 价格设定输出参数 + /// + public class TbSettingPriceInfoOutput + { + /// + /// 主键 + /// + public string id { get; set; } + + /// + /// 价格 + /// + public decimal price { get; set; } + + /// + /// 类型 1--盲盒价格 2--门票价格 + /// + public string type { get; set; } + + /// + /// 创建时间 + /// + public DateTime? creatorTime { get; set; } + + /// + /// 修改时间 + /// + public DateTime? lastModifyTime { get; set; } + + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/价格设定/Dto/TbSettingPriceListOutput.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/价格设定/Dto/TbSettingPriceListOutput.cs new file mode 100644 index 0000000..b862ef9 --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/价格设定/Dto/TbSettingPriceListOutput.cs @@ -0,0 +1,36 @@ +using System; + +namespace NCC.Blind.Entitys.Dto.TbSettingPrice +{ + /// + /// 价格设定输入参数 + /// + public class TbSettingPriceListOutput + { + /// + /// 主键 + /// + public string id { get; set; } + + /// + /// 价格 + /// + public decimal price { get; set; } + + /// + /// 类型 1--盲盒价格 2--门票价格 + /// + public string type { get; set; } + + /// + /// 创建时间 + /// + public DateTime? creatorTime { get; set; } + + /// + /// 修改时间 + /// + public DateTime? lastModifyTime { get; set; } + + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/价格设定/Dto/TbSettingPriceListQueryInput.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/价格设定/Dto/TbSettingPriceListQueryInput.cs new file mode 100644 index 0000000..cc283fe --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/价格设定/Dto/TbSettingPriceListQueryInput.cs @@ -0,0 +1,28 @@ +using NCC.Common.Filter; +using System.Collections.Generic; + +namespace NCC.Blind.Entitys.Dto.TbSettingPrice +{ + /// + /// 价格设定列表查询输入 + /// + public class TbSettingPriceListQueryInput : PageInputBase + { + /// + /// 选择导出数据key + /// + public string selectKey { get; set; } + + /// + /// + /// + public int dataType { get; set; } + + + /// + /// 类型 1--盲盒价格 2--门票价格 + /// + public string type { get; set; } + + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/价格设定/Dto/TbSettingPriceUpInput.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/价格设定/Dto/TbSettingPriceUpInput.cs new file mode 100644 index 0000000..a65264c --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/价格设定/Dto/TbSettingPriceUpInput.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; + +namespace NCC.Blind.Entitys.Dto.TbSettingPrice +{ + /// + /// 价格设定更新输入参数 + /// + public class TbSettingPriceUpInput : TbSettingPriceCrInput + { + /// + /// 主键 + /// + public string id { get; set; } + + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/价格设定/Entity/TbSettingPriceEntity.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/价格设定/Entity/TbSettingPriceEntity.cs new file mode 100644 index 0000000..de964f8 --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/价格设定/Entity/TbSettingPriceEntity.cs @@ -0,0 +1,45 @@ +using NCC.Common.Const; +using SqlSugar; +using System; + +namespace NCC.Blind.Entitys +{ + /// + /// 价格设定 + /// + [SugarTable("tb_SettingPrice")] + [Tenant(ClaimConst.TENANT_ID)] + public class TbSettingPriceEntity + { + /// + /// 主键 + /// + [SugarColumn(ColumnName = "F_Id", IsPrimaryKey = true)] + public string Id { get; set; } + + /// + /// 价格 + /// + [SugarColumn(ColumnName = "F_Price")] + public decimal Price { get; set; } + + /// + /// 类型 1--盲盒价格 2--门票价格 + /// + [SugarColumn(ColumnName = "F_Type")] + public string Type { get; set; } + + /// + /// 创建时间 + /// + [SugarColumn(ColumnName = "F_CreatorTime")] + public DateTime? CreatorTime { get; set; } + + /// + /// 修改时间 + /// + [SugarColumn(ColumnName = "F_LastModifyTime")] + public DateTime? LastModifyTime { get; set; } + + } +} \ No newline at end of file diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/价格设定/Mapper/TbSettingPriceMapper.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/价格设定/Mapper/TbSettingPriceMapper.cs new file mode 100644 index 0000000..0e9111a --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/价格设定/Mapper/TbSettingPriceMapper.cs @@ -0,0 +1,14 @@ +using NCC.Common.Helper; +using NCC.Blind.Entitys.Dto.TbSettingPrice; +using Mapster; +using System.Collections.Generic; + +namespace NCC.Blind.Entitys.Mapper.TbSettingPrice +{ + public class Mapper : IRegister + { + public void Register(TypeAdapterConfig config) + { + } + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路/Dto/TbAreaLineCrInput.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路/Dto/TbAreaLineCrInput.cs new file mode 100644 index 0000000..89eb3a7 --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路/Dto/TbAreaLineCrInput.cs @@ -0,0 +1,43 @@ +using System; +using System.Collections.Generic; +using NCC.Common.Model; + +namespace NCC.Blind.Entitys.Dto.TbAreaLine +{ + /// + /// 地域线路修改输入参数 + /// + public class TbAreaLineCrInput + { + /// + /// 线路标题 + /// + public string title { get; set; } + + /// + /// 地域ID + /// + public string areaId { get; set; } + + /// + /// 线路概况 + /// + public string remark { get; set; } + + /// + /// 创建时间 + /// + public DateTime? creatorTime { get; set; } + + /// + /// 修改时间 + /// + public DateTime? lastModifyTime { get; set; } + + /// + /// 线路图片 + /// + public List banner { get; set; } + + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路/Dto/TbAreaLineInfoOutput.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路/Dto/TbAreaLineInfoOutput.cs new file mode 100644 index 0000000..3f7704e --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路/Dto/TbAreaLineInfoOutput.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using NCC.Common.Model; + +namespace NCC.Blind.Entitys.Dto.TbAreaLine +{ + /// + /// 地域线路输出参数 + /// + public class TbAreaLineInfoOutput + { + /// + /// 主键 + /// + public string id { get; set; } + + /// + /// 线路标题 + /// + public string title { get; set; } + + /// + /// 地域ID + /// + public string areaId { get; set; } + + /// + /// 线路概况 + /// + public string remark { get; set; } + + /// + /// 创建时间 + /// + public DateTime? creatorTime { get; set; } + + /// + /// 修改时间 + /// + public DateTime? lastModifyTime { get; set; } + + /// + /// 线路图片 + /// + public List banner { get; set; } + + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路/Dto/TbAreaLineListOutput.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路/Dto/TbAreaLineListOutput.cs new file mode 100644 index 0000000..701e87a --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路/Dto/TbAreaLineListOutput.cs @@ -0,0 +1,70 @@ +using Aspose.Words.Lists; +using NCC.Common.Model; +using NCC.Education.Entitys; +using Newtonsoft.Json; +using System; +using System.Collections.Generic; + +namespace NCC.Blind.Entitys.Dto.TbAreaLine +{ + /// + /// 地域线路输入参数 + /// + public class TbAreaLineListOutput + { + /// + /// 主键 + /// + public string id { get; set; } + + /// + /// 线路标题 + /// + public string title { get; set; } + + /// + /// 地域ID + /// + public string areaId { get; set; } + + /// + /// 地域信息 + /// + public TbAreaEntity area { get; set; } + + /// + /// 线路概况 + /// + public string remark { get; set; } + + /// + /// 创建时间 + /// + public DateTime? creatorTime { get; set; } + + /// + /// 修改时间 + /// + public DateTime? lastModifyTime { get; set; } + + /// + /// 图片信息 + /// + public string banner { get; set; } + + /// + /// 图片信息 + /// + public List Banner { get + { + try + { + return JsonConvert.DeserializeObject>(banner); + }catch(Exception ex) + { + return new List(); + } + } } + + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路/Dto/TbAreaLineListQueryInput.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路/Dto/TbAreaLineListQueryInput.cs new file mode 100644 index 0000000..cec7ac5 --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路/Dto/TbAreaLineListQueryInput.cs @@ -0,0 +1,38 @@ +using NCC.Common.Filter; +using System.Collections.Generic; + +namespace NCC.Blind.Entitys.Dto.TbAreaLine +{ + /// + /// 地域线路列表查询输入 + /// + public class TbAreaLineListQueryInput : PageInputBase + { + /// + /// 选择导出数据key + /// + public string selectKey { get; set; } + + /// + /// + /// + public int dataType { get; set; } + + + /// + /// 线路标题 + /// + public string title { get; set; } + + /// + /// 地域ID + /// + public string areaId { get; set; } + + /// + /// 线路概况 + /// + public string remark { get; set; } + + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路/Dto/TbAreaLineUpInput.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路/Dto/TbAreaLineUpInput.cs new file mode 100644 index 0000000..4c6794e --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路/Dto/TbAreaLineUpInput.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; + +namespace NCC.Blind.Entitys.Dto.TbAreaLine +{ + /// + /// 地域线路更新输入参数 + /// + public class TbAreaLineUpInput : TbAreaLineCrInput + { + /// + /// 主键 + /// + public string id { get; set; } + + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路/Entity/TbAreaLineEntity.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路/Entity/TbAreaLineEntity.cs new file mode 100644 index 0000000..bbdc7e9 --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路/Entity/TbAreaLineEntity.cs @@ -0,0 +1,57 @@ +using NCC.Common.Const; +using SqlSugar; +using System; + +namespace NCC.Blind.Entitys +{ + /// + /// 地域线路 + /// + [SugarTable("tb_AreaLine")] + [Tenant(ClaimConst.TENANT_ID)] + public class TbAreaLineEntity + { + /// + /// 主键 + /// + [SugarColumn(ColumnName = "F_Id", IsPrimaryKey = true)] + public string Id { get; set; } + + /// + /// 线路标题 + /// + [SugarColumn(ColumnName = "F_Title")] + public string Title { get; set; } + + /// + /// 地域ID + /// + [SugarColumn(ColumnName = "F_AreaId")] + public string AreaId { get; set; } + + /// + /// 线路概况 + /// + [SugarColumn(ColumnName = "F_Remark")] + public string Remark { get; set; } + + /// + /// 创建时间 + /// + [SugarColumn(ColumnName = "F_CreatorTime")] + public DateTime? CreatorTime { get; set; } + + /// + /// 修改时间 + /// + [SugarColumn(ColumnName = "F_LastModifyTime")] + public DateTime? LastModifyTime { get; set; } + + /// + /// 线路图片 + /// + [SugarColumn(ColumnName = "F_Banner")] + public string Banner { get; set; } + + } +} \ No newline at end of file diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路/Mapper/TbAreaLineMapper.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路/Mapper/TbAreaLineMapper.cs new file mode 100644 index 0000000..278e650 --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路/Mapper/TbAreaLineMapper.cs @@ -0,0 +1,21 @@ +using NCC.Common.Helper; +using NCC.Common.Model; +using NCC.Blind.Entitys.Dto.TbAreaLine; +using Mapster; +using System.Collections.Generic; + +namespace NCC.Blind.Entitys.Mapper.TbAreaLine +{ + public class Mapper : IRegister + { + public void Register(TypeAdapterConfig config) + { + config.ForType() + .Map(dest => dest.Banner, src => src.banner.ToJson()) + ; + config.ForType() + .Map(dest => dest.banner, src => src.Banner.ToObject>()) + ; + } + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路节点/Dto/TbAreaLineNodeCrInput.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路节点/Dto/TbAreaLineNodeCrInput.cs new file mode 100644 index 0000000..d3bc69f --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路节点/Dto/TbAreaLineNodeCrInput.cs @@ -0,0 +1,53 @@ +using System; +using System.Collections.Generic; +using NCC.Common.Model; + +namespace NCC.Blind.Entitys.Dto.TbAreaLineNode +{ + /// + /// 地域线路节点修改输入参数 + /// + public class TbAreaLineNodeCrInput + { + /// + /// 地域线路ID + /// + public string areaLineId { get; set; } + + /// + /// 节点标题 + /// + public string title { get; set; } + + /// + /// 节点简介 + /// + public string description { get; set; } + + /// + /// 节点图片 + /// + public List banner { get; set; } + + /// + /// 节点注意事项 + /// + public string remark { get; set; } + + /// + /// 创建时间 + /// + public DateTime? creatorTime { get; set; } + + /// + /// 修改时间 + /// + public DateTime? lastModifyTime { get; set; } + + /// + /// 排序 + /// + public int? sorts { get; set; } + + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路节点/Dto/TbAreaLineNodeInfoOutput.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路节点/Dto/TbAreaLineNodeInfoOutput.cs new file mode 100644 index 0000000..2ceebdd --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路节点/Dto/TbAreaLineNodeInfoOutput.cs @@ -0,0 +1,63 @@ +using System; +using System.Collections.Generic; +using NCC.Common.Model; + +namespace NCC.Blind.Entitys.Dto.TbAreaLineNode +{ + /// + /// 地域线路节点输出参数 + /// + public class TbAreaLineNodeInfoOutput + { + /// + /// 主键 + /// + public string id { get; set; } + + /// + /// 地域线路ID + /// + public string areaLineId { get; set; } + + /// + /// 节点标题 + /// + public string title { get; set; } + + /// + /// 节点简介 + /// + public string description { get; set; } + + /// + /// 节点图片 + /// + public List banner { get; set; } + + /// + /// 节点注意事项 + /// + public string remark { get; set; } + + /// + /// 创建时间 + /// + public DateTime? creatorTime { get; set; } + + /// + /// 修改时间 + /// + public DateTime? lastModifyTime { get; set; } + + /// + /// 排序 + /// + public int? sorts { get; set; } + + /// + /// 是否填写了个人信息 1--未填写 2--已填写 + /// + public string isAppend { get; set; } + + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路节点/Dto/TbAreaLineNodeListOutput.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路节点/Dto/TbAreaLineNodeListOutput.cs new file mode 100644 index 0000000..c099cb4 --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路节点/Dto/TbAreaLineNodeListOutput.cs @@ -0,0 +1,79 @@ +using Aspose.Words.Lists; +using NCC.Common.Model; +using Newtonsoft.Json; +using System; +using System.Collections.Generic; + +namespace NCC.Blind.Entitys.Dto.TbAreaLineNode +{ + /// + /// 地域线路节点输入参数 + /// + public class TbAreaLineNodeListOutput + { + /// + /// 主键 + /// + public string id { get; set; } + + /// + /// 地域线路ID + /// + public string areaLineId { get; set; } + /// + /// 地域线路信息 + /// + public TbAreaLineEntity areaLine { get; set; } + + /// + /// 节点标题 + /// + public string title { get; set; } + + /// + /// 节点简介 + /// + public string description { get; set; } + + /// + /// 节点注意事项 + /// + public string remark { get; set; } + + /// + /// 创建时间 + /// + public DateTime? creatorTime { get; set; } + + /// + /// 修改时间 + /// + public DateTime? lastModifyTime { get; set; } + + /// + /// 图片信息 + /// + public string banner { get; set; } + + /// + /// 图片信息 + /// + public List Banner { get + { + try + { + return JsonConvert.DeserializeObject>(banner); + }catch(Exception ex) + { + return new List(); + } + } } + + /// + /// 排序 + /// + public int? sorts { get; set; } + + + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路节点/Dto/TbAreaLineNodeListQueryInput.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路节点/Dto/TbAreaLineNodeListQueryInput.cs new file mode 100644 index 0000000..0282cdc --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路节点/Dto/TbAreaLineNodeListQueryInput.cs @@ -0,0 +1,43 @@ +using NCC.Common.Filter; +using System.Collections.Generic; + +namespace NCC.Blind.Entitys.Dto.TbAreaLineNode +{ + /// + /// 地域线路节点列表查询输入 + /// + public class TbAreaLineNodeListQueryInput : PageInputBase + { + /// + /// 选择导出数据key + /// + public string selectKey { get; set; } + + /// + /// + /// + public int dataType { get; set; } + + + /// + /// 地域线路ID + /// + public string areaLineId { get; set; } + + /// + /// 节点标题 + /// + public string title { get; set; } + + /// + /// 节点简介 + /// + public string description { get; set; } + + /// + /// 节点注意事项 + /// + public string remark { get; set; } + + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路节点/Dto/TbAreaLineNodeUpInput.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路节点/Dto/TbAreaLineNodeUpInput.cs new file mode 100644 index 0000000..8006903 --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路节点/Dto/TbAreaLineNodeUpInput.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; + +namespace NCC.Blind.Entitys.Dto.TbAreaLineNode +{ + /// + /// 地域线路节点更新输入参数 + /// + public class TbAreaLineNodeUpInput : TbAreaLineNodeCrInput + { + /// + /// 主键 + /// + public string id { get; set; } + + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路节点/Entity/TbAreaLineNodeEntity.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路节点/Entity/TbAreaLineNodeEntity.cs new file mode 100644 index 0000000..efac86e --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路节点/Entity/TbAreaLineNodeEntity.cs @@ -0,0 +1,70 @@ +using NCC.Common.Const; +using SqlSugar; +using System; + +namespace NCC.Blind.Entitys +{ + /// + /// 地域线路节点 + /// + [SugarTable("tb_AreaLineNode")] + [Tenant(ClaimConst.TENANT_ID)] + public class TbAreaLineNodeEntity + { + /// + /// 主键 + /// + [SugarColumn(ColumnName = "F_Id", IsPrimaryKey = true)] + public string Id { get; set; } + + /// + /// 地域线路ID + /// + [SugarColumn(ColumnName = "F_AreaLineId")] + public string AreaLineId { get; set; } + + /// + /// 节点标题 + /// + [SugarColumn(ColumnName = "F_Title")] + public string Title { get; set; } + + /// + /// 节点简介 + /// + [SugarColumn(ColumnName = "F_Description")] + public string Description { get; set; } + + /// + /// 节点图片 + /// + [SugarColumn(ColumnName = "F_Banner")] + public string Banner { get; set; } + + /// + /// 节点注意事项 + /// + [SugarColumn(ColumnName = "F_Remark")] + public string Remark { get; set; } + + /// + /// 创建时间 + /// + [SugarColumn(ColumnName = "F_CreatorTime")] + public DateTime? CreatorTime { get; set; } + + /// + /// 修改时间 + /// + [SugarColumn(ColumnName = "F_LastModifyTime")] + public DateTime? LastModifyTime { get; set; } + + /// + /// 排序 + /// + [SugarColumn(ColumnName = "F_Sorts")] + public int? Sorts { get; set; } + + + } +} \ No newline at end of file diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路节点/Mapper/TbAreaLineNodeMapper.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路节点/Mapper/TbAreaLineNodeMapper.cs new file mode 100644 index 0000000..9e16a15 --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/地域线路节点/Mapper/TbAreaLineNodeMapper.cs @@ -0,0 +1,21 @@ +using NCC.Common.Helper; +using NCC.Common.Model; +using NCC.Blind.Entitys.Dto.TbAreaLineNode; +using Mapster; +using System.Collections.Generic; + +namespace NCC.Blind.Entitys.Mapper.TbAreaLineNode +{ + public class Mapper : IRegister + { + public void Register(TypeAdapterConfig config) + { + config.ForType() + .Map(dest => dest.Banner, src => src.banner.ToJson()) + ; + config.ForType() + .Map(dest => dest.banner, src => src.Banner.ToObject>()) + ; + } + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/抽奖记录/Dto/TbBoxLogCrInput.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/抽奖记录/Dto/TbBoxLogCrInput.cs new file mode 100644 index 0000000..187516c --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/抽奖记录/Dto/TbBoxLogCrInput.cs @@ -0,0 +1,57 @@ +using System; +using System.Collections.Generic; + +namespace NCC.Blind.Entitys.Dto.TbBoxLog +{ + /// + /// 抽奖记录修改输入参数 + /// + public class TbBoxLogCrInput + { + /// + /// 用户ID + /// + public string userId { get; set; } + + /// + /// 盲盒订单ID + /// + public string boxOrderId { get; set; } + + /// + /// 路线 1--地域路线 2--人格路线 + /// + public string type { get; set; } + + /// + /// 地域线路ID + /// + public string areaLineId { get; set; } + + /// + /// 人格线路ID + /// + public string mbtLineId { get; set; } + + /// + /// 创建时间 + /// + public DateTime? creatorTime { get; set; } + + /// + /// 修改时间 + /// + public DateTime? lastModifyTime { get; set; } + + /// + /// 地域ID + /// + public string areaId { get; set; } + + /// + /// 人格ID + /// + public string mbtId { get; set; } + + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/抽奖记录/Dto/TbBoxLogInfoOutput.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/抽奖记录/Dto/TbBoxLogInfoOutput.cs new file mode 100644 index 0000000..b69769d --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/抽奖记录/Dto/TbBoxLogInfoOutput.cs @@ -0,0 +1,62 @@ +using System; +using System.Collections.Generic; + +namespace NCC.Blind.Entitys.Dto.TbBoxLog +{ + /// + /// 抽奖记录输出参数 + /// + public class TbBoxLogInfoOutput + { + /// + /// 主键 + /// + public string id { get; set; } + + /// + /// 用户ID + /// + public string userId { get; set; } + + /// + /// 盲盒订单ID + /// + public string boxOrderId { get; set; } + + /// + /// 路线 1--地域路线 2--人格路线 + /// + public string type { get; set; } + + /// + /// 地域线路ID + /// + public string areaLineId { get; set; } + + /// + /// 人格线路ID + /// + public string mbtLineId { get; set; } + + /// + /// 创建时间 + /// + public DateTime? creatorTime { get; set; } + + /// + /// 修改时间 + /// + public DateTime? lastModifyTime { get; set; } + + /// + /// 地域ID + /// + public string areaId { get; set; } + + /// + /// 人格ID + /// + public string mbtId { get; set; } + + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/抽奖记录/Dto/TbBoxLogListOutput.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/抽奖记录/Dto/TbBoxLogListOutput.cs new file mode 100644 index 0000000..512ade5 --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/抽奖记录/Dto/TbBoxLogListOutput.cs @@ -0,0 +1,90 @@ +using NCC.Education.Entitys; +using NCC.System.Entitys.Permission; +using System; + +namespace NCC.Blind.Entitys.Dto.TbBoxLog +{ + /// + /// 抽奖记录输入参数 + /// + public class TbBoxLogListOutput + { + /// + /// 主键 + /// + public string id { get; set; } + + /// + /// 用户ID + /// + public string userId { get; set; } + + /// + /// 用户信息 + /// + public UserEntity user { get; set; } + + /// + /// 盲盒订单ID + /// + public string boxOrderId { get; set; } + /// + /// 盲盒订单信息 + /// + public TbBoxOrderEntity boxOrder { get; set; } + + /// + /// 路线 1--地域路线 2--人格路线 + /// + public string type { get; set; } + + /// + /// 地域线路ID + /// + public string areaLineId { get; set; } + + /// + /// 地域线路 + /// + public TbAreaLineEntity areaLine { get; set; } + + /// + /// 人格线路ID + /// + public string mbtLineId { get; set; } + + /// + /// 人格线路信息 + /// + public TbMbtLineEntity mbtLine { get; set; } + + /// + /// 创建时间 + /// + public DateTime? creatorTime { get; set; } + + /// + /// 修改时间 + /// + public DateTime? lastModifyTime { get; set; } + + /// + /// 地域ID + /// + public string areaId { get; set; } + /// + /// 地域信息 + /// + public TbAreaEntity area { get; set; } + + /// + /// 人格ID + /// + public string mbtId { get; set; } + /// + /// 人格信息 + /// + public TbMbtCharacterEntity mbt { get; set; } + + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/抽奖记录/Dto/TbBoxLogListQueryInput.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/抽奖记录/Dto/TbBoxLogListQueryInput.cs new file mode 100644 index 0000000..0a57ab7 --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/抽奖记录/Dto/TbBoxLogListQueryInput.cs @@ -0,0 +1,58 @@ +using NCC.Common.Filter; +using System.Collections.Generic; + +namespace NCC.Blind.Entitys.Dto.TbBoxLog +{ + /// + /// 抽奖记录列表查询输入 + /// + public class TbBoxLogListQueryInput : PageInputBase + { + /// + /// 选择导出数据key + /// + public string selectKey { get; set; } + + /// + /// + /// + public int dataType { get; set; } + + + /// + /// 用户ID + /// + public string userId { get; set; } + + /// + /// 盲盒订单ID + /// + public string boxOrderId { get; set; } + + /// + /// 路线 1--地域路线 2--人格路线 + /// + public string type { get; set; } + + /// + /// 地域线路ID + /// + public string areaLineId { get; set; } + + /// + /// 人格线路ID + /// + public string mbtLineId { get; set; } + + /// + /// 地域ID + /// + public string areaId { get; set; } + + /// + /// 人格ID + /// + public string mbtId { get; set; } + + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/抽奖记录/Dto/TbBoxLogUpInput.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/抽奖记录/Dto/TbBoxLogUpInput.cs new file mode 100644 index 0000000..2791107 --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/抽奖记录/Dto/TbBoxLogUpInput.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; + +namespace NCC.Blind.Entitys.Dto.TbBoxLog +{ + /// + /// 抽奖记录更新输入参数 + /// + public class TbBoxLogUpInput : TbBoxLogCrInput + { + /// + /// 主键 + /// + public string id { get; set; } + + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/抽奖记录/Entity/TbBoxLogEntity.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/抽奖记录/Entity/TbBoxLogEntity.cs new file mode 100644 index 0000000..0d379fb --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/抽奖记录/Entity/TbBoxLogEntity.cs @@ -0,0 +1,74 @@ +using NCC.Common.Const; +using SqlSugar; +using System; + +namespace NCC.Blind.Entitys +{ + /// + /// 抽奖记录 + /// + [SugarTable("tb_BoxLog")] + [Tenant(ClaimConst.TENANT_ID)] + public class TbBoxLogEntity + { + /// + /// 主键 + /// + [SugarColumn(ColumnName = "F_Id", IsPrimaryKey = true)] + public string Id { get; set; } + + /// + /// 用户ID + /// + [SugarColumn(ColumnName = "F_UserId")] + public string UserId { get; set; } + + /// + /// 盲盒订单ID + /// + [SugarColumn(ColumnName = "F_BoxOrderId")] + public string BoxOrderId { get; set; } + + /// + /// 路线 1--地域路线 2--人格路线 + /// + [SugarColumn(ColumnName = "F_Type")] + public string Type { get; set; } + + /// + /// 地域线路ID + /// + [SugarColumn(ColumnName = "F_AreaLineId")] + public string AreaLineId { get; set; } + + /// + /// 人格线路ID + /// + [SugarColumn(ColumnName = "F_MbtLineId")] + public string MbtLineId { get; set; } + + /// + /// 创建时间 + /// + [SugarColumn(ColumnName = "F_CreatorTime")] + public DateTime? CreatorTime { get; set; } + + /// + /// 修改时间 + /// + [SugarColumn(ColumnName = "F_LastModifyTime")] + public DateTime? LastModifyTime { get; set; } + /// + /// 地域ID + /// + [SugarColumn(ColumnName = "F_AreaId")] + public string AreaId { get; set; } + + /// + /// 人格ID + /// + [SugarColumn(ColumnName = "F_MbtId")] + public string MbtId { get; set; } + + } +} \ No newline at end of file diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/抽奖记录/Mapper/TbBoxLogMapper.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/抽奖记录/Mapper/TbBoxLogMapper.cs new file mode 100644 index 0000000..c06bb29 --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/抽奖记录/Mapper/TbBoxLogMapper.cs @@ -0,0 +1,14 @@ +using NCC.Common.Helper; +using NCC.Blind.Entitys.Dto.TbBoxLog; +using Mapster; +using System.Collections.Generic; + +namespace NCC.Blind.Entitys.Mapper.TbBoxLog +{ + public class Mapper : IRegister + { + public void Register(TypeAdapterConfig config) + { + } + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/旅游景点/Dto/TbTravelSpotCrInput.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/旅游景点/Dto/TbTravelSpotCrInput.cs new file mode 100644 index 0000000..06dfc06 --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/旅游景点/Dto/TbTravelSpotCrInput.cs @@ -0,0 +1,58 @@ +using System; +using System.Collections.Generic; +using NCC.Common.Model; + +namespace NCC.Blind.Entitys.Dto.TbTravelSpot +{ + /// + /// 旅游景点修改输入参数 + /// + public class TbTravelSpotCrInput + { + /// + /// 图片信息 + /// + public List homeBanner { get; set; } + + /// + /// 景点图片 + /// + public List banner { get; set; } + + /// + /// 标题 + /// + public string title { get; set; } + + /// + /// 备注 + /// + public string remark { get; set; } + + /// + /// 富文本 + /// + public string editors { get; set; } + + /// + /// 原价 + /// + public decimal oldMoneys { get; set; } + + /// + /// 现价 + /// + public decimal nowMoneys { get; set; } + + /// + /// 创建时间 + /// + public DateTime? creatorTime { get; set; } + + /// + /// 修改时间 + /// + public DateTime? lastModifyTime { get; set; } + + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/旅游景点/Dto/TbTravelSpotInfoOutput.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/旅游景点/Dto/TbTravelSpotInfoOutput.cs new file mode 100644 index 0000000..caa4e5c --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/旅游景点/Dto/TbTravelSpotInfoOutput.cs @@ -0,0 +1,63 @@ +using System; +using System.Collections.Generic; +using NCC.Common.Model; + +namespace NCC.Blind.Entitys.Dto.TbTravelSpot +{ + /// + /// 旅游景点输出参数 + /// + public class TbTravelSpotInfoOutput + { + /// + /// 主键 + /// + public string id { get; set; } + + /// + /// 图片信息 + /// + public List homeBanner { get; set; } + + /// + /// 景点图片 + /// + public List banner { get; set; } + + /// + /// 标题 + /// + public string title { get; set; } + + /// + /// 备注 + /// + public string remark { get; set; } + + /// + /// 富文本 + /// + public string editors { get; set; } + + /// + /// 原价 + /// + public decimal oldMoneys { get; set; } + + /// + /// 现价 + /// + public decimal nowMoneys { get; set; } + + /// + /// 创建时间 + /// + public DateTime? creatorTime { get; set; } + + /// + /// 修改时间 + /// + public DateTime? lastModifyTime { get; set; } + + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/旅游景点/Dto/TbTravelSpotListOutput.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/旅游景点/Dto/TbTravelSpotListOutput.cs new file mode 100644 index 0000000..c1e0dc0 --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/旅游景点/Dto/TbTravelSpotListOutput.cs @@ -0,0 +1,93 @@ +using Aspose.Words.Lists; +using NCC.Common.Model; +using Newtonsoft.Json; +using SqlSugar; +using System; +using System.Collections.Generic; + +namespace NCC.Blind.Entitys.Dto.TbTravelSpot +{ + /// + /// 旅游景点输入参数 + /// + public class TbTravelSpotListOutput + { + /// + /// 主键 + /// + public string id { get; set; } + + /// + /// 标题 + /// + public string title { get; set; } + + /// + /// 景点富文本 + /// + public string editors { get; set; } + /// + /// 原价 + /// + public decimal? oldMoneys { get; set; } + + /// + /// 现价 + /// + public decimal? nowMoneys { get; set; } + + /// + /// 备注 + /// + public string remark { get; set; } + + /// + /// 创建时间 + /// + public DateTime? creatorTime { get; set; } + + /// + /// 修改时间 + /// + public DateTime? lastModifyTime { get; set; } + + /// + /// 图片信息 + /// + public string homeBanner { get; set; } + + /// + /// 图片信息集合 + /// + public List HomeBanner { get + { + try + { + return JsonConvert.DeserializeObject>(homeBanner); + }catch(Exception ex) + { + return new List(); + } + } } + + /// + /// 景点图片 + /// + public string banner { get; set; } + + /// + /// 景点图片集合 + /// + public List Banner { get + { + try + { + return JsonConvert.DeserializeObject>(banner); + }catch(Exception ex) + { + return new List(); + } + } } + + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/旅游景点/Dto/TbTravelSpotListQueryInput.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/旅游景点/Dto/TbTravelSpotListQueryInput.cs new file mode 100644 index 0000000..daa3e5a --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/旅游景点/Dto/TbTravelSpotListQueryInput.cs @@ -0,0 +1,33 @@ +using NCC.Common.Filter; +using System.Collections.Generic; + +namespace NCC.Blind.Entitys.Dto.TbTravelSpot +{ + /// + /// 旅游景点列表查询输入 + /// + public class TbTravelSpotListQueryInput : PageInputBase + { + /// + /// 选择导出数据key + /// + public string selectKey { get; set; } + + /// + /// + /// + public int dataType { get; set; } + + + /// + /// 标题 + /// + public string title { get; set; } + + /// + /// 备注 + /// + public string remark { get; set; } + + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/旅游景点/Dto/TbTravelSpotUpInput.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/旅游景点/Dto/TbTravelSpotUpInput.cs new file mode 100644 index 0000000..9109134 --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/旅游景点/Dto/TbTravelSpotUpInput.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; + +namespace NCC.Blind.Entitys.Dto.TbTravelSpot +{ + /// + /// 旅游景点更新输入参数 + /// + public class TbTravelSpotUpInput : TbTravelSpotCrInput + { + /// + /// 主键 + /// + public string id { get; set; } + + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/旅游景点/Entity/TbTravelSpotEntity.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/旅游景点/Entity/TbTravelSpotEntity.cs new file mode 100644 index 0000000..eb4986c --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/旅游景点/Entity/TbTravelSpotEntity.cs @@ -0,0 +1,75 @@ +using NCC.Common.Const; +using SqlSugar; +using System; + +namespace NCC.Blind.Entitys +{ + /// + /// 旅游景点 + /// + [SugarTable("tb_TravelSpot")] + [Tenant(ClaimConst.TENANT_ID)] + public class TbTravelSpotEntity + { + /// + /// 主键 + /// + [SugarColumn(ColumnName = "F_Id", IsPrimaryKey = true)] + public string Id { get; set; } + + /// + /// 图片信息 + /// + [SugarColumn(ColumnName = "F_HomeBanner")] + public string HomeBanner { get; set; } + + /// + /// 景点图片 + /// + [SugarColumn(ColumnName = "F_Banner")] + public string Banner { get; set; } + + /// + /// 标题 + /// + [SugarColumn(ColumnName = "F_Title")] + public string Title { get; set; } + + /// + /// 备注 + /// + [SugarColumn(ColumnName = "F_Remark")] + public string Remark { get; set; } + + /// + /// 富文本 + /// + [SugarColumn(ColumnName = "F_Editors")] + public string Editors { get; set; } + + /// + /// 原价 + /// + [SugarColumn(ColumnName = "F_OldMoneys")] + public decimal OldMoneys { get; set; } + + /// + /// 现价 + /// + [SugarColumn(ColumnName = "F_NowMoneys")] + public decimal NowMoneys { get; set; } + + /// + /// 创建时间 + /// + [SugarColumn(ColumnName = "F_CreatorTime")] + public DateTime? CreatorTime { get; set; } + + /// + /// 修改时间 + /// + [SugarColumn(ColumnName = "F_LastModifyTime")] + public DateTime? LastModifyTime { get; set; } + + } +} \ No newline at end of file diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/旅游景点/Mapper/TbTravelSpotMapper.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/旅游景点/Mapper/TbTravelSpotMapper.cs new file mode 100644 index 0000000..4e1fec8 --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/旅游景点/Mapper/TbTravelSpotMapper.cs @@ -0,0 +1,23 @@ +using NCC.Common.Helper; +using NCC.Common.Model; +using NCC.Blind.Entitys.Dto.TbTravelSpot; +using Mapster; +using System.Collections.Generic; + +namespace NCC.Blind.Entitys.Mapper.TbTravelSpot +{ + public class Mapper : IRegister + { + public void Register(TypeAdapterConfig config) + { + config.ForType() + .Map(dest => dest.HomeBanner, src => src.homeBanner.ToJson()) + .Map(dest => dest.Banner, src => src.banner.ToJson()) + ; + config.ForType() + .Map(dest => dest.homeBanner, src => src.HomeBanner.ToObject>()) + .Map(dest => dest.banner, src => src.Banner.ToObject>()) + ; + } + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/用户协议/Dto/TbUserAgreementCrInput.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/用户协议/Dto/TbUserAgreementCrInput.cs new file mode 100644 index 0000000..a656c12 --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/用户协议/Dto/TbUserAgreementCrInput.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; + +namespace NCC.Blind.Entitys.Dto.TbUserAgreement +{ + /// + /// 用户协议修改输入参数 + /// + public class TbUserAgreementCrInput + { + /// + /// 协议内容 + /// + public string contents { get; set; } + + /// + /// 创建时间 + /// + public DateTime? creatorTime { get; set; } + + /// + /// 修改时间 + /// + public DateTime? lastModifyTime { get; set; } + + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/用户协议/Dto/TbUserAgreementInfoOutput.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/用户协议/Dto/TbUserAgreementInfoOutput.cs new file mode 100644 index 0000000..3c14223 --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/用户协议/Dto/TbUserAgreementInfoOutput.cs @@ -0,0 +1,32 @@ +using System; +using System.Collections.Generic; + +namespace NCC.Blind.Entitys.Dto.TbUserAgreement +{ + /// + /// 用户协议输出参数 + /// + public class TbUserAgreementInfoOutput + { + /// + /// 主键 + /// + public string id { get; set; } + + /// + /// 协议内容 + /// + public string contents { get; set; } + + /// + /// 创建时间 + /// + public DateTime? creatorTime { get; set; } + + /// + /// 修改时间 + /// + public DateTime? lastModifyTime { get; set; } + + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/用户协议/Dto/TbUserAgreementListOutput.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/用户协议/Dto/TbUserAgreementListOutput.cs new file mode 100644 index 0000000..9c35241 --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/用户协议/Dto/TbUserAgreementListOutput.cs @@ -0,0 +1,32 @@ +using System; + +namespace NCC.Blind.Entitys.Dto.TbUserAgreement +{ + /// + /// 用户协议输入参数 + /// + public class TbUserAgreementListOutput + { + /// + /// 主键 + /// + public string id { get; set; } + + /// + /// 创建时间 + /// + public DateTime? creatorTime { get; set; } + + /// + /// 修改时间 + /// + public DateTime? lastModifyTime { get; set; } + + /// + /// 协议内容 + /// + public string contents { get; set; } + + + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/用户协议/Dto/TbUserAgreementListQueryInput.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/用户协议/Dto/TbUserAgreementListQueryInput.cs new file mode 100644 index 0000000..fbdcdb2 --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/用户协议/Dto/TbUserAgreementListQueryInput.cs @@ -0,0 +1,23 @@ +using NCC.Common.Filter; +using System.Collections.Generic; + +namespace NCC.Blind.Entitys.Dto.TbUserAgreement +{ + /// + /// 用户协议列表查询输入 + /// + public class TbUserAgreementListQueryInput : PageInputBase + { + /// + /// 选择导出数据key + /// + public string selectKey { get; set; } + + /// + /// + /// + public int dataType { get; set; } + + + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/用户协议/Dto/TbUserAgreementUpInput.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/用户协议/Dto/TbUserAgreementUpInput.cs new file mode 100644 index 0000000..0cf78e1 --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/用户协议/Dto/TbUserAgreementUpInput.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; + +namespace NCC.Blind.Entitys.Dto.TbUserAgreement +{ + /// + /// 用户协议更新输入参数 + /// + public class TbUserAgreementUpInput : TbUserAgreementCrInput + { + /// + /// 主键 + /// + public string id { get; set; } + + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/用户协议/Entity/TbUserAgreementEntity.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/用户协议/Entity/TbUserAgreementEntity.cs new file mode 100644 index 0000000..6e4e645 --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/用户协议/Entity/TbUserAgreementEntity.cs @@ -0,0 +1,39 @@ +using NCC.Common.Const; +using SqlSugar; +using System; + +namespace NCC.Blind.Entitys +{ + /// + /// 用户协议 + /// + [SugarTable("tb_UserAgreement")] + [Tenant(ClaimConst.TENANT_ID)] + public class TbUserAgreementEntity + { + /// + /// 主键 + /// + [SugarColumn(ColumnName = "F_Id", IsPrimaryKey = true)] + public string Id { get; set; } + + /// + /// 协议内容 + /// + [SugarColumn(ColumnName = "F_Contents")] + public string Contents { get; set; } + + /// + /// 创建时间 + /// + [SugarColumn(ColumnName = "F_CreatorTime")] + public DateTime? CreatorTime { get; set; } + + /// + /// 修改时间 + /// + [SugarColumn(ColumnName = "F_LastModifyTime")] + public DateTime? LastModifyTime { get; set; } + + } +} \ No newline at end of file diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/用户协议/Mapper/TbUserAgreementMapper.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/用户协议/Mapper/TbUserAgreementMapper.cs new file mode 100644 index 0000000..53506be --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/用户协议/Mapper/TbUserAgreementMapper.cs @@ -0,0 +1,14 @@ +using NCC.Common.Helper; +using NCC.Blind.Entitys.Dto.TbUserAgreement; +using Mapster; +using System.Collections.Generic; + +namespace NCC.Blind.Entitys.Mapper.TbUserAgreement +{ + public class Mapper : IRegister + { + public void Register(TypeAdapterConfig config) + { + } + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒介绍/Dto/TbRecommendCrInput.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒介绍/Dto/TbRecommendCrInput.cs new file mode 100644 index 0000000..35fd0cc --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒介绍/Dto/TbRecommendCrInput.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; + +namespace NCC.Blind.Entitys.Dto.TbRecommend +{ + /// + /// 盲盒介绍修改输入参数 + /// + public class TbRecommendCrInput + { + /// + /// 介绍内容 + /// + public string editors { get; set; } + + /// + /// 创建时间 + /// + public DateTime? creatorTime { get; set; } + + /// + /// 修改时间 + /// + public DateTime? lastModifyTime { get; set; } + + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒介绍/Dto/TbRecommendInfoOutput.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒介绍/Dto/TbRecommendInfoOutput.cs new file mode 100644 index 0000000..acff52c --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒介绍/Dto/TbRecommendInfoOutput.cs @@ -0,0 +1,32 @@ +using System; +using System.Collections.Generic; + +namespace NCC.Blind.Entitys.Dto.TbRecommend +{ + /// + /// 盲盒介绍输出参数 + /// + public class TbRecommendInfoOutput + { + /// + /// 主键 + /// + public string id { get; set; } + + /// + /// 介绍内容 + /// + public string editors { get; set; } + + /// + /// 创建时间 + /// + public DateTime? creatorTime { get; set; } + + /// + /// 修改时间 + /// + public DateTime? lastModifyTime { get; set; } + + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒介绍/Dto/TbRecommendListOutput.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒介绍/Dto/TbRecommendListOutput.cs new file mode 100644 index 0000000..d0fb825 --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒介绍/Dto/TbRecommendListOutput.cs @@ -0,0 +1,31 @@ +using System; + +namespace NCC.Blind.Entitys.Dto.TbRecommend +{ + /// + /// 盲盒介绍输入参数 + /// + public class TbRecommendListOutput + { + /// + /// 主键 + /// + public string id { get; set; } + + /// + /// 介绍内容 + /// + public string editors { get; set; } + + /// + /// 创建时间 + /// + public DateTime? creatorTime { get; set; } + + /// + /// 修改时间 + /// + public DateTime? lastModifyTime { get; set; } + + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒介绍/Dto/TbRecommendListQueryInput.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒介绍/Dto/TbRecommendListQueryInput.cs new file mode 100644 index 0000000..032d816 --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒介绍/Dto/TbRecommendListQueryInput.cs @@ -0,0 +1,23 @@ +using NCC.Common.Filter; +using System.Collections.Generic; + +namespace NCC.Blind.Entitys.Dto.TbRecommend +{ + /// + /// 盲盒介绍列表查询输入 + /// + public class TbRecommendListQueryInput : PageInputBase + { + /// + /// 选择导出数据key + /// + public string selectKey { get; set; } + + /// + /// + /// + public int dataType { get; set; } + + + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒介绍/Dto/TbRecommendUpInput.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒介绍/Dto/TbRecommendUpInput.cs new file mode 100644 index 0000000..50434e1 --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒介绍/Dto/TbRecommendUpInput.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; + +namespace NCC.Blind.Entitys.Dto.TbRecommend +{ + /// + /// 盲盒介绍更新输入参数 + /// + public class TbRecommendUpInput : TbRecommendCrInput + { + /// + /// 主键 + /// + public string id { get; set; } + + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒介绍/Entity/TbRecommendEntity.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒介绍/Entity/TbRecommendEntity.cs new file mode 100644 index 0000000..7f06c29 --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒介绍/Entity/TbRecommendEntity.cs @@ -0,0 +1,39 @@ +using NCC.Common.Const; +using SqlSugar; +using System; + +namespace NCC.Blind.Entitys +{ + /// + /// 盲盒介绍 + /// + [SugarTable("tb_Recommend")] + [Tenant(ClaimConst.TENANT_ID)] + public class TbRecommendEntity + { + /// + /// 主键 + /// + [SugarColumn(ColumnName = "F_Id", IsPrimaryKey = true)] + public string Id { get; set; } + + /// + /// 介绍内容 + /// + [SugarColumn(ColumnName = "F_Editors")] + public string Editors { get; set; } + + /// + /// 创建时间 + /// + [SugarColumn(ColumnName = "F_CreatorTime")] + public DateTime? CreatorTime { get; set; } + + /// + /// 修改时间 + /// + [SugarColumn(ColumnName = "F_LastModifyTime")] + public DateTime? LastModifyTime { get; set; } + + } +} \ No newline at end of file diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒介绍/Mapper/TbRecommendMapper.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒介绍/Mapper/TbRecommendMapper.cs new file mode 100644 index 0000000..9f32a92 --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒介绍/Mapper/TbRecommendMapper.cs @@ -0,0 +1,14 @@ +using NCC.Common.Helper; +using NCC.Blind.Entitys.Dto.TbRecommend; +using Mapster; +using System.Collections.Generic; + +namespace NCC.Blind.Entitys.Mapper.TbRecommend +{ + public class Mapper : IRegister + { + public void Register(TypeAdapterConfig config) + { + } + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒券/Dto/TbMyBoxCouponCrInput.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒券/Dto/TbMyBoxCouponCrInput.cs new file mode 100644 index 0000000..c7c86c4 --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒券/Dto/TbMyBoxCouponCrInput.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; + +namespace NCC.Blind.Entitys.Dto.TbMyBoxCoupon +{ + /// + /// 盲盒券修改输入参数 + /// + public class TbMyBoxCouponCrInput + { + /// + /// 用户ID + /// + public string userId { get; set; } + + /// + /// 赠送人 + /// + public string giveUserId { get; set; } + + /// + /// 备注 + /// + public string remark { get; set; } + + /// + /// 类型 1--未使用 2--已使用 + /// + public string type { get; set; } + + /// + /// 创建时间 + /// + public DateTime? creatorTime { get; set; } + + /// + /// 修改时间 + /// + public DateTime? lastModifyTime { get; set; } + + /// + /// 标题 + /// + public string title { get; set; } + /// + /// 订单ID + /// + public string orderId { get; set; } + + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒券/Dto/TbMyBoxCouponInfoOutput.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒券/Dto/TbMyBoxCouponInfoOutput.cs new file mode 100644 index 0000000..a33c1ad --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒券/Dto/TbMyBoxCouponInfoOutput.cs @@ -0,0 +1,55 @@ +using System; +using System.Collections.Generic; + +namespace NCC.Blind.Entitys.Dto.TbMyBoxCoupon +{ + /// + /// 盲盒券输出参数 + /// + public class TbMyBoxCouponInfoOutput + { + /// + /// 主键 + /// + public string id { get; set; } + + /// + /// 用户ID + /// + public string userId { get; set; } + + /// + /// 赠送人 + /// + public string giveUserId { get; set; } + + /// + /// 备注 + /// + public string remark { get; set; } + + /// + /// 类型 1--未使用 2--已使用 + /// + public string type { get; set; } + + /// + /// 创建时间 + /// + public DateTime? creatorTime { get; set; } + + /// + /// 修改时间 + /// + public DateTime? lastModifyTime { get; set; } + + /// + /// 标题 + /// + public string title { get; set; } + /// + /// 订单ID + /// + public string orderId { get; set; } + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒券/Dto/TbMyBoxCouponListOutput.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒券/Dto/TbMyBoxCouponListOutput.cs new file mode 100644 index 0000000..9fcdf1f --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒券/Dto/TbMyBoxCouponListOutput.cs @@ -0,0 +1,70 @@ +using NCC.Blind.Entitys.Dto.TbBoxOrder; +using NCC.System.Entitys.Permission; +using System; + +namespace NCC.Blind.Entitys.Dto.TbMyBoxCoupon +{ + /// + /// 盲盒券输入参数 + /// + public class TbMyBoxCouponListOutput + { + /// + /// 主键 + /// + public string id { get; set; } + + /// + /// 用户ID + /// + public string userId { get; set; } + /// + /// 用户信息 + /// + public UserEntity user { get; set; } + + /// + /// 赠送人 + /// + public string giveUserId { get; set; } + /// + /// 赠送人信息 + /// + public UserEntity giveUser { get; set; } + + /// + /// 备注 + /// + public string remark { get; set; } + + /// + /// 类型 1--未使用 2--已使用 + /// + public string type { get; set; } + + /// + /// 创建时间 + /// + public DateTime? creatorTime { get; set; } + + /// + /// 修改时间 + /// + public DateTime? lastModifyTime { get; set; } + + /// + /// 标题 + /// + public string title { get; set; } + /// + /// 订单ID + /// + public string orderId { get; set; } + + /// + /// 订单信息 + /// + public TbBoxOrderListOutput order { get; set; } + + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒券/Dto/TbMyBoxCouponListQueryInput.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒券/Dto/TbMyBoxCouponListQueryInput.cs new file mode 100644 index 0000000..dd7dbb1 --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒券/Dto/TbMyBoxCouponListQueryInput.cs @@ -0,0 +1,52 @@ +using NCC.Common.Filter; +using System.Collections.Generic; + +namespace NCC.Blind.Entitys.Dto.TbMyBoxCoupon +{ + /// + /// 盲盒券列表查询输入 + /// + public class TbMyBoxCouponListQueryInput : PageInputBase + { + /// + /// 选择导出数据key + /// + public string selectKey { get; set; } + + /// + /// + /// + public int dataType { get; set; } + + + /// + /// 用户ID + /// + public string userId { get; set; } + + /// + /// 赠送人 + /// + public string giveUserId { get; set; } + + /// + /// 备注 + /// + public string remark { get; set; } + + /// + /// 类型 1--未使用 2--已使用 + /// + public string type { get; set; } + + /// + /// 标题 + /// + public string title { get; set; } + /// + /// 订单ID + /// + public string orderId { get; set; } + + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒券/Dto/TbMyBoxCouponUpInput.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒券/Dto/TbMyBoxCouponUpInput.cs new file mode 100644 index 0000000..6a95ee8 --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒券/Dto/TbMyBoxCouponUpInput.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; + +namespace NCC.Blind.Entitys.Dto.TbMyBoxCoupon +{ + /// + /// 盲盒券更新输入参数 + /// + public class TbMyBoxCouponUpInput : TbMyBoxCouponCrInput + { + /// + /// 主键 + /// + public string id { get; set; } + + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒券/Entity/TbMyBoxCouponEntity.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒券/Entity/TbMyBoxCouponEntity.cs new file mode 100644 index 0000000..c68bdfb --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒券/Entity/TbMyBoxCouponEntity.cs @@ -0,0 +1,68 @@ +using NCC.Common.Const; +using SqlSugar; +using System; + +namespace NCC.Blind.Entitys +{ + /// + /// 盲盒券 + /// + [SugarTable("tb_MyBoxCoupon")] + [Tenant(ClaimConst.TENANT_ID)] + public class TbMyBoxCouponEntity + { + /// + /// 主键 + /// + [SugarColumn(ColumnName = "F_Id", IsPrimaryKey = true)] + public string Id { get; set; } + + /// + /// 用户ID + /// + [SugarColumn(ColumnName = "F_UserId")] + public string UserId { get; set; } + + /// + /// 赠送人 + /// + [SugarColumn(ColumnName = "F_GiveUserId")] + public string GiveUserId { get; set; } + + /// + /// 备注 + /// + [SugarColumn(ColumnName = "F_Remark")] + public string Remark { get; set; } + + /// + /// 类型 1--未使用 2--已使用 + /// + [SugarColumn(ColumnName = "F_Type")] + public string Type { get; set; } + + /// + /// 创建时间 + /// + [SugarColumn(ColumnName = "F_CreatorTime")] + public DateTime? CreatorTime { get; set; } + + /// + /// 修改时间 + /// + [SugarColumn(ColumnName = "F_LastModifyTime")] + public DateTime? LastModifyTime { get; set; } + + /// + /// 标题 + /// + [SugarColumn(ColumnName = "F_Title")] + public string Title { get; set; } + /// + /// 订单ID + /// + [SugarColumn(ColumnName = "F_OrderId")] + public string OrderId { get; set; } + + } +} \ No newline at end of file diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒券/Mapper/TbMyBoxCouponMapper.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒券/Mapper/TbMyBoxCouponMapper.cs new file mode 100644 index 0000000..a03b062 --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒券/Mapper/TbMyBoxCouponMapper.cs @@ -0,0 +1,14 @@ +using NCC.Common.Helper; +using NCC.Blind.Entitys.Dto.TbMyBoxCoupon; +using Mapster; +using System.Collections.Generic; + +namespace NCC.Blind.Entitys.Mapper.TbMyBoxCoupon +{ + public class Mapper : IRegister + { + public void Register(TypeAdapterConfig config) + { + } + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒订单/Dto/TbBoxOrderCrInput.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒订单/Dto/TbBoxOrderCrInput.cs new file mode 100644 index 0000000..c102e92 --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒订单/Dto/TbBoxOrderCrInput.cs @@ -0,0 +1,87 @@ +using NCC.Common.Model; +using System; +using System.Collections.Generic; + +namespace NCC.Blind.Entitys.Dto.TbBoxOrder +{ + /// + /// 盲盒订单修改输入参数 + /// + public class TbBoxOrderCrInput + { + /// + /// 用户ID + /// + public string userId { get; set; } + + /// + /// 订单号 + /// + public string orderNumber { get; set; } + + /// + /// 路线 1--地域路线 2--MBT人格路线 + /// + public string type { get; set; } + + /// + /// 地域ID + /// + public string areaId { get; set; } + + /// + /// 地域线路ID + /// + public string areaLineId { get; set; } + + /// + /// 人格ID + /// + public string mbtId { get; set; } + + /// + /// 人格线路ID + /// + public string mbtLineId { get; set; } + + /// + /// 总金额 + /// + public decimal totalPrice { get; set; } + + /// + /// 状态 1--未付款 2--已付款 3--已完成 + /// + public string status { get; set; } + + /// + /// 购买类型 1--自己购买 2--赠送他人 + /// + public string isMe { get; set; } + + /// + /// 赠送人用户ID + /// + public string giveUserId { get; set; } + + /// + /// 盲盒券ID + /// + public string myBoxCouponId { get; set; } + + /// + /// 创建时间 + /// + public DateTime? creatorTime { get; set; } + + /// + /// 修改时间 + /// + public DateTime? lastModifyTime { get; set; } + /// + /// 二维码 + /// + public List qrCode { get; set; } + + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒订单/Dto/TbBoxOrderInfoOutput.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒订单/Dto/TbBoxOrderInfoOutput.cs new file mode 100644 index 0000000..3344a83 --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒订单/Dto/TbBoxOrderInfoOutput.cs @@ -0,0 +1,102 @@ +using NCC.Common.Model; +using System; +using System.Collections.Generic; + +namespace NCC.Blind.Entitys.Dto.TbBoxOrder +{ + /// + /// 盲盒订单输出参数 + /// + public class TbBoxOrderInfoOutput + { + /// + /// 主键 + /// + public string id { get; set; } + + /// + /// 用户ID + /// + public string userId { get; set; } + + /// + /// 订单号 + /// + public string orderNumber { get; set; } + + /// + /// 路线 1--地域路线 2--MBT人格路线 + /// + public string type { get; set; } + + /// + /// 地域ID + /// + public string areaId { get; set; } + + /// + /// 地域线路ID + /// + public string areaLineId { get; set; } + + /// + /// 地域线路节点ID + /// + public string areaLineNodeId { get; set; } + + /// + /// 人格ID + /// + public string mbtId { get; set; } + + /// + /// 人格线路ID + /// + public string mbtLineId { get; set; } + + /// + /// 人格线路节点ID + /// + public string mbtLineNodeId { get; set; } + + /// + /// 总金额 + /// + public decimal totalPrice { get; set; } + + /// + /// 状态 1--未付款 2--已付款 3--已完成 + /// + public string status { get; set; } + + /// + /// 购买类型 1--自己购买 2--赠送他人 + /// + public string isMe { get; set; } + + /// + /// 赠送人用户ID + /// + public string giveUserId { get; set; } + + /// + /// 盲盒券ID + /// + public string myBoxCouponId { get; set; } + + /// + /// 创建时间 + /// + public DateTime? creatorTime { get; set; } + + /// + /// 修改时间 + /// + public DateTime? lastModifyTime { get; set; } + /// + /// 二维码 + /// + public List qrCode { get; set; } + + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒订单/Dto/TbBoxOrderListOutput.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒订单/Dto/TbBoxOrderListOutput.cs new file mode 100644 index 0000000..8e1f4d1 --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒订单/Dto/TbBoxOrderListOutput.cs @@ -0,0 +1,159 @@ +using Aspose.Words.Lists; +using NCC.Common.Model; +using NCC.Education.Entitys; +using NCC.System.Entitys.Permission; +using Newtonsoft.Json; +using System; +using System.Collections.Generic; + +namespace NCC.Blind.Entitys.Dto.TbBoxOrder +{ + /// + /// 盲盒订单输入参数 + /// + public class TbBoxOrderListOutput + { + /// + /// 主键 + /// + public string id { get; set; } + + /// + /// 用户ID + /// + public string userId { get; set; } + + /// + /// 用户信息 + /// + public UserEntity user { get; set; } + + /// + /// 订单号 + /// + public string orderNumber { get; set; } + + /// + /// 路线 1--地域路线 2--MBT人格路线 + /// + public string type { get; set; } + + /// + /// 地域ID + /// + public string areaId { get; set; } + + /// + /// 地域信息 + /// + public TbAreaEntity area { get; set; } + + /// + /// 地域线路ID + /// + public string areaLineId { get; set; } + + /// + /// 地域线路信息 + /// + public TbAreaLineEntity areaLine { get; set; } + + /// + /// 人格ID + /// + public string mbtId { get; set; } + /// + /// 人格信息 + /// + public TbMbtCharacterEntity mbt { get; set; } + + /// + /// 人格线路ID + /// + public string mbtLineId { get; set; } + + /// + /// 人格线路信息 + /// + public TbMbtLineEntity mbtLine { get; set; } + + /// + /// 总金额 + /// + public decimal totalPrice { get; set; } + + /// + /// 状态 1--未付款 2--已付款 3--已完成 + /// + public string status { get; set; } + + /// + /// 购买类型 1--自己购买 2--赠送他人 + /// + public string isMe { get; set; } + + /// + /// 赠送人用户ID + /// + public string giveUserId { get; set; } + /// + /// 赠送人信息 + /// + public UserEntity giveUser { get; set; } + + /// + /// 盲盒券ID + /// + public string myBoxCouponId { get; set; } + + + /// + /// 盲盒券信息 + /// + public TbMyBoxCouponEntity myBoxCoupon { get; set; } + /// + /// 创建时间 + /// + public DateTime? creatorTime { get; set; } + + /// + /// 修改时间 + /// + public DateTime? lastModifyTime { get; set; } + + /// + /// 二维码 + /// + public string qrCode { get; set; } + /// + /// 二维码 + /// + public List QrCode { get + { + try + { + return JsonConvert.DeserializeObject>(qrCode); + }catch(Exception ex) + { + return new List(); + } + } } + + /// + /// 门票订单信息 + /// + public TbTicketsOrderEntity tickets { get; set; } + + + /// + /// 是否填写了个人信息 1--未填写 2--已填写 + /// + public string isAppend { get; set; } + + /// + /// 是否可抽奖 1--不可抽 2--可抽 + /// + public string isAnewDraw { get; set; } + + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒订单/Dto/TbBoxOrderListQueryInput.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒订单/Dto/TbBoxOrderListQueryInput.cs new file mode 100644 index 0000000..c6af88b --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒订单/Dto/TbBoxOrderListQueryInput.cs @@ -0,0 +1,78 @@ +using NCC.Common.Filter; +using System.Collections.Generic; + +namespace NCC.Blind.Entitys.Dto.TbBoxOrder +{ + /// + /// 盲盒订单列表查询输入 + /// + public class TbBoxOrderListQueryInput : PageInputBase + { + /// + /// 选择导出数据key + /// + public string selectKey { get; set; } + + /// + /// + /// + public int dataType { get; set; } + + + /// + /// 用户ID + /// + public string userId { get; set; } + + /// + /// 订单号 + /// + public string orderNumber { get; set; } + + /// + /// 路线 1--地域路线 2--MBT人格路线 + /// + public string type { get; set; } + + /// + /// 地域ID + /// + public string areaId { get; set; } + + /// + /// 地域线路ID + /// + public string areaLineId { get; set; } + + /// + /// 人格ID + /// + public string mbtId { get; set; } + + /// + /// 人格线路ID + /// + public string mbtLineId { get; set; } + + /// + /// 状态 1--未付款 2--已付款 3--已完成 + /// + public string status { get; set; } + + /// + /// 购买类型 1--自己购买 2--赠送他人 + /// + public string isMe { get; set; } + + /// + /// 赠送人用户ID + /// + public string giveUserId { get; set; } + + /// + /// 盲盒券ID + /// + public string myBoxCouponId { get; set; } + + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒订单/Dto/TbBoxOrderUpInput.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒订单/Dto/TbBoxOrderUpInput.cs new file mode 100644 index 0000000..3eed4d4 --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒订单/Dto/TbBoxOrderUpInput.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; + +namespace NCC.Blind.Entitys.Dto.TbBoxOrder +{ + /// + /// 盲盒订单更新输入参数 + /// + public class TbBoxOrderUpInput : TbBoxOrderCrInput + { + /// + /// 主键 + /// + public string id { get; set; } + + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒订单/Entity/TbBoxOrderEntity.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒订单/Entity/TbBoxOrderEntity.cs new file mode 100644 index 0000000..4a1316e --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒订单/Entity/TbBoxOrderEntity.cs @@ -0,0 +1,122 @@ +using NCC.Common.Const; +using SqlSugar; +using System; + +namespace NCC.Blind.Entitys +{ + /// + /// 盲盒订单 + /// + [SugarTable("tb_BoxOrder")] + [Tenant(ClaimConst.TENANT_ID)] + public class TbBoxOrderEntity + { + /// + /// 主键 + /// + [SugarColumn(ColumnName = "F_Id", IsPrimaryKey = true)] + public string Id { get; set; } + + /// + /// 用户ID + /// + [SugarColumn(ColumnName = "F_UserId")] + public string UserId { get; set; } + + /// + /// 订单号 + /// + [SugarColumn(ColumnName = "F_OrderNumber")] + public string OrderNumber { get; set; } + + /// + /// 路线 1--地域路线 2--MBT人格路线 + /// + [SugarColumn(ColumnName = "F_Type")] + public string Type { get; set; } + + /// + /// 地域ID + /// + [SugarColumn(ColumnName = "F_AreaId")] + public string AreaId { get; set; } + + /// + /// 地域线路ID + /// + [SugarColumn(ColumnName = "F_AreaLineId")] + public string AreaLineId { get; set; } + + ///// + ///// 地域线路节点ID + ///// + //[SugarColumn(ColumnName = "F_AreaLineNodeId")] + //public string AreaLineNodeId { get; set; } + + /// + /// 人格ID + /// + [SugarColumn(ColumnName = "F_MbtId")] + public string MbtId { get; set; } + + /// + /// 人格线路ID + /// + [SugarColumn(ColumnName = "F_MbtLineId")] + public string MbtLineId { get; set; } + + ///// + ///// 人格线路节点ID + ///// + //[SugarColumn(ColumnName = "F_MbtLineNodeId")] + //public string MbtLineNodeId { get; set; } + + /// + /// 总金额 + /// + [SugarColumn(ColumnName = "F_TotalPrice")] + public decimal TotalPrice { get; set; } + + /// + /// 状态 1--未付款 2--已付款 3--已完成 + /// + [SugarColumn(ColumnName = "F_Status")] + public string Status { get; set; } + + /// + /// 购买类型 1--自己购买 2--赠送他人 + /// + [SugarColumn(ColumnName = "F_IsMe")] + public string IsMe { get; set; } + + /// + /// 赠送人用户ID + /// + [SugarColumn(ColumnName = "F_GiveUserId")] + public string GiveUserId { get; set; } + + /// + /// 盲盒券ID + /// + [SugarColumn(ColumnName = "F_MyBoxCouponId")] + public string MyBoxCouponId { get; set; } + + /// + /// 创建时间 + /// + [SugarColumn(ColumnName = "F_CreatorTime")] + public DateTime? CreatorTime { get; set; } + + /// + /// 修改时间 + /// + [SugarColumn(ColumnName = "F_LastModifyTime")] + public DateTime? LastModifyTime { get; set; } + /// + /// 二维码 + /// + [SugarColumn(ColumnName = "F_QrCode")] + public string QrCode { get; set; } + + } +} \ No newline at end of file diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒订单/Mapper/TbBoxOrderMapper.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒订单/Mapper/TbBoxOrderMapper.cs new file mode 100644 index 0000000..448658e --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/盲盒订单/Mapper/TbBoxOrderMapper.cs @@ -0,0 +1,21 @@ +using NCC.Common.Helper; +using NCC.Blind.Entitys.Dto.TbBoxOrder; +using Mapster; +using System.Collections.Generic; +using NCC.Common.Model; + +namespace NCC.Blind.Entitys.Mapper.TbBoxOrder +{ + public class Mapper : IRegister + { + public void Register(TypeAdapterConfig config) + { + config.ForType() + .Map(dest => dest.QrCode, src => src.qrCode.ToJson()) + ; + config.ForType() + .Map(dest => dest.qrCode, src => src.QrCode.ToObject>()) + ; + } + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/视频信息/Dto/TbVideoListOutput.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/视频信息/Dto/TbVideoListOutput.cs index 18be588..388a48d 100644 --- a/antis-ncc-net-core/NCC.BlindBox.Entitys/视频信息/Dto/TbVideoListOutput.cs +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/视频信息/Dto/TbVideoListOutput.cs @@ -1,4 +1,8 @@ -using System; +using Aspose.Words.Lists; +using NCC.Common.Model; +using Newtonsoft.Json; +using System; +using System.Collections.Generic; namespace NCC.Education.Entitys.Dto.TbVideo { @@ -21,6 +25,21 @@ namespace NCC.Education.Entitys.Dto.TbVideo /// 修改时间 /// public DateTime? lastModifyTime { get; set; } + /// + /// 视频信息 + /// + public string url { get; set; } + + public List UrlList { get + { + try + { + return JsonConvert.DeserializeObject>(url); + }catch(Exception ex) + { + return new List(); + } + } } } } diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/门票订单/Dto/TbTicketsOrderCrInput.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/门票订单/Dto/TbTicketsOrderCrInput.cs new file mode 100644 index 0000000..2476834 --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/门票订单/Dto/TbTicketsOrderCrInput.cs @@ -0,0 +1,62 @@ +using System; +using System.Collections.Generic; + +namespace NCC.Blind.Entitys.Dto.TbTicketsOrder +{ + /// + /// 门票订单修改输入参数 + /// + public class TbTicketsOrderCrInput + { + /// + /// 用户ID + /// + public string userId { get; set; } + + /// + /// 订单号 + /// + public string orderNumber { get; set; } + + /// + /// 真实姓名 + /// + public string name { get; set; } + + /// + /// 身份证号码 + /// + public string idCard { get; set; } + + /// + /// 电话号码 + /// + public string phone { get; set; } + + /// + /// 状态 1--未付款 2--已付款 3--已完成 + /// + public string status { get; set; } + + /// + /// 金额 + /// + public decimal totalPrice { get; set; } + + /// + /// 订单ID + /// + public string orderId { get; set; } + + /// + /// 创建时间 + /// + public DateTime? creatorTime { get; set; } + + /// + /// 修改时间 + /// + public DateTime? lastModifyTime { get; set; } + + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/门票订单/Dto/TbTicketsOrderInfoOutput.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/门票订单/Dto/TbTicketsOrderInfoOutput.cs new file mode 100644 index 0000000..5447407 --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/门票订单/Dto/TbTicketsOrderInfoOutput.cs @@ -0,0 +1,67 @@ +using System; +using System.Collections.Generic; + +namespace NCC.Blind.Entitys.Dto.TbTicketsOrder +{ + /// + /// 门票订单输出参数 + /// + public class TbTicketsOrderInfoOutput + { + /// + /// 主键 + /// + public string id { get; set; } + + /// + /// 用户ID + /// + public string userId { get; set; } + + /// + /// 订单号 + /// + public string orderNumber { get; set; } + + /// + /// 真实姓名 + /// + public string name { get; set; } + + /// + /// 身份证号码 + /// + public string idCard { get; set; } + + /// + /// 电话号码 + /// + public string phone { get; set; } + + /// + /// 状态 1--未付款 2--已付款 3--已完成 + /// + public string status { get; set; } + + /// + /// 金额 + /// + public decimal totalPrice { get; set; } + + /// + /// 订单ID + /// + public string orderId { get; set; } + + /// + /// 创建时间 + /// + public DateTime? creatorTime { get; set; } + + /// + /// 修改时间 + /// + public DateTime? lastModifyTime { get; set; } + + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/门票订单/Dto/TbTicketsOrderListOutput.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/门票订单/Dto/TbTicketsOrderListOutput.cs new file mode 100644 index 0000000..0413403 --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/门票订单/Dto/TbTicketsOrderListOutput.cs @@ -0,0 +1,76 @@ +using NCC.System.Entitys.Permission; +using System; + +namespace NCC.Blind.Entitys.Dto.TbTicketsOrder +{ + /// + /// 门票订单输入参数 + /// + public class TbTicketsOrderListOutput + { + /// + /// 主键 + /// + public string id { get; set; } + + /// + /// 用户ID + /// + public string userId { get; set; } + /// + /// 用户信息 + /// + public UserEntity user { get; set; } + + /// + /// 订单号 + /// + public string orderNumber { get; set; } + + /// + /// 真实姓名 + /// + public string name { get; set; } + + /// + /// 身份证号码 + /// + public string idCard { get; set; } + + /// + /// 电话号码 + /// + public string phone { get; set; } + + /// + /// 状态 1--未付款 2--已付款 3--已完成 + /// + public string status { get; set; } + + /// + /// 金额 + /// + public decimal totalPrice { get; set; } + + /// + /// 订单ID + /// + public string orderId { get; set; } + + /// + /// 盲盒订单信息 + /// + public TbBoxOrderEntity order { get; set; } + + /// + /// 创建时间 + /// + public DateTime? creatorTime { get; set; } + + /// + /// 修改时间 + /// + public DateTime? lastModifyTime { get; set; } + + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/门票订单/Dto/TbTicketsOrderListQueryInput.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/门票订单/Dto/TbTicketsOrderListQueryInput.cs new file mode 100644 index 0000000..9caa7a9 --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/门票订单/Dto/TbTicketsOrderListQueryInput.cs @@ -0,0 +1,58 @@ +using NCC.Common.Filter; +using System.Collections.Generic; + +namespace NCC.Blind.Entitys.Dto.TbTicketsOrder +{ + /// + /// 门票订单列表查询输入 + /// + public class TbTicketsOrderListQueryInput : PageInputBase + { + /// + /// 选择导出数据key + /// + public string selectKey { get; set; } + + /// + /// + /// + public int dataType { get; set; } + + + /// + /// 用户ID + /// + public string userId { get; set; } + + /// + /// 订单号 + /// + public string orderNumber { get; set; } + + /// + /// 真实姓名 + /// + public string name { get; set; } + + /// + /// 身份证号码 + /// + public string idCard { get; set; } + + /// + /// 电话号码 + /// + public string phone { get; set; } + + /// + /// 状态 1--未付款 2--已付款 3--已完成 + /// + public string status { get; set; } + + /// + /// 订单ID + /// + public string orderId { get; set; } + + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/门票订单/Dto/TbTicketsOrderUpInput.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/门票订单/Dto/TbTicketsOrderUpInput.cs new file mode 100644 index 0000000..9a97ecf --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/门票订单/Dto/TbTicketsOrderUpInput.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; + +namespace NCC.Blind.Entitys.Dto.TbTicketsOrder +{ + /// + /// 门票订单更新输入参数 + /// + public class TbTicketsOrderUpInput : TbTicketsOrderCrInput + { + /// + /// 主键 + /// + public string id { get; set; } + + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/门票订单/Entity/TbTicketsOrderEntity.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/门票订单/Entity/TbTicketsOrderEntity.cs new file mode 100644 index 0000000..f03d602 --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/门票订单/Entity/TbTicketsOrderEntity.cs @@ -0,0 +1,81 @@ +using NCC.Common.Const; +using SqlSugar; +using System; + +namespace NCC.Blind.Entitys +{ + /// + /// 门票订单 + /// + [SugarTable("tb_TicketsOrder")] + [Tenant(ClaimConst.TENANT_ID)] + public class TbTicketsOrderEntity + { + /// + /// 主键 + /// + [SugarColumn(ColumnName = "F_Id", IsPrimaryKey = true)] + public string Id { get; set; } + + /// + /// 用户ID + /// + [SugarColumn(ColumnName = "F_UserId")] + public string UserId { get; set; } + + /// + /// 订单号 + /// + [SugarColumn(ColumnName = "F_OrderNumber")] + public string OrderNumber { get; set; } + + /// + /// 真实姓名 + /// + [SugarColumn(ColumnName = "F_Name")] + public string Name { get; set; } + + /// + /// 身份证号码 + /// + [SugarColumn(ColumnName = "F_IdCard")] + public string IdCard { get; set; } + + /// + /// 电话号码 + /// + [SugarColumn(ColumnName = "F_Phone")] + public string Phone { get; set; } + + /// + /// 状态 1--未付款 2--已付款 3--已完成 + /// + [SugarColumn(ColumnName = "F_Status")] + public string Status { get; set; } + + /// + /// 金额 + /// + [SugarColumn(ColumnName = "F_TotalPrice")] + public decimal TotalPrice { get; set; } + + /// + /// 订单ID + /// + [SugarColumn(ColumnName = "F_OrderId")] + public string OrderId { get; set; } + + /// + /// 创建时间 + /// + [SugarColumn(ColumnName = "F_CreatorTime")] + public DateTime? CreatorTime { get; set; } + + /// + /// 修改时间 + /// + [SugarColumn(ColumnName = "F_LastModifyTime")] + public DateTime? LastModifyTime { get; set; } + + } +} \ No newline at end of file diff --git a/antis-ncc-net-core/NCC.BlindBox.Entitys/门票订单/Mapper/TbTicketsOrderMapper.cs b/antis-ncc-net-core/NCC.BlindBox.Entitys/门票订单/Mapper/TbTicketsOrderMapper.cs new file mode 100644 index 0000000..8cde5cc --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Entitys/门票订单/Mapper/TbTicketsOrderMapper.cs @@ -0,0 +1,14 @@ +using NCC.Common.Helper; +using NCC.Blind.Entitys.Dto.TbTicketsOrder; +using Mapster; +using System.Collections.Generic; + +namespace NCC.Blind.Entitys.Mapper.TbTicketsOrder +{ + public class Mapper : IRegister + { + public void Register(TypeAdapterConfig config) + { + } + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox.Interfaces/MBT人格线路/ITbMbtLineService.cs b/antis-ncc-net-core/NCC.BlindBox.Interfaces/MBT人格线路/ITbMbtLineService.cs new file mode 100644 index 0000000..e100470 --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Interfaces/MBT人格线路/ITbMbtLineService.cs @@ -0,0 +1,6 @@ +namespace NCC.Blind.Interfaces.TbMbtLine +{ + public interface ITbMbtLineService + { + } +} \ No newline at end of file diff --git a/antis-ncc-net-core/NCC.BlindBox.Interfaces/MBT人格线路节点/ITbMbtLineNodeService.cs b/antis-ncc-net-core/NCC.BlindBox.Interfaces/MBT人格线路节点/ITbMbtLineNodeService.cs new file mode 100644 index 0000000..bfd932e --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Interfaces/MBT人格线路节点/ITbMbtLineNodeService.cs @@ -0,0 +1,6 @@ +namespace NCC.Blind.Interfaces.TbMbtLineNode +{ + public interface ITbMbtLineNodeService + { + } +} \ No newline at end of file diff --git a/antis-ncc-net-core/NCC.BlindBox.Interfaces/NCC.BlindBox.Interfaces.csproj b/antis-ncc-net-core/NCC.BlindBox.Interfaces/NCC.BlindBox.Interfaces.csproj index 781507c..51f6052 100644 --- a/antis-ncc-net-core/NCC.BlindBox.Interfaces/NCC.BlindBox.Interfaces.csproj +++ b/antis-ncc-net-core/NCC.BlindBox.Interfaces/NCC.BlindBox.Interfaces.csproj @@ -1,7 +1,8 @@ - + net5.0 + True diff --git a/antis-ncc-net-core/NCC.BlindBox.Interfaces/价格设定/ITbSettingPriceService.cs b/antis-ncc-net-core/NCC.BlindBox.Interfaces/价格设定/ITbSettingPriceService.cs new file mode 100644 index 0000000..4cea5df --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Interfaces/价格设定/ITbSettingPriceService.cs @@ -0,0 +1,6 @@ +namespace NCC.Blind.Interfaces.TbSettingPrice +{ + public interface ITbSettingPriceService + { + } +} \ No newline at end of file diff --git a/antis-ncc-net-core/NCC.BlindBox.Interfaces/地域线路/ITbAreaLineService.cs b/antis-ncc-net-core/NCC.BlindBox.Interfaces/地域线路/ITbAreaLineService.cs new file mode 100644 index 0000000..5439fe3 --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Interfaces/地域线路/ITbAreaLineService.cs @@ -0,0 +1,6 @@ +namespace NCC.Blind.Interfaces.TbAreaLine +{ + public interface ITbAreaLineService + { + } +} \ No newline at end of file diff --git a/antis-ncc-net-core/NCC.BlindBox.Interfaces/地域线路节点/ITbAreaLineNodeService.cs b/antis-ncc-net-core/NCC.BlindBox.Interfaces/地域线路节点/ITbAreaLineNodeService.cs new file mode 100644 index 0000000..ff73a44 --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Interfaces/地域线路节点/ITbAreaLineNodeService.cs @@ -0,0 +1,6 @@ +namespace NCC.Blind.Interfaces.TbAreaLineNode +{ + public interface ITbAreaLineNodeService + { + } +} \ No newline at end of file diff --git a/antis-ncc-net-core/NCC.BlindBox.Interfaces/抽奖记录/ITbBoxLogService.cs b/antis-ncc-net-core/NCC.BlindBox.Interfaces/抽奖记录/ITbBoxLogService.cs new file mode 100644 index 0000000..43f9679 --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Interfaces/抽奖记录/ITbBoxLogService.cs @@ -0,0 +1,6 @@ +namespace NCC.Blind.Interfaces.TbBoxLog +{ + public interface ITbBoxLogService + { + } +} \ No newline at end of file diff --git a/antis-ncc-net-core/NCC.BlindBox.Interfaces/旅游景点/ITbTravelSpotService.cs b/antis-ncc-net-core/NCC.BlindBox.Interfaces/旅游景点/ITbTravelSpotService.cs new file mode 100644 index 0000000..e082a1e --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Interfaces/旅游景点/ITbTravelSpotService.cs @@ -0,0 +1,6 @@ +namespace NCC.Blind.Interfaces.TbTravelSpot +{ + public interface ITbTravelSpotService + { + } +} \ No newline at end of file diff --git a/antis-ncc-net-core/NCC.BlindBox.Interfaces/用户协议/ITbUserAgreementService.cs b/antis-ncc-net-core/NCC.BlindBox.Interfaces/用户协议/ITbUserAgreementService.cs new file mode 100644 index 0000000..fedaf53 --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Interfaces/用户协议/ITbUserAgreementService.cs @@ -0,0 +1,6 @@ +namespace NCC.Blind.Interfaces.TbUserAgreement +{ + public interface ITbUserAgreementService + { + } +} \ No newline at end of file diff --git a/antis-ncc-net-core/NCC.BlindBox.Interfaces/盲盒介绍/ITbRecommendService.cs b/antis-ncc-net-core/NCC.BlindBox.Interfaces/盲盒介绍/ITbRecommendService.cs new file mode 100644 index 0000000..24dc4af --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Interfaces/盲盒介绍/ITbRecommendService.cs @@ -0,0 +1,6 @@ +namespace NCC.Blind.Interfaces.TbRecommend +{ + public interface ITbRecommendService + { + } +} \ No newline at end of file diff --git a/antis-ncc-net-core/NCC.BlindBox.Interfaces/盲盒券/ITbMyBoxCouponService.cs b/antis-ncc-net-core/NCC.BlindBox.Interfaces/盲盒券/ITbMyBoxCouponService.cs new file mode 100644 index 0000000..5cc79df --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Interfaces/盲盒券/ITbMyBoxCouponService.cs @@ -0,0 +1,6 @@ +namespace NCC.Blind.Interfaces.TbMyBoxCoupon +{ + public interface ITbMyBoxCouponService + { + } +} \ No newline at end of file diff --git a/antis-ncc-net-core/NCC.BlindBox.Interfaces/盲盒订单/ITbBoxOrderService.cs b/antis-ncc-net-core/NCC.BlindBox.Interfaces/盲盒订单/ITbBoxOrderService.cs new file mode 100644 index 0000000..bb7c4bb --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Interfaces/盲盒订单/ITbBoxOrderService.cs @@ -0,0 +1,6 @@ +namespace NCC.Blind.Interfaces.TbBoxOrder +{ + public interface ITbBoxOrderService + { + } +} \ No newline at end of file diff --git a/antis-ncc-net-core/NCC.BlindBox.Interfaces/门票订单/ITbTicketsOrderService.cs b/antis-ncc-net-core/NCC.BlindBox.Interfaces/门票订单/ITbTicketsOrderService.cs new file mode 100644 index 0000000..e813e25 --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox.Interfaces/门票订单/ITbTicketsOrderService.cs @@ -0,0 +1,6 @@ +namespace NCC.Blind.Interfaces.TbTicketsOrder +{ + public interface ITbTicketsOrderService + { + } +} \ No newline at end of file diff --git a/antis-ncc-net-core/NCC.BlindBox/BlindBoxStatus.cs b/antis-ncc-net-core/NCC.BlindBox/BlindBoxStatus.cs new file mode 100644 index 0000000..2199507 --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox/BlindBoxStatus.cs @@ -0,0 +1,101 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace NCC.BlindBox +{ + /// + /// 枚举类 + /// + public class BlindBoxStatus + { + + /// + /// 购买类型 + /// + public enum BlindIsMeStatus + { + [Description("自己购买")] + 自己购买=1, + [Description("赠送他人")] + 赠送他人=2 + } + + /// + /// 支付状态 + /// + public enum BlindBoxOrderStatus + { + /// + /// 未付款 + /// + [Description("未付款")] + 未付款=1, + /// + /// 已付款 + /// + [Description("已付款")] + 已付款 =2, + /// + /// 已完成 + /// + [Description("已完成")] + 已完成 =3 + } + + /// + /// 路线类型 + /// + public enum BlindBoxLineStatus + { + /// + /// 地域线路 + /// + [Description("地域线路")] + 地域线路 = 1, + /// + /// MBT人格线路 + /// + [Description("MBT人格线路")] + MBT人格线路= 2 + } + + /// + /// 价格设定枚举 + /// + public enum BlindBoxSettingPriceType + { + /// + /// 盲盒价格 + /// + [Description("盲盒价格")] + 盲盒价格=1, + /// + /// 门票价格 + /// + [Description("门票价格")] + 门票价格=2 + } + + /// + /// 盲盒券状态 + /// + public enum BlindBoxCouponStatus + { + /// + /// 未使用 + /// + [Description("未使用")] + 未使用=1, + /// + /// 已使用 + /// + [Description("已使用")] + 已使用 = 2, + } + + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox/MBT人格/TbMbtCharacterService.cs b/antis-ncc-net-core/NCC.BlindBox/MBT人格/TbMbtCharacterService.cs index 17528f4..d181c3e 100644 --- a/antis-ncc-net-core/NCC.BlindBox/MBT人格/TbMbtCharacterService.cs +++ b/antis-ncc-net-core/NCC.BlindBox/MBT人格/TbMbtCharacterService.cs @@ -23,14 +23,19 @@ using NCC.Common.Configuration; using NCC.DataEncryption; using NCC.ClayObject; using NCC.System.Interfaces.System; +using NCC.Blind.Entitys.Dto.TbAreaLineNode; +using NCC.Blind.Entitys; +using static NCC.Education.TbArea.TbAreaService; +using System.ComponentModel.DataAnnotations; +using NCC.Blind.Entitys.Dto.TbMbtLineNode; namespace NCC.Education.TbMbtCharacter { /// /// MBT人格服务 /// - [ApiDescriptionSettings(Tag = "Education",Name = "TbMbtCharacter", Order = 200)] - [Route("api/Education/[controller]")] + [ApiDescriptionSettings(Tag = "MBT人格服务",Name = "TbMbtCharacter", Order = 200)] + [Route("api/Blind/[controller]")] public class TbMbtCharacterService : ITbMbtCharacterService, IDynamicApiController, ITransient { private readonly ISqlSugarRepository _tbMbtCharacterRepository; @@ -54,6 +59,61 @@ namespace NCC.Education.TbMbtCharacter _dataBaseService = dataBaseService; _userManager = userManager; } + /// + /// 根据MBT人格ID查询MBT人格线路节点入参 + /// + public class MbtLineNodeOptions : PageInputBase + { + /// + /// MBT人格ID + /// + [Required(ErrorMessage = "MBT人格不能为空")] + public string mbtId { get; set; } + } + + /// + /// 根据MBTI人格查询人格线路节点 + /// + /// + /// + [HttpPost("GetMbtLineNodeByAreaId")] + public async Task GetMbtLineNodeByAreaId(MbtLineNodeOptions input) + { + List areaLineIds = new List(); + var areaLineList = _db.Queryable().Where(o => o.MbtId == input.mbtId).ToList(); + foreach (var item in areaLineList) + { + areaLineIds.Add(item.Id); + } + var sidx = input.sidx == null ? "id" : input.sidx; + var data = await _db.Queryable() + + .WhereIF(!string.IsNullOrEmpty(input.mbtId), p => areaLineIds.Contains(p.MbtLineId)) + .Select(it => new TbMbtLineNodeListOutput + { + id = it.Id, + mbtLineId = it.MbtLineId, + title = it.Title, + //description = it.Description, + remark = it.Remark, + creatorTime = it.CreatorTime, + lastModifyTime = it.LastModifyTime, + banner = it.Banner, + sorts = it.Sorts, + + }).MergeTable().Mapper(p => + { + p.mbtLine = _db.Queryable().Where(o => o.Id == p.mbtLineId).First(); + }).OrderBy(sidx + " " + input.sort).ToPagedListAsync(input.currentPage, input.pageSize); + return PageResult.SqlSugarPageResult(data); + } + + + + + + + /// /// 获取MBT人格 diff --git a/antis-ncc-net-core/NCC.BlindBox/MBT人格线路/TbMbtLineService.cs b/antis-ncc-net-core/NCC.BlindBox/MBT人格线路/TbMbtLineService.cs new file mode 100644 index 0000000..00df940 --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox/MBT人格线路/TbMbtLineService.cs @@ -0,0 +1,334 @@ +using NCC.Common.Core.Manager; +using NCC.Common.Enum; +using NCC.Common.Extension; +using NCC.Common.Filter; +using NCC.Dependency; +using NCC.DynamicApiController; +using NCC.FriendlyException; +using NCC.Blind.Interfaces.TbMbtLine; +using Mapster; +using Microsoft.AspNetCore.Mvc; +using SqlSugar; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using NCC.Blind.Entitys; +using NCC.Blind.Entitys.Dto.TbMbtLine; +using Yitter.IdGenerator; +using NCC.Common.Helper; +using NCC.JsonSerialization; +using NCC.Common.Model.NPOI; +using NCC.Common.Configuration; +using NCC.DataEncryption; +using NCC.ClayObject; +using NCC.System.Interfaces.System; +using NCC.Education.Entitys; + +namespace NCC.Blind.TbMbtLine +{ + /// + /// MBT人格线路服务 + /// + [ApiDescriptionSettings(Tag = "MBT人格线路",Name = "TbMbtLine", Order = 200)] + [Route("api/Blind/[controller]")] + public class TbMbtLineService : ITbMbtLineService, IDynamicApiController, ITransient + { + private readonly ISqlSugarRepository _tbMbtLineRepository; + private readonly IDbLinkService _dbLinkService; + private readonly IDataBaseService _dataBaseService; + private readonly SqlSugarScope _db; + private readonly IUserManager _userManager; + + /// + /// 初始化一个类型的新实例 + /// + public TbMbtLineService( + ISqlSugarRepository tbMbtLineRepository, + IDbLinkService dbLinkService, + IDataBaseService dataBaseService, + IUserManager userManager) + { + _tbMbtLineRepository = tbMbtLineRepository; + _db = _tbMbtLineRepository.Context; + _dbLinkService = dbLinkService; + _dataBaseService = dataBaseService; + _userManager = userManager; + } + + /// + /// 获取MBT人格线路 + /// + /// 参数 + /// + [HttpGet("{id}")] + public async Task GetInfo(string id) + { + var dbLink = await _dbLinkService.GetInfo("218239598550058245"); + _db.AddConnection(new ConnectionConfig() + { + ConfigId = dbLink.Id, + DbType = _dataBaseService.ToDbType(dbLink.DbType), + ConnectionString = _dataBaseService.ToConnectionString(dbLink), + InitKeyType = InitKeyType.Attribute, + IsAutoCloseConnection = true + }); + _db.ChangeDatabase(dbLink.Id); + var entity = await _db.Queryable().FirstAsync(p => p.Id == id); + var output = entity.Adapt(); + return output; + } + + + /// + /// 根据MBT人格ID查询MBT人格线路 + /// + /// + /// + [HttpPost("GetMbtLByMbtId")] + public async Task GetMbtLByMbtId(string id) + { + var model = _db.Queryable().Where(o => o.MbtId == id).First(); + return model; + } + + + + + + /// + /// 获取MBT人格线路列表 + /// + /// 请求参数 + /// + [HttpGet("")] + public async Task GetList([FromQuery] TbMbtLineListQueryInput input) + { + var dbLink = await _dbLinkService.GetInfo("218239598550058245"); + _db.AddConnection(new ConnectionConfig() + { + ConfigId = dbLink.Id, + DbType = _dataBaseService.ToDbType(dbLink.DbType), + ConnectionString = _dataBaseService.ToConnectionString(dbLink), + InitKeyType = InitKeyType.Attribute, + IsAutoCloseConnection = true + }); + _db.ChangeDatabase(dbLink.Id); + var sidx = input.sidx == null ? "id" : input.sidx; + var data = await _db.Queryable() + .WhereIF(!string.IsNullOrEmpty(input.name), p => p.Name.Contains(input.name)) + .WhereIF(!string.IsNullOrEmpty(input.mbtId), p => p.MbtId.Equals(input.mbtId)) + .WhereIF(!string.IsNullOrEmpty(input.remark), p => p.Remark.Contains(input.remark)) + .Select(it=> new TbMbtLineListOutput + { + id = it.Id, + name=it.Name, + mbtId=it.MbtId, + remark=it.Remark, + creatorTime=it.CreatorTime, + lastModifyTime=it.LastModifyTime, + banner=it.Banner + }).MergeTable().Mapper(p => + { + p.mbt = _db.Queryable().Where(o => o.Id == p.mbtId).First(); + }).OrderBy(sidx+" "+input.sort).ToPagedListAsync(input.currentPage, input.pageSize); + return PageResult.SqlSugarPageResult(data); + } + + /// + /// 新建MBT人格线路 + /// + /// 参数 + /// + [HttpPost("")] + public async Task Create([FromBody] TbMbtLineCrInput input) + { + var dbLink = await _dbLinkService.GetInfo("218239598550058245"); + _db.AddConnection(new ConnectionConfig() + { + ConfigId = dbLink.Id, + DbType = _dataBaseService.ToDbType(dbLink.DbType), + ConnectionString = _dataBaseService.ToConnectionString(dbLink), + InitKeyType = InitKeyType.Attribute, + IsAutoCloseConnection = true + }); + _db.ChangeDatabase(dbLink.Id); + var userInfo = await _userManager.GetUserInfo(); + var entity = input.Adapt(); + entity.Id = YitIdHelper.NextId().ToString(); + entity.CreatorTime = DateTime.Now; + //var model = _db.Queryable().Where(o => o.MbtId == entity.MbtId).First(); + //if (!model.IsNullOrEmpty()) throw NCCException.Oh($"该人格下已存在一条线路!"); + var isOk = await _db.Insertable(entity).IgnoreColumns(ignoreNullColumn: true).ExecuteCommandAsync(); + if (!(isOk > 0)) throw NCCException.Oh(ErrorCode.COM1000); + } + + /// + /// 获取MBT人格线路无分页列表 + /// + /// 请求参数 + /// + [NonAction] + public async Task GetNoPagingList([FromQuery] TbMbtLineListQueryInput input) + { + var dbLink = await _dbLinkService.GetInfo("218239598550058245"); + _db.AddConnection(new ConnectionConfig() + { + ConfigId = dbLink.Id, + DbType = _dataBaseService.ToDbType(dbLink.DbType), + ConnectionString = _dataBaseService.ToConnectionString(dbLink), + InitKeyType = InitKeyType.Attribute, + IsAutoCloseConnection = true + }); + _db.ChangeDatabase(dbLink.Id); + var sidx = input.sidx == null ? "id" : input.sidx; + var data = await _db.Queryable() + .WhereIF(!string.IsNullOrEmpty(input.name), p => p.Name.Contains(input.name)) + .WhereIF(!string.IsNullOrEmpty(input.mbtId), p => p.MbtId.Equals(input.mbtId)) + .WhereIF(!string.IsNullOrEmpty(input.remark), p => p.Remark.Contains(input.remark)) + .Select(it=> new TbMbtLineListOutput + { + id = it.Id, + name=it.Name, + mbtId=it.MbtId, + remark=it.Remark, + creatorTime=it.CreatorTime, + lastModifyTime=it.LastModifyTime, + }).MergeTable().OrderBy(sidx+" "+input.sort).ToListAsync(); + return data; + } + + /// + /// 导出MBT人格线路 + /// + /// 请求参数 + /// + [HttpGet("Actions/Export")] + public async Task Export([FromQuery] TbMbtLineListQueryInput input) + { + var userInfo = await _userManager.GetUserInfo(); + var exportData = new List(); + if (input.dataType == 0) + { + var data = Clay.Object(await this.GetList(input)); + exportData = data.Solidify>().list; + } + else + { + exportData = await this.GetNoPagingList(input); + } + List paramList = "[{\"value\":\"MBT人格\",\"field\":\"mbtId\"},{\"value\":\"标题\",\"field\":\"name\"},{\"value\":\"线路概况\",\"field\":\"remark\"},{\"value\":\"创建时间\",\"field\":\"creatorTime\"},{\"value\":\"修改时间\",\"field\":\"lastModifyTime\"},]".ToList(); + ExcelConfig excelconfig = new ExcelConfig(); + excelconfig.FileName = "MBT人格线路.xls"; + excelconfig.HeadFont = "微软雅黑"; + excelconfig.HeadPoint = 10; + excelconfig.IsAllSizeColumn = true; + excelconfig.ColumnModel = new List(); + List selectKeyList = input.selectKey.Split(',').ToList(); + foreach (var item in selectKeyList) + { + var isExist = paramList.Find(p => p.field == item); + if (isExist != null) + { + excelconfig.ColumnModel.Add(new ExcelColumnModel() { Column = isExist.field, ExcelColumn = isExist.value }); + } + } + var addPath = FileVariable.TemporaryFilePath + excelconfig.FileName; + ExcelExportHelper.Export(exportData, excelconfig, addPath); + var fileName = _userManager.UserId + "|" + addPath + "|xls"; + var output = new + { + name = excelconfig.FileName, + url = "/api/File/Download?encryption=" + DESCEncryption.Encrypt(fileName, "NCC") + }; + return output; + } + + /// + /// 批量删除MBT人格线路 + /// + /// 主键数组 + /// + [HttpPost("batchRemove")] + public async Task BatchRemove([FromBody] List ids) + { + var dbLink = await _dbLinkService.GetInfo("218239598550058245"); + _db.AddConnection(new ConnectionConfig() + { + ConfigId = dbLink.Id, + DbType = _dataBaseService.ToDbType(dbLink.DbType), + ConnectionString = _dataBaseService.ToConnectionString(dbLink), + InitKeyType = InitKeyType.Attribute, + IsAutoCloseConnection = true + }); + _db.ChangeDatabase(dbLink.Id); + var entitys = await _db.Queryable().In(it => it.Id, ids).ToListAsync(); + if (entitys.Count > 0) + { + try + { + //开启事务 + _db.BeginTran(); + //批量删除MBT人格线路 + await _db.Deleteable().In(d => d.Id,ids).ExecuteCommandAsync(); + //关闭事务 + _db.CommitTran(); + } + catch (Exception) + { + //回滚事务 + _db.RollbackTran(); + throw NCCException.Oh(ErrorCode.COM1002); + } + } + } + + /// + /// 更新MBT人格线路 + /// + /// 主键 + /// 参数 + /// + [HttpPut("{id}")] + public async Task Update(string id, [FromBody] TbMbtLineUpInput input) + { + var dbLink = await _dbLinkService.GetInfo("218239598550058245"); + _db.AddConnection(new ConnectionConfig() + { + ConfigId = dbLink.Id, + DbType = _dataBaseService.ToDbType(dbLink.DbType), + ConnectionString = _dataBaseService.ToConnectionString(dbLink), + InitKeyType = InitKeyType.Attribute, + IsAutoCloseConnection = true + }); + _db.ChangeDatabase(dbLink.Id); + var entity = input.Adapt(); + entity.LastModifyTime = DateTime.Now; + var isOk = await _db.Updateable(entity).IgnoreColumns(ignoreAllNullColumns: true).ExecuteCommandAsync(); + if (!(isOk > 0)) throw NCCException.Oh(ErrorCode.COM1001); + } + + /// + /// 删除MBT人格线路 + /// + /// + [HttpDelete("{id}")] + public async Task Delete(string id) + { + var dbLink = await _dbLinkService.GetInfo("218239598550058245"); + _db.AddConnection(new ConnectionConfig() + { + ConfigId = dbLink.Id, + DbType = _dataBaseService.ToDbType(dbLink.DbType), + ConnectionString = _dataBaseService.ToConnectionString(dbLink), + InitKeyType = InitKeyType.Attribute, + IsAutoCloseConnection = true + }); + _db.ChangeDatabase(dbLink.Id); + var entity = await _db.Queryable().FirstAsync(p => p.Id == id); + _ = entity ?? throw NCCException.Oh(ErrorCode.COM1005); + var isOk = await _db.Deleteable().Where(d => d.Id == id).ExecuteCommandAsync(); + if (!(isOk > 0)) throw NCCException.Oh(ErrorCode.COM1002); + } + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox/MBT人格线路节点/TbMbtLineNodeService.cs b/antis-ncc-net-core/NCC.BlindBox/MBT人格线路节点/TbMbtLineNodeService.cs new file mode 100644 index 0000000..242b898 --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox/MBT人格线路节点/TbMbtLineNodeService.cs @@ -0,0 +1,320 @@ +using NCC.Common.Core.Manager; +using NCC.Common.Enum; +using NCC.Common.Extension; +using NCC.Common.Filter; +using NCC.Dependency; +using NCC.DynamicApiController; +using NCC.FriendlyException; +using NCC.Blind.Interfaces.TbMbtLineNode; +using Mapster; +using Microsoft.AspNetCore.Mvc; +using SqlSugar; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using NCC.Blind.Entitys; +using NCC.Blind.Entitys.Dto.TbMbtLineNode; +using Yitter.IdGenerator; +using NCC.Common.Helper; +using NCC.JsonSerialization; +using NCC.Common.Model.NPOI; +using NCC.Common.Configuration; +using NCC.DataEncryption; +using NCC.ClayObject; +using NCC.System.Interfaces.System; + +namespace NCC.Blind.TbMbtLineNode +{ + /// + /// MBT人格线路节点服务 + /// + [ApiDescriptionSettings(Tag = "MBT人格线路节点",Name = "TbMbtLineNode", Order = 200)] + [Route("api/Blind/[controller]")] + public class TbMbtLineNodeService : ITbMbtLineNodeService, IDynamicApiController, ITransient + { + private readonly ISqlSugarRepository _tbMbtLineNodeRepository; + private readonly IDbLinkService _dbLinkService; + private readonly IDataBaseService _dataBaseService; + private readonly SqlSugarScope _db; + private readonly IUserManager _userManager; + + /// + /// 初始化一个类型的新实例 + /// + public TbMbtLineNodeService( + ISqlSugarRepository tbMbtLineNodeRepository, + IDbLinkService dbLinkService, + IDataBaseService dataBaseService, + IUserManager userManager) + { + _tbMbtLineNodeRepository = tbMbtLineNodeRepository; + _db = _tbMbtLineNodeRepository.Context; + _dbLinkService = dbLinkService; + _dataBaseService = dataBaseService; + _userManager = userManager; + } + + /// + /// 获取MBT人格线路节点 + /// + /// 参数 + /// + [HttpGet("{id}")] + public async Task GetInfo(string id) + { + var dbLink = await _dbLinkService.GetInfo("218239598550058245"); + _db.AddConnection(new ConnectionConfig() + { + ConfigId = dbLink.Id, + DbType = _dataBaseService.ToDbType(dbLink.DbType), + ConnectionString = _dataBaseService.ToConnectionString(dbLink), + InitKeyType = InitKeyType.Attribute, + IsAutoCloseConnection = true + }); + _db.ChangeDatabase(dbLink.Id); + var entity = await _db.Queryable().FirstAsync(p => p.Id == id); + var output = entity.Adapt(); + return output; + } + + /// + /// 获取MBT人格线路节点列表 + /// + /// 请求参数 + /// + [HttpGet("")] + public async Task GetList([FromQuery] TbMbtLineNodeListQueryInput input) + { + var dbLink = await _dbLinkService.GetInfo("218239598550058245"); + _db.AddConnection(new ConnectionConfig() + { + ConfigId = dbLink.Id, + DbType = _dataBaseService.ToDbType(dbLink.DbType), + ConnectionString = _dataBaseService.ToConnectionString(dbLink), + InitKeyType = InitKeyType.Attribute, + IsAutoCloseConnection = true + }); + _db.ChangeDatabase(dbLink.Id); + var sidx = input.sidx == null ? "id" : input.sidx; + var data = await _db.Queryable() + .WhereIF(!string.IsNullOrEmpty(input.mbtLineId), p => p.MbtLineId.Equals(input.mbtLineId)) + .WhereIF(!string.IsNullOrEmpty(input.title), p => p.Title.Contains(input.title)) + .WhereIF(!string.IsNullOrEmpty(input.description), p => p.Description.Contains(input.description)) + .WhereIF(!string.IsNullOrEmpty(input.remark), p => p.Remark.Contains(input.remark)) + .Select(it=> new TbMbtLineNodeListOutput + { + id = it.Id, + mbtLineId=it.MbtLineId, + title=it.Title, + description=it.Description, + remark=it.Remark, + creatorTime=it.CreatorTime, + lastModifyTime=it.LastModifyTime, + sorts=it.Sorts, + banner=it.Banner, + }).MergeTable().Mapper(p => + { + p.mbtLine = _db.Queryable().Where(o => o.Id == p.mbtLineId).First(); + }).OrderBy(sidx+" "+input.sort).ToPagedListAsync(input.currentPage, input.pageSize); + return PageResult.SqlSugarPageResult(data); + } + + /// + /// 新建MBT人格线路节点 + /// + /// 参数 + /// + [HttpPost("")] + public async Task Create([FromBody] TbMbtLineNodeCrInput input) + { + var dbLink = await _dbLinkService.GetInfo("218239598550058245"); + _db.AddConnection(new ConnectionConfig() + { + ConfigId = dbLink.Id, + DbType = _dataBaseService.ToDbType(dbLink.DbType), + ConnectionString = _dataBaseService.ToConnectionString(dbLink), + InitKeyType = InitKeyType.Attribute, + IsAutoCloseConnection = true + }); + _db.ChangeDatabase(dbLink.Id); + var userInfo = await _userManager.GetUserInfo(); + var entity = input.Adapt(); + entity.Id = YitIdHelper.NextId().ToString(); + entity.CreatorTime = DateTime.Now; + var isOk = await _db.Insertable(entity).IgnoreColumns(ignoreNullColumn: true).ExecuteCommandAsync(); + if (!(isOk > 0)) throw NCCException.Oh(ErrorCode.COM1000); + } + + /// + /// 获取MBT人格线路节点无分页列表 + /// + /// 请求参数 + /// + [NonAction] + public async Task GetNoPagingList([FromQuery] TbMbtLineNodeListQueryInput input) + { + var dbLink = await _dbLinkService.GetInfo("218239598550058245"); + _db.AddConnection(new ConnectionConfig() + { + ConfigId = dbLink.Id, + DbType = _dataBaseService.ToDbType(dbLink.DbType), + ConnectionString = _dataBaseService.ToConnectionString(dbLink), + InitKeyType = InitKeyType.Attribute, + IsAutoCloseConnection = true + }); + _db.ChangeDatabase(dbLink.Id); + var sidx = input.sidx == null ? "id" : input.sidx; + var data = await _db.Queryable() + .WhereIF(!string.IsNullOrEmpty(input.mbtLineId), p => p.MbtLineId.Equals(input.mbtLineId)) + .WhereIF(!string.IsNullOrEmpty(input.title), p => p.Title.Contains(input.title)) + .WhereIF(!string.IsNullOrEmpty(input.description), p => p.Description.Contains(input.description)) + .WhereIF(!string.IsNullOrEmpty(input.remark), p => p.Remark.Contains(input.remark)) + .Select(it=> new TbMbtLineNodeListOutput + { + id = it.Id, + mbtLineId=it.MbtLineId, + title=it.Title, + description=it.Description, + remark=it.Remark, + creatorTime=it.CreatorTime, + lastModifyTime=it.LastModifyTime, + sorts = it.Sorts + }).MergeTable().OrderBy(sidx+" "+input.sort).ToListAsync(); + return data; + } + + /// + /// 导出MBT人格线路节点 + /// + /// 请求参数 + /// + [HttpGet("Actions/Export")] + public async Task Export([FromQuery] TbMbtLineNodeListQueryInput input) + { + var userInfo = await _userManager.GetUserInfo(); + var exportData = new List(); + if (input.dataType == 0) + { + var data = Clay.Object(await this.GetList(input)); + exportData = data.Solidify>().list; + } + else + { + exportData = await this.GetNoPagingList(input); + } + List paramList = "[{\"value\":\"MBT人格线路\",\"field\":\"mbtLineId\"},{\"value\":\"节点标题\",\"field\":\"title\"},{\"value\":\"节点简介\",\"field\":\"description\"},{\"value\":\"节点注意事项\",\"field\":\"remark\"},{\"value\":\"创建时间\",\"field\":\"creatorTime\"},{\"value\":\"修改时间\",\"field\":\"lastModifyTime\"},{\"value\":\"排序\",\"field\":\"sorts\"},]".ToList(); + ExcelConfig excelconfig = new ExcelConfig(); + excelconfig.FileName = "MBT人格线路节点.xls"; + excelconfig.HeadFont = "微软雅黑"; + excelconfig.HeadPoint = 10; + excelconfig.IsAllSizeColumn = true; + excelconfig.ColumnModel = new List(); + List selectKeyList = input.selectKey.Split(',').ToList(); + foreach (var item in selectKeyList) + { + var isExist = paramList.Find(p => p.field == item); + if (isExist != null) + { + excelconfig.ColumnModel.Add(new ExcelColumnModel() { Column = isExist.field, ExcelColumn = isExist.value }); + } + } + var addPath = FileVariable.TemporaryFilePath + excelconfig.FileName; + ExcelExportHelper.Export(exportData, excelconfig, addPath); + var fileName = _userManager.UserId + "|" + addPath + "|xls"; + var output = new + { + name = excelconfig.FileName, + url = "/api/File/Download?encryption=" + DESCEncryption.Encrypt(fileName, "NCC") + }; + return output; + } + + /// + /// 批量删除MBT人格线路节点 + /// + /// 主键数组 + /// + [HttpPost("batchRemove")] + public async Task BatchRemove([FromBody] List ids) + { + var dbLink = await _dbLinkService.GetInfo("218239598550058245"); + _db.AddConnection(new ConnectionConfig() + { + ConfigId = dbLink.Id, + DbType = _dataBaseService.ToDbType(dbLink.DbType), + ConnectionString = _dataBaseService.ToConnectionString(dbLink), + InitKeyType = InitKeyType.Attribute, + IsAutoCloseConnection = true + }); + _db.ChangeDatabase(dbLink.Id); + var entitys = await _db.Queryable().In(it => it.Id, ids).ToListAsync(); + if (entitys.Count > 0) + { + try + { + //开启事务 + _db.BeginTran(); + //批量删除MBT人格线路节点 + await _db.Deleteable().In(d => d.Id,ids).ExecuteCommandAsync(); + //关闭事务 + _db.CommitTran(); + } + catch (Exception) + { + //回滚事务 + _db.RollbackTran(); + throw NCCException.Oh(ErrorCode.COM1002); + } + } + } + + /// + /// 更新MBT人格线路节点 + /// + /// 主键 + /// 参数 + /// + [HttpPut("{id}")] + public async Task Update(string id, [FromBody] TbMbtLineNodeUpInput input) + { + var dbLink = await _dbLinkService.GetInfo("218239598550058245"); + _db.AddConnection(new ConnectionConfig() + { + ConfigId = dbLink.Id, + DbType = _dataBaseService.ToDbType(dbLink.DbType), + ConnectionString = _dataBaseService.ToConnectionString(dbLink), + InitKeyType = InitKeyType.Attribute, + IsAutoCloseConnection = true + }); + _db.ChangeDatabase(dbLink.Id); + var entity = input.Adapt(); + entity.LastModifyTime = DateTime.Now; + var isOk = await _db.Updateable(entity).IgnoreColumns(ignoreAllNullColumns: true).ExecuteCommandAsync(); + if (!(isOk > 0)) throw NCCException.Oh(ErrorCode.COM1001); + } + + /// + /// 删除MBT人格线路节点 + /// + /// + [HttpDelete("{id}")] + public async Task Delete(string id) + { + var dbLink = await _dbLinkService.GetInfo("218239598550058245"); + _db.AddConnection(new ConnectionConfig() + { + ConfigId = dbLink.Id, + DbType = _dataBaseService.ToDbType(dbLink.DbType), + ConnectionString = _dataBaseService.ToConnectionString(dbLink), + InitKeyType = InitKeyType.Attribute, + IsAutoCloseConnection = true + }); + _db.ChangeDatabase(dbLink.Id); + var entity = await _db.Queryable().FirstAsync(p => p.Id == id); + _ = entity ?? throw NCCException.Oh(ErrorCode.COM1005); + var isOk = await _db.Deleteable().Where(d => d.Id == id).ExecuteCommandAsync(); + if (!(isOk > 0)) throw NCCException.Oh(ErrorCode.COM1002); + } + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox/NCC.BlindBox.csproj b/antis-ncc-net-core/NCC.BlindBox/NCC.BlindBox.csproj index a11dd3d..057762c 100644 --- a/antis-ncc-net-core/NCC.BlindBox/NCC.BlindBox.csproj +++ b/antis-ncc-net-core/NCC.BlindBox/NCC.BlindBox.csproj @@ -2,6 +2,7 @@ net5.0 + True diff --git a/antis-ncc-net-core/NCC.BlindBox/价格设定/TbSettingPriceService.cs b/antis-ncc-net-core/NCC.BlindBox/价格设定/TbSettingPriceService.cs new file mode 100644 index 0000000..d7b96ba --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox/价格设定/TbSettingPriceService.cs @@ -0,0 +1,304 @@ +using NCC.Common.Core.Manager; +using NCC.Common.Enum; +using NCC.Common.Extension; +using NCC.Common.Filter; +using NCC.Dependency; +using NCC.DynamicApiController; +using NCC.FriendlyException; +using NCC.Blind.Interfaces.TbSettingPrice; +using Mapster; +using Microsoft.AspNetCore.Mvc; +using SqlSugar; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using NCC.Blind.Entitys; +using NCC.Blind.Entitys.Dto.TbSettingPrice; +using Yitter.IdGenerator; +using NCC.Common.Helper; +using NCC.JsonSerialization; +using NCC.Common.Model.NPOI; +using NCC.Common.Configuration; +using NCC.DataEncryption; +using NCC.ClayObject; +using NCC.System.Interfaces.System; + +namespace NCC.Blind.TbSettingPrice +{ + /// + /// 价格设定服务 + /// + [ApiDescriptionSettings(Tag = "价格设定",Name = "TbSettingPrice", Order = 200)] + [Route("api/Blind/[controller]")] + public class TbSettingPriceService : ITbSettingPriceService, IDynamicApiController, ITransient + { + private readonly ISqlSugarRepository _tbSettingPriceRepository; + private readonly IDbLinkService _dbLinkService; + private readonly IDataBaseService _dataBaseService; + private readonly SqlSugarScope _db; + private readonly IUserManager _userManager; + + /// + /// 初始化一个类型的新实例 + /// + public TbSettingPriceService( + ISqlSugarRepository tbSettingPriceRepository, + IDbLinkService dbLinkService, + IDataBaseService dataBaseService, + IUserManager userManager) + { + _tbSettingPriceRepository = tbSettingPriceRepository; + _db = _tbSettingPriceRepository.Context; + _dbLinkService = dbLinkService; + _dataBaseService = dataBaseService; + _userManager = userManager; + } + + /// + /// 获取价格设定 + /// + /// 参数 + /// + [HttpGet("{id}")] + public async Task GetInfo(string id) + { + var dbLink = await _dbLinkService.GetInfo("218239598550058245"); + _db.AddConnection(new ConnectionConfig() + { + ConfigId = dbLink.Id, + DbType = _dataBaseService.ToDbType(dbLink.DbType), + ConnectionString = _dataBaseService.ToConnectionString(dbLink), + InitKeyType = InitKeyType.Attribute, + IsAutoCloseConnection = true + }); + _db.ChangeDatabase(dbLink.Id); + var entity = await _db.Queryable().FirstAsync(p => p.Id == id); + var output = entity.Adapt(); + return output; + } + + /// + /// 获取价格设定列表 + /// + /// 请求参数 + /// + [HttpGet("")] + public async Task GetList([FromQuery] TbSettingPriceListQueryInput input) + { + var dbLink = await _dbLinkService.GetInfo("218239598550058245"); + _db.AddConnection(new ConnectionConfig() + { + ConfigId = dbLink.Id, + DbType = _dataBaseService.ToDbType(dbLink.DbType), + ConnectionString = _dataBaseService.ToConnectionString(dbLink), + InitKeyType = InitKeyType.Attribute, + IsAutoCloseConnection = true + }); + _db.ChangeDatabase(dbLink.Id); + var sidx = input.sidx == null ? "id" : input.sidx; + var data = await _db.Queryable() + .WhereIF(!string.IsNullOrEmpty(input.type), p => p.Type.Equals(input.type)) + .Select(it=> new TbSettingPriceListOutput + { + id = it.Id, + price=it.Price, + type=it.Type, + creatorTime=it.CreatorTime, + lastModifyTime=it.LastModifyTime, + }).MergeTable().OrderBy(sidx+" "+input.sort).ToPagedListAsync(input.currentPage, input.pageSize); + return PageResult.SqlSugarPageResult(data); + } + + /// + /// 新建价格设定 + /// + /// 参数 + /// + [HttpPost("")] + public async Task Create([FromBody] TbSettingPriceCrInput input) + { + var dbLink = await _dbLinkService.GetInfo("218239598550058245"); + _db.AddConnection(new ConnectionConfig() + { + ConfigId = dbLink.Id, + DbType = _dataBaseService.ToDbType(dbLink.DbType), + ConnectionString = _dataBaseService.ToConnectionString(dbLink), + InitKeyType = InitKeyType.Attribute, + IsAutoCloseConnection = true + }); + _db.ChangeDatabase(dbLink.Id); + var userInfo = await _userManager.GetUserInfo(); + var entity = input.Adapt(); + entity.Id = YitIdHelper.NextId().ToString(); + entity.CreatorTime = DateTime.Now; + var isOk = await _db.Insertable(entity).IgnoreColumns(ignoreNullColumn: true).ExecuteCommandAsync(); + if (!(isOk > 0)) throw NCCException.Oh(ErrorCode.COM1000); + } + + /// + /// 获取价格设定无分页列表 + /// + /// 请求参数 + /// + [NonAction] + public async Task GetNoPagingList([FromQuery] TbSettingPriceListQueryInput input) + { + var dbLink = await _dbLinkService.GetInfo("218239598550058245"); + _db.AddConnection(new ConnectionConfig() + { + ConfigId = dbLink.Id, + DbType = _dataBaseService.ToDbType(dbLink.DbType), + ConnectionString = _dataBaseService.ToConnectionString(dbLink), + InitKeyType = InitKeyType.Attribute, + IsAutoCloseConnection = true + }); + _db.ChangeDatabase(dbLink.Id); + var sidx = input.sidx == null ? "id" : input.sidx; + var data = await _db.Queryable() + .WhereIF(!string.IsNullOrEmpty(input.type), p => p.Type.Equals(input.type)) + .Select(it=> new TbSettingPriceListOutput + { + id = it.Id, + price=it.Price, + type=it.Type, + creatorTime=it.CreatorTime, + lastModifyTime=it.LastModifyTime, + }).MergeTable().OrderBy(sidx+" "+input.sort).ToListAsync(); + return data; + } + + /// + /// 导出价格设定 + /// + /// 请求参数 + /// + [HttpGet("Actions/Export")] + public async Task Export([FromQuery] TbSettingPriceListQueryInput input) + { + var userInfo = await _userManager.GetUserInfo(); + var exportData = new List(); + if (input.dataType == 0) + { + var data = Clay.Object(await this.GetList(input)); + exportData = data.Solidify>().list; + } + else + { + exportData = await this.GetNoPagingList(input); + } + List paramList = "[{\"value\":\"价格\",\"field\":\"price\"},{\"value\":\"类型\",\"field\":\"type\"},{\"value\":\"创建时间\",\"field\":\"creatorTime\"},{\"value\":\"修改时间\",\"field\":\"lastModifyTime\"},]".ToList(); + ExcelConfig excelconfig = new ExcelConfig(); + excelconfig.FileName = "价格设定.xls"; + excelconfig.HeadFont = "微软雅黑"; + excelconfig.HeadPoint = 10; + excelconfig.IsAllSizeColumn = true; + excelconfig.ColumnModel = new List(); + List selectKeyList = input.selectKey.Split(',').ToList(); + foreach (var item in selectKeyList) + { + var isExist = paramList.Find(p => p.field == item); + if (isExist != null) + { + excelconfig.ColumnModel.Add(new ExcelColumnModel() { Column = isExist.field, ExcelColumn = isExist.value }); + } + } + var addPath = FileVariable.TemporaryFilePath + excelconfig.FileName; + ExcelExportHelper.Export(exportData, excelconfig, addPath); + var fileName = _userManager.UserId + "|" + addPath + "|xls"; + var output = new + { + name = excelconfig.FileName, + url = "/api/File/Download?encryption=" + DESCEncryption.Encrypt(fileName, "NCC") + }; + return output; + } + + /// + /// 批量删除价格设定 + /// + /// 主键数组 + /// + [HttpPost("batchRemove")] + public async Task BatchRemove([FromBody] List ids) + { + var dbLink = await _dbLinkService.GetInfo("218239598550058245"); + _db.AddConnection(new ConnectionConfig() + { + ConfigId = dbLink.Id, + DbType = _dataBaseService.ToDbType(dbLink.DbType), + ConnectionString = _dataBaseService.ToConnectionString(dbLink), + InitKeyType = InitKeyType.Attribute, + IsAutoCloseConnection = true + }); + _db.ChangeDatabase(dbLink.Id); + var entitys = await _db.Queryable().In(it => it.Id, ids).ToListAsync(); + if (entitys.Count > 0) + { + try + { + //开启事务 + _db.BeginTran(); + //批量删除价格设定 + await _db.Deleteable().In(d => d.Id,ids).ExecuteCommandAsync(); + //关闭事务 + _db.CommitTran(); + } + catch (Exception) + { + //回滚事务 + _db.RollbackTran(); + throw NCCException.Oh(ErrorCode.COM1002); + } + } + } + + /// + /// 更新价格设定 + /// + /// 主键 + /// 参数 + /// + [HttpPut("{id}")] + public async Task Update(string id, [FromBody] TbSettingPriceUpInput input) + { + var dbLink = await _dbLinkService.GetInfo("218239598550058245"); + _db.AddConnection(new ConnectionConfig() + { + ConfigId = dbLink.Id, + DbType = _dataBaseService.ToDbType(dbLink.DbType), + ConnectionString = _dataBaseService.ToConnectionString(dbLink), + InitKeyType = InitKeyType.Attribute, + IsAutoCloseConnection = true + }); + _db.ChangeDatabase(dbLink.Id); + var entity = input.Adapt(); + entity.LastModifyTime = DateTime.Now; + var isOk = await _db.Updateable(entity).IgnoreColumns(ignoreAllNullColumns: true).ExecuteCommandAsync(); + if (!(isOk > 0)) throw NCCException.Oh(ErrorCode.COM1001); + } + + /// + /// 删除价格设定 + /// + /// + [HttpDelete("{id}")] + public async Task Delete(string id) + { + var dbLink = await _dbLinkService.GetInfo("218239598550058245"); + _db.AddConnection(new ConnectionConfig() + { + ConfigId = dbLink.Id, + DbType = _dataBaseService.ToDbType(dbLink.DbType), + ConnectionString = _dataBaseService.ToConnectionString(dbLink), + InitKeyType = InitKeyType.Attribute, + IsAutoCloseConnection = true + }); + _db.ChangeDatabase(dbLink.Id); + var entity = await _db.Queryable().FirstAsync(p => p.Id == id); + _ = entity ?? throw NCCException.Oh(ErrorCode.COM1005); + var isOk = await _db.Deleteable().Where(d => d.Id == id).ExecuteCommandAsync(); + if (!(isOk > 0)) throw NCCException.Oh(ErrorCode.COM1002); + } + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox/地域管理/TbAreaService.cs b/antis-ncc-net-core/NCC.BlindBox/地域管理/TbAreaService.cs index ebb388f..f3f218a 100644 --- a/antis-ncc-net-core/NCC.BlindBox/地域管理/TbAreaService.cs +++ b/antis-ncc-net-core/NCC.BlindBox/地域管理/TbAreaService.cs @@ -23,14 +23,17 @@ using NCC.Common.Configuration; using NCC.DataEncryption; using NCC.ClayObject; using NCC.System.Interfaces.System; +using NCC.Blind.Entitys; +using System.ComponentModel.DataAnnotations; +using NCC.Blind.Entitys.Dto.TbAreaLineNode; namespace NCC.Education.TbArea { /// /// 地域管理服务 /// - [ApiDescriptionSettings(Tag = "Education",Name = "TbArea", Order = 200)] - [Route("api/Education/[controller]")] + [ApiDescriptionSettings(Tag = "地域管理",Name = "TbArea", Order = 200)] + [Route("api/Blind/[controller]")] public class TbAreaService : ITbAreaService, IDynamicApiController, ITransient { private readonly ISqlSugarRepository _tbAreaRepository; @@ -55,6 +58,62 @@ namespace NCC.Education.TbArea _userManager = userManager; } + + /// + /// 根据地域ID查询地域线路节点入参 + /// + public class AreaLineNodeOptions : PageInputBase + { + /// + /// 地域ID + /// + [Required(ErrorMessage = "地域ID不能为空")] + public string areaId { get; set; } + } + + /// + /// 根据地域ID查询地域线路节点 + /// + /// + /// + [HttpPost("GetAreaLineNodeByAreaId")] + public async Task GetAreaLineNodeByAreaId(AreaLineNodeOptions input) + { + List areaLineIds = new List(); + var areaLineList = _db.Queryable().Where(o => o.AreaId == input.areaId).ToList(); + foreach (var item in areaLineList) + { + areaLineIds.Add(item.Id); + } + var sidx = input.sidx == null ? "id" : input.sidx; + var data = await _db.Queryable() + + .WhereIF(!string.IsNullOrEmpty(input.areaId), p =>areaLineIds.Contains(p.AreaLineId)) + .Select(it => new TbAreaLineNodeListOutput + { + id = it.Id, + areaLineId = it.AreaLineId, + title = it.Title, + //description = it.Description, + remark = it.Remark, + creatorTime = it.CreatorTime, + lastModifyTime = it.LastModifyTime, + banner = it.Banner, + sorts = it.Sorts, + + }).MergeTable().Mapper(p => + { + p.areaLine = _db.Queryable().Where(o => o.Id == p.areaLineId).First(); + }).OrderBy(sidx + " " + input.sort).ToPagedListAsync(input.currentPage, input.pageSize); + return PageResult.SqlSugarPageResult(data); + } + + + + + + + /// /// 获取地域管理 /// diff --git a/antis-ncc-net-core/NCC.BlindBox/地域线路/TbAreaLineService.cs b/antis-ncc-net-core/NCC.BlindBox/地域线路/TbAreaLineService.cs new file mode 100644 index 0000000..68fddbc --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox/地域线路/TbAreaLineService.cs @@ -0,0 +1,330 @@ +using NCC.Common.Core.Manager; +using NCC.Common.Enum; +using NCC.Common.Extension; +using NCC.Common.Filter; +using NCC.Dependency; +using NCC.DynamicApiController; +using NCC.FriendlyException; +using NCC.Blind.Interfaces.TbAreaLine; +using Mapster; +using Microsoft.AspNetCore.Mvc; +using SqlSugar; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using NCC.Blind.Entitys; +using NCC.Blind.Entitys.Dto.TbAreaLine; +using Yitter.IdGenerator; +using NCC.Common.Helper; +using NCC.JsonSerialization; +using NCC.Common.Model.NPOI; +using NCC.Common.Configuration; +using NCC.DataEncryption; +using NCC.ClayObject; +using NCC.System.Interfaces.System; +using NCC.Education.Entitys; + +namespace NCC.Blind.TbAreaLine +{ + /// + /// 地域线路服务 + /// + [ApiDescriptionSettings(Tag = "地域线路",Name = "TbAreaLine", Order = 200)] + [Route("api/Blind/[controller]")] + public class TbAreaLineService : ITbAreaLineService, IDynamicApiController, ITransient + { + private readonly ISqlSugarRepository _tbAreaLineRepository; + private readonly IDbLinkService _dbLinkService; + private readonly IDataBaseService _dataBaseService; + private readonly SqlSugarScope _db; + private readonly IUserManager _userManager; + + /// + /// 初始化一个类型的新实例 + /// + public TbAreaLineService( + ISqlSugarRepository tbAreaLineRepository, + IDbLinkService dbLinkService, + IDataBaseService dataBaseService, + IUserManager userManager) + { + _tbAreaLineRepository = tbAreaLineRepository; + _db = _tbAreaLineRepository.Context; + _dbLinkService = dbLinkService; + _dataBaseService = dataBaseService; + _userManager = userManager; + } + + + /// + /// 根据地域ID查询地域线路 + /// + /// + /// + [HttpPost("GetAreaLByAreaId")] + public async Task GetAreaLByAreaId(string id) + { + var model = _db.Queryable().Where(o => o.AreaId == id).First(); + return model; + } + + /// + /// 获取地域线路 + /// + /// 参数 + /// + [HttpGet("{id}")] + public async Task GetInfo(string id) + { + var dbLink = await _dbLinkService.GetInfo("218239598550058245"); + _db.AddConnection(new ConnectionConfig() + { + ConfigId = dbLink.Id, + DbType = _dataBaseService.ToDbType(dbLink.DbType), + ConnectionString = _dataBaseService.ToConnectionString(dbLink), + InitKeyType = InitKeyType.Attribute, + IsAutoCloseConnection = true + }); + _db.ChangeDatabase(dbLink.Id); + var entity = await _db.Queryable().FirstAsync(p => p.Id == id); + var output = entity.Adapt(); + return output; + } + + /// + /// 获取地域线路列表 + /// + /// 请求参数 + /// + [HttpGet("")] + public async Task GetList([FromQuery] TbAreaLineListQueryInput input) + { + var dbLink = await _dbLinkService.GetInfo("218239598550058245"); + _db.AddConnection(new ConnectionConfig() + { + ConfigId = dbLink.Id, + DbType = _dataBaseService.ToDbType(dbLink.DbType), + ConnectionString = _dataBaseService.ToConnectionString(dbLink), + InitKeyType = InitKeyType.Attribute, + IsAutoCloseConnection = true + }); + _db.ChangeDatabase(dbLink.Id); + var sidx = input.sidx == null ? "id" : input.sidx; + var data = await _db.Queryable() + .WhereIF(!string.IsNullOrEmpty(input.title), p => p.Title.Contains(input.title)) + .WhereIF(!string.IsNullOrEmpty(input.areaId), p => p.AreaId.Equals(input.areaId)) + .WhereIF(!string.IsNullOrEmpty(input.remark), p => p.Remark.Contains(input.remark)) + .Select(it=> new TbAreaLineListOutput + { + id = it.Id, + title=it.Title, + areaId=it.AreaId, + remark=it.Remark, + creatorTime=it.CreatorTime, + lastModifyTime=it.LastModifyTime, + banner=it.Banner, + }).MergeTable().Mapper(p => + { + p.area = _db.Queryable().Where(o => o.Id == p.areaId).First(); + }).OrderBy(sidx+" "+input.sort).ToPagedListAsync(input.currentPage, input.pageSize); + return PageResult.SqlSugarPageResult(data); + } + + /// + /// 新建地域线路 + /// + /// 参数 + /// + [HttpPost("")] + public async Task Create([FromBody] TbAreaLineCrInput input) + { + var dbLink = await _dbLinkService.GetInfo("218239598550058245"); + _db.AddConnection(new ConnectionConfig() + { + ConfigId = dbLink.Id, + DbType = _dataBaseService.ToDbType(dbLink.DbType), + ConnectionString = _dataBaseService.ToConnectionString(dbLink), + InitKeyType = InitKeyType.Attribute, + IsAutoCloseConnection = true + }); + _db.ChangeDatabase(dbLink.Id); + var userInfo = await _userManager.GetUserInfo(); + var entity = input.Adapt(); + entity.Id = YitIdHelper.NextId().ToString(); + entity.CreatorTime = DateTime.Now; + //var model = _db.Queryable().Where(o => o.AreaId == entity.AreaId).First(); + //if (!model.IsNullOrEmpty()) throw NCCException.Oh($"该地域下已经存在一条线路!"); + var isOk = await _db.Insertable(entity).IgnoreColumns(ignoreNullColumn: true).ExecuteCommandAsync(); + if (!(isOk > 0)) throw NCCException.Oh(ErrorCode.COM1000); + } + + /// + /// 获取地域线路无分页列表 + /// + /// 请求参数 + /// + [NonAction] + public async Task GetNoPagingList([FromQuery] TbAreaLineListQueryInput input) + { + var dbLink = await _dbLinkService.GetInfo("218239598550058245"); + _db.AddConnection(new ConnectionConfig() + { + ConfigId = dbLink.Id, + DbType = _dataBaseService.ToDbType(dbLink.DbType), + ConnectionString = _dataBaseService.ToConnectionString(dbLink), + InitKeyType = InitKeyType.Attribute, + IsAutoCloseConnection = true + }); + _db.ChangeDatabase(dbLink.Id); + var sidx = input.sidx == null ? "id" : input.sidx; + var data = await _db.Queryable() + .WhereIF(!string.IsNullOrEmpty(input.title), p => p.Title.Contains(input.title)) + .WhereIF(!string.IsNullOrEmpty(input.areaId), p => p.AreaId.Equals(input.areaId)) + .WhereIF(!string.IsNullOrEmpty(input.remark), p => p.Remark.Contains(input.remark)) + .Select(it=> new TbAreaLineListOutput + { + id = it.Id, + title=it.Title, + areaId=it.AreaId, + remark=it.Remark, + creatorTime=it.CreatorTime, + lastModifyTime=it.LastModifyTime, + }).MergeTable().OrderBy(sidx+" "+input.sort).ToListAsync(); + return data; + } + + /// + /// 导出地域线路 + /// + /// 请求参数 + /// + [HttpGet("Actions/Export")] + public async Task Export([FromQuery] TbAreaLineListQueryInput input) + { + var userInfo = await _userManager.GetUserInfo(); + var exportData = new List(); + if (input.dataType == 0) + { + var data = Clay.Object(await this.GetList(input)); + exportData = data.Solidify>().list; + } + else + { + exportData = await this.GetNoPagingList(input); + } + List paramList = "[{\"value\":\"地域\",\"field\":\"areaId\"},{\"value\":\"线路标题\",\"field\":\"title\"},{\"value\":\"线路概况\",\"field\":\"remark\"},{\"value\":\"创建时间\",\"field\":\"creatorTime\"},{\"value\":\"修改时间\",\"field\":\"lastModifyTime\"},]".ToList(); + ExcelConfig excelconfig = new ExcelConfig(); + excelconfig.FileName = "地域线路.xls"; + excelconfig.HeadFont = "微软雅黑"; + excelconfig.HeadPoint = 10; + excelconfig.IsAllSizeColumn = true; + excelconfig.ColumnModel = new List(); + List selectKeyList = input.selectKey.Split(',').ToList(); + foreach (var item in selectKeyList) + { + var isExist = paramList.Find(p => p.field == item); + if (isExist != null) + { + excelconfig.ColumnModel.Add(new ExcelColumnModel() { Column = isExist.field, ExcelColumn = isExist.value }); + } + } + var addPath = FileVariable.TemporaryFilePath + excelconfig.FileName; + ExcelExportHelper.Export(exportData, excelconfig, addPath); + var fileName = _userManager.UserId + "|" + addPath + "|xls"; + var output = new + { + name = excelconfig.FileName, + url = "/api/File/Download?encryption=" + DESCEncryption.Encrypt(fileName, "NCC") + }; + return output; + } + + /// + /// 批量删除地域线路 + /// + /// 主键数组 + /// + [HttpPost("batchRemove")] + public async Task BatchRemove([FromBody] List ids) + { + var dbLink = await _dbLinkService.GetInfo("218239598550058245"); + _db.AddConnection(new ConnectionConfig() + { + ConfigId = dbLink.Id, + DbType = _dataBaseService.ToDbType(dbLink.DbType), + ConnectionString = _dataBaseService.ToConnectionString(dbLink), + InitKeyType = InitKeyType.Attribute, + IsAutoCloseConnection = true + }); + _db.ChangeDatabase(dbLink.Id); + var entitys = await _db.Queryable().In(it => it.Id, ids).ToListAsync(); + if (entitys.Count > 0) + { + try + { + //开启事务 + _db.BeginTran(); + //批量删除地域线路 + await _db.Deleteable().In(d => d.Id,ids).ExecuteCommandAsync(); + //关闭事务 + _db.CommitTran(); + } + catch (Exception) + { + //回滚事务 + _db.RollbackTran(); + throw NCCException.Oh(ErrorCode.COM1002); + } + } + } + + /// + /// 更新地域线路 + /// + /// 主键 + /// 参数 + /// + [HttpPut("{id}")] + public async Task Update(string id, [FromBody] TbAreaLineUpInput input) + { + var dbLink = await _dbLinkService.GetInfo("218239598550058245"); + _db.AddConnection(new ConnectionConfig() + { + ConfigId = dbLink.Id, + DbType = _dataBaseService.ToDbType(dbLink.DbType), + ConnectionString = _dataBaseService.ToConnectionString(dbLink), + InitKeyType = InitKeyType.Attribute, + IsAutoCloseConnection = true + }); + _db.ChangeDatabase(dbLink.Id); + var entity = input.Adapt(); + entity.LastModifyTime = DateTime.Now; + var isOk = await _db.Updateable(entity).IgnoreColumns(ignoreAllNullColumns: true).ExecuteCommandAsync(); + if (!(isOk > 0)) throw NCCException.Oh(ErrorCode.COM1001); + } + + /// + /// 删除地域线路 + /// + /// + [HttpDelete("{id}")] + public async Task Delete(string id) + { + var dbLink = await _dbLinkService.GetInfo("218239598550058245"); + _db.AddConnection(new ConnectionConfig() + { + ConfigId = dbLink.Id, + DbType = _dataBaseService.ToDbType(dbLink.DbType), + ConnectionString = _dataBaseService.ToConnectionString(dbLink), + InitKeyType = InitKeyType.Attribute, + IsAutoCloseConnection = true + }); + _db.ChangeDatabase(dbLink.Id); + var entity = await _db.Queryable().FirstAsync(p => p.Id == id); + _ = entity ?? throw NCCException.Oh(ErrorCode.COM1005); + var isOk = await _db.Deleteable().Where(d => d.Id == id).ExecuteCommandAsync(); + if (!(isOk > 0)) throw NCCException.Oh(ErrorCode.COM1002); + } + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox/地域线路节点/TbAreaLineNodeService.cs b/antis-ncc-net-core/NCC.BlindBox/地域线路节点/TbAreaLineNodeService.cs new file mode 100644 index 0000000..817ba0c --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox/地域线路节点/TbAreaLineNodeService.cs @@ -0,0 +1,324 @@ +using NCC.Common.Core.Manager; +using NCC.Common.Enum; +using NCC.Common.Extension; +using NCC.Common.Filter; +using NCC.Dependency; +using NCC.DynamicApiController; +using NCC.FriendlyException; +using NCC.Blind.Interfaces.TbAreaLineNode; +using Mapster; +using Microsoft.AspNetCore.Mvc; +using SqlSugar; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using NCC.Blind.Entitys; +using NCC.Blind.Entitys.Dto.TbAreaLineNode; +using Yitter.IdGenerator; +using NCC.Common.Helper; +using NCC.JsonSerialization; +using NCC.Common.Model.NPOI; +using NCC.Common.Configuration; +using NCC.DataEncryption; +using NCC.ClayObject; +using NCC.System.Interfaces.System; + +namespace NCC.Blind.TbAreaLineNode +{ + /// + /// 地域线路节点服务 + /// + [ApiDescriptionSettings(Tag = "地域线路节点",Name = "TbAreaLineNode", Order = 200)] + [Route("api/Blind/[controller]")] + public class TbAreaLineNodeService : ITbAreaLineNodeService, IDynamicApiController, ITransient + { + private readonly ISqlSugarRepository _tbAreaLineNodeRepository; + private readonly IDbLinkService _dbLinkService; + private readonly IDataBaseService _dataBaseService; + private readonly SqlSugarScope _db; + private readonly IUserManager _userManager; + + /// + /// 初始化一个类型的新实例 + /// + public TbAreaLineNodeService( + ISqlSugarRepository tbAreaLineNodeRepository, + IDbLinkService dbLinkService, + IDataBaseService dataBaseService, + IUserManager userManager) + { + _tbAreaLineNodeRepository = tbAreaLineNodeRepository; + _db = _tbAreaLineNodeRepository.Context; + _dbLinkService = dbLinkService; + _dataBaseService = dataBaseService; + _userManager = userManager; + } + + /// + /// 获取地域线路节点 + /// + /// 参数 + /// + [HttpGet("{id}")] + public async Task GetInfo(string id) + { + var dbLink = await _dbLinkService.GetInfo("218239598550058245"); + _db.AddConnection(new ConnectionConfig() + { + ConfigId = dbLink.Id, + DbType = _dataBaseService.ToDbType(dbLink.DbType), + ConnectionString = _dataBaseService.ToConnectionString(dbLink), + InitKeyType = InitKeyType.Attribute, + IsAutoCloseConnection = true + }); + _db.ChangeDatabase(dbLink.Id); + var entity = await _db.Queryable().FirstAsync(p => p.Id == id); + var output = entity.Adapt(); + var tickets = _db.Queryable().Where(o => o.OrderId == output.id).First(); + output.isAppend = tickets.IsNullOrEmpty() ? "1" : "2"; + return output; + } + + /// + /// 获取地域线路节点列表 + /// + /// 请求参数 + /// + [HttpGet("")] + public async Task GetList([FromQuery] TbAreaLineNodeListQueryInput input) + { + var dbLink = await _dbLinkService.GetInfo("218239598550058245"); + _db.AddConnection(new ConnectionConfig() + { + ConfigId = dbLink.Id, + DbType = _dataBaseService.ToDbType(dbLink.DbType), + ConnectionString = _dataBaseService.ToConnectionString(dbLink), + InitKeyType = InitKeyType.Attribute, + IsAutoCloseConnection = true + }); + _db.ChangeDatabase(dbLink.Id); + var sidx = input.sidx == null ? "id" : input.sidx; + var data = await _db.Queryable() + .WhereIF(!string.IsNullOrEmpty(input.areaLineId), p => p.AreaLineId.Equals(input.areaLineId)) + .WhereIF(!string.IsNullOrEmpty(input.title), p => p.Title.Contains(input.title)) + .WhereIF(!string.IsNullOrEmpty(input.description), p => p.Description.Contains(input.description)) + .WhereIF(!string.IsNullOrEmpty(input.remark), p => p.Remark.Contains(input.remark)) + .Select(it=> new TbAreaLineNodeListOutput + { + id = it.Id, + areaLineId=it.AreaLineId, + title =it.Title, + description=it.Description, + remark=it.Remark, + creatorTime=it.CreatorTime, + lastModifyTime=it.LastModifyTime, + banner=it.Banner, + sorts = it.Sorts, + + }).MergeTable().Mapper(p => + { + p.areaLine = _db.Queryable().Where(o => o.Id == p.areaLineId).First(); + }).OrderBy(sidx+" "+input.sort).ToPagedListAsync(input.currentPage, input.pageSize); + return PageResult.SqlSugarPageResult(data); + } + + /// + /// 新建地域线路节点 + /// + /// 参数 + /// + [HttpPost("")] + public async Task Create([FromBody] TbAreaLineNodeCrInput input) + { + var dbLink = await _dbLinkService.GetInfo("218239598550058245"); + _db.AddConnection(new ConnectionConfig() + { + ConfigId = dbLink.Id, + DbType = _dataBaseService.ToDbType(dbLink.DbType), + ConnectionString = _dataBaseService.ToConnectionString(dbLink), + InitKeyType = InitKeyType.Attribute, + IsAutoCloseConnection = true + }); + _db.ChangeDatabase(dbLink.Id); + var userInfo = await _userManager.GetUserInfo(); + var entity = input.Adapt(); + entity.Id = YitIdHelper.NextId().ToString(); + entity.CreatorTime = DateTime.Now; + var isOk = await _db.Insertable(entity).IgnoreColumns(ignoreNullColumn: true).ExecuteCommandAsync(); + if (!(isOk > 0)) throw NCCException.Oh(ErrorCode.COM1000); + } + + /// + /// 获取地域线路节点无分页列表 + /// + /// 请求参数 + /// + [NonAction] + public async Task GetNoPagingList([FromQuery] TbAreaLineNodeListQueryInput input) + { + var dbLink = await _dbLinkService.GetInfo("218239598550058245"); + _db.AddConnection(new ConnectionConfig() + { + ConfigId = dbLink.Id, + DbType = _dataBaseService.ToDbType(dbLink.DbType), + ConnectionString = _dataBaseService.ToConnectionString(dbLink), + InitKeyType = InitKeyType.Attribute, + IsAutoCloseConnection = true + }); + _db.ChangeDatabase(dbLink.Id); + var sidx = input.sidx == null ? "id" : input.sidx; + var data = await _db.Queryable() + .WhereIF(!string.IsNullOrEmpty(input.areaLineId), p => p.AreaLineId.Equals(input.areaLineId)) + .WhereIF(!string.IsNullOrEmpty(input.title), p => p.Title.Contains(input.title)) + .WhereIF(!string.IsNullOrEmpty(input.description), p => p.Description.Contains(input.description)) + .WhereIF(!string.IsNullOrEmpty(input.remark), p => p.Remark.Contains(input.remark)) + .Select(it=> new TbAreaLineNodeListOutput + { + id = it.Id, + areaLineId=it.AreaLineId, + title=it.Title, + description=it.Description, + remark=it.Remark, + creatorTime=it.CreatorTime, + lastModifyTime=it.LastModifyTime, + sorts = it.Sorts, + + }).MergeTable().OrderBy(sidx+" "+input.sort).ToListAsync(); + return data; + } + + /// + /// 导出地域线路节点 + /// + /// 请求参数 + /// + [HttpGet("Actions/Export")] + public async Task Export([FromQuery] TbAreaLineNodeListQueryInput input) + { + var userInfo = await _userManager.GetUserInfo(); + var exportData = new List(); + if (input.dataType == 0) + { + var data = Clay.Object(await this.GetList(input)); + exportData = data.Solidify>().list; + } + else + { + exportData = await this.GetNoPagingList(input); + } + List paramList = "[{\"value\":\"地域线路\",\"field\":\"areaLineId\"},{\"value\":\"节点标题\",\"field\":\"title\"},{\"value\":\"节点简介\",\"field\":\"description\"},{\"value\":\"节点注意事项\",\"field\":\"remark\"},{\"value\":\"创建时间\",\"field\":\"creatorTime\"},{\"value\":\"修改时间\",\"field\":\"lastModifyTime\"},{\"value\":\"排序\",\"field\":\"sorts\"},]".ToList(); + ExcelConfig excelconfig = new ExcelConfig(); + excelconfig.FileName = "地域线路节点.xls"; + excelconfig.HeadFont = "微软雅黑"; + excelconfig.HeadPoint = 10; + excelconfig.IsAllSizeColumn = true; + excelconfig.ColumnModel = new List(); + List selectKeyList = input.selectKey.Split(',').ToList(); + foreach (var item in selectKeyList) + { + var isExist = paramList.Find(p => p.field == item); + if (isExist != null) + { + excelconfig.ColumnModel.Add(new ExcelColumnModel() { Column = isExist.field, ExcelColumn = isExist.value }); + } + } + var addPath = FileVariable.TemporaryFilePath + excelconfig.FileName; + ExcelExportHelper.Export(exportData, excelconfig, addPath); + var fileName = _userManager.UserId + "|" + addPath + "|xls"; + var output = new + { + name = excelconfig.FileName, + url = "/api/File/Download?encryption=" + DESCEncryption.Encrypt(fileName, "NCC") + }; + return output; + } + + /// + /// 批量删除地域线路节点 + /// + /// 主键数组 + /// + [HttpPost("batchRemove")] + public async Task BatchRemove([FromBody] List ids) + { + var dbLink = await _dbLinkService.GetInfo("218239598550058245"); + _db.AddConnection(new ConnectionConfig() + { + ConfigId = dbLink.Id, + DbType = _dataBaseService.ToDbType(dbLink.DbType), + ConnectionString = _dataBaseService.ToConnectionString(dbLink), + InitKeyType = InitKeyType.Attribute, + IsAutoCloseConnection = true + }); + _db.ChangeDatabase(dbLink.Id); + var entitys = await _db.Queryable().In(it => it.Id, ids).ToListAsync(); + if (entitys.Count > 0) + { + try + { + //开启事务 + _db.BeginTran(); + //批量删除地域线路节点 + await _db.Deleteable().In(d => d.Id,ids).ExecuteCommandAsync(); + //关闭事务 + _db.CommitTran(); + } + catch (Exception) + { + //回滚事务 + _db.RollbackTran(); + throw NCCException.Oh(ErrorCode.COM1002); + } + } + } + + /// + /// 更新地域线路节点 + /// + /// 主键 + /// 参数 + /// + [HttpPut("{id}")] + public async Task Update(string id, [FromBody] TbAreaLineNodeUpInput input) + { + var dbLink = await _dbLinkService.GetInfo("218239598550058245"); + _db.AddConnection(new ConnectionConfig() + { + ConfigId = dbLink.Id, + DbType = _dataBaseService.ToDbType(dbLink.DbType), + ConnectionString = _dataBaseService.ToConnectionString(dbLink), + InitKeyType = InitKeyType.Attribute, + IsAutoCloseConnection = true + }); + _db.ChangeDatabase(dbLink.Id); + var entity = input.Adapt(); + entity.LastModifyTime = DateTime.Now; + var isOk = await _db.Updateable(entity).IgnoreColumns(ignoreAllNullColumns: true).ExecuteCommandAsync(); + if (!(isOk > 0)) throw NCCException.Oh(ErrorCode.COM1001); + } + + /// + /// 删除地域线路节点 + /// + /// + [HttpDelete("{id}")] + public async Task Delete(string id) + { + var dbLink = await _dbLinkService.GetInfo("218239598550058245"); + _db.AddConnection(new ConnectionConfig() + { + ConfigId = dbLink.Id, + DbType = _dataBaseService.ToDbType(dbLink.DbType), + ConnectionString = _dataBaseService.ToConnectionString(dbLink), + InitKeyType = InitKeyType.Attribute, + IsAutoCloseConnection = true + }); + _db.ChangeDatabase(dbLink.Id); + var entity = await _db.Queryable().FirstAsync(p => p.Id == id); + _ = entity ?? throw NCCException.Oh(ErrorCode.COM1005); + var isOk = await _db.Deleteable().Where(d => d.Id == id).ExecuteCommandAsync(); + if (!(isOk > 0)) throw NCCException.Oh(ErrorCode.COM1002); + } + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox/抽奖记录/TbBoxLogService.cs b/antis-ncc-net-core/NCC.BlindBox/抽奖记录/TbBoxLogService.cs new file mode 100644 index 0000000..fbacfe2 --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox/抽奖记录/TbBoxLogService.cs @@ -0,0 +1,329 @@ +using NCC.Common.Core.Manager; +using NCC.Common.Enum; +using NCC.Common.Extension; +using NCC.Common.Filter; +using NCC.Dependency; +using NCC.DynamicApiController; +using NCC.FriendlyException; +using NCC.Blind.Interfaces.TbBoxLog; +using Mapster; +using Microsoft.AspNetCore.Mvc; +using SqlSugar; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using NCC.Blind.Entitys; +using NCC.Blind.Entitys.Dto.TbBoxLog; +using Yitter.IdGenerator; +using NCC.Common.Helper; +using NCC.JsonSerialization; +using NCC.Common.Model.NPOI; +using NCC.Common.Configuration; +using NCC.DataEncryption; +using NCC.ClayObject; +using NCC.System.Interfaces.System; +using NCC.System.Entitys.Permission; +using NCC.Education.Entitys; + +namespace NCC.Blind.TbBoxLog +{ + /// + /// 抽奖记录服务 + /// + [ApiDescriptionSettings(Tag = "抽奖记录",Name = "TbBoxLog", Order = 200)] + [Route("api/Blind/[controller]")] + public class TbBoxLogService : ITbBoxLogService, IDynamicApiController, ITransient + { + private readonly ISqlSugarRepository _tbBoxLogRepository; + private readonly IDbLinkService _dbLinkService; + private readonly IDataBaseService _dataBaseService; + private readonly SqlSugarScope _db; + private readonly IUserManager _userManager; + + /// + /// 初始化一个类型的新实例 + /// + public TbBoxLogService( + ISqlSugarRepository tbBoxLogRepository, + IDbLinkService dbLinkService, + IDataBaseService dataBaseService, + IUserManager userManager) + { + _tbBoxLogRepository = tbBoxLogRepository; + _db = _tbBoxLogRepository.Context; + _dbLinkService = dbLinkService; + _dataBaseService = dataBaseService; + _userManager = userManager; + } + + /// + /// 获取抽奖记录 + /// + /// 参数 + /// + [HttpGet("{id}")] + public async Task GetInfo(string id) + { + var dbLink = await _dbLinkService.GetInfo("218239598550058245"); + _db.AddConnection(new ConnectionConfig() + { + ConfigId = dbLink.Id, + DbType = _dataBaseService.ToDbType(dbLink.DbType), + ConnectionString = _dataBaseService.ToConnectionString(dbLink), + InitKeyType = InitKeyType.Attribute, + IsAutoCloseConnection = true + }); + _db.ChangeDatabase(dbLink.Id); + var entity = await _db.Queryable().FirstAsync(p => p.Id == id); + var output = entity.Adapt(); + return output; + } + + /// + /// 获取抽奖记录列表 + /// + /// 请求参数 + /// + [HttpGet("")] + public async Task GetList([FromQuery] TbBoxLogListQueryInput input) + { + var dbLink = await _dbLinkService.GetInfo("218239598550058245"); + _db.AddConnection(new ConnectionConfig() + { + ConfigId = dbLink.Id, + DbType = _dataBaseService.ToDbType(dbLink.DbType), + ConnectionString = _dataBaseService.ToConnectionString(dbLink), + InitKeyType = InitKeyType.Attribute, + IsAutoCloseConnection = true + }); + _db.ChangeDatabase(dbLink.Id); + var sidx = input.sidx == null ? "id" : input.sidx; + var data = await _db.Queryable() + .WhereIF(!string.IsNullOrEmpty(input.userId), p => p.UserId.Equals(input.userId)) + .WhereIF(!string.IsNullOrEmpty(input.boxOrderId), p => p.BoxOrderId.Equals(input.boxOrderId)) + .WhereIF(!string.IsNullOrEmpty(input.type), p => p.Type.Equals(input.type)) + .WhereIF(!string.IsNullOrEmpty(input.areaLineId), p => p.AreaLineId.Equals(input.areaLineId)) + .WhereIF(!string.IsNullOrEmpty(input.mbtLineId), p => p.MbtLineId.Equals(input.mbtLineId)) + .Select(it=> new TbBoxLogListOutput + { + id = it.Id, + userId=it.UserId, + boxOrderId=it.BoxOrderId, + type=it.Type, + areaLineId=it.AreaLineId, + mbtLineId=it.MbtLineId, + creatorTime=it.CreatorTime, + lastModifyTime=it.LastModifyTime, + }).MergeTable().Mapper(p => + { + p.user = _db.Queryable().Where(o => o.Id == p.userId).First(); + p.boxOrder = _db.Queryable().Where(o => o.Id == p.boxOrderId).First(); + p.mbtLine = _db.Queryable().Where(o => o.Id == p.mbtLineId).First(); + p.areaLine = _db.Queryable().Where(o => o.Id == p.areaLineId).First(); + p.area = _db.Queryable().Where(o => o.Id == p.areaId).First(); + p.mbt = _db.Queryable().Where(o => o.Id == p.mbtId).First(); + + }).OrderBy(sidx+" "+input.sort).ToPagedListAsync(input.currentPage, input.pageSize); + return PageResult.SqlSugarPageResult(data); + } + + /// + /// 新建抽奖记录 + /// + /// 参数 + /// + [HttpPost("")] + public async Task Create([FromBody] TbBoxLogCrInput input) + { + var dbLink = await _dbLinkService.GetInfo("218239598550058245"); + _db.AddConnection(new ConnectionConfig() + { + ConfigId = dbLink.Id, + DbType = _dataBaseService.ToDbType(dbLink.DbType), + ConnectionString = _dataBaseService.ToConnectionString(dbLink), + InitKeyType = InitKeyType.Attribute, + IsAutoCloseConnection = true + }); + _db.ChangeDatabase(dbLink.Id); + var userInfo = await _userManager.GetUserInfo(); + var entity = input.Adapt(); + entity.Id = YitIdHelper.NextId().ToString(); + entity.CreatorTime = DateTime.Now; + var isOk = await _db.Insertable(entity).IgnoreColumns(ignoreNullColumn: true).ExecuteCommandAsync(); + if (!(isOk > 0)) throw NCCException.Oh(ErrorCode.COM1000); + } + + /// + /// 获取抽奖记录无分页列表 + /// + /// 请求参数 + /// + [NonAction] + public async Task GetNoPagingList([FromQuery] TbBoxLogListQueryInput input) + { + var dbLink = await _dbLinkService.GetInfo("218239598550058245"); + _db.AddConnection(new ConnectionConfig() + { + ConfigId = dbLink.Id, + DbType = _dataBaseService.ToDbType(dbLink.DbType), + ConnectionString = _dataBaseService.ToConnectionString(dbLink), + InitKeyType = InitKeyType.Attribute, + IsAutoCloseConnection = true + }); + _db.ChangeDatabase(dbLink.Id); + var sidx = input.sidx == null ? "id" : input.sidx; + var data = await _db.Queryable() + .WhereIF(!string.IsNullOrEmpty(input.userId), p => p.UserId.Equals(input.userId)) + .WhereIF(!string.IsNullOrEmpty(input.boxOrderId), p => p.BoxOrderId.Equals(input.boxOrderId)) + .WhereIF(!string.IsNullOrEmpty(input.type), p => p.Type.Equals(input.type)) + .WhereIF(!string.IsNullOrEmpty(input.areaLineId), p => p.AreaLineId.Equals(input.areaLineId)) + .WhereIF(!string.IsNullOrEmpty(input.mbtLineId), p => p.MbtLineId.Equals(input.mbtLineId)) + .Select(it=> new TbBoxLogListOutput + { + id = it.Id, + userId=it.UserId, + boxOrderId=it.BoxOrderId, + type=it.Type, + areaLineId=it.AreaLineId, + mbtLineId=it.MbtLineId, + creatorTime=it.CreatorTime, + lastModifyTime=it.LastModifyTime, + }).MergeTable().OrderBy(sidx+" "+input.sort).ToListAsync(); + return data; + } + + /// + /// 导出抽奖记录 + /// + /// 请求参数 + /// + [HttpGet("Actions/Export")] + public async Task Export([FromQuery] TbBoxLogListQueryInput input) + { + var userInfo = await _userManager.GetUserInfo(); + var exportData = new List(); + if (input.dataType == 0) + { + var data = Clay.Object(await this.GetList(input)); + exportData = data.Solidify>().list; + } + else + { + exportData = await this.GetNoPagingList(input); + } + List paramList = "[{\"value\":\"用户\",\"field\":\"userId\"},{\"value\":\"盲盒订单\",\"field\":\"boxOrderId\"},{\"value\":\"路线\",\"field\":\"type\"},{\"value\":\"地域线路\",\"field\":\"areaLineId\"},{\"value\":\"人格线路\",\"field\":\"mbtLineId\"},{\"value\":\"创建时间\",\"field\":\"creatorTime\"},{\"value\":\"修改时间\",\"field\":\"lastModifyTime\"},]".ToList(); + ExcelConfig excelconfig = new ExcelConfig(); + excelconfig.FileName = "抽奖记录.xls"; + excelconfig.HeadFont = "微软雅黑"; + excelconfig.HeadPoint = 10; + excelconfig.IsAllSizeColumn = true; + excelconfig.ColumnModel = new List(); + List selectKeyList = input.selectKey.Split(',').ToList(); + foreach (var item in selectKeyList) + { + var isExist = paramList.Find(p => p.field == item); + if (isExist != null) + { + excelconfig.ColumnModel.Add(new ExcelColumnModel() { Column = isExist.field, ExcelColumn = isExist.value }); + } + } + var addPath = FileVariable.TemporaryFilePath + excelconfig.FileName; + ExcelExportHelper.Export(exportData, excelconfig, addPath); + var fileName = _userManager.UserId + "|" + addPath + "|xls"; + var output = new + { + name = excelconfig.FileName, + url = "/api/File/Download?encryption=" + DESCEncryption.Encrypt(fileName, "NCC") + }; + return output; + } + + /// + /// 批量删除抽奖记录 + /// + /// 主键数组 + /// + [HttpPost("batchRemove")] + public async Task BatchRemove([FromBody] List ids) + { + var dbLink = await _dbLinkService.GetInfo("218239598550058245"); + _db.AddConnection(new ConnectionConfig() + { + ConfigId = dbLink.Id, + DbType = _dataBaseService.ToDbType(dbLink.DbType), + ConnectionString = _dataBaseService.ToConnectionString(dbLink), + InitKeyType = InitKeyType.Attribute, + IsAutoCloseConnection = true + }); + _db.ChangeDatabase(dbLink.Id); + var entitys = await _db.Queryable().In(it => it.Id, ids).ToListAsync(); + if (entitys.Count > 0) + { + try + { + //开启事务 + _db.BeginTran(); + //批量删除抽奖记录 + await _db.Deleteable().In(d => d.Id,ids).ExecuteCommandAsync(); + //关闭事务 + _db.CommitTran(); + } + catch (Exception) + { + //回滚事务 + _db.RollbackTran(); + throw NCCException.Oh(ErrorCode.COM1002); + } + } + } + + /// + /// 更新抽奖记录 + /// + /// 主键 + /// 参数 + /// + [HttpPut("{id}")] + public async Task Update(string id, [FromBody] TbBoxLogUpInput input) + { + var dbLink = await _dbLinkService.GetInfo("218239598550058245"); + _db.AddConnection(new ConnectionConfig() + { + ConfigId = dbLink.Id, + DbType = _dataBaseService.ToDbType(dbLink.DbType), + ConnectionString = _dataBaseService.ToConnectionString(dbLink), + InitKeyType = InitKeyType.Attribute, + IsAutoCloseConnection = true + }); + _db.ChangeDatabase(dbLink.Id); + var entity = input.Adapt(); + entity.LastModifyTime = DateTime.Now; + var isOk = await _db.Updateable(entity).IgnoreColumns(ignoreAllNullColumns: true).ExecuteCommandAsync(); + if (!(isOk > 0)) throw NCCException.Oh(ErrorCode.COM1001); + } + + /// + /// 删除抽奖记录 + /// + /// + [HttpDelete("{id}")] + public async Task Delete(string id) + { + var dbLink = await _dbLinkService.GetInfo("218239598550058245"); + _db.AddConnection(new ConnectionConfig() + { + ConfigId = dbLink.Id, + DbType = _dataBaseService.ToDbType(dbLink.DbType), + ConnectionString = _dataBaseService.ToConnectionString(dbLink), + InitKeyType = InitKeyType.Attribute, + IsAutoCloseConnection = true + }); + _db.ChangeDatabase(dbLink.Id); + var entity = await _db.Queryable().FirstAsync(p => p.Id == id); + _ = entity ?? throw NCCException.Oh(ErrorCode.COM1005); + var isOk = await _db.Deleteable().Where(d => d.Id == id).ExecuteCommandAsync(); + if (!(isOk > 0)) throw NCCException.Oh(ErrorCode.COM1002); + } + } +} diff --git a/antis-ncc-net-core/NCC.BlindBox/旅游景点/TbTravelSpotService.cs b/antis-ncc-net-core/NCC.BlindBox/旅游景点/TbTravelSpotService.cs new file mode 100644 index 0000000..44fff69 --- /dev/null +++ b/antis-ncc-net-core/NCC.BlindBox/旅游景点/TbTravelSpotService.cs @@ -0,0 +1,311 @@ +using NCC.Common.Core.Manager; +using NCC.Common.Enum; +using NCC.Common.Extension; +using NCC.Common.Filter; +using NCC.Dependency; +using NCC.DynamicApiController; +using NCC.FriendlyException; +using NCC.Blind.Interfaces.TbTravelSpot; +using Mapster; +using Microsoft.AspNetCore.Mvc; +using SqlSugar; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using NCC.Blind.Entitys; +using NCC.Blind.Entitys.Dto.TbTravelSpot; +using Yitter.IdGenerator; +using NCC.Common.Helper; +using NCC.JsonSerialization; +using NCC.Common.Model.NPOI; +using NCC.Common.Configuration; +using NCC.DataEncryption; +using NCC.ClayObject; +using NCC.System.Interfaces.System; + +namespace NCC.Blind.TbTravelSpot +{ + /// + /// 旅游景点服务 + /// + [ApiDescriptionSettings(Tag = "旅游景点",Name = "TbTravelSpot", Order = 200)] + [Route("api/Blind/[controller]")] + public class TbTravelSpotService : ITbTravelSpotService, IDynamicApiController, ITransient + { + private readonly ISqlSugarRepository _tbTravelSpotRepository; + private readonly IDbLinkService _dbLinkService; + private readonly IDataBaseService _dataBaseService; + private readonly SqlSugarScope _db; + private readonly IUserManager _userManager; + + /// + /// 初始化一个类型的新实例 + /// + public TbTravelSpotService( + ISqlSugarRepository tbTravelSpotRepository, + IDbLinkService dbLinkService, + IDataBaseService dataBaseService, + IUserManager userManager) + { + _tbTravelSpotRepository = tbTravelSpotRepository; + _db = _tbTravelSpotRepository.Context; + _dbLinkService = dbLinkService; + _dataBaseService = dataBaseService; + _userManager = userManager; + } + + /// + /// 获取旅游景点 + /// + /// 参数 + /// + [HttpGet("{id}")] + public async Task GetInfo(string id) + { + var dbLink = await _dbLinkService.GetInfo("218239598550058245"); + _db.AddConnection(new ConnectionConfig() + { + ConfigId = dbLink.Id, + DbType = _dataBaseService.ToDbType(dbLink.DbType), + ConnectionString = _dataBaseService.ToConnectionString(dbLink), + InitKeyType = InitKeyType.Attribute, + IsAutoCloseConnection = true + }); + _db.ChangeDatabase(dbLink.Id); + var entity = await _db.Queryable().FirstAsync(p => p.Id == id); + var output = entity.Adapt