├── README.md └── hyperf-skeleton ├── .env.example ├── .gitignore ├── .swp ├── Dockerfile ├── README.md ├── app ├── Constants │ ├── Constants.php │ └── ErrorCode.php ├── Controller │ ├── Admin │ │ ├── ActivityController.php │ │ ├── AppSettingController.php │ │ ├── CommentController.php │ │ ├── ForumController.php │ │ ├── GoodsCategoryController.php │ │ ├── GoodsController.php │ │ ├── OrderController.php │ │ ├── PddMallController.php │ │ ├── PostController.php │ │ ├── ShopController.php │ │ ├── ThirdPartController.php │ │ ├── TopicController.php │ │ ├── UserController.php │ │ └── VoucherController.php │ └── Common │ │ ├── ActivityController.php │ │ ├── AppSettingController.php │ │ ├── CircleController.php │ │ ├── CommentController.php │ │ ├── GoodsController.php │ │ ├── MessageController.php │ │ ├── NotificationController.php │ │ ├── OfficialAccountController.php │ │ ├── OrderController.php │ │ ├── PddNotifyController.php │ │ ├── PostController.php │ │ ├── QiniuNotifyController.php │ │ ├── ScoreController.php │ │ ├── SearchController.php │ │ ├── ShopController.php │ │ ├── ThirdPartController.php │ │ ├── TopicController.php │ │ ├── UploadController.php │ │ ├── UserController.php │ │ ├── VoucherController.php │ │ └── WxPayNotifyController.php ├── Http │ ├── AppAdminRequest.php │ └── AppManagerRequest.php ├── Job │ ├── AddCommentToImportTopicJob.php │ ├── AddNotificationJob.php │ ├── AddScoreJob.php │ ├── AddShopNotificationJob.php │ ├── AddUserUploadStatisticJob.php │ ├── AutoDeliverySubscribeGoodsJob.php │ ├── AutoSubscribeForumJob.php │ ├── CommentAtUserNotificationJob.php │ ├── CommentHotStatusCheckJob.php │ ├── CommentMachineAuditJob.php │ ├── CommentUpdateJob.php │ ├── ImageAuditUpdateJob.php │ ├── OrderPrintJob.php │ ├── PostIncreaseReadJob.php │ ├── PostMachineAuditJob.php │ ├── PostUpdateJob.php │ ├── QueryOfficialAccountUserInfoJob.php │ ├── RefreshOrderPayStatusJob.php │ ├── RefreshShopInfoJob.php │ ├── RefreshShopOrderSummaryJob.php │ ├── RefreshUserOrderSummaryJob.php │ ├── SendUserOrderStatusChangeMessageJob.php │ ├── UniqueJobQueue.php │ ├── UpdateCircleCalculateInfoJob.php │ ├── UpdateCircleTopicCountInfoJob.php │ ├── UpdateUserCircleInfoJob.php │ ├── UpdateUserCountInfoJob.php │ ├── UserUnreadCountJob.php │ └── UserUpdateMachineAuditJob.php ├── Model │ ├── Activity.php │ ├── Advice.php │ ├── AppSetting.php │ ├── CashAccount.php │ ├── CashLog.php │ ├── CashOutApply.php │ ├── Circle.php │ ├── CircleCategory.php │ ├── CircleExpert.php │ ├── CircleTopic.php │ ├── Comment.php │ ├── CommentAtUser.php │ ├── Conversation.php │ ├── DelayPostTask.php │ ├── FilterTopic.php │ ├── Forum.php │ ├── Good.php │ ├── GoodsCategory.php │ ├── HobbyCategory.php │ ├── HobbyLabel.php │ ├── ImageAudit.php │ ├── JoinCircleApply.php │ ├── ManagerAvatarUser.php │ ├── MiniProgram.php │ ├── MiniProgramCategory.php │ ├── Model.php │ ├── Notification.php │ ├── OfferRedBag.php │ ├── OfficialAccount.php │ ├── OfficialAccountCategory.php │ ├── OfficialAccountUser.php │ ├── Order.php │ ├── OrderGood.php │ ├── PlatformCut.php │ ├── Post.php │ ├── PostAtUser.php │ ├── PostDocument.php │ ├── PostDraft.php │ ├── PostReward.php │ ├── PostScoreReward.php │ ├── PrivateMessage.php │ ├── QqMiniProgram.php │ ├── RedBag.php │ ├── ReportComment.php │ ├── ReportPost.php │ ├── Role.php │ ├── ScoreAction.php │ ├── Scrapy │ │ ├── Comment.php │ │ ├── Model.php │ │ ├── Post.php │ │ └── Thread.php │ ├── Shop.php │ ├── ShopOrderSummary.php │ ├── SignStatus.php │ ├── SubscribeForumPassword.php │ ├── TokenHistory.php │ ├── Topic.php │ ├── TopicCategory.php │ ├── Unit.php │ ├── User.php │ ├── UserAddress.php │ ├── UserAttentionOther.php │ ├── UserAttentionTopic.php │ ├── UserCircle.php │ ├── UserCommentPraise.php │ ├── UserCommentRead.php │ ├── UserDaySign.php │ ├── UserFavorite.php │ ├── UserGroup.php │ ├── UserMiniProgramUse.php │ ├── UserOfficialAccountUse.php │ ├── UserOrderSummary.php │ ├── UserPraisePost.php │ ├── UserRead.php │ ├── UserScoreDetail.php │ ├── UserSetting.php │ ├── UserSubscribe.php │ ├── UserSubscribePassword.php │ ├── UserThirdPartUse.php │ ├── UserUpdate.php │ ├── UserUploadStatistic.php │ ├── UserVote.php │ ├── Vote.php │ ├── VoteItem.php │ ├── Voucher.php │ ├── VoucherActivity.php │ ├── VoucherPolicy.php │ ├── VoucherPolicyBlackGood.php │ ├── VoucherPolicyGood.php │ └── VoucherUseHistory.php ├── Process │ └── AsyncQueueConsumer.php ├── Service │ ├── ActivityService.php │ ├── Admin │ │ ├── ActivityService.php │ │ ├── CashService.php │ │ ├── CommentService.php │ │ ├── ForumService.php │ │ ├── GoodsCategoryService.php │ │ ├── GoodsService.php │ │ ├── GroupService.php │ │ ├── OrderService.php │ │ ├── PddService.php │ │ ├── PostService.php │ │ ├── RedBagService.php │ │ ├── ScoreService.php │ │ ├── SettingService.php │ │ ├── ShopService.php │ │ ├── ThirdPartService.php │ │ ├── TopicService.php │ │ ├── UserService.php │ │ └── VoucherService.php │ ├── AppSettingService.php │ ├── BaiDuMiniService.php │ ├── BaseService.php │ ├── CashService.php │ ├── CircleService.php │ ├── CommentService.php │ ├── ForumService.php │ ├── GoodsCategoryService.php │ ├── GoodsService.php │ ├── GroupService.php │ ├── NotificationService.php │ ├── OfficialAccountService.php │ ├── OrderService.php │ ├── PostService.php │ ├── Printer │ │ ├── API_PHP_DEMO.php │ │ └── HttpClient.php │ ├── PrinterService.php │ ├── PrivateMessageService.php │ ├── QQMiniService.php │ ├── QiniuAuditService.php │ ├── RedBagService.php │ ├── ScoreService.php │ ├── SearchService.php │ ├── ShopService.php │ ├── ThirdPartService.php │ ├── TopicService.php │ ├── UploadService.php │ ├── UserService.php │ ├── VoucherService.php │ └── WxPayService.php ├── Task │ ├── AutoDelayPostTask.php │ ├── CircleExpertCalculateTask.php │ ├── CircleRecommendCalculateTask.php │ ├── CircleTopicCalculateTask.php │ ├── PostRecommendCalculateTask.php │ ├── TopicRecommendCalculateTask.php │ ├── UpdateTopicTask.php │ └── VoucherExpireTask.php └── Third │ └── pdd │ ├── Api │ └── Request │ │ ├── PddAdApiAdvertiserOpenAccountRequest.php │ │ ├── PddAdApiAdvertiserQueryAccountBalanceRequest.php │ │ ├── PddAdApiAdvertiserQueryAccountInfoRequest.php │ │ ├── PddAdApiAdvertiserQueryDetailRequest.php │ │ ├── PddAdApiGoodsQueryGalleryImagesRequest.php │ │ ├── PddAdApiGoodsQueryLongImagesRequest.php │ │ ├── PddAdApiGoodsQueryPageRequest.php │ │ ├── PddAdApiKeywordCreateRequest.php │ │ ├── PddAdApiKeywordDeleteRequest.php │ │ ├── PddAdApiKeywordQueryListRequest.php │ │ ├── PddAdApiKeywordRecommendGetRequest.php │ │ ├── PddAdApiKeywordRelevanceGetRequest.php │ │ ├── PddAdApiKeywordUpdateRequest.php │ │ ├── PddAdApiPlanCreateRequest.php │ │ ├── PddAdApiPlanDeleteRequest.php │ │ ├── PddAdApiPlanQueryCanCreateAdPlanRequest.php │ │ ├── PddAdApiPlanQueryCanUpdateMaxCostRequest.php │ │ ├── PddAdApiPlanQueryListRequest.php │ │ ├── PddAdApiPlanUpdateDataOperateStatusRequest.php │ │ ├── PddAdApiPlanUpdateMaxCostRequest.php │ │ ├── PddAdApiPlanUpdatePlanDiscountRequest.php │ │ ├── PddAdApiPlanUpdatePlanNameRequest.php │ │ ├── PddAdApiPlanUpdatePlanToOcpcRequest.php │ │ ├── PddAdApiReportDailyReportQueryRequest.php │ │ ├── PddAdApiReportEntityReportQueryRequest.php │ │ ├── PddAdApiReportHourlyReportQueryRequest.php │ │ ├── PddAdApiUnitBidDeleteRequest.php │ │ ├── PddAdApiUnitBidQueryBaseLocationProfileRequest.php │ │ ├── PddAdApiUnitBidQueryBaseTargetProfileRequest.php │ │ ├── PddAdApiUnitBidQueryListRequest.php │ │ ├── PddAdApiUnitBidQueryTargetingTagListRequest.php │ │ ├── PddAdApiUnitBidSyncRequest.php │ │ ├── PddAdApiUnitBidUpdateRequest.php │ │ ├── PddAdApiUnitCreateRequest.php │ │ ├── PddAdApiUnitCreativeCheckTitleRequest.php │ │ ├── PddAdApiUnitCreativeCreateRequest.php │ │ ├── PddAdApiUnitCreativeDeleteRequest.php │ │ ├── PddAdApiUnitCreativeDistributeFlowRateRequest.php │ │ ├── PddAdApiUnitCreativeQueryFlowRateRequest.php │ │ ├── PddAdApiUnitCreativeQueryListRequest.php │ │ ├── PddAdApiUnitCreativeUpdateContentRequest.php │ │ ├── PddAdApiUnitCreativeUpdateDataOperateStatusRequest.php │ │ ├── PddAdApiUnitCreativeUpdateSmartCreativeRequest.php │ │ ├── PddAdApiUnitDeleteRequest.php │ │ ├── PddAdApiUnitQueryListRequest.php │ │ ├── PddAdApiUnitUpdateDataOperateStatusRequest.php │ │ ├── PddAdApiUnitUpdateOptimizationMessageRequest.php │ │ ├── PddAdApiUnitUpdateUnitBidRequest.php │ │ ├── PddAdApiUnitUpdateUnitNameRequest.php │ │ ├── PddCloudDtsOrderListIncrementGetRequest.php │ │ ├── PddCloudIsvPageCodeRequest.php │ │ ├── PddCloudLogisticsOnlineSendRequest.php │ │ ├── PddCloudSecurityEventTrackingBatchOrderRequest.php │ │ ├── PddCloudSecurityEventTrackingLoginRequest.php │ │ ├── PddCloudWaybillGetRequest.php │ │ ├── PddCloudWaybillUpdateRequest.php │ │ ├── PddCloudWebsessionSendRequest.php │ │ ├── PddCloudWmsOrderSendRequest.php │ │ ├── PddCloudprintCmdprintRenderRequest.php │ │ ├── PddCloudprintCustomaresGetRequest.php │ │ ├── PddCloudprintPortableprinterGetRequest.php │ │ ├── PddCloudprintStdtemplatesGetRequest.php │ │ ├── PddDdkAllOrderListIncrementGetRequest.php │ │ ├── PddDdkCashgiftCreateRequest.php │ │ ├── PddDdkCashgiftDataQueryRequest.php │ │ ├── PddDdkCashgiftStatusUpdateRequest.php │ │ ├── PddDdkCmsPromUrlGenerateRequest.php │ │ ├── PddDdkGoodsDetailRequest.php │ │ ├── PddDdkGoodsPidGenerateRequest.php │ │ ├── PddDdkGoodsPidQueryRequest.php │ │ ├── PddDdkGoodsPromotionUrlGenerateRequest.php │ │ ├── PddDdkGoodsRecommendGetRequest.php │ │ ├── PddDdkGoodsSearchRequest.php │ │ ├── PddDdkGoodsZsUnitUrlGenRequest.php │ │ ├── PddDdkMemberAuthorityQueryRequest.php │ │ ├── PddDdkOauthCashgiftCreateRequest.php │ │ ├── PddDdkOauthCashgiftStatusUpdateRequest.php │ │ ├── PddDdkOauthCmsPromUrlGenerateRequest.php │ │ ├── PddDdkOauthGoodsDetailRequest.php │ │ ├── PddDdkOauthGoodsPidGenerateRequest.php │ │ ├── PddDdkOauthGoodsPidQueryRequest.php │ │ ├── PddDdkOauthGoodsPromUrlGenerateRequest.php │ │ ├── PddDdkOauthGoodsRecommendGetRequest.php │ │ ├── PddDdkOauthGoodsSearchRequest.php │ │ ├── PddDdkOauthGoodsZsUnitUrlGenRequest.php │ │ ├── PddDdkOauthMemberAuthorityQueryRequest.php │ │ ├── PddDdkOauthOrderDetailGetRequest.php │ │ ├── PddDdkOauthPidMediaidBindRequest.php │ │ ├── PddDdkOauthResourceUrlGenRequest.php │ │ ├── PddDdkOauthRpPromUrlGenerateRequest.php │ │ ├── PddDdkOrderDetailGetRequest.php │ │ ├── PddDdkOrderListIncrementGetRequest.php │ │ ├── PddDdkOrderListRangeGetRequest.php │ │ ├── PddDdkPidMediaidBindRequest.php │ │ ├── PddDdkResourceUrlGenRequest.php │ │ ├── PddDdkRpPromUrlGenerateRequest.php │ │ ├── PddDdyPdpUserAddRequest.php │ │ ├── PddDdyPdpUserDeleteRequest.php │ │ ├── PddDdyPdpUsersGetRequest.php │ │ ├── PddDeleteDraftCommitRequest.php │ │ ├── PddDeleteGoodsCommitRequest.php │ │ ├── PddEinvoiceIssueInvoiceResultCallbackRuihongRequest.php │ │ ├── PddEinvoiceMallRegisterResultRequest.php │ │ ├── PddEinvoiceOutboundQueryTaxpayerInfoRequest.php │ │ ├── PddEinvoiceOutboundRuihongQueryTaxDiskStatusRequest.php │ │ ├── PddEinvoiceQueryMallRegisterOrderRequest.php │ │ ├── PddEinvoiceVendorRuihongInvoiceGetRequest.php │ │ ├── PddEinvoiceVendorRuihongIssueInvoiceRequest.php │ │ ├── PddEinvoiceVendorRuihongIssueRedInvoiceRequest.php │ │ ├── PddEinvoiceVendorRuihongMatchEnterpriseRequest.php │ │ ├── PddErpOrderSyncRequest.php │ │ ├── PddExpressAddDepotRequest.php │ │ ├── PddExpressChangeDepotInfoRequest.php │ │ ├── PddExpressDepotInfoGetRequest.php │ │ ├── PddExpressDepotListGetRequest.php │ │ ├── PddExpressMallDepotSimpleGetRequest.php │ │ ├── PddExpressSearchDepotRequest.php │ │ ├── PddFdsOrderGetRequest.php │ │ ├── PddFdsOrderListGetRequest.php │ │ ├── PddFdsRoleGetRequest.php │ │ ├── PddFdsWaybillCancelRequest.php │ │ ├── PddFdsWaybillGetRequest.php │ │ ├── PddFdsWaybillReturnRequest.php │ │ ├── PddFinanceBalanceDailyBillUrlGetRequest.php │ │ ├── PddFlightCallbackConfirmChangeRequest.php │ │ ├── PddFlightCallbackConfirmOrderRequest.php │ │ ├── PddFlightCallbackConfirmRefundRequest.php │ │ ├── PddFlightCallbackFlightchangeRequest.php │ │ ├── PddFlightCallbackNotifyChangeapplyreplyRequest.php │ │ ├── PddFlightChangeApplyRequest.php │ │ ├── PddFlightChangeCancelRequest.php │ │ ├── PddFlightChangePayRequest.php │ │ ├── PddFlightChangeableFlightListRequest.php │ │ ├── PddFlightOrderCancelRequest.php │ │ ├── PddFlightOrderCheckSeatPriceRequest.php │ │ ├── PddFlightOrderCreateRequest.php │ │ ├── PddFlightOrderPayConfirmRequest.php │ │ ├── PddFlightOrderPrePayCheckRequest.php │ │ ├── PddFlightOrderQuerysnRequest.php │ │ ├── PddFlightQueryFlightListRequest.php │ │ ├── PddFlightQueryGuestRuleRequest.php │ │ ├── PddFlightRefundApplyRequest.php │ │ ├── PddFlightRefundableRequest.php │ │ ├── PddGoodsAddRequest.php │ │ ├── PddGoodsAdvicePriceGetRequest.php │ │ ├── PddGoodsAuthorizationCatsRequest.php │ │ ├── PddGoodsCatRuleGetRequest.php │ │ ├── PddGoodsCatTemplateGetRequest.php │ │ ├── PddGoodsCatsGetRequest.php │ │ ├── PddGoodsChildSkuEditRequest.php │ │ ├── PddGoodsCommitDetailGetRequest.php │ │ ├── PddGoodsCommitListGetRequest.php │ │ ├── PddGoodsCommitStatusGetRequest.php │ │ ├── PddGoodsCountryGetRequest.php │ │ ├── PddGoodsCpsMallUnitChangeRequest.php │ │ ├── PddGoodsCpsMallUnitCreateRequest.php │ │ ├── PddGoodsCpsMallUnitPauseRequest.php │ │ ├── PddGoodsCpsMallUnitQueryRequest.php │ │ ├── PddGoodsCpsMallUnitResumeRequest.php │ │ ├── PddGoodsCpsUnitChangeRequest.php │ │ ├── PddGoodsCpsUnitCreateRequest.php │ │ ├── PddGoodsCpsUnitDeleteRequest.php │ │ ├── PddGoodsCpsUnitQueryRequest.php │ │ ├── PddGoodsDetailGetRequest.php │ │ ├── PddGoodsEditGoodsCommitRequest.php │ │ ├── PddGoodsFilespaceImageUploadRequest.php │ │ ├── PddGoodsImageUploadRequest.php │ │ ├── PddGoodsInformationGetRequest.php │ │ ├── PddGoodsInformationUpdateRequest.php │ │ ├── PddGoodsLatestCommitStatusGetRequest.php │ │ ├── PddGoodsListGetRequest.php │ │ ├── PddGoodsLogisticsSerTemplateCreateRequest.php │ │ ├── PddGoodsLogisticsSerTemplateDeleteRequest.php │ │ ├── PddGoodsLogisticsSerTemplateDetailRequest.php │ │ ├── PddGoodsLogisticsSerTemplateListRequest.php │ │ ├── PddGoodsLogisticsSerTemplateUpdateRequest.php │ │ ├── PddGoodsLogisticsTemplateCreateRequest.php │ │ ├── PddGoodsLogisticsTemplateGetRequest.php │ │ ├── PddGoodsMaterialCreateRequest.php │ │ ├── PddGoodsMaterialDeleteRequest.php │ │ ├── PddGoodsMaterialQueryRequest.php │ │ ├── PddGoodsOptGetRequest.php │ │ ├── PddGoodsOutPropertyMappingGetRequest.php │ │ ├── PddGoodsOuterCatMappingGetRequest.php │ │ ├── PddGoodsQuantityUpdateRequest.php │ │ ├── PddGoodsSaleStatusSetRequest.php │ │ ├── PddGoodsSizespecClassGetRequest.php │ │ ├── PddGoodsSizespecMetaGetRequest.php │ │ ├── PddGoodsSizespecTemplateAddRequest.php │ │ ├── PddGoodsSizespecTemplateDeleteRequest.php │ │ ├── PddGoodsSizespecTemplateGetRequest.php │ │ ├── PddGoodsSizespecTemplateUpdateRequest.php │ │ ├── PddGoodsSizespecTemplatesGetRequest.php │ │ ├── PddGoodsSkuPriceUpdateRequest.php │ │ ├── PddGoodsSkusGetRequest.php │ │ ├── PddGoodsSpecGetRequest.php │ │ ├── PddGoodsSpecIdGetRequest.php │ │ ├── PddGoodsSpuGetRequest.php │ │ ├── PddGoodsSpuSearchRequest.php │ │ ├── PddGoodsSubmitGoodsCommitRequest.php │ │ ├── PddGoodsTemplatePropertyValueSearchRequest.php │ │ ├── PddGooodsSkuMeasurementListRequest.php │ │ ├── PddInvoiceApplicationQueryRequest.php │ │ ├── PddInvoiceDetailInvalidRequest.php │ │ ├── PddInvoiceDetailUploadRequest.php │ │ ├── PddKnockSupplierChangeUserNumberRequest.php │ │ ├── PddKnockSupplierQueryMemberInfoByUserNumberRequest.php │ │ ├── PddKnockSupplierSendGroupRobotMessageRequest.php │ │ ├── PddKnockSupplierSendRobotMessageRequest.php │ │ ├── PddKnockSyncSupplierMemberInfoRequest.php │ │ ├── PddKnockSyncSupplierOrgInfoRequest.php │ │ ├── PddKttGoodsCreateSpecRequest.php │ │ ├── PddKttGoodsIncrQuantityRequest.php │ │ ├── PddKttGoodsQueryListRequest.php │ │ ├── PddKttGoodsQuerySingleRequest.php │ │ ├── PddKttGoodsUploadImageRequest.php │ │ ├── PddKttGroupCreateRequest.php │ │ ├── PddKttGroupQueryStatusRequest.php │ │ ├── PddKttIncrementOrderQueryRequest.php │ │ ├── PddKttOrderGetRequest.php │ │ ├── PddKttOrderListRequest.php │ │ ├── PddKttOrderLogisticCreateRequest.php │ │ ├── PddKttUserSitePagequeryRequest.php │ │ ├── PddLogisticsAddressGetRequest.php │ │ ├── PddLogisticsCoTrackSubRequest.php │ │ ├── PddLogisticsCompaniesGetRequest.php │ │ ├── PddLogisticsCsHistoryMessageGetRequest.php │ │ ├── PddLogisticsCsMessageSendRequest.php │ │ ├── PddLogisticsCsSessionCloseRequest.php │ │ ├── PddLogisticsCsSessionStartRequest.php │ │ ├── PddLogisticsIsvTraceNotifySubRequest.php │ │ ├── PddLogisticsOnlineCreateRequest.php │ │ ├── PddLogisticsOnlineSendRequest.php │ │ ├── PddLogisticsOnlineStatusQueryRequest.php │ │ ├── PddLogisticsOrdertraceGetRequest.php │ │ ├── PddLogisticsTicketGetRequest.php │ │ ├── PddLogisticsTicketImageUploadRequest.php │ │ ├── PddLogisticsTicketNotifyRequest.php │ │ ├── PddLogisticsTicketProblemTypeGetRequest.php │ │ ├── PddMallCpsProtocolStatusQueryRequest.php │ │ ├── PddMallInfoBondedWarehouseGetRequest.php │ │ ├── PddMallInfoGetRequest.php │ │ ├── PddMallInfoGroupAddStorePostRequest.php │ │ ├── PddMallInfoGroupListStoreGetRequest.php │ │ ├── PddMallInfoGroupRemoveStoreGetRequest.php │ │ ├── PddMallInfoStoreCreatePostNopoiRequest.php │ │ ├── PddMallInfoStoreCreatePostRequest.php │ │ ├── PddMallInfoStoreDeletePostRequest.php │ │ ├── PddMallInfoStoreGetRequest.php │ │ ├── PddMallInfoStoreUpdatePostNopoiRequest.php │ │ ├── PddMallInfoStoreUpdatePostRequest.php │ │ ├── PddMallTicketDetailRequest.php │ │ ├── PddMallTicketListRequest.php │ │ ├── PddMallTicketNotifyRequest.php │ │ ├── PddMedicineConsultCloseRequest.php │ │ ├── PddMedicineConsultReceiveRequest.php │ │ ├── PddNextoneLogisticsWarehouseUpdateRequest.php │ │ ├── PddOneExpressCostTemplateRequest.php │ │ ├── PddOpenDecryptBatchRequest.php │ │ ├── PddOpenDecryptMaskBatchRequest.php │ │ ├── PddOpenKmsEncryptBatchRequest.php │ │ ├── PddOpenKmsSearchBatchRequest.php │ │ ├── PddOpenMsgServiceQueryExpressMsgRecordRequest.php │ │ ├── PddOpenMsgServiceQueryMsgRecordRequest.php │ │ ├── PddOpenMsgServiceSendBatchMsgRequest.php │ │ ├── PddOpenMsgServiceSendExpressMsgRequest.php │ │ ├── PddOpenMsgServiceSendMsgRequest.php │ │ ├── PddOpenVirtualNumberCheckRequest.php │ │ ├── PddOpenWaybillTypeReportRequest.php │ │ ├── PddOrderBasicListGetRequest.php │ │ ├── PddOrderInformationGetRequest.php │ │ ├── PddOrderListGetRequest.php │ │ ├── PddOrderNoteUpdateRequest.php │ │ ├── PddOrderNumberListIncrementGetRequest.php │ │ ├── PddOrderPromiseInfoGetRequest.php │ │ ├── PddOrderStatusGetRequest.php │ │ ├── PddOrderUpdateAddressRequest.php │ │ ├── PddOverseaClearanceGetRequest.php │ │ ├── PddOverseaDeclarationFailNotifyRequest.php │ │ ├── PddPmcAccrueQueryRequest.php │ │ ├── PddPmcUserCancelRequest.php │ │ ├── PddPmcUserGetRequest.php │ │ ├── PddPmcUserPermitRequest.php │ │ ├── PddPngMallStaffBatchSycnRequest.php │ │ ├── PddPngMallStaffPageQueryRequest.php │ │ ├── PddPngPermissionsMallStaffPushApplyRequest.php │ │ ├── PddPngPermissionsMallStaffPushConfirmRequest.php │ │ ├── PddPopAuthTokenCreateRequest.php │ │ ├── PddPopAuthTokenRefreshRequest.php │ │ ├── PddPromotionCouponCloseRequest.php │ │ ├── PddPromotionCouponQuantityAddRequest.php │ │ ├── PddPromotionGoodsCouponCreateRequest.php │ │ ├── PddPromotionGoodsCouponListGetRequest.php │ │ ├── PddPromotionHomeCouponCreateRequest.php │ │ ├── PddPromotionLimitedActivityCancelRequest.php │ │ ├── PddPromotionLimitedActivityCreateRequest.php │ │ ├── PddPromotionLimitedDiscountListGetRequest.php │ │ ├── PddPromotionLimitedQualifiedGoodsGetRequest.php │ │ ├── PddPromotionLimitedQualifiedSkuGetRequest.php │ │ ├── PddPromotionMerchantCouponListGetRequest.php │ │ ├── PddQrpayPayeeRegisterRequest.php │ │ ├── PddRdcPddgeniusSendgoodsCancelRequest.php │ │ ├── PddRefundAddressListGetRequest.php │ │ ├── PddRefundInformationGetRequest.php │ │ ├── PddRefundListIncrementGetRequest.php │ │ ├── PddRefundStatusCheckRequest.php │ │ ├── PddServiceMailServiceTimeQueryRequest.php │ │ ├── PddServicemarketContractSearchRequest.php │ │ ├── PddServicemarketSettlementbillGetRequest.php │ │ ├── PddServicemarketTradelistGetRequest.php │ │ ├── PddSmsDetailbillPushRequest.php │ │ ├── PddSmsVendorComplaintCreateRequest.php │ │ ├── PddStockDepotPriorityListRequest.php │ │ ├── PddStockDepotPriorityUpdateRequest.php │ │ ├── PddStockGoodsIdToSkuQueryRequest.php │ │ ├── PddStockWareCreateRequest.php │ │ ├── PddStockWareDeleteRequest.php │ │ ├── PddStockWareDetailQueryRequest.php │ │ ├── PddStockWareInfoListRequest.php │ │ ├── PddStockWareListRequest.php │ │ ├── PddStockWareMoveRequest.php │ │ ├── PddStockWareSkuUpdateRequest.php │ │ ├── PddStockWareUpdateRequest.php │ │ ├── PddStockWareWarehouseQueryRequest.php │ │ ├── PddTicketAreacodeGetRequest.php │ │ ├── PddTicketGoodsQueryRequest.php │ │ ├── PddTicketGoodsUploadRequest.php │ │ ├── PddTicketOrderCreateNotifycationRequest.php │ │ ├── PddTicketOrderRefundNotifycationRequest.php │ │ ├── PddTicketScenicGetRequest.php │ │ ├── PddTicketSkuRuleAddRequest.php │ │ ├── PddTicketSkuRuleEditRequest.php │ │ ├── PddTicketSkuRuleGetRequest.php │ │ ├── PddTicketVerificationNotifycationRequest.php │ │ ├── PddTimeGetRequest.php │ │ ├── PddTraceSourceQueryGoodsInfoRequest.php │ │ ├── PddTraceSourceUploadCodeInfoRequest.php │ │ ├── PddTraceSourceUploadPlanInfoRequest.php │ │ ├── PddTrainCallbackChangeConfirmRequest.php │ │ ├── PddTrainCallbackChangeReserveRequest.php │ │ ├── PddTrainCallbackConfirmPayRequest.php │ │ ├── PddTrainCallbackGrabRequest.php │ │ ├── PddTrainCallbackOtcbookRequest.php │ │ ├── PddTrainCallbackRefundConfirmRequest.php │ │ ├── PddTrainCallbackReserveRequest.php │ │ ├── PddTrainCancelChangeRequest.php │ │ ├── PddTrainCancelReserveRequest.php │ │ ├── PddTrainChangeTicketRequest.php │ │ ├── PddTrainConfirmChangeRequest.php │ │ ├── PddTrainConfirmPayRequest.php │ │ ├── PddTrainCreateOtcbookRequest.php │ │ ├── PddTrainCreateReserveRequest.php │ │ ├── PddTrainGrabCancelRequest.php │ │ ├── PddTrainGrabCreateRequest.php │ │ ├── PddTrainGrabOrderQueryRequest.php │ │ ├── PddTrainQueryOrderDetailRequest.php │ │ ├── PddTrainTicketRefundRequest.php │ │ ├── PddVasOrderSearchRequest.php │ │ ├── PddVirtualGameServerQueryRequest.php │ │ ├── PddVirtualMobileChargeNotifyRequest.php │ │ ├── PddVoucherAppointmentInfoSendRequest.php │ │ ├── PddVoucherOtaCardPrepareVerificationRequest.php │ │ ├── PddVoucherOtaCardVerificationRequest.php │ │ ├── PddVoucherPhysicalGoodsSendRequest.php │ │ ├── PddVoucherRealtimeOrdernoGetRequest.php │ │ ├── PddVoucherRealtimeVerifySyncRequest.php │ │ ├── PddVoucherVirtualCardBatchAddRequest.php │ │ ├── PddVoucherVirtualCardVerificationRequest.php │ │ ├── PddVoucherVoucherComplainRequest.php │ │ ├── PddVoucherVoucherInfoSendRequest.php │ │ ├── PddWaybillCancelRequest.php │ │ ├── PddWaybillGetRequest.php │ │ ├── PddWaybillQueryByWaybillcodeRequest.php │ │ ├── PddWaybillSearchRequest.php │ │ ├── PddWaybillUpdateRequest.php │ │ ├── PddWmsDeliveryorderConfirmRequest.php │ │ ├── PddWmsDeliveryorderCreateRequest.php │ │ ├── PddWmsDepotTicketAckRequest.php │ │ ├── PddWmsDepotTicketGetRequest.php │ │ ├── PddWmsDepotTicketNotifyRequest.php │ │ ├── PddWmsDepotTicketProblemGetRequest.php │ │ ├── PddWmsInborderConfirmRequest.php │ │ ├── PddWmsInborderCreateRequest.php │ │ ├── PddWmsOrderCallbackRequest.php │ │ ├── PddWmsOrderCancelRequest.php │ │ ├── PddWmsOrderQueryRequest.php │ │ ├── PddWmsOrderstateSendRequest.php │ │ ├── PddWmsOuborderConfirmRequest.php │ │ ├── PddWmsOuborderCreateRequest.php │ │ ├── PddWmsOutboundChangedateRequest.php │ │ ├── PddWmsReturnorderConfirmRequest.php │ │ ├── PddWmsReturnorderCreateRequest.php │ │ ├── PddWmsWareSynchronizeRequest.php │ │ ├── PddWmsWareinformSendRequest.php │ │ └── index.html │ ├── Common │ └── JsonUtil.php │ ├── PopAccessTokenClient.php │ ├── PopBaseHttpRequest.php │ ├── PopBaseJsonEntity.php │ ├── PopHttpClient.php │ ├── PopHttpException.php │ ├── PopHttpResponse.php │ └── Token │ ├── AccessTokenRequest.php │ └── RefreshAccessTokenRequest.php ├── assets └── sensitive │ └── sensitive.txt ├── bin ├── hyperf.php └── service.sh ├── composer.json ├── composer.phar ├── config ├── autoload │ ├── annotations.php │ ├── aspects.php │ ├── async_queue.php │ ├── auth.php │ ├── baidu.php │ ├── cache.php │ ├── commands.php │ ├── crontab.php │ ├── databases.php │ ├── dependencies.php │ ├── devtool.php │ ├── exceptions.php │ ├── file.php │ ├── hyperf-common.php │ ├── listeners.php │ ├── logger.php │ ├── mall.php │ ├── metric.php │ ├── middlewares.php │ ├── opentracing.php │ ├── processes.php │ ├── qiniu.php │ ├── qq.php │ ├── redis.php │ ├── register_user_info.php │ ├── scout.php │ ├── server.php │ ├── session.php │ └── weixin.php ├── config.php ├── container.php └── routes.php ├── deploy.test.yml ├── migrations ├── 2021_04_08_110055_create_user_table.php ├── 2021_04_08_110116_create_post_table.php ├── 2021_04_08_110133_create_comment_table.php ├── 2021_04_08_110155_create_user_favorite_table.php ├── 2021_04_08_110318_create_role_table.php ├── 2021_04_08_110434_create_image_audit_table.php ├── 2021_04_08_204050_create_user_read_table.php ├── 2021_04_08_204443_create_private_message_table.php ├── 2021_04_08_205421_create_vote_table.php ├── 2021_04_08_205437_create_conversation_table.php ├── 2021_04_08_205650_create_report_post_table.php ├── 2021_04_08_205657_create_report_comment_table.php ├── 2021_04_08_211014_create_vote_item_table.php ├── 2021_04_09_100841_create_token_history_table.php ├── 2021_04_11_160912_create_user_vote_table.php ├── 2021_04_12_085526_alter_post_add_join_user.php ├── 2021_04_12_095710_alter_add_user_area_country.php ├── 2021_04_12_100349_alter_user_add_background.php ├── 2021_04_12_124754_create_user_comment_read_table.php ├── 2021_04_13_102340_create_user_comment_praise_table.php ├── 2021_04_16_120035_alter_user_edit_info_tag.php ├── 2021_04_18_201311_alter_report_comment_add_audit_status.php ├── 2021_04_18_201319_alter_report_post_add_audit_status.php ├── 2021_04_19_184937_create_notification_table.php ├── 2021_04_19_194435_alter_notification_add_key_info_table.php ├── 2021_04_20_081306_alter_post_add_machine_audit.php ├── 2021_04_20_081321_alter_comment_add_machine_audit.php ├── 2021_04_20_081340_alter_user_add_machine_audit.php ├── 2021_04_20_082405_create_user_update_table.php ├── 2021_04_20_094802_alter_post_add_text_audit.php ├── 2021_04_20_094809_alter_comment_add_text_audit.php ├── 2021_04_20_094820_alter_user_update_add_text_audit.php ├── 2021_04_20_100004_alter_post_add_title_audit.php ├── 2021_04_22_163736_create_advice_table.php ├── 2021_04_23_084518_alter_post_add_image_id_list.php ├── 2021_04_23_084527_alter_comment_add_image_id_list.php ├── 2021_04_23_084537_alter_user_update_add_image_id_list.php ├── 2021_04_23_125344_create_post_draft_table.php ├── 2021_04_23_133325_create_manager_avatar_user_table.php ├── 2021_04_23_134022_alter_user_add_avatar_user_id.php ├── 2021_04_24_052551_alter_user_praise_comment_add_comment_owner.php ├── 2021_04_25_111328_create_mini_program_table.php ├── 2021_04_25_111828_create_mini_program_category_table.php ├── 2021_04_25_113736_create_official_account_table.php ├── 2021_04_25_113745_create_official_account_category_table.php ├── 2021_04_25_150140_alter_third_part.php ├── 2021_04_25_203534_alter_post_add_mini_official_relation.php ├── 2021_04_25_203641_create_user_mini_program_use_table.php ├── 2021_04_26_105800_create_forum_table.php ├── 2021_04_26_110814_alter_post_add_forum_id.php ├── 2021_04_26_114115_create_user_subscribe_table.php ├── 2021_04_28_104544_alter_mini_program_add_index_path.php ├── 2021_04_30_161921_alter_post_add_recommend_weight.php ├── 2021_05_05_103752_alter_post_add_mall_goods.php ├── 2021_05_06_133132_create_shop_table.php ├── 2021_05_06_133144_create_goods_category_table.php ├── 2021_05_06_133152_create_goods_table.php ├── 2021_05_06_133200_create_order_table.php ├── 2021_05_06_133207_create_order_goods_table.php ├── 2021_05_06_133216_create_unit_table.php ├── 2021_05_06_133227_create_shop_order_summary_table.php ├── 2021_05_06_133235_create_user_order_summary_table.php ├── 2021_05_06_133311_create_user_address_table.php ├── 2021_05_07_060617_alter_shop_add_setting.php ├── 2021_05_07_112229_alter_forum_add_buy_info.php ├── 2021_05_07_132517_create_subscribe_forum_password_table.php ├── 2021_05_07_133615_alter_forum_add_max_member_count.php ├── 2021_05_07_134951_create_user_subscribe_password_table.php ├── 2021_05_07_145220_alter_post_add_subscribe_policy.php ├── 2021_05_07_170302_alter_goods_add_bind_info.php ├── 2021_05_09_095713_create_voucher_activity_table.php ├── 2021_05_09_095726_create_voucher_policy_table.php ├── 2021_05_09_095734_create_voucher_table.php ├── 2021_05_09_095753_create_voucher_policy_goods_table.php ├── 2021_05_09_095828_create_voucher_use_history_table.php ├── 2021_05_09_103751_create_voucher_policy_black_goods_table.php ├── 2021_05_09_124253_alter_voucher_policy_add_goods_info.php ├── 2021_05_09_161938_alter_order_add_deduct_cash.php ├── 2021_05_10_055929_alter_forum_add_page_path.php ├── 2021_05_10_063021_add_post_has_video_tag.php ├── 2021_05_10_103109_alter_post_add_praise_count.php ├── 2021_05_10_155414_alter_post_add_voucher_policy_id.php ├── 2021_05_10_171550_alter_order_add_origin_cash.php ├── 2021_05_15_103112_create_app_setting_table.php ├── 2021_05_15_142804_create_user_setting_table.php ├── 2021_05_17_083957_alter_app_setting_add_enable_user_video.php ├── 2021_05_17_084917_create_topic_category_table.php ├── 2021_05_17_084924_create_topic_table.php ├── 2021_05_17_095011_alter_post_add_topic_id.php ├── 2021_05_19_192646_alter_topic_add_sort_index.php ├── 2021_05_19_202206_create_user_attention_topic_table.php ├── 2021_05_20_140245_create_user_attention_other_table.php ├── 2021_05_20_171420_alter_app_setting_add_topic_enable.php ├── 2021_05_26_161430_alter_post_add_visiable.php ├── 2021_05_28_143431_create_score_action_table.php ├── 2021_05_28_143525_create_user_group_table.php ├── 2021_05_28_143537_create_cash_account_table.php ├── 2021_05_28_143600_create_cash_log_table.php ├── 2021_05_28_143626_create_red_bag_table.php ├── 2021_05_28_143641_create_offer_red_bag_table.php ├── 2021_05_28_143731_alter_user_add_score.php ├── 2021_05_28_143741_alter_post_add_red_bag.php ├── 2021_05_28_143749_alter_comment_add_red_bag.php ├── 2021_05_28_143830_create_post_reward_table.php ├── 2021_05_28_144456_create_platform_cut_table.php ├── 2021_05_28_144538_create_cash_out_table.php ├── 2021_05_28_144723_create_user_day_sign_table.php ├── 2021_05_28_175315_create_user_score_detail_table.php ├── 2021_05_29_133851_alter_forum_add_post_user_group.php ├── 2021_05_29_135833_alter_forum_add_access_user_group.php ├── 2021_05_30_075056_alter_post_add_tencent_doc.php ├── 2021_05_31_071658_create_activity_table.php ├── 2021_05_31_154329_alter_forum_add_announcement.php ├── 2021_05_31_214122_create_post_document_table.php ├── 2021_06_02_113504_alter_user_add_qq_info.php ├── 2021_06_03_095036_create_qq_mini_program_table.php ├── 2021_06_03_102839_alter_user_mini_program_use_add_type.php ├── 2021_06_03_172333_alter_add_forum_activity.php ├── 2021_06_05_101441_create_post_at_user_table.php ├── 2021_06_05_101500_create_comment_at_user_table.php ├── 2021_06_05_143956_create_user_praise_post_table.php ├── 2021_06_06_075006_alter_post_add_last_activie_time.php ├── 2021_06_06_185831_alter_post_add_ignore_recommend.php ├── 2021_06_07_105027_alter_post_add_rich_content.php ├── 2021_06_09_073649_create_user_upload_statistic_table.php ├── 2021_06_13_200820_alter_app_setting_add_nav_control.php ├── 2021_06_28_144349_create_circle_table.php ├── 2021_06_28_144400_create_circle_category_table.php ├── 2021_06_28_144419_alter_post_add_circle_info.php ├── 2021_06_28_144454_create_user_circle_table.php ├── 2021_06_28_150858_alter_topic_add_circle_info.php ├── 2021_06_28_160551_create_join_circle_apply_table.php ├── 2021_07_02_095852_create_circle_topic_table.php ├── 2021_07_02_103759_alter_post_add_circle_topic_id.php ├── 2021_07_08_195716_alter_comment_add_super.php ├── 2021_07_11_155601_alter_comment_add_audio_duration.php ├── 2021_07_25_090240_alter_circle_topic_add_post_count.php ├── 2021_07_25_154114_post_add_circle_topic_id_index.php ├── 2021_07_25_163505_create_circle_expert_table.php ├── 2021_07_31_161115_create_user_circle_info_table.php ├── 2021_08_10_162348_alter_circle_topic_add_last_active.php ├── 2021_08_11_154714_alter_user_add_labels.php ├── 2021_08_17_104228_alter_user_add_count_info.php ├── 2021_08_20_115627_alter_user_attention_other_add_read_status.php ├── 2021_08_23_091400_post_add_is_top_new.php ├── 2021_08_23_111248_create_hobby_label_table.php ├── 2021_08_23_111301_create_hobby_category_label_table.php ├── 2021_08_23_141922_alter_user_add_status.php ├── 2021_08_24_075121_create_post_score_reward_table.php ├── 2021_08_24_080543_alter_post_add_reward_score.php ├── 2021_08_24_162205_alter_day_sign_add_reward_status.php ├── 2021_08_26_193238_create_delay_post_task_table.php ├── 2021_09_07_185004_alter_user_add_union_id.php ├── 2021_09_08_090031_alter_app_setting_add_fa.php ├── 2021_09_10_084943_alter_post_add_ref_id.php └── 2021_09_11_191917_create_fitler_topic_table.php ├── phpstan.neon ├── phpunit.xml ├── seeders ├── create_admin_user_seeder.php ├── create_app_setting_seeder.php ├── create_circle_category_setup_data_seeder.php ├── create_hobby_init_data.php ├── create_setup_data_seeder.php ├── create_setup_score_action.php ├── create_setup_unit_and_category_seeder.php ├── create_sign_status_init_data.php └── create_system_category.php └── test ├── Cases └── ExampleTest.php ├── HttpTestCase.php └── bootstrap.php /hyperf-skeleton/.gitignore: -------------------------------------------------------------------------------- 1 | /vendor/ 2 | .idea/ 3 | .buildpath 4 | .settings/ 5 | .project 6 | *.patch 7 | .git/ 8 | runtime/ 9 | .phpintel/ 10 | .env 11 | .DS_Store 12 | *.lock 13 | .phpunit* 14 | -------------------------------------------------------------------------------- /hyperf-skeleton/.swp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyprosoft/TopicQ-Server/e5e266e08c745c0b9c7cf7b946d75c82e78aecf1/hyperf-skeleton/.swp -------------------------------------------------------------------------------- /hyperf-skeleton/README.md: -------------------------------------------------------------------------------- 1 | # hyperf-skeleton 2 | my special skeleton 3 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Controller/Common/AppSettingController.php: -------------------------------------------------------------------------------- 1 | service->getSettingInfo(); 26 | return $this->success($result); 27 | } 28 | } -------------------------------------------------------------------------------- /hyperf-skeleton/app/Controller/Common/PddNotifyController.php: -------------------------------------------------------------------------------- 1 | request->getBody()); 27 | } 28 | } -------------------------------------------------------------------------------- /hyperf-skeleton/app/Controller/Common/SearchController.php: -------------------------------------------------------------------------------- 1 | validate([ 26 | 'keyword' => 'string|required|min:1' 27 | ]); 28 | $keyword = $this->request->param('keyword'); 29 | $result = $this->service->searchAll($keyword); 30 | return $this->success($result); 31 | } 32 | } -------------------------------------------------------------------------------- /hyperf-skeleton/app/Controller/Common/ShopController.php: -------------------------------------------------------------------------------- 1 | validate([ 25 | 'shopId' => 'required|integer|exists:shop,shop_id', 26 | ]); 27 | $shopId = $this->request->param('shopId'); 28 | $result = $this->service->info($shopId); 29 | return $this->success($result); 30 | } 31 | } -------------------------------------------------------------------------------- /hyperf-skeleton/app/Controller/Common/WxPayNotifyController.php: -------------------------------------------------------------------------------- 1 | service->handle($this->request->easyWeChatRequest()); 26 | return $this->weChatSuccess($response->getContent()); 27 | } 28 | } -------------------------------------------------------------------------------- /hyperf-skeleton/app/Http/AppAdminRequest.php: -------------------------------------------------------------------------------- 1 | isAdmin()); 22 | return $user->isAdmin(); 23 | } 24 | } -------------------------------------------------------------------------------- /hyperf-skeleton/app/Http/AppManagerRequest.php: -------------------------------------------------------------------------------- 1 | role_id); 23 | return $user->role_id >= Constants::USER_ROLE_ADMIN; 24 | } 25 | } -------------------------------------------------------------------------------- /hyperf-skeleton/app/Job/AddCommentToImportTopicJob.php: -------------------------------------------------------------------------------- 1 | bindAction = $bindAction; 22 | $this->userId = $userId; 23 | $this->desc = $desc; 24 | } 25 | 26 | /** 27 | * @inheritDoc 28 | */ 29 | public function handle() 30 | { 31 | $scoreService = ApplicationContext::getContainer()->get(ScoreService::class); 32 | $scoreService->addScore($this->userId,$this->bindAction,$this->desc); 33 | Log::info("用户({$this->userId})行为($this->desc)加分完成!"); 34 | } 35 | } -------------------------------------------------------------------------------- /hyperf-skeleton/app/Job/CommentMachineAuditJob.php: -------------------------------------------------------------------------------- 1 | commentId = $commentId; 18 | } 19 | 20 | /** 21 | * @inheritDoc 22 | */ 23 | public function handle() 24 | { 25 | $service = ApplicationContext::getContainer()->get(QiniuAuditService::class); 26 | $service->auditComment($this->commentId); 27 | Log::info("($this->commentId)异步审核评论文本信息执行完成!"); 28 | } 29 | } -------------------------------------------------------------------------------- /hyperf-skeleton/app/Job/PostIncreaseReadJob.php: -------------------------------------------------------------------------------- 1 | postId = $postId; 16 | } 17 | 18 | /** 19 | * @inheritDoc 20 | */ 21 | public function handle() 22 | { 23 | $service = ApplicationContext::getContainer()->get(PostService::class); 24 | $service->increaseRead($this->postId); 25 | } 26 | } -------------------------------------------------------------------------------- /hyperf-skeleton/app/Job/PostMachineAuditJob.php: -------------------------------------------------------------------------------- 1 | postId = $postId; 18 | } 19 | 20 | /** 21 | * @inheritDoc 22 | */ 23 | public function handle() 24 | { 25 | Post::withoutSyncingToSearch(function (){ 26 | $service = ApplicationContext::getContainer()->get(QiniuAuditService::class); 27 | $service->auditPost($this->postId); 28 | Log::info("($this->postId)异步审核帖子文本信息执行完成!"); 29 | }); 30 | } 31 | } -------------------------------------------------------------------------------- /hyperf-skeleton/app/Job/QueryOfficialAccountUserInfoJob.php: -------------------------------------------------------------------------------- 1 | openId = $openId; 16 | } 17 | 18 | /** 19 | * @inheritDoc 20 | */ 21 | public function handle() 22 | { 23 | $service = ApplicationContext::getContainer()->get(OfficialAccountService::class); 24 | $service->queryUserInfo($this->openId); 25 | } 26 | } -------------------------------------------------------------------------------- /hyperf-skeleton/app/Job/UpdateUserCircleInfoJob.php: -------------------------------------------------------------------------------- 1 | userId = $userId; 23 | $this->circleId = $circleId; 24 | $this->cacheKey = $cacheKey; 25 | } 26 | 27 | /** 28 | * @inheritDoc 29 | */ 30 | public function handle() 31 | { 32 | Cache::delete($this->cacheKey); 33 | $service = ApplicationContext::getContainer()->get(CircleService::class); 34 | $service->updateUserCircleActiveTime($this->userId,$this->circleId); 35 | } 36 | } -------------------------------------------------------------------------------- /hyperf-skeleton/app/Job/UserUpdateMachineAuditJob.php: -------------------------------------------------------------------------------- 1 | updateId = $updateId; 18 | } 19 | 20 | /** 21 | * @inheritDoc 22 | */ 23 | public function handle() 24 | { 25 | $service = ApplicationContext::getContainer()->get(QiniuAuditService::class); 26 | $service->auditUserUpdate($this->updateId); 27 | Log::info("($this->updateId)异步审核用户资料更新执行完成"); 28 | } 29 | } -------------------------------------------------------------------------------- /hyperf-skeleton/app/Model/FilterTopic.php: -------------------------------------------------------------------------------- 1 | 'int', 'created_at' => 'datetime', 'updated_at' => 'datetime']; 32 | } -------------------------------------------------------------------------------- /hyperf-skeleton/app/Model/HobbyLabel.php: -------------------------------------------------------------------------------- 1 | 'integer', 'category_id' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime']; 33 | } -------------------------------------------------------------------------------- /hyperf-skeleton/app/Model/Model.php: -------------------------------------------------------------------------------- 1 | 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime']; 34 | } -------------------------------------------------------------------------------- /hyperf-skeleton/app/Model/Scrapy/Comment.php: -------------------------------------------------------------------------------- 1 | 'int', 'post_id' => 'integer']; 39 | } -------------------------------------------------------------------------------- /hyperf-skeleton/app/Model/Scrapy/Model.php: -------------------------------------------------------------------------------- 1 | 'int', 'created_at' => 'datetime', 'updated_at' => 'datetime']; 32 | } -------------------------------------------------------------------------------- /hyperf-skeleton/app/Model/TokenHistory.php: -------------------------------------------------------------------------------- 1 | 'integer', 'owner_id' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime']; 35 | } -------------------------------------------------------------------------------- /hyperf-skeleton/app/Model/TopicCategory.php: -------------------------------------------------------------------------------- 1 | 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime']; 34 | } -------------------------------------------------------------------------------- /hyperf-skeleton/app/Model/Unit.php: -------------------------------------------------------------------------------- 1 | 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime']; 33 | } -------------------------------------------------------------------------------- /hyperf-skeleton/app/Model/UserCommentRead.php: -------------------------------------------------------------------------------- 1 | 'integer', 'user_id' => 'integer', 'comment_id' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime']; 33 | } -------------------------------------------------------------------------------- /hyperf-skeleton/app/Model/UserDaySign.php: -------------------------------------------------------------------------------- 1 | 'int', 'user_id' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime', 'reward_score' => 'integer']; 35 | } -------------------------------------------------------------------------------- /hyperf-skeleton/app/Model/UserOrderSummary.php: -------------------------------------------------------------------------------- 1 | 'int', 'owner_id' => 'integer', 'order_total' => 'integer', 'type' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime']; 35 | } -------------------------------------------------------------------------------- /hyperf-skeleton/app/Model/UserRead.php: -------------------------------------------------------------------------------- 1 | 'integer', 'user_id' => 'integer', 'post_id' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime']; 33 | } -------------------------------------------------------------------------------- /hyperf-skeleton/app/Model/UserSetting.php: -------------------------------------------------------------------------------- 1 | 'int', 'owner_id' => 'integer', 'open_private_message' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime']; 34 | } -------------------------------------------------------------------------------- /hyperf-skeleton/app/Model/UserVote.php: -------------------------------------------------------------------------------- 1 | 'integer', 'user_id' => 'integer', 'post_id' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime']; 33 | } -------------------------------------------------------------------------------- /hyperf-skeleton/app/Process/AsyncQueueConsumer.php: -------------------------------------------------------------------------------- 1 | {$column} = $status; 19 | $appSetting->saveOrFail(); 20 | } 21 | } -------------------------------------------------------------------------------- /hyperf-skeleton/app/Service/AppSettingService.php: -------------------------------------------------------------------------------- 1 | enable_user_video == 1; 27 | } 28 | 29 | public static function isUserCreateTopicEnable() 30 | { 31 | $appSetting = AppSetting::first(); 32 | if (!$appSetting instanceof AppSetting) { 33 | return false; 34 | } 35 | return $appSetting->enable_user_create_topic == 1; 36 | } 37 | } -------------------------------------------------------------------------------- /hyperf-skeleton/app/Service/CashService.php: -------------------------------------------------------------------------------- 1 | getAllSystem(); 15 | $userCreateList = GoodsCategory::query()->where('create_user',$this->userId()) 16 | ->where('shop_id', $shopId) 17 | ->latest() 18 | ->get(); 19 | 20 | return $userCreateList->merge($systemCreateList); 21 | } 22 | 23 | public function getAllSystem() 24 | { 25 | return GoodsCategory::query()->where('shop_id', Constants::CATEGORY_SHOP_ID_SYSTEM_USE) 26 | ->get(); 27 | } 28 | } -------------------------------------------------------------------------------- /hyperf-skeleton/app/Service/GroupService.php: -------------------------------------------------------------------------------- 1 | get(ImportPostService::class); 19 | $importService->getOneTopic(); 20 | }else{{ 21 | $importService = ApplicationContext::getContainer()->get(PostService::class); 22 | $importService->importTopic(); 23 | }} 24 | } 25 | } 26 | } -------------------------------------------------------------------------------- /hyperf-skeleton/app/Task/CircleExpertCalculateTask.php: -------------------------------------------------------------------------------- 1 | toDateString(); 18 | Voucher::query()->whereDate('end_time','<', $now) 19 | ->update([ 20 | 'status' => Constants::VOUCHER_STATUS_EXPIRED, 21 | ]); 22 | Log::info("执行代金券过期任务完成!"); 23 | } 24 | } -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddAdApiAdvertiserOpenAccountRequest.php: -------------------------------------------------------------------------------- 1 | setUserParam($params, "goodsId", $this->goodsId); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.ad.api.goods.query.gallery.images"; 37 | } 38 | 39 | public function setGoodsId($goodsId) 40 | { 41 | $this->goodsId = $goodsId; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddAdApiGoodsQueryLongImagesRequest.php: -------------------------------------------------------------------------------- 1 | setUserParam($params, "goodsId", $this->goodsId); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.ad.api.goods.query.long.images"; 37 | } 38 | 39 | public function setGoodsId($goodsId) 40 | { 41 | $this->goodsId = $goodsId; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddAdApiKeywordRecommendGetRequest.php: -------------------------------------------------------------------------------- 1 | setUserParam($params, "goodsId", $this->goodsId); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.ad.api.keyword.recommend.get"; 37 | } 38 | 39 | public function setGoodsId($goodsId) 40 | { 41 | $this->goodsId = $goodsId; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddAdApiPlanQueryCanUpdateMaxCostRequest.php: -------------------------------------------------------------------------------- 1 | setUserParam($params, "planId", $this->planId); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.ad.api.plan.query.can.update.max.cost"; 37 | } 38 | 39 | public function setPlanId($planId) 40 | { 41 | $this->planId = $planId; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddAdApiUnitBidQueryBaseLocationProfileRequest.php: -------------------------------------------------------------------------------- 1 | setUserParam($params, "unitCreativeId", $this->unitCreativeId); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.ad.api.unit.creative.delete"; 37 | } 38 | 39 | public function setUnitCreativeId($unitCreativeId) 40 | { 41 | $this->unitCreativeId = $unitCreativeId; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddAdApiUnitCreativeQueryFlowRateRequest.php: -------------------------------------------------------------------------------- 1 | setUserParam($params, "adId", $this->adId); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.ad.api.unit.creative.query.flow.rate"; 37 | } 38 | 39 | public function setAdId($adId) 40 | { 41 | $this->adId = $adId; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddCloudprintCustomaresGetRequest.php: -------------------------------------------------------------------------------- 1 | setUserParam($params, "template_id", $this->templateId); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.cloudprint.customares.get"; 37 | } 38 | 39 | public function setTemplateId($templateId) 40 | { 41 | $this->templateId = $templateId; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddCloudprintPortableprinterGetRequest.php: -------------------------------------------------------------------------------- 1 | setUserParam($params, "wp_code", $this->wpCode); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.cloudprint.stdtemplates.get"; 37 | } 38 | 39 | public function setWpCode($wpCode) 40 | { 41 | $this->wpCode = $wpCode; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddDdyPdpUserDeleteRequest.php: -------------------------------------------------------------------------------- 1 | setUserParam($params, "owner_id", $this->ownerId); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.ddy.pdp.user.delete"; 37 | } 38 | 39 | public function setOwnerId($ownerId) 40 | { 41 | $this->ownerId = $ownerId; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddDeleteDraftCommitRequest.php: -------------------------------------------------------------------------------- 1 | setUserParam($params, "goods_commit_id", $this->goodsCommitId); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.delete.draft.commit"; 37 | } 38 | 39 | public function setGoodsCommitId($goodsCommitId) 40 | { 41 | $this->goodsCommitId = $goodsCommitId; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddDeleteGoodsCommitRequest.php: -------------------------------------------------------------------------------- 1 | , "goods_ids") 15 | */ 16 | private $goodsIds; 17 | 18 | protected function setUserParams(&$params) 19 | { 20 | $this->setUserParam($params, "goods_ids", $this->goodsIds); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.delete.goods.commit"; 37 | } 38 | 39 | public function setGoodsIds($goodsIds) 40 | { 41 | $this->goodsIds = $goodsIds; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddExpressDepotInfoGetRequest.php: -------------------------------------------------------------------------------- 1 | setUserParam($params, "depot_id", $this->depotId); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.express.depot.info.get"; 37 | } 38 | 39 | public function setDepotId($depotId) 40 | { 41 | $this->depotId = $depotId; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddExpressMallDepotSimpleGetRequest.php: -------------------------------------------------------------------------------- 1 | setUserParam($params, "bill_date", $this->billDate); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.finance.balance.daily.bill.url.get"; 37 | } 38 | 39 | public function setBillDate($billDate) 40 | { 41 | $this->billDate = $billDate; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddGoodsAuthorizationCatsRequest.php: -------------------------------------------------------------------------------- 1 | setUserParam($params, "parent_cat_id", $this->parentCatId); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.goods.authorization.cats"; 37 | } 38 | 39 | public function setParentCatId($parentCatId) 40 | { 41 | $this->parentCatId = $parentCatId; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddGoodsCatRuleGetRequest.php: -------------------------------------------------------------------------------- 1 | setUserParam($params, "cat_id", $this->catId); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.goods.cat.rule.get"; 37 | } 38 | 39 | public function setCatId($catId) 40 | { 41 | $this->catId = $catId; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddGoodsCatTemplateGetRequest.php: -------------------------------------------------------------------------------- 1 | setUserParam($params, "cat_id", $this->catId); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.goods.cat.template.get"; 37 | } 38 | 39 | public function setCatId($catId) 40 | { 41 | $this->catId = $catId; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddGoodsCatsGetRequest.php: -------------------------------------------------------------------------------- 1 | setUserParam($params, "parent_cat_id", $this->parentCatId); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.goods.cats.get"; 37 | } 38 | 39 | public function setParentCatId($parentCatId) 40 | { 41 | $this->parentCatId = $parentCatId; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddGoodsCountryGetRequest.php: -------------------------------------------------------------------------------- 1 | setUserParam($params, "rate", $this->rate); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.goods.cps.mall.unit.change"; 37 | } 38 | 39 | public function setRate($rate) 40 | { 41 | $this->rate = $rate; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddGoodsCpsMallUnitPauseRequest.php: -------------------------------------------------------------------------------- 1 | setUserParam($params, "goods_id", $this->goodsId); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.goods.cps.unit.delete"; 37 | } 38 | 39 | public function setGoodsId($goodsId) 40 | { 41 | $this->goodsId = $goodsId; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddGoodsCpsUnitQueryRequest.php: -------------------------------------------------------------------------------- 1 | setUserParam($params, "goods_id", $this->goodsId); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.goods.cps.unit.query"; 37 | } 38 | 39 | public function setGoodsId($goodsId) 40 | { 41 | $this->goodsId = $goodsId; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddGoodsDetailGetRequest.php: -------------------------------------------------------------------------------- 1 | setUserParam($params, "goods_id", $this->goodsId); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.goods.detail.get"; 37 | } 38 | 39 | public function setGoodsId($goodsId) 40 | { 41 | $this->goodsId = $goodsId; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddGoodsFilespaceImageUploadRequest.php: -------------------------------------------------------------------------------- 1 | setUserParam($params, "file", $this->file); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.goods.filespace.image.upload"; 37 | } 38 | 39 | public function setFile($file) 40 | { 41 | $this->file = $file; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddGoodsImageUploadRequest.php: -------------------------------------------------------------------------------- 1 | setUserParam($params, "image", $this->image); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.goods.image.upload"; 37 | } 38 | 39 | public function setImage($image) 40 | { 41 | $this->image = $image; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddGoodsInformationGetRequest.php: -------------------------------------------------------------------------------- 1 | setUserParam($params, "goods_id", $this->goodsId); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.goods.information.get"; 37 | } 38 | 39 | public function setGoodsId($goodsId) 40 | { 41 | $this->goodsId = $goodsId; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddGoodsLatestCommitStatusGetRequest.php: -------------------------------------------------------------------------------- 1 | , "goods_id_list") 15 | */ 16 | private $goodsIdList; 17 | 18 | protected function setUserParams(&$params) 19 | { 20 | $this->setUserParam($params, "goods_id_list", $this->goodsIdList); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.goods.latest.commit.status.get"; 37 | } 38 | 39 | public function setGoodsIdList($goodsIdList) 40 | { 41 | $this->goodsIdList = $goodsIdList; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddGoodsLogisticsSerTemplateDeleteRequest.php: -------------------------------------------------------------------------------- 1 | setUserParam($params, "template_id", $this->templateId); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.goods.logistics.ser.template.delete"; 37 | } 38 | 39 | public function setTemplateId($templateId) 40 | { 41 | $this->templateId = $templateId; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddGoodsLogisticsSerTemplateDetailRequest.php: -------------------------------------------------------------------------------- 1 | setUserParam($params, "template_id", $this->templateId); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.goods.logistics.ser.template.detail"; 37 | } 38 | 39 | public function setTemplateId($templateId) 40 | { 41 | $this->templateId = $templateId; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddGoodsMaterialDeleteRequest.php: -------------------------------------------------------------------------------- 1 | setUserParam($params, "material_id", $this->materialId); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.goods.material.delete"; 37 | } 38 | 39 | public function setMaterialId($materialId) 40 | { 41 | $this->materialId = $materialId; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddGoodsOptGetRequest.php: -------------------------------------------------------------------------------- 1 | setUserParam($params, "parent_opt_id", $this->parentOptId); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.goods.opt.get"; 37 | } 38 | 39 | public function setParentOptId($parentOptId) 40 | { 41 | $this->parentOptId = $parentOptId; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddGoodsSizespecClassGetRequest.php: -------------------------------------------------------------------------------- 1 | setUserParam($params, "class_id", $this->classId); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.goods.sizespec.meta.get"; 37 | } 38 | 39 | public function setClassId($classId) 40 | { 41 | $this->classId = $classId; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddGoodsSizespecTemplateDeleteRequest.php: -------------------------------------------------------------------------------- 1 | setUserParam($params, "id", $this->id); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.goods.sizespec.template.delete"; 37 | } 38 | 39 | public function setId($id) 40 | { 41 | $this->id = $id; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddGoodsSizespecTemplateGetRequest.php: -------------------------------------------------------------------------------- 1 | setUserParam($params, "id", $this->id); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.goods.sizespec.template.get"; 37 | } 38 | 39 | public function setId($id) 40 | { 41 | $this->id = $id; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddGoodsSpecGetRequest.php: -------------------------------------------------------------------------------- 1 | setUserParam($params, "cat_id", $this->catId); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.goods.spec.get"; 37 | } 38 | 39 | public function setCatId($catId) 40 | { 41 | $this->catId = $catId; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddGooodsSkuMeasurementListRequest.php: -------------------------------------------------------------------------------- 1 | setUserParam($params, "order_sn", $this->orderSn); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.invoice.detail.invalid"; 37 | } 38 | 39 | public function setOrderSn($orderSn) 40 | { 41 | $this->orderSn = $orderSn; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddKttGoodsCreateSpecRequest.php: -------------------------------------------------------------------------------- 1 | >, "spec_map") 15 | */ 16 | private $specMap; 17 | 18 | protected function setUserParams(&$params) 19 | { 20 | $this->setUserParam($params, "spec_map", $this->specMap); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.ktt.goods.create.spec"; 37 | } 38 | 39 | public function setSpecMap($specMap) 40 | { 41 | $this->specMap = $specMap; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddKttGoodsQuerySingleRequest.php: -------------------------------------------------------------------------------- 1 | setUserParam($params, "goods_id", $this->goodsId); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.ktt.goods.query.single"; 37 | } 38 | 39 | public function setGoodsId($goodsId) 40 | { 41 | $this->goodsId = $goodsId; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddKttGoodsUploadImageRequest.php: -------------------------------------------------------------------------------- 1 | setUserParam($params, "url", $this->url); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.ktt.goods.upload.image"; 37 | } 38 | 39 | public function setUrl($url) 40 | { 41 | $this->url = $url; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddKttGroupQueryStatusRequest.php: -------------------------------------------------------------------------------- 1 | setUserParam($params, "activity_no", $this->activityNo); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.ktt.group.query.status"; 37 | } 38 | 39 | public function setActivityNo($activityNo) 40 | { 41 | $this->activityNo = $activityNo; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddKttOrderGetRequest.php: -------------------------------------------------------------------------------- 1 | setUserParam($params, "order_sn", $this->orderSn); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.ktt.order.get"; 37 | } 38 | 39 | public function setOrderSn($orderSn) 40 | { 41 | $this->orderSn = $orderSn; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddLogisticsAddressGetRequest.php: -------------------------------------------------------------------------------- 1 | setUserParam($params, "session_id", $this->sessionId); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.logistics.cs.history.message.get"; 37 | } 38 | 39 | public function setSessionId($sessionId) 40 | { 41 | $this->sessionId = $sessionId; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddLogisticsOnlineStatusQueryRequest.php: -------------------------------------------------------------------------------- 1 | setUserParam($params, "order_sn", $this->orderSn); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.logistics.online.status.query"; 37 | } 38 | 39 | public function setOrderSn($orderSn) 40 | { 41 | $this->orderSn = $orderSn; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddLogisticsTicketImageUploadRequest.php: -------------------------------------------------------------------------------- 1 | setUserParam($params, "image", $this->image); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.logistics.ticket.image.upload"; 37 | } 38 | 39 | public function setImage($image) 40 | { 41 | $this->image = $image; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddLogisticsTicketProblemTypeGetRequest.php: -------------------------------------------------------------------------------- 1 | , "store_id_list") 15 | */ 16 | private $storeIdList; 17 | 18 | protected function setUserParams(&$params) 19 | { 20 | $this->setUserParam($params, "store_id_list", $this->storeIdList); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.mall.info.store.delete.post"; 37 | } 38 | 39 | public function setStoreIdList($storeIdList) 40 | { 41 | $this->storeIdList = $storeIdList; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddMallTicketDetailRequest.php: -------------------------------------------------------------------------------- 1 | setUserParam($params, "ticket_id", $this->ticketId); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.mall.ticket.detail"; 37 | } 38 | 39 | public function setTicketId($ticketId) 40 | { 41 | $this->ticketId = $ticketId; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddOneExpressCostTemplateRequest.php: -------------------------------------------------------------------------------- 1 | setUserParam($params, "cost_template_id", $this->costTemplateId); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.one.express.cost.template"; 37 | } 38 | 39 | public function setCostTemplateId($costTemplateId) 40 | { 41 | $this->costTemplateId = $costTemplateId; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddOrderInformationGetRequest.php: -------------------------------------------------------------------------------- 1 | setUserParam($params, "order_sn", $this->orderSn); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.order.information.get"; 37 | } 38 | 39 | public function setOrderSn($orderSn) 40 | { 41 | $this->orderSn = $orderSn; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddOrderPromiseInfoGetRequest.php: -------------------------------------------------------------------------------- 1 | setUserParam($params, "promise_id", $this->promiseId); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.order.promise.info.get"; 37 | } 38 | 39 | public function setPromiseId($promiseId) 40 | { 41 | $this->promiseId = $promiseId; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddOrderStatusGetRequest.php: -------------------------------------------------------------------------------- 1 | setUserParam($params, "order_sns", $this->orderSns); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.order.status.get"; 37 | } 38 | 39 | public function setOrderSns($orderSns) 40 | { 41 | $this->orderSns = $orderSns; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddOverseaClearanceGetRequest.php: -------------------------------------------------------------------------------- 1 | setUserParam($params, "order_sn", $this->orderSn); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.oversea.clearance.get"; 37 | } 38 | 39 | public function setOrderSn($orderSn) 40 | { 41 | $this->orderSn = $orderSn; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddPmcAccrueQueryRequest.php: -------------------------------------------------------------------------------- 1 | setUserParam($params, "owner_id", $this->ownerId); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.pmc.user.cancel"; 37 | } 38 | 39 | public function setOwnerId($ownerId) 40 | { 41 | $this->ownerId = $ownerId; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddPmcUserGetRequest.php: -------------------------------------------------------------------------------- 1 | setUserParam($params, "owner_id", $this->ownerId); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.pmc.user.get"; 37 | } 38 | 39 | public function setOwnerId($ownerId) 40 | { 41 | $this->ownerId = $ownerId; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddPmcUserPermitRequest.php: -------------------------------------------------------------------------------- 1 | setUserParam($params, "topics", $this->topics); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.pmc.user.permit"; 37 | } 38 | 39 | public function setTopics($topics) 40 | { 41 | $this->topics = $topics; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddPngPermissionsMallStaffPushApplyRequest.php: -------------------------------------------------------------------------------- 1 | setUserParam($params, "to_mall_id", $this->toMallId); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.png.permissions.mall.staff.push.apply"; 37 | } 38 | 39 | public function setToMallId($toMallId) 40 | { 41 | $this->toMallId = $toMallId; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddPngPermissionsMallStaffPushConfirmRequest.php: -------------------------------------------------------------------------------- 1 | setUserParam($params, "from_mall_id", $this->fromMallId); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.png.permissions.mall.staff.push.confirm"; 37 | } 38 | 39 | public function setFromMallId($fromMallId) 40 | { 41 | $this->fromMallId = $fromMallId; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddPopAuthTokenCreateRequest.php: -------------------------------------------------------------------------------- 1 | setUserParam($params, "code", $this->code); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.pop.auth.token.create"; 37 | } 38 | 39 | public function setCode($code) 40 | { 41 | $this->code = $code; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddPopAuthTokenRefreshRequest.php: -------------------------------------------------------------------------------- 1 | setUserParam($params, "refresh_token", $this->refreshToken); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.pop.auth.token.refresh"; 37 | } 38 | 39 | public function setRefreshToken($refreshToken) 40 | { 41 | $this->refreshToken = $refreshToken; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddPromotionCouponCloseRequest.php: -------------------------------------------------------------------------------- 1 | setUserParam($params, "batch_id", $this->batchId); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.promotion.coupon.close"; 37 | } 38 | 39 | public function setBatchId($batchId) 40 | { 41 | $this->batchId = $batchId; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddPromotionLimitedQualifiedSkuGetRequest.php: -------------------------------------------------------------------------------- 1 | setUserParam($params, "goods_id", $this->goodsId); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.promotion.limited.qualified.sku.get"; 37 | } 38 | 39 | public function setGoodsId($goodsId) 40 | { 41 | $this->goodsId = $goodsId; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddRefundAddressListGetRequest.php: -------------------------------------------------------------------------------- 1 | setUserParam($params, "order_sns", $this->orderSns); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.refund.status.check"; 37 | } 38 | 39 | public function setOrderSns($orderSns) 40 | { 41 | $this->orderSns = $orderSns; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddServicemarketContractSearchRequest.php: -------------------------------------------------------------------------------- 1 | setUserParam($params, "mallId", $this->mallId); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.servicemarket.contract.search"; 37 | } 38 | 39 | public function setMallId($mallId) 40 | { 41 | $this->mallId = $mallId; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddStockWareDeleteRequest.php: -------------------------------------------------------------------------------- 1 | setUserParam($params, "ware_id", $this->wareId); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.stock.ware.delete"; 37 | } 38 | 39 | public function setWareId($wareId) 40 | { 41 | $this->wareId = $wareId; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddStockWareDetailQueryRequest.php: -------------------------------------------------------------------------------- 1 | setUserParam($params, "ware_id", $this->wareId); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.stock.ware.detail.query"; 37 | } 38 | 39 | public function setWareId($wareId) 40 | { 41 | $this->wareId = $wareId; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddStockWareInfoListRequest.php: -------------------------------------------------------------------------------- 1 | , "ware_sn_list") 15 | */ 16 | private $wareSnList; 17 | 18 | protected function setUserParams(&$params) 19 | { 20 | $this->setUserParam($params, "ware_sn_list", $this->wareSnList); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.stock.ware.info.list"; 37 | } 38 | 39 | public function setWareSnList($wareSnList) 40 | { 41 | $this->wareSnList = $wareSnList; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddTicketAreacodeGetRequest.php: -------------------------------------------------------------------------------- 1 | setUserParam($params, "order_id", $this->orderId); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.train.cancel.reserve"; 37 | } 38 | 39 | public function setOrderId($orderId) 40 | { 41 | $this->orderId = $orderId; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddTrainQueryOrderDetailRequest.php: -------------------------------------------------------------------------------- 1 | setUserParam($params, "pdd_order_id", $this->pddOrderId); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.train.query.order.detail"; 37 | } 38 | 39 | public function setPddOrderId($pddOrderId) 40 | { 41 | $this->pddOrderId = $pddOrderId; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddTrainTicketRefundRequest.php: -------------------------------------------------------------------------------- 1 | setUserParam($params, "sub_order_id", $this->subOrderId); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.train.ticket.refund"; 37 | } 38 | 39 | public function setSubOrderId($subOrderId) 40 | { 41 | $this->subOrderId = $subOrderId; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddVirtualGameServerQueryRequest.php: -------------------------------------------------------------------------------- 1 | setUserParam($params, "goods_config_code", $this->goodsConfigCode); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.virtual.game.server.query"; 37 | } 38 | 39 | public function setGoodsConfigCode($goodsConfigCode) 40 | { 41 | $this->goodsConfigCode = $goodsConfigCode; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddWaybillSearchRequest.php: -------------------------------------------------------------------------------- 1 | setUserParam($params, "wp_code", $this->wpCode); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.waybill.search"; 37 | } 38 | 39 | public function setWpCode($wpCode) 40 | { 41 | $this->wpCode = $wpCode; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddWmsDepotTicketAckRequest.php: -------------------------------------------------------------------------------- 1 | , "ticketIds") 15 | */ 16 | private $ticketIds; 17 | 18 | protected function setUserParams(&$params) 19 | { 20 | $this->setUserParam($params, "ticketIds", $this->ticketIds); 21 | 22 | } 23 | 24 | public function getVersion() 25 | { 26 | return "V1"; 27 | } 28 | 29 | public function getDataType() 30 | { 31 | return "JSON"; 32 | } 33 | 34 | public function getType() 35 | { 36 | return "pdd.wms.depot.ticket.ack"; 37 | } 38 | 39 | public function setTicketIds($ticketIds) 40 | { 41 | $this->ticketIds = $ticketIds; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/Api/Request/PddWmsDepotTicketProblemGetRequest.php: -------------------------------------------------------------------------------- 1 | |\\\\]+),[\s?]\"(\w+)\"\)/i'; 17 | preg_match($pattern, $doc, $matches); 18 | if ($matches && count($matches) == 3) { 19 | return array($matches[1], $matches[2]); 20 | } else { 21 | return NULL; 22 | } 23 | } 24 | 25 | } -------------------------------------------------------------------------------- /hyperf-skeleton/app/Third/pdd/PopHttpException.php: -------------------------------------------------------------------------------- 1 | getMessage(); 11 | } 12 | } -------------------------------------------------------------------------------- /hyperf-skeleton/bin/hyperf.php: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env php 2 | get(\Hyperf\Contract\ApplicationInterface::class); 22 | $application->run(); 23 | })(); 24 | -------------------------------------------------------------------------------- /hyperf-skeleton/composer.phar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyprosoft/TopicQ-Server/e5e266e08c745c0b9c7cf7b946d75c82e78aecf1/hyperf-skeleton/composer.phar -------------------------------------------------------------------------------- /hyperf-skeleton/config/autoload/annotations.php: -------------------------------------------------------------------------------- 1 | [ 14 | 'paths' => [ 15 | BASE_PATH . '/app', 16 | ], 17 | 'ignore_annotations' => [ 18 | 'mixin', 19 | ], 20 | ], 21 | ]; 22 | -------------------------------------------------------------------------------- /hyperf-skeleton/config/autoload/aspects.php: -------------------------------------------------------------------------------- 1 | [ 14 | 'driver' => Hyperf\AsyncQueue\Driver\RedisDriver::class, 15 | 'channel' => 'queue', 16 | 'timeout' => 2, 17 | 'retry_seconds' => 5, 18 | 'handle_timeout' => 10, 19 | 'processes' => 1, 20 | ], 21 | ]; 22 | -------------------------------------------------------------------------------- /hyperf-skeleton/config/autoload/baidu.php: -------------------------------------------------------------------------------- 1 | env('BAIDU_SECRET'), 6 | 'client_id' => env('BAIDU_CLIENT_ID'), 7 | ]; -------------------------------------------------------------------------------- /hyperf-skeleton/config/autoload/cache.php: -------------------------------------------------------------------------------- 1 | [ 14 | 'driver' => Hyperf\Cache\Driver\RedisDriver::class, 15 | 'packer' => Hyperf\Utils\Packer\PhpSerializerPacker::class, 16 | 'prefix' => 'c:', 17 | ], 18 | ]; 19 | -------------------------------------------------------------------------------- /hyperf-skeleton/config/autoload/commands.php: -------------------------------------------------------------------------------- 1 | [ 15 | 'http' => [ 16 | ZYProSoft\Exception\Handler\HyperfCommonExceptionHandler::class, 17 | ], 18 | ], 19 | ]; 20 | -------------------------------------------------------------------------------- /hyperf-skeleton/config/autoload/listeners.php: -------------------------------------------------------------------------------- 1 | [ 6 | 'pid' => '16116857_207075147', 7 | 'name' => '统一推广位', 8 | 'client_id' => env('PDD_CLIENT_ID'), 9 | 'client_secret' => env('PDD_CLIENT_SECRET'), 10 | 'auth_code' => env('PDD_AUTH_CODE'), 11 | ], 12 | ]; -------------------------------------------------------------------------------- /hyperf-skeleton/config/autoload/middlewares.php: -------------------------------------------------------------------------------- 1 | [ 14 | Hyperf\Metric\Middleware\MetricMiddleware::class, 15 | ZYProSoft\Middleware\ValidatePostSizeMiddleware::class, 16 | Hyperf\Session\Middleware\SessionMiddleware::class, 17 | ZYProSoft\Middleware\CrossOriginMiddleware::class, 18 | ZYProSoft\Middleware\RequestLimitMiddleware::class, 19 | ZYProSoft\Middleware\RequestAuthMiddleware::class, 20 | Hyperf\Validation\Middleware\ValidationMiddleware::class, 21 | ], 22 | ]; 23 | -------------------------------------------------------------------------------- /hyperf-skeleton/config/autoload/processes.php: -------------------------------------------------------------------------------- 1 | env('QINIU_ACCESS_KEY'), 6 | 'secretKey' => env('QINIU_SECRET_KEY'), 7 | 'loginTemplateId' => env('QINIU_LOGIN_SMS_TEMP_ID'), 8 | 'appName' => env('QINIU_SMS_APP_NAME'), 9 | 'cdnDomain' => env('QINIU_CDN_DOMAIN'), 10 | ]; -------------------------------------------------------------------------------- /hyperf-skeleton/config/autoload/qq.php: -------------------------------------------------------------------------------- 1 | env('QQ_APPID'), 6 | 'secret' => env('QQ_SECRET'), 7 | ]; -------------------------------------------------------------------------------- /hyperf-skeleton/config/autoload/redis.php: -------------------------------------------------------------------------------- 1 | [ 14 | 'host' => env('REDIS_HOST', 'localhost'), 15 | 'auth' => env('REDIS_AUTH', null), 16 | 'port' => (int) env('REDIS_PORT', 6379), 17 | 'db' => (int) env('REDIS_DB', 0), 18 | 'pool' => [ 19 | 'min_connections' => 1, 20 | 'max_connections' => 10, 21 | 'connect_timeout' => 10.0, 22 | 'wait_timeout' => 3.0, 23 | 'heartbeat' => -1, 24 | 'max_idle_time' => (float) env('REDIS_MAX_IDLE_TIME', 60), 25 | ], 26 | ], 27 | ]; 28 | -------------------------------------------------------------------------------- /hyperf-skeleton/config/autoload/scout.php: -------------------------------------------------------------------------------- 1 | env('SCOUT_ENGINE', 'elasticsearch'), 14 | 'chunk' => [ 15 | 'searchable' => 500, 16 | 'unsearchable' => 500, 17 | ], 18 | 'prefix' => env('SCOUT_PREFIX', ''), 19 | 'soft_delete' => false, 20 | 'concurrency' => 100, 21 | 'engine' => [ 22 | 'elasticsearch' => [ 23 | 'driver' => Hyperf\Scout\Provider\ElasticsearchProvider::class, 24 | 'index' => null, 25 | 'hosts' => [ 26 | env('ELASTICSEARCH_HOST', 'http://127.0.0.1:9200'), 27 | ], 28 | ], 29 | ], 30 | ]; 31 | -------------------------------------------------------------------------------- /hyperf-skeleton/config/autoload/session.php: -------------------------------------------------------------------------------- 1 | Handler\RedisHandler::class, 16 | 'options' => [ 17 | 'connection' => 'default', 18 | 'path' => BASE_PATH . '/runtime/session', 19 | 'gc_maxlifetime' => 1200, 20 | 'session_name' => 'HYPERF_SESSION_ID', 21 | 'domain' => null, 22 | ], 23 | ]; 24 | -------------------------------------------------------------------------------- /hyperf-skeleton/config/config.php: -------------------------------------------------------------------------------- 1 | env('APP_NAME', 'skeleton'), 17 | 'app_env' => env('APP_ENV', 'dev'), 18 | 'scan_cacheable' => env('SCAN_CACHEABLE', false), 19 | StdoutLoggerInterface::class => [ 20 | 'log_level' => [ 21 | LogLevel::ALERT, 22 | LogLevel::CRITICAL, 23 | LogLevel::DEBUG, 24 | LogLevel::EMERGENCY, 25 | LogLevel::ERROR, 26 | LogLevel::INFO, 27 | LogLevel::NOTICE, 28 | LogLevel::WARNING, 29 | ], 30 | ], 31 | ]; 32 | -------------------------------------------------------------------------------- /hyperf-skeleton/config/container.php: -------------------------------------------------------------------------------- 1 | integerIncrements('role_id'); 16 | $table->string("name",20) 17 | ->comment("角色名"); 18 | $table->unique('name'); 19 | $table->timestamps(); 20 | $table->softDeletes(); 21 | $table->engine = "InnoDB"; 22 | $table->charset = "utf8mb4"; 23 | $table->collation = "utf8mb4_unicode_ci"; 24 | }); 25 | } 26 | 27 | /** 28 | * Reverse the migrations. 29 | */ 30 | public function down(): void 31 | { 32 | Schema::dropIfExists('role'); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_04_08_205421_create_vote_table.php: -------------------------------------------------------------------------------- 1 | bigIncrements('vote_id'); 16 | $table->integer('total_user')->default(0)->comment('总参与人数'); 17 | $table->string('title',64)->comment('投票主题'); 18 | 19 | $table->softDeletes(); 20 | $table->timestamps(); 21 | $table->engine = "InnoDB"; 22 | $table->charset = "utf8mb4"; 23 | $table->collation = "utf8mb4_unicode_ci"; 24 | }); 25 | } 26 | 27 | /** 28 | * Reverse the migrations. 29 | */ 30 | public function down(): void 31 | { 32 | Schema::dropIfExists('vote'); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_04_12_085526_alter_post_add_join_user.php: -------------------------------------------------------------------------------- 1 | integer('join_user_count')->default(0)->comment('参与用户数'); 17 | }); 18 | } 19 | 20 | /** 21 | * Reverse the migrations. 22 | */ 23 | public function down(): void 24 | { 25 | Schema::table('post', function (Blueprint $table) { 26 | // 27 | $table->removeColumn('join_user_count'); 28 | }); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_04_12_095710_alter_add_user_area_country.php: -------------------------------------------------------------------------------- 1 | string('area',64)->nullable()->comment('县、区'); 17 | $table->string('country',64)->nullable()->comment('乡镇'); 18 | }); 19 | } 20 | 21 | /** 22 | * Reverse the migrations. 23 | */ 24 | public function down(): void 25 | { 26 | Schema::table('user', function (Blueprint $table) { 27 | // 28 | $table->removeColumn('area'); 29 | $table->removeColumn('country'); 30 | }); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_04_12_100349_alter_user_add_background.php: -------------------------------------------------------------------------------- 1 | string('background',500)->nullable()->comment('个人主页背景'); 17 | 18 | }); 19 | } 20 | 21 | /** 22 | * Reverse the migrations. 23 | */ 24 | public function down(): void 25 | { 26 | Schema::table('user', function (Blueprint $table) { 27 | // 28 | $table->removeColumn('background'); 29 | }); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_04_16_120035_alter_user_edit_info_tag.php: -------------------------------------------------------------------------------- 1 | tinyInteger('first_edit_done')->default(0)->comment('第一次编辑资料是否完成0:未完成1:已完成'); 17 | }); 18 | } 19 | 20 | /** 21 | * Reverse the migrations. 22 | */ 23 | public function down(): void 24 | { 25 | Schema::table('user', function (Blueprint $table) { 26 | // 27 | $table->removeColumn('first_edit_done'); 28 | }); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_04_18_201311_alter_report_comment_add_audit_status.php: -------------------------------------------------------------------------------- 1 | tinyInteger('audit_status')->default(0)->comment('0审核中1:审核通过-1:审核不通过'); 17 | $table->string('audit_note')->nullable()->comment('审核备注'); 18 | }); 19 | } 20 | 21 | /** 22 | * Reverse the migrations. 23 | */ 24 | public function down(): void 25 | { 26 | Schema::table('report_comment', function (Blueprint $table) { 27 | // 28 | $table->removeColumn('audit_status'); 29 | $table->removeColumn('audit_note'); 30 | }); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_04_18_201319_alter_report_post_add_audit_status.php: -------------------------------------------------------------------------------- 1 | tinyInteger('audit_status')->default(0)->comment('0审核中1:审核通过-1:审核不通过'); 17 | $table->string('audit_note')->nullable()->comment('审核备注'); 18 | }); 19 | } 20 | 21 | /** 22 | * Reverse the migrations. 23 | */ 24 | public function down(): void 25 | { 26 | Schema::table('report_post', function (Blueprint $table) { 27 | // 28 | $table->removeColumn('audit_status'); 29 | $table->removeColumn('audit_note'); 30 | }); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_04_19_194435_alter_notification_add_key_info_table.php: -------------------------------------------------------------------------------- 1 | text('key_info')->nullable()->comment('存储一些json格式的附加信息'); 17 | }); 18 | } 19 | 20 | /** 21 | * Reverse the migrations. 22 | */ 23 | public function down(): void 24 | { 25 | Schema::table('notification', function (Blueprint $table) { 26 | // 27 | $table->removeColumn('key_info'); 28 | }); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_04_20_081306_alter_post_add_machine_audit.php: -------------------------------------------------------------------------------- 1 | tinyInteger('machine_audit')->default(0)->comment('机器审核结果:0待审核-1不通过1通过2建议人工复核'); 17 | $table->tinyInteger('manager_audit')->default(0)->comment('管理员审核结果:0待审核-1不通过1通过'); 18 | }); 19 | } 20 | 21 | /** 22 | * Reverse the migrations. 23 | */ 24 | public function down(): void 25 | { 26 | Schema::table('post', function (Blueprint $table) { 27 | // 28 | $table->removeColumn('machine_audit'); 29 | $table->removeColumn('manager_audit'); 30 | }); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_04_20_081321_alter_comment_add_machine_audit.php: -------------------------------------------------------------------------------- 1 | tinyInteger('machine_audit')->default(0)->comment('机器审核结果:0待审核-1不通过1通过2建议人工复核'); 17 | $table->tinyInteger('manager_audit')->default(0)->comment('管理员审核结果:0待审核-1不通过1通过'); 18 | }); 19 | } 20 | 21 | /** 22 | * Reverse the migrations. 23 | */ 24 | public function down(): void 25 | { 26 | Schema::table('comment', function (Blueprint $table) { 27 | // 28 | $table->removeColumn('machine_audit'); 29 | $table->removeColumn('manager_audit'); 30 | }); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_04_20_081340_alter_user_add_machine_audit.php: -------------------------------------------------------------------------------- 1 | bigInteger('user_update_id')->nullable()->comment('用户更新资料的ID,临时资料ID,审核完成后置空'); 17 | }); 18 | } 19 | 20 | /** 21 | * Reverse the migrations. 22 | */ 23 | public function down(): void 24 | { 25 | Schema::table('user', function (Blueprint $table) { 26 | // 27 | $table->removeColumn('user_update_id'); 28 | }); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_04_20_094802_alter_post_add_text_audit.php: -------------------------------------------------------------------------------- 1 | tinyInteger('content_audit')->default(0)->comment('0待审核1审核通过-1审核不通过'); 17 | }); 18 | } 19 | 20 | /** 21 | * Reverse the migrations. 22 | */ 23 | public function down(): void 24 | { 25 | Schema::table('post', function (Blueprint $table) { 26 | // 27 | $table->removeColumn('content_audit'); 28 | }); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_04_20_094809_alter_comment_add_text_audit.php: -------------------------------------------------------------------------------- 1 | tinyInteger('content_audit')->default(0)->comment('0待审核1审核通过-1审核不通过'); 17 | 18 | }); 19 | } 20 | 21 | /** 22 | * Reverse the migrations. 23 | */ 24 | public function down(): void 25 | { 26 | Schema::table('comment', function (Blueprint $table) { 27 | // 28 | $table->removeColumn('content_audit'); 29 | 30 | }); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_04_20_094820_alter_user_update_add_text_audit.php: -------------------------------------------------------------------------------- 1 | tinyInteger('nickname_audit')->default(0)->comment('0待审核1审核通过-1审核不通过'); 17 | }); 18 | } 19 | 20 | /** 21 | * Reverse the migrations. 22 | */ 23 | public function down(): void 24 | { 25 | Schema::table('user_update', function (Blueprint $table) { 26 | // 27 | $table->removeColumn('nickname_audit'); 28 | }); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_04_20_100004_alter_post_add_title_audit.php: -------------------------------------------------------------------------------- 1 | tinyInteger('title_audit')->default(0)->comment('0待审核1审核通过-1审核不通过'); 17 | }); 18 | } 19 | 20 | /** 21 | * Reverse the migrations. 22 | */ 23 | public function down(): void 24 | { 25 | Schema::table('post', function (Blueprint $table) { 26 | // 27 | $table->removeColumn('title_audit'); 28 | }); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_04_22_163736_create_advice_table.php: -------------------------------------------------------------------------------- 1 | bigIncrements('id'); 16 | $table->bigInteger('owner_id')->comment('建议者'); 17 | $table->text('content')->comment('建议内容'); 18 | 19 | $table->softDeletes(); 20 | $table->timestamps(); 21 | $table->engine = "InnoDB"; 22 | $table->charset = "utf8mb4"; 23 | $table->collation = "utf8mb4_unicode_ci"; 24 | }); 25 | } 26 | 27 | /** 28 | * Reverse the migrations. 29 | */ 30 | public function down(): void 31 | { 32 | Schema::dropIfExists('advice'); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_04_23_084518_alter_post_add_image_id_list.php: -------------------------------------------------------------------------------- 1 | string('image_ids',130)->nullable()->comment('图片列表获取出来图片ID'); 17 | $table->index('image_ids'); 18 | }); 19 | } 20 | 21 | /** 22 | * Reverse the migrations. 23 | */ 24 | public function down(): void 25 | { 26 | Schema::table('post', function (Blueprint $table) { 27 | // 28 | $table->removeColumn('image_ids'); 29 | }); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_04_23_084527_alter_comment_add_image_id_list.php: -------------------------------------------------------------------------------- 1 | string('image_ids',130)->nullable()->comment('图片列表获取出来图片ID'); 17 | $table->index('image_ids'); 18 | }); 19 | } 20 | 21 | /** 22 | * Reverse the migrations. 23 | */ 24 | public function down(): void 25 | { 26 | Schema::table('comment', function (Blueprint $table) { 27 | // 28 | $table->removeColumn('image_ids'); 29 | }); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_04_23_084537_alter_user_update_add_image_id_list.php: -------------------------------------------------------------------------------- 1 | string('image_ids',130)->nullable()->comment('图片列表获取出来图片ID'); 17 | $table->index('image_ids'); 18 | }); 19 | } 20 | 21 | /** 22 | * Reverse the migrations. 23 | */ 24 | public function down(): void 25 | { 26 | Schema::table('user_update', function (Blueprint $table) { 27 | // 28 | $table->removeColumn('image_ids'); 29 | }); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_04_23_134022_alter_user_add_avatar_user_id.php: -------------------------------------------------------------------------------- 1 | bigInteger('avatar_user_id')->default(0)->comment('化身ID'); 17 | }); 18 | } 19 | 20 | /** 21 | * Reverse the migrations. 22 | */ 23 | public function down(): void 24 | { 25 | Schema::table('user', function (Blueprint $table) { 26 | // 27 | $table->removeColumn('avatar_user_id'); 28 | }); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_04_24_052551_alter_user_praise_comment_add_comment_owner.php: -------------------------------------------------------------------------------- 1 | tinyInteger('owner_read_status')->default(0)->comment('评论归属者阅读状态'); 17 | }); 18 | } 19 | 20 | /** 21 | * Reverse the migrations. 22 | */ 23 | public function down(): void 24 | { 25 | Schema::table('user_comment_praise', function (Blueprint $table) { 26 | // 27 | $table->removeColumn('owner_read_status'); 28 | }); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_04_25_203534_alter_post_add_mini_official_relation.php: -------------------------------------------------------------------------------- 1 | bigInteger('program_id')->nullable()->comment('小程序ID'); 17 | $table->bigInteger('account_id')->nullable()->comment('公众号ID'); 18 | }); 19 | } 20 | 21 | /** 22 | * Reverse the migrations. 23 | */ 24 | public function down(): void 25 | { 26 | Schema::table('post', function (Blueprint $table) { 27 | // 28 | $table->removeColumn('program_id'); 29 | $table->removeColumn('account_id'); 30 | }); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_04_26_110814_alter_post_add_forum_id.php: -------------------------------------------------------------------------------- 1 | bigInteger('forum_id')->default(1)->comment('板块ID'); 17 | }); 18 | } 19 | 20 | /** 21 | * Reverse the migrations. 22 | */ 23 | public function down(): void 24 | { 25 | Schema::table('post', function (Blueprint $table) { 26 | // 27 | $table->removeColumn('forum_id'); 28 | }); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_04_28_104544_alter_mini_program_add_index_path.php: -------------------------------------------------------------------------------- 1 | string('index_path',64)->default('pages/index/index')->comment('跳转路径'); 17 | }); 18 | } 19 | 20 | /** 21 | * Reverse the migrations. 22 | */ 23 | public function down(): void 24 | { 25 | Schema::table('mini_program', function (Blueprint $table) { 26 | // 27 | $table->removeColumn('index_path'); 28 | }); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_04_30_161921_alter_post_add_recommend_weight.php: -------------------------------------------------------------------------------- 1 | integer('recommend_weight')->default(0)->comment('推荐权重'); 17 | }); 18 | } 19 | 20 | /** 21 | * Reverse the migrations. 22 | */ 23 | public function down(): void 24 | { 25 | Schema::table('post', function (Blueprint $table) { 26 | // 27 | $table->removeColumn('recommend_weight'); 28 | }); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_05_06_133216_create_unit_table.php: -------------------------------------------------------------------------------- 1 | integerIncrements('unit_id'); 16 | $table->string('name',10)->comment('单位名称'); 17 | 18 | $table->unique('name'); 19 | $table->timestamps(); 20 | $table->softDeletes(); 21 | $table->engine = "InnoDB"; 22 | $table->charset = "utf8mb4"; 23 | $table->collation = "utf8mb4_unicode_ci"; 24 | }); 25 | } 26 | 27 | /** 28 | * Reverse the migrations. 29 | */ 30 | public function down(): void 31 | { 32 | Schema::dropIfExists('unit'); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_05_07_060617_alter_shop_add_setting.php: -------------------------------------------------------------------------------- 1 | tinyInteger('self_mall_use_recommend')->default(0)->comment('自营店铺是否开启外部商品导购0否1是'); 17 | }); 18 | } 19 | 20 | /** 21 | * Reverse the migrations. 22 | */ 23 | public function down(): void 24 | { 25 | Schema::table('shop', function (Blueprint $table) { 26 | // 27 | $table->removeColumn('self_mall_use_recommend'); 28 | }); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_05_07_133615_alter_forum_add_max_member_count.php: -------------------------------------------------------------------------------- 1 | bigInteger('max_member_count')->default(0)->comment('0不限制'); 17 | }); 18 | } 19 | 20 | /** 21 | * Reverse the migrations. 22 | */ 23 | public function down(): void 24 | { 25 | Schema::table('forum', function (Blueprint $table) { 26 | // 27 | $table->dropColumn('max_member_count'); 28 | }); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_05_07_145220_alter_post_add_subscribe_policy.php: -------------------------------------------------------------------------------- 1 | bigInteger('policy_id')->default(0)->comment('填充的授权批次ID'); 17 | }); 18 | } 19 | 20 | /** 21 | * Reverse the migrations. 22 | */ 23 | public function down(): void 24 | { 25 | Schema::table('post', function (Blueprint $table) { 26 | // 27 | $table->dropColumn('policy_id'); 28 | }); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_05_07_170302_alter_goods_add_bind_info.php: -------------------------------------------------------------------------------- 1 | bigInteger('bind_forum_id')->default(0)->comment('绑定板块ID'); 17 | }); 18 | } 19 | 20 | /** 21 | * Reverse the migrations. 22 | */ 23 | public function down(): void 24 | { 25 | Schema::table('goods', function (Blueprint $table) { 26 | // 27 | $table->dropColumn('bind_forum_id'); 28 | }); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_05_09_124253_alter_voucher_policy_add_goods_info.php: -------------------------------------------------------------------------------- 1 | bigInteger('policy_goods_id')->nullable()->comment('适用商品ID,没有为全部适用'); 17 | $table->bigInteger('policy_black_id')->nullable()->comment('不适用商品ID,没有为不拉黑'); 18 | 19 | }); 20 | } 21 | 22 | /** 23 | * Reverse the migrations. 24 | */ 25 | public function down(): void 26 | { 27 | Schema::table('voucher_policy', function (Blueprint $table) { 28 | // 29 | $table->dropColumn('policy_goods_id'); 30 | $table->dropColumn('policy_black_id'); 31 | }); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_05_09_161938_alter_order_add_deduct_cash.php: -------------------------------------------------------------------------------- 1 | bigInteger('deduct_cash')->default(0)->comment('券抵扣金额,单位分'); 17 | $table->bigInteger('voucher_id')->default(0)->comment('券ID'); 18 | }); 19 | } 20 | 21 | /** 22 | * Reverse the migrations. 23 | */ 24 | public function down(): void 25 | { 26 | Schema::table('order', function (Blueprint $table) { 27 | // 28 | $table->dropColumn('deduct_cash'); 29 | $table->dropColumn('voucher_id'); 30 | }); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_05_10_055929_alter_forum_add_page_path.php: -------------------------------------------------------------------------------- 1 | string('page_path',64)->nullable()->comment('小程序内部跳转链接'); 17 | }); 18 | } 19 | 20 | /** 21 | * Reverse the migrations. 22 | */ 23 | public function down(): void 24 | { 25 | Schema::table('forum', function (Blueprint $table) { 26 | // 27 | $table->dropColumn('page_path'); 28 | }); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_05_10_103109_alter_post_add_praise_count.php: -------------------------------------------------------------------------------- 1 | bigInteger('praise_count')->default(0)->comment('点赞数'); 17 | }); 18 | } 19 | 20 | /** 21 | * Reverse the migrations. 22 | */ 23 | public function down(): void 24 | { 25 | Schema::table('post', function (Blueprint $table) { 26 | // 27 | $table->dropColumn('praise_count'); 28 | }); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_05_10_155414_alter_post_add_voucher_policy_id.php: -------------------------------------------------------------------------------- 1 | bigInteger('voucher_policy_id')->default(0)->comment('代金券批次ID'); 17 | }); 18 | } 19 | 20 | /** 21 | * Reverse the migrations. 22 | */ 23 | public function down(): void 24 | { 25 | Schema::table('post', function (Blueprint $table) { 26 | // 27 | $table->dropColumn('voucher_policy_id'); 28 | }); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_05_10_171550_alter_order_add_origin_cash.php: -------------------------------------------------------------------------------- 1 | bigInteger('origin_cash')->default(0)->comment('抵扣钱订单金额'); 17 | }); 18 | } 19 | 20 | /** 21 | * Reverse the migrations. 22 | */ 23 | public function down(): void 24 | { 25 | Schema::table('order', function (Blueprint $table) { 26 | // 27 | $table->dropColumn('origin_cash'); 28 | }); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_05_17_083957_alter_app_setting_add_enable_user_video.php: -------------------------------------------------------------------------------- 1 | tinyInteger('enable_user_video')->default(0)->comment('是否开启普通用户可以发视频0不允许1允许'); 17 | }); 18 | } 19 | 20 | /** 21 | * Reverse the migrations. 22 | */ 23 | public function down(): void 24 | { 25 | Schema::table('app_setting', function (Blueprint $table) { 26 | // 27 | $table->dropColumn('enable_user_video'); 28 | }); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_05_17_084917_create_topic_category_table.php: -------------------------------------------------------------------------------- 1 | bigIncrements('category_id'); 16 | $table->string('name',12)->comment('话题分类名称'); 17 | 18 | $table->unique('name'); 19 | $table->timestamps(); 20 | $table->softDeletes(); 21 | $table->engine = "InnoDB"; 22 | $table->charset = "utf8mb4"; 23 | $table->collation = "utf8mb4_unicode_ci"; 24 | }); 25 | } 26 | 27 | /** 28 | * Reverse the migrations. 29 | */ 30 | public function down(): void 31 | { 32 | Schema::dropIfExists('topic_category'); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_05_17_095011_alter_post_add_topic_id.php: -------------------------------------------------------------------------------- 1 | bigInteger('topic_id')->default(0)->comment('话题ID'); 17 | }); 18 | } 19 | 20 | /** 21 | * Reverse the migrations. 22 | */ 23 | public function down(): void 24 | { 25 | Schema::table('post', function (Blueprint $table) { 26 | // 27 | $table->dropColumn('topic_id'); 28 | }); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_05_20_171420_alter_app_setting_add_topic_enable.php: -------------------------------------------------------------------------------- 1 | tinyInteger('enable_user_create_topic')->default(0)->comment('是否允许普通用户创建主题'); 17 | }); 18 | } 19 | 20 | /** 21 | * Reverse the migrations. 22 | */ 23 | public function down(): void 24 | { 25 | Schema::table('app_setting', function (Blueprint $table) { 26 | // 27 | $table->dropColumn('enable_user_create_topic'); 28 | }); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_05_26_161430_alter_post_add_visiable.php: -------------------------------------------------------------------------------- 1 | tinyInteger('only_self_visible')->default(0)->comment('仅自己可见'); 17 | }); 18 | } 19 | 20 | /** 21 | * Reverse the migrations. 22 | */ 23 | public function down(): void 24 | { 25 | Schema::table('post', function (Blueprint $table) { 26 | // 27 | $table->dropColumn('only_self_visible'); 28 | }); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_05_28_143731_alter_user_add_score.php: -------------------------------------------------------------------------------- 1 | bigInteger('score')->default(0)->comment('积分'); 17 | $table->bigInteger('group_id')->default(0)->comment('用户的分组'); 18 | }); 19 | } 20 | 21 | /** 22 | * Reverse the migrations. 23 | */ 24 | public function down(): void 25 | { 26 | Schema::table('user', function (Blueprint $table) { 27 | // 28 | $table->dropColumn('score'); 29 | $table->dropColumn('group_id'); 30 | }); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_05_28_143741_alter_post_add_red_bag.php: -------------------------------------------------------------------------------- 1 | bigInteger('red_bag_id')->default(0)->comment('红包ID'); 17 | }); 18 | } 19 | 20 | /** 21 | * Reverse the migrations. 22 | */ 23 | public function down(): void 24 | { 25 | Schema::table('post', function (Blueprint $table) { 26 | // 27 | $table->dropColumn('red_bag_id'); 28 | }); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_05_28_143749_alter_comment_add_red_bag.php: -------------------------------------------------------------------------------- 1 | bigInteger('offer_id')->default(0)->comment('领取的具体红包的ID'); 17 | }); 18 | } 19 | 20 | /** 21 | * Reverse the migrations. 22 | */ 23 | public function down(): void 24 | { 25 | Schema::table('comment', function (Blueprint $table) { 26 | // 27 | $table->dropColumn('offer_id'); 28 | }); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_05_29_133851_alter_forum_add_post_user_group.php: -------------------------------------------------------------------------------- 1 | string('can_post_user_group',500)->nullable()->comment('允许发帖的用户分组,为空的时候,所有用户均可发帖'); 17 | }); 18 | } 19 | 20 | /** 21 | * Reverse the migrations. 22 | */ 23 | public function down(): void 24 | { 25 | Schema::table('forum', function (Blueprint $table) { 26 | // 27 | $table->dropColumn('can_post_user_group'); 28 | }); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_05_29_135833_alter_forum_add_access_user_group.php: -------------------------------------------------------------------------------- 1 | string('can_access_user_group')->nullable()->comment('可以访问版块的用户组'); 17 | }); 18 | } 19 | 20 | /** 21 | * Reverse the migrations. 22 | */ 23 | public function down(): void 24 | { 25 | Schema::table('forum', function (Blueprint $table) { 26 | // 27 | $table->dropColumn('can_access_user_group'); 28 | }); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_05_30_075056_alter_post_add_tencent_doc.php: -------------------------------------------------------------------------------- 1 | string('announcement',500)->nullable()->comment('公告'); 17 | }); 18 | } 19 | 20 | /** 21 | * Reverse the migrations. 22 | */ 23 | public function down(): void 24 | { 25 | Schema::table('forum', function (Blueprint $table) { 26 | // 27 | $table->dropColumn('announcement'); 28 | }); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_06_03_102839_alter_user_mini_program_use_add_type.php: -------------------------------------------------------------------------------- 1 | string('type',12)->default('weixin')->comment('小程序类型'); 17 | $table->index('type'); 18 | }); 19 | } 20 | 21 | /** 22 | * Reverse the migrations. 23 | */ 24 | public function down(): void 25 | { 26 | Schema::table('user_mini_program_use', function (Blueprint $table) { 27 | // 28 | $table->dropColumn('type'); 29 | }); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_06_03_172333_alter_add_forum_activity.php: -------------------------------------------------------------------------------- 1 | tinyInteger('show_type')->default(0)->comment('0首页运营活动1版块运营活动'); 17 | $table->bigInteger('forum_id')->default(0)->comment('当活动类型为版块活动的时候填充版块ID'); 18 | }); 19 | } 20 | 21 | /** 22 | * Reverse the migrations. 23 | */ 24 | public function down(): void 25 | { 26 | Schema::table('activity', function (Blueprint $table) { 27 | // 28 | $table->dropColumn('show_type'); 29 | $table->dropColumn('forum_id'); 30 | }); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_06_06_075006_alter_post_add_last_activie_time.php: -------------------------------------------------------------------------------- 1 | dateTime('last_active_time')->nullable()->comment('上一次活跃时间,通过更新帖子,或者回复,可以刷新帖子的活跃时间'); 17 | }); 18 | } 19 | 20 | /** 21 | * Reverse the migrations. 22 | */ 23 | public function down(): void 24 | { 25 | Schema::table('post', function (Blueprint $table) { 26 | // 27 | $table->dropColumn('last_active_time'); 28 | }); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_06_06_185831_alter_post_add_ignore_recommend.php: -------------------------------------------------------------------------------- 1 | tinyInteger('ignore_machine_recommend')->default(0)->comment('忽略系统推荐计算权重'); 17 | }); 18 | } 19 | 20 | /** 21 | * Reverse the migrations. 22 | */ 23 | public function down(): void 24 | { 25 | Schema::table('post', function (Blueprint $table) { 26 | // 27 | $table->dropColumn('ignore_machine_recommend'); 28 | }); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_06_07_105027_alter_post_add_rich_content.php: -------------------------------------------------------------------------------- 1 | mediumText('rich_content')->nullable()->comment('富文本'); 17 | }); 18 | } 19 | 20 | /** 21 | * Reverse the migrations. 22 | */ 23 | public function down(): void 24 | { 25 | Schema::table('post', function (Blueprint $table) { 26 | // 27 | $table->dropColumn('rich_content'); 28 | }); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_06_13_200820_alter_app_setting_add_nav_control.php: -------------------------------------------------------------------------------- 1 | tinyInteger('enable_nav_forum')->default(0)->comment('是否允许订阅版块提升到导航栏'); 17 | }); 18 | } 19 | 20 | /** 21 | * Reverse the migrations. 22 | */ 23 | public function down(): void 24 | { 25 | Schema::table('app_setting', function (Blueprint $table) { 26 | // 27 | $table->dropColumn('enable_nav_forum'); 28 | }); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_06_28_144419_alter_post_add_circle_info.php: -------------------------------------------------------------------------------- 1 | bigInteger('circle_id')->default(0)->comment('圈子ID'); 17 | }); 18 | } 19 | 20 | /** 21 | * Reverse the migrations. 22 | */ 23 | public function down(): void 24 | { 25 | Schema::table('post', function (Blueprint $table) { 26 | // 27 | $table->dropColumn('circle_id'); 28 | }); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_06_28_150858_alter_topic_add_circle_info.php: -------------------------------------------------------------------------------- 1 | bigInteger('circle_id')->default(0)->comment('归属于哪个圈子'); 17 | }); 18 | } 19 | 20 | /** 21 | * Reverse the migrations. 22 | */ 23 | public function down(): void 24 | { 25 | Schema::table('topic', function (Blueprint $table) { 26 | // 27 | $table->dropColumn('circle_id'); 28 | }); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_07_02_103759_alter_post_add_circle_topic_id.php: -------------------------------------------------------------------------------- 1 | bigInteger('circle_topic_id')->default(0)->comment('圈话题'); 17 | }); 18 | } 19 | 20 | /** 21 | * Reverse the migrations. 22 | */ 23 | public function down(): void 24 | { 25 | Schema::table('post', function (Blueprint $table) { 26 | // 27 | $table->dropColumn('circle_topic_id'); 28 | }); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_07_11_155601_alter_comment_add_audio_duration.php: -------------------------------------------------------------------------------- 1 | integer('audio_duration')->default(0)->comment('音频长度'); 17 | }); 18 | } 19 | 20 | /** 21 | * Reverse the migrations. 22 | */ 23 | public function down(): void 24 | { 25 | Schema::table('comment', function (Blueprint $table) { 26 | // 27 | $table->dropColumn('audio_duration'); 28 | }); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_07_25_090240_alter_circle_topic_add_post_count.php: -------------------------------------------------------------------------------- 1 | bigInteger('post_count')->default(0)->comment('帖子数'); 17 | $table->bigInteger('member_count')->default(0)->comment('话题参与人数'); 18 | }); 19 | } 20 | 21 | /** 22 | * Reverse the migrations. 23 | */ 24 | public function down(): void 25 | { 26 | Schema::table('circle_topic', function (Blueprint $table) { 27 | // 28 | $table->dropColumn('post_count'); 29 | $table->dropColumn('member_count'); 30 | }); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_07_25_154114_post_add_circle_topic_id_index.php: -------------------------------------------------------------------------------- 1 | index('circle_topic_id'); 17 | $table->index('circle_id'); 18 | }); 19 | } 20 | 21 | /** 22 | * Reverse the migrations. 23 | */ 24 | public function down(): void 25 | { 26 | Schema::table('post', function (Blueprint $table) { 27 | // 28 | }); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_08_10_162348_alter_circle_topic_add_last_active.php: -------------------------------------------------------------------------------- 1 | dateTime('last_active_time')->nullable(); 17 | $table->integer('today_post_count')->default(0); 18 | }); 19 | } 20 | 21 | /** 22 | * Reverse the migrations. 23 | */ 24 | public function down(): void 25 | { 26 | Schema::table('circle_topic', function (Blueprint $table) { 27 | // 28 | $table->dropColumn('last_active_time'); 29 | $table->dropColumn('today_post_count'); 30 | }); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_08_20_115627_alter_user_attention_other_add_read_status.php: -------------------------------------------------------------------------------- 1 | tinyInteger('is_read')->default(0)->comment('被关注者是否已读'); 17 | }); 18 | } 19 | 20 | /** 21 | * Reverse the migrations. 22 | */ 23 | public function down(): void 24 | { 25 | Schema::table('user_attention_other', function (Blueprint $table) { 26 | // 27 | $table->dropColumn('is_read'); 28 | }); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_08_23_091400_post_add_is_top_new.php: -------------------------------------------------------------------------------- 1 | tinyInteger('is_top_news')->default(0)->comment('是不是头条新闻'); 17 | }); 18 | } 19 | 20 | /** 21 | * Reverse the migrations. 22 | */ 23 | public function down(): void 24 | { 25 | Schema::table('post', function (Blueprint $table) { 26 | // 27 | $table->dropColumn('is_top_news'); 28 | }); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_08_23_111301_create_hobby_category_label_table.php: -------------------------------------------------------------------------------- 1 | bigIncrements('category_id'); 16 | $table->string('name',24)->comment('分类名称'); 17 | 18 | $table->unique('name'); 19 | $table->timestamps(); 20 | $table->engine = "InnoDB"; 21 | $table->charset = "utf8mb4"; 22 | $table->collation = "utf8mb4_unicode_ci"; 23 | }); 24 | } 25 | 26 | /** 27 | * Reverse the migrations. 28 | */ 29 | public function down(): void 30 | { 31 | Schema::dropIfExists('hobby_category'); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_08_24_080543_alter_post_add_reward_score.php: -------------------------------------------------------------------------------- 1 | bigInteger('reward_score')->default(0)->comment('收到打赏数量'); 17 | }); 18 | } 19 | 20 | /** 21 | * Reverse the migrations. 22 | */ 23 | public function down(): void 24 | { 25 | Schema::table('post', function (Blueprint $table) { 26 | // 27 | $table->dropColumn('reward_score'); 28 | }); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_08_24_162205_alter_day_sign_add_reward_status.php: -------------------------------------------------------------------------------- 1 | integer('reward_score')->default(0)->comment('当日签到抽奖积分'); 17 | }); 18 | } 19 | 20 | /** 21 | * Reverse the migrations. 22 | */ 23 | public function down(): void 24 | { 25 | Schema::table('user_day_sign', function (Blueprint $table) { 26 | // 27 | $table->dropColumn('reward_score'); 28 | }); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_09_10_084943_alter_post_add_ref_id.php: -------------------------------------------------------------------------------- 1 | string('ref_id',32)->nullable()->comment('引用编号'); 17 | $table->unique('ref_id'); 18 | }); 19 | } 20 | 21 | /** 22 | * Reverse the migrations. 23 | */ 24 | public function down(): void 25 | { 26 | Schema::table('post', function (Blueprint $table) { 27 | // 28 | $table->dropColumn('ref_id'); 29 | }); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /hyperf-skeleton/migrations/2021_09_11_191917_create_fitler_topic_table.php: -------------------------------------------------------------------------------- 1 | bigIncrements('id'); 16 | $table->string('ref_id',32)->comment('引用ID'); 17 | $table->timestamps(); 18 | $table->unique('ref_id'); 19 | }); 20 | } 21 | 22 | /** 23 | * Reverse the migrations. 24 | */ 25 | public function down(): void 26 | { 27 | Schema::dropIfExists('filter_topic'); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /hyperf-skeleton/phpstan.neon: -------------------------------------------------------------------------------- 1 | # Magic behaviour with __get, __set, __call and __callStatic is not exactly static analyser-friendly :) 2 | # Fortunately, You can ingore it by the following config. 3 | # 4 | # vendor/bin/phpstan analyse app --memory-limit 200M -l 0 5 | # 6 | parameters: 7 | reportUnmatchedIgnoredErrors: false 8 | ignoreErrors: 9 | - '#Static call to instance method Hyperf\\HttpServer\\Router\\Router::[a-zA-Z0-9\\_]+\(\)#' 10 | - '#Static call to instance method Hyperf\\DbConnection\\Db::[a-zA-Z0-9\\_]+\(\)#' 11 | -------------------------------------------------------------------------------- /hyperf-skeleton/phpunit.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | ./test 14 | 15 | 16 | 17 | 18 | ./app 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /hyperf-skeleton/seeders/create_admin_user_seeder.php: -------------------------------------------------------------------------------- 1 | insertOrIgnore([ 19 | [ 20 | 'username' => 'admin', 21 | 'role_id' => 1, 22 | 'password' => password_hash('admin123',PASSWORD_DEFAULT) 23 | ] 24 | ]); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /hyperf-skeleton/seeders/create_app_setting_seeder.php: -------------------------------------------------------------------------------- 1 | insertOrIgnore([ 19 | 'app_name' => '翠湖畔', 20 | 'custom_no_more' => 1, 21 | 'company' => '码动未来信息科技', 22 | 'contact_weixin' => '微信(13177627765)', 23 | ]); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /hyperf-skeleton/seeders/create_setup_unit_and_category_seeder.php: -------------------------------------------------------------------------------- 1 | insertOrIgnore([ 19 | ['name' => '次'], 20 | ['name' => '斤'], 21 | ['name' => '份'], 22 | ['name' => '个'], 23 | ['name' => '包'], 24 | ['name' => '盒'], 25 | ['name' => '瓶'], 26 | ['name' => '桶'], 27 | ['name' => '箱'], 28 | ['name' => 'L'], 29 | ['name' => '两'], 30 | ['name' => '年'], 31 | ['name' => '月'], 32 | ]); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /hyperf-skeleton/seeders/create_system_category.php: -------------------------------------------------------------------------------- 1 | insertOrIgnore([ 18 | [ 'name' => '订阅商品'], 19 | ]); 20 | Db::table('topic_category')->insertOrIgnore([ 21 | ['name' => '公共'], 22 | ]); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /hyperf-skeleton/test/bootstrap.php: -------------------------------------------------------------------------------- 1 | get(Hyperf\Contract\ApplicationInterface::class); 30 | --------------------------------------------------------------------------------