anl 1.1.4 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/data/sw.json.js +1 -0
- package/lib/package.json.js +1 -1
- package/lib/src/build-type/core/components.js +1 -0
- package/lib/src/build-type/core/path.js +1 -0
- package/lib/src/build-type/index.js +1 -0
- package/lib/src/index.js +1 -1
- package/lib/src/{const.js → standard/const.js} +1 -1
- package/lib/src/standard/install-commitlint.js +1 -0
- package/lib/src/standard/install-eslint.js +1 -0
- package/lib/src/standard/lint-init.js +1 -0
- package/lib/src/standard/prettier.js +1 -0
- package/lib/src/standard/vscode.js +1 -0
- package/lib/src/utils/index.js +1 -0
- package/package.json +3 -2
- package/lib/src/install-commitlint.js +0 -1
- package/lib/src/install-eslint.js +0 -1
- package/lib/src/lint-init.js +0 -1
- package/lib/src/prettier.js +0 -1
- package/lib/src/utils.js +0 -1
- package/lib/src/vscode.js +0 -1
- /package/template/{prettierrc.js → .prettierrc.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e="3.0.1",s={title:"Tesla Customer Community ----- Customer Faced Api -----",version:"v1"},t={"/api/advertisement/{id}":{get:{tags:["Advertisement"],summary:"/获取广告位",parameters:[{name:"id",in:"path",description:"",required:!0,schema:{type:"string",format:"uuid"}}],responses:{200:{description:"Success"}}}},"/api/article/{id}":{get:{tags:["Article"],parameters:[{name:"id",in:"path",required:!0,schema:{type:"string",format:"uuid"}}],responses:{200:{description:"Success"}}}},"/api/article/code/{code}":{get:{tags:["Article"],parameters:[{name:"code",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"Success"}}}},"/api/article/follow":{post:{tags:["Article"],summary:"文章关注",requestBody:{content:{"application/json":{schema:{$ref:"#/components/schemas/ArticleFollowByCustomerDto"}},"text/json":{schema:{$ref:"#/components/schemas/ArticleFollowByCustomerDto"}},"application/*+json":{schema:{$ref:"#/components/schemas/ArticleFollowByCustomerDto"}}}},responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}},get:{tags:["Article"],summary:"文章关注列表",responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/article/{id}/poster":{get:{tags:["Article"],parameters:[{name:"id",in:"path",required:!0,schema:{type:"string",format:"uuid"}}],responses:{200:{description:"Success"}}}},"/api/article/{id}/poster-path":{get:{tags:["Article"],parameters:[{name:"id",in:"path",required:!0,schema:{type:"string",format:"uuid"}}],responses:{200:{description:"Success"}}}},"/api/auditlog":{post:{tags:["AuditLog"],requestBody:{content:{"application/json":{schema:{$ref:"#/components/schemas/AuditLogDto"}},"text/json":{schema:{$ref:"#/components/schemas/AuditLogDto"}},"application/*+json":{schema:{$ref:"#/components/schemas/AuditLogDto"}}}},responses:{200:{description:"Success"}}}},"/api/authentication/client_token":{post:{tags:["Authentication"],requestBody:{content:{"application/json":{schema:{$ref:"#/components/schemas/AppClientCode"}},"text/json":{schema:{$ref:"#/components/schemas/AppClientCode"}},"application/*+json":{schema:{$ref:"#/components/schemas/AppClientCode"}}}},responses:{200:{description:"Success"}}}},"/api/authentication/client_refresh":{post:{tags:["Authentication"],parameters:[{name:"authorization",in:"header",schema:{type:"string"}}],requestBody:{content:{"application/json":{schema:{$ref:"#/components/schemas/AppClientCode"}},"text/json":{schema:{$ref:"#/components/schemas/AppClientCode"}},"application/*+json":{schema:{$ref:"#/components/schemas/AppClientCode"}}}},responses:{200:{description:"Success"}}}},"/api/authentication/restore_tokens":{post:{tags:["Authentication"],summary:"获取令牌信息",requestBody:{content:{"application/json":{schema:{$ref:"#/components/schemas/WeChatAppClientCode"}},"text/json":{schema:{$ref:"#/components/schemas/WeChatAppClientCode"}},"application/*+json":{schema:{$ref:"#/components/schemas/WeChatAppClientCode"}}}},responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/authentication/update_tokens":{post:{tags:["Authentication"],summary:"保存令牌信息",requestBody:{content:{"application/json":{schema:{$ref:"#/components/schemas/UserTokensDto"}},"text/json":{schema:{$ref:"#/components/schemas/UserTokensDto"}},"application/*+json":{schema:{$ref:"#/components/schemas/UserTokensDto"}}}},responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/authentication/wechatuserinfo":{post:{tags:["Authentication"],summary:"获取微信用户信息",responses:{200:{description:"Success"}}}},"/api/authentication/logout":{post:{tags:["Authentication"],summary:"登出",parameters:[{name:"authorization",in:"header",schema:{type:"string"}}],responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/benefits/{locationId}":{get:{tags:["Benefits"],summary:"超充站点下停车减免权益详情",parameters:[{name:"locationId",in:"path",description:"",required:!0,schema:{type:"string"}}],responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/benefits/parking/{locationId}":{get:{tags:["Benefits"],summary:"校验超充站点下是否存在停车减免权益",parameters:[{name:"locationId",in:"path",description:"",required:!0,schema:{type:"string"}}],responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/category":{get:{tags:["Category"],parameters:[{name:"type",in:"query",schema:{$ref:"#/components/schemas/DictType"}}],responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/chargingblindbox/poster":{get:{tags:["ChargingBlindBox"],responses:{200:{description:"Success"}}}},"/api/chargingblindbox/token":{post:{tags:["ChargingBlindBox"],responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/chargingblindbox/shared":{get:{tags:["ChargingBlindBox"],responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/checkifcarowner":{get:{tags:["CheckIfCarOwner"],responses:{200:{description:"Success"}}}},"/api/club/list":{get:{tags:["Club"],parameters:[{name:"city",in:"query",schema:{type:"string"}},{name:"pageSize",in:"query",schema:{type:"integer",format:"int32"}},{name:"pageNumber",in:"query",schema:{type:"integer",format:"int32"}}],responses:{200:{description:"Success"}}}},"/api/club/cities":{get:{tags:["Club"],responses:{200:{description:"Success"}}}},"/api/club/{id}":{get:{tags:["Club"],parameters:[{name:"id",in:"path",required:!0,schema:{type:"string",format:"uuid"}}],responses:{200:{description:"Success"}}}},"/api/club/sign":{post:{tags:["Club"],parameters:[{name:"authorization",in:"header",schema:{type:"string"}}],requestBody:{content:{"application/json":{schema:{$ref:"#/components/schemas/ClubSignInputDto"}},"text/json":{schema:{$ref:"#/components/schemas/ClubSignInputDto"}},"application/*+json":{schema:{$ref:"#/components/schemas/ClubSignInputDto"}}}},responses:{200:{description:"Success"}}}},"/api/club/checkemail":{post:{tags:["Club"],parameters:[{name:"authorization",in:"header",schema:{type:"string"}}],requestBody:{content:{"application/json":{schema:{$ref:"#/components/schemas/ClubSignEmailInputDto"}},"text/json":{schema:{$ref:"#/components/schemas/ClubSignEmailInputDto"}},"application/*+json":{schema:{$ref:"#/components/schemas/ClubSignEmailInputDto"}}}},responses:{200:{description:"Success"}}}},"/api/customer":{get:{tags:["Customer"],summary:"获取用户姓名,若用户无有效token, 返回null",responses:{200:{description:"Success"}}}},"/api/customer/carownerinfo":{get:{tags:["Customer"],responses:{200:{description:"Success"}}}},"/api/customerupload":{post:{tags:["CustomerUpload"],requestBody:{content:{"multipart/form-data":{schema:{type:"object",properties:{file:{type:"string",format:"binary"}}},encoding:{file:{style:"form"}}}}},responses:{200:{description:"Success"}}}},"/api/customervehicle":{get:{tags:["CustomerVehicle"],parameters:[{name:"email",in:"query",schema:{type:"string"}}],responses:{200:{description:"Success",content:{"text/plain":{schema:{type:"array",items:{$ref:"#/components/schemas/CustomerVehicleDTO"}}},"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/CustomerVehicleDTO"}}},"text/json":{schema:{type:"array",items:{$ref:"#/components/schemas/CustomerVehicleDTO"}}}}}}},post:{tags:["CustomerVehicle"],requestBody:{content:{"application/json":{schema:{$ref:"#/components/schemas/CustomerVehicleDTO"}},"text/json":{schema:{$ref:"#/components/schemas/CustomerVehicleDTO"}},"application/*+json":{schema:{$ref:"#/components/schemas/CustomerVehicleDTO"}}}},responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/CustomerVehicleDTO"}},"application/json":{schema:{$ref:"#/components/schemas/CustomerVehicleDTO"}},"text/json":{schema:{$ref:"#/components/schemas/CustomerVehicleDTO"}}}}}},put:{tags:["CustomerVehicle"],requestBody:{content:{"application/json":{schema:{$ref:"#/components/schemas/CustomerVehicleDTO"}},"text/json":{schema:{$ref:"#/components/schemas/CustomerVehicleDTO"}},"application/*+json":{schema:{$ref:"#/components/schemas/CustomerVehicleDTO"}}}},responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/CustomerVehicleDTO"}},"application/json":{schema:{$ref:"#/components/schemas/CustomerVehicleDTO"}},"text/json":{schema:{$ref:"#/components/schemas/CustomerVehicleDTO"}}}}}}},"/api/customervehicle/check":{post:{tags:["CustomerVehicle"],requestBody:{content:{"application/json":{schema:{$ref:"#/components/schemas/CustomerVehicleDTO"}},"text/json":{schema:{$ref:"#/components/schemas/CustomerVehicleDTO"}},"application/*+json":{schema:{$ref:"#/components/schemas/CustomerVehicleDTO"}}}},responses:{200:{description:"Success",content:{"text/plain":{schema:{type:"boolean"}},"application/json":{schema:{type:"boolean"}},"text/json":{schema:{type:"boolean"}}}}}}},"/api/customervehicle/{vin}":{delete:{tags:["CustomerVehicle"],parameters:[{name:"vin",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/CustomerVehicleDTO"}},"application/json":{schema:{$ref:"#/components/schemas/CustomerVehicleDTO"}},"text/json":{schema:{$ref:"#/components/schemas/CustomerVehicleDTO"}}}}}}},"/api/delivery/appointments":{get:{tags:["Delivery"],summary:"Get user valid delivery appointments",responses:{200:{description:"Success",content:{"text/plain":{schema:{type:"array",items:{$ref:"#/components/schemas/DeliveryAppointmentDTO"}}},"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/DeliveryAppointmentDTO"}}},"text/json":{schema:{type:"array",items:{$ref:"#/components/schemas/DeliveryAppointmentDTO"}}}}}}}},"/api/delivery/details":{get:{tags:["Delivery"],summary:"Get user delivery details by vmid",parameters:[{name:"vehicleMapId",in:"query",description:"",schema:{type:"integer",format:"int64"}}],responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/DeliveryDTO"}},"application/json":{schema:{$ref:"#/components/schemas/DeliveryDTO"}},"text/json":{schema:{$ref:"#/components/schemas/DeliveryDTO"}}}}}}},"/api/document/uploadsurveyattachment":{post:{tags:["Document"],requestBody:{content:{"multipart/form-data":{schema:{type:"object",properties:{file:{type:"string",format:"binary"}}},encoding:{file:{style:"form"}}}}},responses:{200:{description:"Success"}}}},"/api/event/signedup/list":{get:{tags:["Event"],summary:"已报名的活动列表",responses:{200:{description:"Success"}}}},"/api/event/follow":{get:{tags:["Event"],summary:"已关注的活动列表",responses:{200:{description:"Success"}}},post:{tags:["Event"],summary:"用户关注活动",requestBody:{content:{"application/json":{schema:{$ref:"#/components/schemas/EventFollowByCustomerDto"}},"text/json":{schema:{$ref:"#/components/schemas/EventFollowByCustomerDto"}},"application/*+json":{schema:{$ref:"#/components/schemas/EventFollowByCustomerDto"}}}},responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/event/checkifinvited":{post:{tags:["Event"],requestBody:{content:{"application/json":{schema:{$ref:"#/components/schemas/EventSiginupVerifyInviteeDto"}},"text/json":{schema:{$ref:"#/components/schemas/EventSiginupVerifyInviteeDto"}},"application/*+json":{schema:{$ref:"#/components/schemas/EventSiginupVerifyInviteeDto"}}}},responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}},deprecated:!0}},"/api/event/cancel":{post:{tags:["Event"],summary:"用户取消报名",requestBody:{content:{"application/json":{schema:{$ref:"#/components/schemas/EventCancelByCustomerDto"}},"text/json":{schema:{$ref:"#/components/schemas/EventCancelByCustomerDto"}},"application/*+json":{schema:{$ref:"#/components/schemas/EventCancelByCustomerDto"}}}},responses:{200:{description:"Success"}}}},"/api/event/{id}/getwechatmpsuncode/{type}":{get:{tags:["Event"],parameters:[{name:"id",in:"path",required:!0,schema:{type:"string",format:"uuid"}},{name:"type",in:"path",required:!0,schema:{$ref:"#/components/schemas/WechatShareCodeTargetType"}}],responses:{200:{description:"Success"}}}},"/api/event/volunteer/count":{get:{tags:["Event"],responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/event/volunteer/list":{get:{tags:["Event"],parameters:[{name:"pageSize",in:"query",schema:{type:"integer",format:"int32"}},{name:"pageNumber",in:"query",schema:{type:"integer",format:"int32"}}],responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/eventpostershare/{eventId}":{get:{tags:["EventPosterShare"],parameters:[{name:"eventId",in:"path",required:!0,schema:{type:"string",format:"uuid"}}],responses:{200:{description:"Success"}}}},"/api/feature/{feature}":{get:{tags:["Feature"],parameters:[{name:"feature",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"Success"}}}},"/api/form":{get:{tags:["Form"],parameters:[{name:"id",in:"query",schema:{type:"string",format:"uuid"}}],responses:{200:{description:"Success"}}}},"/api/form/{code}":{get:{tags:["Form"],parameters:[{name:"code",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"Success"}}}},"/api/form/customerform":{post:{tags:["Form"],requestBody:{content:{"application/json":{schema:{$ref:"#/components/schemas/CustomerFormSubmitDto"}},"text/json":{schema:{$ref:"#/components/schemas/CustomerFormSubmitDto"}},"application/*+json":{schema:{$ref:"#/components/schemas/CustomerFormSubmitDto"}}}},responses:{200:{description:"Success"}}}},"/internalresource/{resourceId}":{get:{tags:["InternalResource"],parameters:[{name:"resourceId",in:"path",required:!0,schema:{type:"string",format:"uuid"}}],responses:{200:{description:"Success"}}}},"/api/landingpage/{code}":{get:{tags:["LandingPage"],parameters:[{name:"code",in:"path",required:!0,schema:{type:"string"}},{name:"eventType",in:"query",schema:{$ref:"#/components/schemas/LandingPageRequestEventType"}}],responses:{200:{description:"Success"}}}},"/api/landingpage/{code}/event":{get:{tags:["LandingPage"],parameters:[{name:"code",in:"path",required:!0,schema:{type:"string"}},{name:"city",in:"query",schema:{type:"string"}},{name:"pageSize",in:"query",schema:{type:"integer",format:"int32"}},{name:"pageNumber",in:"query",schema:{type:"integer",format:"int32"}},{name:"eventType",in:"query",schema:{$ref:"#/components/schemas/LandingPageRequestEventType"}},{name:"X-Client-Type",in:"header",schema:{$ref:"#/components/schemas/ClientTypeEnum"}}],responses:{200:{description:"Success"}}}},"/api/landingpage2/{code}":{get:{tags:["LandingPage2"],parameters:[{name:"code",in:"path",required:!0,schema:{type:"string"}},{name:"pageSize",in:"query",schema:{type:"integer",format:"int32"}},{name:"pageNumber",in:"query",schema:{type:"integer",format:"int32"}},{name:"X-Client-Type",in:"header",schema:{$ref:"#/components/schemas/ClientTypeEnum"}}],responses:{200:{description:"Success"}}}},"/api/landingpage2/article":{get:{tags:["LandingPage2"],parameters:[{name:"pageSize",in:"query",schema:{type:"integer",format:"int32"}},{name:"pageNumber",in:"query",schema:{type:"integer",format:"int32"}},{name:"keywords",in:"query",schema:{type:"string"}}],responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/luckydraw/{id}":{get:{tags:["LuckyDraw"],summary:"抽奖活动详情",parameters:[{name:"id",in:"path",description:"抽奖活动ID",required:!0,schema:{type:"string",format:"uuid"}}],responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/luckydraw/initial":{post:{tags:["LuckyDraw"],summary:"初始化用户参加抽奖活动初始可获得抽奖代币数量",requestBody:{description:"",content:{"application/json":{schema:{$ref:"#/components/schemas/LuckyDrawInitialTokenInputDto"}},"text/json":{schema:{$ref:"#/components/schemas/LuckyDrawInitialTokenInputDto"}},"application/*+json":{schema:{$ref:"#/components/schemas/LuckyDrawInitialTokenInputDto"}}}},responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/luckydraw/{luckyDrawId}/qualification":{get:{tags:["LuckyDraw"],summary:"获取参加抽奖活动信息",parameters:[{name:"luckyDrawId",in:"path",description:"",required:!0,schema:{type:"string",format:"uuid"}},{name:"identityType",in:"query",description:"",schema:{$ref:"#/components/schemas/UserIdentityType"}}],responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/luckydraw/qualification":{post:{tags:["LuckyDraw"],summary:"参加抽奖活动获取抽奖机会",requestBody:{description:"",content:{"application/json":{schema:{$ref:"#/components/schemas/LuckyDrawQualificationInputDto"}},"text/json":{schema:{$ref:"#/components/schemas/LuckyDrawQualificationInputDto"}},"application/*+json":{schema:{$ref:"#/components/schemas/LuckyDrawQualificationInputDto"}}}},responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/luckydraw/{luckyDrawId}/unusedtokens":{get:{tags:["LuckyDraw"],summary:"获取对应抽奖活动未使用的代币信息",parameters:[{name:"luckyDrawId",in:"path",description:"抽奖活动ID",required:!0,schema:{type:"string",format:"uuid"}},{name:"identityType",in:"query",description:"抽奖活动使用的身份标识类型",schema:{$ref:"#/components/schemas/UserIdentityType"}}],responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/luckydraw":{post:{tags:["LuckyDraw"],summary:"参与抽奖, 公众号授权加密字符串 和 authorization 二者必有其一",requestBody:{description:"抽奖请求信息以及公众号授权加密字符串",content:{"application/json":{schema:{$ref:"#/components/schemas/LuckyDrawEnterInputDto"}},"text/json":{schema:{$ref:"#/components/schemas/LuckyDrawEnterInputDto"}},"application/*+json":{schema:{$ref:"#/components/schemas/LuckyDrawEnterInputDto"}}}},responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/luckydraw/{luckyDrawId}/winner":{get:{tags:["LuckyDraw"],summary:"获取抽奖活动中奖奖品",parameters:[{name:"luckyDrawId",in:"path",description:"抽奖活动ID",required:!0,schema:{type:"string",format:"uuid"}},{name:"identityType",in:"query",description:"抽奖活动使用的身份标识类型",schema:{$ref:"#/components/schemas/UserIdentityType"}}],responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/luckydraw/info":{get:{tags:["LuckyDraw"],summary:"根据抽奖关联资源类型Id 获取抽奖信息",parameters:[{name:"resourceId",in:"query",schema:{type:"string",format:"uuid"}},{name:"grantType",in:"query",schema:{$ref:"#/components/schemas/GrantType"}}],responses:{200:{description:"Success"}}}},"/api/luckydraw/mailing/{winnerId}":{post:{tags:["LuckyDraw"],summary:"设置中奖邮寄信息",parameters:[{name:"winnerId",in:"path",description:"中奖信息ID",required:!0,schema:{type:"string",format:"uuid"}}],requestBody:{description:"邮寄信息",content:{"application/json":{schema:{$ref:"#/components/schemas/MailingInputDto"}},"text/json":{schema:{$ref:"#/components/schemas/MailingInputDto"}},"application/*+json":{schema:{$ref:"#/components/schemas/MailingInputDto"}}}},responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/luckydraw/contact/{winnerId}":{post:{tags:["LuckyDraw"],summary:"设置中奖联系信息",parameters:[{name:"winnerId",in:"path",description:"中奖信息ID",required:!0,schema:{type:"string",format:"uuid"}}],requestBody:{description:"邮寄信息",content:{"application/json":{schema:{$ref:"#/components/schemas/LuckyDrawWinnerContactInputDto"}},"text/json":{schema:{$ref:"#/components/schemas/LuckyDrawWinnerContactInputDto"}},"application/*+json":{schema:{$ref:"#/components/schemas/LuckyDrawWinnerContactInputDto"}}}},responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/luckydraw/received/{winnerId}":{post:{tags:["LuckyDraw"],summary:"用户奖品兑换||领取",parameters:[{name:"winnerId",in:"path",required:!0,schema:{type:"string",format:"uuid"}}],requestBody:{content:{"application/json":{schema:{$ref:"#/components/schemas/LuckyDrawWinnerReceivedInputDto"}},"text/json":{schema:{$ref:"#/components/schemas/LuckyDrawWinnerReceivedInputDto"}},"application/*+json":{schema:{$ref:"#/components/schemas/LuckyDrawWinnerReceivedInputDto"}}}},responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/merchant":{get:{tags:["Merchant"],summary:"商户列表",parameters:[{name:"pageSize",in:"query",schema:{type:"integer",format:"int32"}},{name:"pageNumber",in:"query",schema:{type:"integer",format:"int32"}},{name:"name",in:"query",schema:{type:"string"}},{name:"province",in:"query",schema:{type:"string"}},{name:"city",in:"query",schema:{type:"string"}}],responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/merchantvoucheritem/{voucherItemId}":{get:{tags:["MerchantVoucherItem"],summary:"根据卡券ID获取核销商户权益卡券详情",parameters:[{name:"voucherItemId",in:"path",description:"",required:!0,schema:{type:"string",format:"uuid"}}],responses:{200:{description:"Success"}}}},"/api/merchantvoucheritem/usedinfo/{voucherItemId}":{get:{tags:["MerchantVoucherItem"],summary:"获取核销商户权益卡券使用状态",parameters:[{name:"voucherItemId",in:"path",description:"",required:!0,schema:{type:"string",format:"uuid"}}],responses:{200:{description:"Success"}}}},"/api/merchantvoucheritem":{get:{tags:["MerchantVoucherItem"],summary:"根据CODE获取核销商户权益卡券详情",parameters:[{name:"code",in:"query",description:"",schema:{type:"string"}}],responses:{200:{description:"Success"}}}},"/api/merchantvoucheritem/writeoff":{post:{tags:["MerchantVoucherItem"],summary:"商户权益卡券核销",parameters:[{name:"code",in:"query",description:"",schema:{type:"string"}}],responses:{200:{description:"Success"}}}},"/api/merchantvoucheritem/getwriteoffhistory":{get:{tags:["MerchantVoucherItem"],summary:"门店商户权益核销历史",parameters:[{name:"code",in:"query",description:"",schema:{type:"string"}},{name:"voucherId",in:"query",description:"",schema:{type:"string",format:"uuid"}},{name:"pageSize",in:"query",description:"",schema:{type:"integer",format:"int32"}},{name:"pageIndex",in:"query",description:"",schema:{type:"integer",format:"int32"}}],responses:{200:{description:"Success"}}}},"/api/merchantvoucheritem/exportwriteoffhistory":{get:{tags:["MerchantVoucherItem"],parameters:[{name:"from",in:"query",schema:{type:"string",format:"date-time"}},{name:"to",in:"query",schema:{type:"string",format:"date-time"}}],responses:{200:{description:"Success"}}}},"/api/minicampaign/{code}":{get:{tags:["MiniCampaign"],summary:"根据code查询MiniCampaign基本信息",parameters:[{name:"code",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/minicampaign/{code}/{id}/page":{get:{tags:["MiniCampaign"],summary:"根据id或code查询页面信息",parameters:[{name:"id",in:"path",description:"",required:!0,schema:{type:"string"}},{name:"code",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/minicampaign/{code}/layout/{type}":{get:{tags:["MiniCampaign"],summary:"查询组件配置",parameters:[{name:"code",in:"path",description:"",required:!0,schema:{type:"string"}},{name:"type",in:"path",description:"",required:!0,schema:{type:"string"}}],responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/minicampaign/{code}/channel/{channelId}":{get:{tags:["MiniCampaign"],summary:"查询渠道名称",parameters:[{name:"code",in:"path",description:"",required:!0,schema:{type:"string"}},{name:"channelId",in:"path",description:"",required:!0,schema:{type:"integer",format:"int32"}}],responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/minicampaign/{code}/personal":{get:{tags:["MiniCampaign"],summary:"个人中心",parameters:[{name:"code",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/minicampaign/{code}/authorize":{post:{tags:["MiniCampaign"],summary:"同意活动授权书",parameters:[{name:"code",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/minicampaign/{code}/customer":{post:{tags:["MiniCampaign"],summary:"添加用户信息",parameters:[{name:"code",in:"path",required:!0,schema:{type:"string"}},{name:"inviter",in:"query",schema:{type:"integer",format:"int32"}}],responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/minicampaignluckydraw/{code}/{luckyDrawId}":{get:{tags:["MiniCampaignLuckyDraw"],summary:"获取抽奖活动信息",parameters:[{name:"code",in:"path",description:"",required:!0,schema:{type:"string"}},{name:"luckyDrawId",in:"path",description:"",required:!0,schema:{type:"string",format:"uuid"}}],responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/minicampaignluckydraw/{code}/{luckyDrawId}/unusedtokens":{get:{tags:["MiniCampaignLuckyDraw"],summary:"抽奖机会次数",parameters:[{name:"code",in:"path",required:!0,schema:{type:"string"}},{name:"luckyDrawId",in:"path",required:!0,schema:{type:"string",format:"uuid"}},{name:"identityType",in:"query",schema:{$ref:"#/components/schemas/UserIdentityType"}}],responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/minicampaignluckydraw/{code}/{luckyDrawId}/winners":{get:{tags:["MiniCampaignLuckyDraw"],summary:"中奖结果展示",parameters:[{name:"code",in:"path",required:!0,schema:{type:"string"}},{name:"luckyDrawId",in:"path",required:!0,schema:{type:"string",format:"uuid"}}],responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/minicampaignluckydraw/{code}/{luckyDrawId}/tokens":{get:{tags:["MiniCampaignLuckyDraw"],summary:"抽奖机会明细",parameters:[{name:"code",in:"path",required:!0,schema:{type:"string"}},{name:"luckyDrawId",in:"path",required:!0,schema:{type:"string",format:"uuid"}},{name:"identityType",in:"query",schema:{$ref:"#/components/schemas/UserIdentityType"}}],responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/minicampaignluckydraw/{code}/{layoutId}/luckydraw":{post:{tags:["MiniCampaignLuckyDraw"],summary:"抽奖",parameters:[{name:"code",in:"path",required:!0,schema:{type:"string"}},{name:"layoutId",in:"path",required:!0,schema:{type:"string",format:"uuid"}}],requestBody:{content:{"application/json":{schema:{$ref:"#/components/schemas/LuckyDrawEnterInputDto"}},"text/json":{schema:{$ref:"#/components/schemas/LuckyDrawEnterInputDto"}},"application/*+json":{schema:{$ref:"#/components/schemas/LuckyDrawEnterInputDto"}}}},responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/minicampaignluckydraw/{code}/{id}/poster":{get:{tags:["MiniCampaignLuckyDraw"],summary:"获取海报元素",parameters:[{name:"code",in:"path",required:!0,schema:{type:"string"}},{name:"id",in:"path",required:!0,schema:{type:"string",format:"uuid"}}],responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/minicampaignluckydraw/{code}/myprizes":{get:{tags:["MiniCampaignLuckyDraw"],summary:"我的奖品列表",parameters:[{name:"code",in:"path",required:!0,schema:{type:"string"}},{name:"identityType",in:"query",schema:{$ref:"#/components/schemas/UserIdentityType"}}],responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/minicampaignluckydraw/{code}/mailing/{winnerId}":{get:{tags:["MiniCampaignLuckyDraw"],summary:"查询奖品收货地址",parameters:[{name:"code",in:"path",required:!0,schema:{type:"string"}},{name:"winnerId",in:"path",required:!0,schema:{type:"string",format:"uuid"}},{name:"identityType",in:"query",schema:{$ref:"#/components/schemas/UserIdentityType"}}],responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}},post:{tags:["MiniCampaignLuckyDraw"],summary:"完善奖品收货地址",parameters:[{name:"code",in:"path",required:!0,schema:{type:"string"}},{name:"winnerId",in:"path",required:!0,schema:{type:"string",format:"uuid"}}],requestBody:{content:{"application/json":{schema:{$ref:"#/components/schemas/MailingInputDto"}},"text/json":{schema:{$ref:"#/components/schemas/MailingInputDto"}},"application/*+json":{schema:{$ref:"#/components/schemas/MailingInputDto"}}}},responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/notification/{code}":{get:{tags:["Notification"],parameters:[{name:"code",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"Success"}}}},"/api/parkingvoucher/{id}/description":{get:{tags:["ParkingVoucher"],summary:"获取停车减免权益描述与配置的使用说明文章配置链接 todo: 整合1",parameters:[{name:"id",in:"path",description:"",required:!0,schema:{type:"string",format:"uuid"}}],responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ParkingBenefitDescriptionDto"}},"application/json":{schema:{$ref:"#/components/schemas/ParkingBenefitDescriptionDto"}},"text/json":{schema:{$ref:"#/components/schemas/ParkingBenefitDescriptionDto"}}}}}}},"/api/parkingvoucher/chargingstation/list":{get:{tags:["ParkingVoucher"],summary:"获取一个城市拥有权益的超充站点",parameters:[{name:"city",in:"query",description:"",schema:{type:"string"}}],responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/quizbanner":{get:{tags:["QuizBanner"],summary:"获取广告列表 get advertisements for index page",parameters:[{name:"autoIncrementId",in:"query",description:"a quiz User auto increment id, for referer",schema:{type:"integer",format:"int32"}}],responses:{200:{description:"Success"}}}},"/api/quizposters":{get:{tags:["QuizPosters"],summary:"我的战绩",responses:{200:{description:"Success"}}}},"/api/quizposters/generate":{get:{tags:["QuizPosters"],summary:"路试提交后,预生成海报,返回url或者base64",responses:{200:{description:"Success"}}}},"/api/quizroadexam":{get:{tags:["QuizRoadExam"],summary:"获取路试题目",responses:{200:{description:"Success"}}},post:{tags:["QuizRoadExam"],summary:"路试作答",requestBody:{content:{"application/json":{schema:{$ref:"#/components/schemas/ExamAnswerInputDto"}},"text/json":{schema:{$ref:"#/components/schemas/ExamAnswerInputDto"}},"application/*+json":{schema:{$ref:"#/components/schemas/ExamAnswerInputDto"}}}},responses:{200:{description:"Success"}}}},"/api/quizroadexam/helpexam":{get:{tags:["QuizRoadExam"],summary:"求助好友,获取求助Id",responses:{200:{description:"Success"}}}},"/api/quizroadexam/helpexamstatus":{get:{tags:["QuizRoadExam"],summary:"轮询求助状态",parameters:[{name:"helpId",in:"query",schema:{type:"string",format:"uuid"}}],responses:{200:{description:"Success"}}}},"/api/quizroadexam/helpabandon":{post:{tags:["QuizRoadExam"],summary:"放弃求助",responses:{200:{description:"Success"}}}},"/api/quizroadexam/helpexamquestion":{get:{tags:["QuizRoadExam"],summary:"获取求助题目信息",parameters:[{name:"helpId",in:"query",schema:{type:"string",format:"uuid"}}],responses:{200:{description:"Success"}}}},"/api/quizroadexam/helpexamsubmit":{post:{tags:["QuizRoadExam"],summary:"路试助力作答",requestBody:{content:{"application/json":{schema:{$ref:"#/components/schemas/RoadExamHelpInputDto"}},"text/json":{schema:{$ref:"#/components/schemas/RoadExamHelpInputDto"}},"application/*+json":{schema:{$ref:"#/components/schemas/RoadExamHelpInputDto"}}}},responses:{200:{description:"Success"}}}},"/api/quizusers":{post:{tags:["QuizUsers"],summary:"添加用户信息 verify identity string and signature, if passed, create a new user.",parameters:[{name:"identity",in:"query",schema:{type:"string"}},{name:"sign",in:"query",schema:{type:"string"}},{name:"account",in:"query",schema:{type:"string"}},{name:"inviter",in:"query",schema:{type:"integer",format:"int32"}}],responses:{200:{description:"Success"}}}},"/api/quizusers/activityauthorize":{post:{tags:["QuizUsers"],summary:"用户同意活动授权书",responses:{200:{description:"Success"}}}},"/api/quizusers/examstatus":{get:{tags:["QuizUsers"],summary:"获取当前用户笔试及路试状态",responses:{200:{description:"Success"}}}},"/api/quizwrittenexam":{get:{tags:["QuizWrittenExam"],summary:"获取笔试题目",responses:{200:{description:"Success"}}},post:{tags:["QuizWrittenExam"],summary:"笔试作答",requestBody:{content:{"application/json":{schema:{$ref:"#/components/schemas/ExamAnswerInputDto"}},"text/json":{schema:{$ref:"#/components/schemas/ExamAnswerInputDto"}},"application/*+json":{schema:{$ref:"#/components/schemas/ExamAnswerInputDto"}}}},responses:{200:{description:"Success"}}}},"/api/referral/poster/{bgIndex}":{post:{tags:["Referral"],parameters:[{name:"bgIndex",in:"path",required:!0,schema:{type:"integer",format:"int32"}}],responses:{200:{description:"Success"}}}},"/api/referral/{refererCode}":{get:{tags:["Referral"],parameters:[{name:"refererCode",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/serviceoperator":{get:{tags:["ServiceOperator"],responses:{200:{description:"Success"}}}},"/api/share/event/{id}":{get:{tags:["Share"],parameters:[{name:"id",in:"path",required:!0,schema:{type:"string",format:"uuid"}},{name:"sourceType",in:"query",schema:{$ref:"#/components/schemas/SourceType"}},{name:"sourceKey",in:"query",schema:{type:"string",default:""}}],responses:{200:{description:"Success"}}}},"/api/share/event/code/{code}":{get:{tags:["Share"],parameters:[{name:"code",in:"path",required:!0,schema:{type:"string"}},{name:"sourceType",in:"query",schema:{$ref:"#/components/schemas/SourceType"}},{name:"sourceKey",in:"query",schema:{type:"string",default:""}}],responses:{200:{description:"Success"}}}},"/api/share/event/shortcode/{code}":{get:{tags:["Share"],parameters:[{name:"code",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"Success"}}}},"/api/share/sign":{post:{tags:["Share"],summary:"活动报名",requestBody:{description:"",content:{"application/json":{schema:{$ref:"#/components/schemas/EventSignUpPostDto"}},"text/json":{schema:{$ref:"#/components/schemas/EventSignUpPostDto"}},"application/*+json":{schema:{$ref:"#/components/schemas/EventSignUpPostDto"}}}},responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/share/offlinesignup/{offlineCode}":{post:{tags:["Share"],summary:"活动线下报名",parameters:[{name:"offlineCode",in:"path",description:"",required:!0,schema:{type:"string"}}],requestBody:{description:"",content:{"application/json":{schema:{$ref:"#/components/schemas/EventSignUpPostDto"}},"text/json":{schema:{$ref:"#/components/schemas/EventSignUpPostDto"}},"application/*+json":{schema:{$ref:"#/components/schemas/EventSignUpPostDto"}}}},responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/share/quicksignup":{post:{tags:["Share"],summary:"太阳码快速报名(支持八位和六位)",requestBody:{content:{"application/json":{schema:{$ref:"#/components/schemas/EventQuickSignUpDto"}},"text/json":{schema:{$ref:"#/components/schemas/EventQuickSignUpDto"}},"application/*+json":{schema:{$ref:"#/components/schemas/EventQuickSignUpDto"}}}},responses:{200:{description:"Success"}}}},"/api/share/signin":{post:{tags:["Share"],summary:"客户签到\r\ntodo 目前参数走query 后续对接统一Request body",requestBody:{content:{"application/json":{schema:{$ref:"#/components/schemas/EventSignInDto"}},"text/json":{schema:{$ref:"#/components/schemas/EventSignInDto"}},"application/*+json":{schema:{$ref:"#/components/schemas/EventSignInDto"}}}},responses:{200:{description:"Success"}}}},"/api/share/hassignedin/{eventId}":{get:{tags:["Share"],summary:"获取是否有待签到活动",parameters:[{name:"eventId",in:"path",description:"",required:!0,schema:{type:"string",format:"uuid"}}],responses:{200:{description:"Success"}}}},"/api/share/signupstatus/{eventId}":{get:{tags:["Share"],summary:"校验活动报名人数获取是否还可以报名",parameters:[{name:"eventId",in:"path",description:"",required:!0,schema:{type:"string",format:"uuid"}}],responses:{200:{description:"Success"}}}},"/api/share/sign-survey":{post:{tags:["Share"],requestBody:{content:{"application/json":{schema:{$ref:"#/components/schemas/EventSignWithSurveyDto"}},"text/json":{schema:{$ref:"#/components/schemas/EventSignWithSurveyDto"}},"application/*+json":{schema:{$ref:"#/components/schemas/EventSignWithSurveyDto"}}}},responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/share/offlinesignup-survey/{offlineCode}":{post:{tags:["Share"],parameters:[{name:"offlineCode",in:"path",required:!0,schema:{type:"string"}}],requestBody:{content:{"application/json":{schema:{$ref:"#/components/schemas/EventSignWithSurveyDto"}},"text/json":{schema:{$ref:"#/components/schemas/EventSignWithSurveyDto"}},"application/*+json":{schema:{$ref:"#/components/schemas/EventSignWithSurveyDto"}}}},responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/special/{id}":{get:{tags:["Special"],parameters:[{name:"id",in:"path",required:!0,schema:{type:"string",format:"uuid"}}],responses:{200:{description:"Success"}}}},"/api/special/popular":{get:{tags:["Special"],responses:{200:{description:"Success"}}}},"/api/springfestival/{code}/authorize":{post:{tags:["SpringFestival"],summary:"春节活动同意活动授权数添加抽奖机会",parameters:[{name:"code",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/springfestival/{code}/customerform":{post:{tags:["SpringFestival"],summary:"预约试驾表单提交,0没有添加机会,1添加抽奖机会",parameters:[{name:"code",in:"path",required:!0,schema:{type:"string"}}],requestBody:{content:{"application/json":{schema:{$ref:"#/components/schemas/CustomerFormSubmitDto"}},"text/json":{schema:{$ref:"#/components/schemas/CustomerFormSubmitDto"}},"application/*+json":{schema:{$ref:"#/components/schemas/CustomerFormSubmitDto"}}}},responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/springfestival/{code}/promise/location":{post:{tags:["SpringFestival"],summary:"是否在许愿范围内",parameters:[{name:"code",in:"path",required:!0,schema:{type:"string"}}],requestBody:{content:{"application/json":{schema:{$ref:"#/components/schemas/PromiseLocation"}},"text/json":{schema:{$ref:"#/components/schemas/PromiseLocation"}},"application/*+json":{schema:{$ref:"#/components/schemas/PromiseLocation"}}}},responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/springfestival/{code}/promises":{get:{tags:["SpringFestival"],summary:"许愿记录",parameters:[{name:"code",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}},post:{tags:["SpringFestival"],summary:"许愿",parameters:[{name:"code",in:"path",required:!0,schema:{type:"string"}}],requestBody:{content:{"application/json":{schema:{$ref:"#/components/schemas/PromiseSubmitDto"}},"text/json":{schema:{$ref:"#/components/schemas/PromiseSubmitDto"}},"application/*+json":{schema:{$ref:"#/components/schemas/PromiseSubmitDto"}}}},responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/springfestival/{code}/tokens":{get:{tags:["SpringFestival"],summary:"查询试驾/投稿/打卡抽奖次数",parameters:[{name:"code",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/springfestival/{code}/promise/{id}/poster":{post:{tags:["SpringFestival"],summary:"获取海报元素,返回体验店/服务中心,昵称,二维码url",parameters:[{name:"code",in:"path",required:!0,schema:{type:"string"}},{name:"id",in:"path",required:!0,schema:{type:"string",format:"uuid"}}],responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/survey/{id}":{get:{tags:["Survey"],parameters:[{name:"id",in:"path",required:!0,schema:{type:"string",format:"uuid"}},{name:"eventId",in:"query",schema:{type:"string",format:"uuid"}}],responses:{200:{description:"Success"}}}},"/api/survey/getsurveybycode/{code}":{get:{tags:["Survey"],parameters:[{name:"code",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"Success"}}}},"/api/survey/targeted/{code}":{get:{tags:["Survey"],parameters:[{name:"code",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"Success"}}}},"/api/survey/customersurvey":{post:{tags:["Survey"],requestBody:{content:{"application/json":{schema:{$ref:"#/components/schemas/CustomerSurveyDto"}},"text/json":{schema:{$ref:"#/components/schemas/CustomerSurveyDto"}},"application/*+json":{schema:{$ref:"#/components/schemas/CustomerSurveyDto"}}}},responses:{200:{description:"Success"}}}},"/api/survey/answer/{customerSurveyId}":{get:{tags:["Survey"],parameters:[{name:"customerSurveyId",in:"path",required:!0,schema:{type:"string",format:"uuid"}}],responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/survey/vote/statistics/{surveyId}":{get:{tags:["Survey"],parameters:[{name:"surveyId",in:"path",required:!0,schema:{type:"string",format:"uuid"}}],responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/toclocalassistant/cities":{get:{tags:["TocLocalAssistant"],parameters:[{name:"city",in:"query",schema:{type:"string"}}],responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/toclocalassistant/{id}":{get:{tags:["TocLocalAssistant"],parameters:[{name:"id",in:"path",required:!0,schema:{type:"string",format:"uuid"}}],responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/tocmember":{post:{tags:["TocMember"],summary:"添加会员",requestBody:{content:{"application/json":{schema:{$ref:"#/components/schemas/TocMemberDto"}},"text/json":{schema:{$ref:"#/components/schemas/TocMemberDto"}},"application/*+json":{schema:{$ref:"#/components/schemas/TocMemberDto"}}}},responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}},delete:{tags:["TocMember"],summary:"移除会员身份",responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}},get:{tags:["TocMember"],summary:"获取当前会员信息",responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/tocmember/reasons":{post:{tags:["TocMember"],summary:"退出原因",requestBody:{content:{"application/json":{schema:{}},"text/json":{schema:{}},"application/*+json":{schema:{}}}},responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/treasure/customerconsent":{post:{tags:["Treasure"],summary:"知晓并同意活动规则",responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}},get:{tags:["Treasure"],summary:"获取用户是否已知晓并同意活动规则",responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/treasure/getreferralandloyaltytoken":{get:{tags:["Treasure"],summary:"获取用户引荐复购次数并更新抽奖次数",responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/trtlocation/bodyshop":{get:{tags:["TrtLocation"],responses:{200:{description:"Success"}}}},"/api/trtlocation/store":{get:{tags:["TrtLocation"],responses:{200:{description:"Success"}}}},"/api/trtlocation/service":{get:{tags:["TrtLocation"],responses:{200:{description:"Success"}}}},"/api/trtlocation/delivery":{get:{tags:["TrtLocation"],responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/url":{get:{tags:["Url"],parameters:[{name:"shortUrl",in:"query",schema:{type:"string"}}],responses:{200:{description:"Success"}}}},"/api/userpost/{code}/{id}":{get:{tags:["UserPost"],summary:"获取投稿组件基本信息(广告滚动条、是否开启点赞、是否显示加精等)",parameters:[{name:"id",in:"path",description:"",required:!0,schema:{type:"string",format:"uuid"}},{name:"code",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/userpost/{code}/{id}/posts":{get:{tags:["UserPost"],summary:"瀑布流分页列表",parameters:[{name:"code",in:"path",required:!0,schema:{type:"string"}},{name:"id",in:"path",required:!0,schema:{type:"string",format:"uuid"}},{name:"pageNumber",in:"query",schema:{type:"integer",format:"int32"}},{name:"pageSize",in:"query",schema:{type:"integer",format:"int32"}},{name:"sort",in:"query",schema:{type:"integer",format:"int32"}},{name:"tag",in:"query",schema:{type:"string"}},{name:"category",in:"query",schema:{type:"string"}},{name:"identityType",in:"query",schema:{$ref:"#/components/schemas/UserIdentityType"}}],responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/userpost/{code}/{id}/details":{get:{tags:["UserPost"],summary:"投稿详情",parameters:[{name:"code",in:"path",required:!0,schema:{type:"string"}},{name:"id",in:"path",required:!0,schema:{type:"string",format:"uuid"}},{name:"identityType",in:"query",schema:{$ref:"#/components/schemas/UserIdentityType"}}],responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/userpost/{code}/{id}/like":{post:{tags:["UserPost"],summary:"点赞",parameters:[{name:"code",in:"path",required:!0,schema:{type:"string"}},{name:"id",in:"path",required:!0,schema:{type:"string",format:"uuid"}},{name:"identityType",in:"query",schema:{$ref:"#/components/schemas/UserIdentityType"}}],responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/userpost/{code}/{id}/unlike":{post:{tags:["UserPost"],summary:"取消点赞",parameters:[{name:"code",in:"path",required:!0,schema:{type:"string"}},{name:"id",in:"path",required:!0,schema:{type:"string",format:"uuid"}},{name:"identityType",in:"query",schema:{$ref:"#/components/schemas/UserIdentityType"}}],responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/userpost/{code}/{id}/tag":{get:{tags:["UserPost"],summary:"获取投稿标签",parameters:[{name:"id",in:"path",description:"",required:!0,schema:{type:"string",format:"uuid"}},{name:"code",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/userpost/{code}/{id}/category":{get:{tags:["UserPost"],summary:"获取投稿分类",parameters:[{name:"id",in:"path",description:"",required:!0,schema:{type:"string",format:"uuid"}},{name:"code",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/userpost/{code}":{post:{tags:["UserPost"],summary:"发布投稿",parameters:[{name:"code",in:"path",required:!0,schema:{type:"string"}}],requestBody:{content:{"multipart/form-data":{schema:{required:["Content","files","Id"],type:"object",properties:{Id:{type:"string",format:"uuid"},files:{type:"array",items:{type:"string",format:"binary"}},Content:{type:"string"},Province:{type:"string"},City:{type:"string"},Area:{type:"string"},Tag:{type:"string"},IdentityType:{$ref:"#/components/schemas/UserIdentityType"}}},encoding:{Id:{style:"form"},files:{style:"form"},Content:{style:"form"},Province:{style:"form"},City:{style:"form"},Area:{style:"form"},Tag:{style:"form"},IdentityType:{style:"form"}}}}},responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/userpost/{code}/myposts":{get:{tags:["UserPost"],summary:"我的投稿",parameters:[{name:"code",in:"path",required:!0,schema:{type:"string"}},{name:"identityType",in:"query",schema:{$ref:"#/components/schemas/UserIdentityType"}}],responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/userpost/{code}/{id}/poster/{index}":{get:{tags:["UserPost"],summary:"获取海报元素",parameters:[{name:"code",in:"path",required:!0,schema:{type:"string"}},{name:"id",in:"path",required:!0,schema:{type:"string",format:"uuid"}},{name:"index",in:"path",required:!0,schema:{type:"integer",format:"int32"}}],responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/vconsolewhitelist":{get:{tags:["VConsoleWhiteList"],responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/videos/categories":{get:{tags:["Videos"],summary:"视频分类",responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/videos/categories/{vehicleType}":{get:{tags:["Videos"],summary:"车型下有视频的分类",parameters:[{name:"vehicleType",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/videos/popular":{get:{tags:["Videos"],summary:"热门视频",responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/videos/list":{get:{tags:["Videos"],summary:"视频列表",parameters:[{name:"pageSize",in:"query",schema:{type:"integer",format:"int32"}},{name:"pageNumber",in:"query",schema:{type:"integer",format:"int32"}},{name:"vehicleType",in:"query",schema:{type:"string"}},{name:"categoryId",in:"query",schema:{type:"string",format:"uuid"}},{name:"search",in:"query",schema:{type:"string"}}],responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/videos/recommended":{get:{tags:["Videos"],summary:"推荐视频",parameters:[{name:"id",in:"query",description:"",schema:{type:"string",format:"uuid"}}],responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/videos/{id}":{get:{tags:["Videos"],summary:"视频详情",parameters:[{name:"id",in:"path",description:"",required:!0,schema:{type:"string",format:"uuid"}}],responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/voucher/{voucherId}/shopgroups":{get:{tags:["Voucher"],summary:"官方权益卡券适用门店城市列表",parameters:[{name:"voucherId",in:"path",description:"礼券id",required:!0,schema:{type:"string",format:"uuid"}}],responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/TrtForWechatGroupByKeyDtoGroupByKeyDto"}},"application/json":{schema:{$ref:"#/components/schemas/TrtForWechatGroupByKeyDtoGroupByKeyDto"}},"text/json":{schema:{$ref:"#/components/schemas/TrtForWechatGroupByKeyDtoGroupByKeyDto"}}}}}}},"/api/voucher/{voucherId}/shops":{get:{tags:["Voucher"],summary:"官方权益卡券适用门店列表",parameters:[{name:"voucherId",in:"path",description:"礼券id",required:!0,schema:{type:"string",format:"uuid"}},{name:"provinceName",in:"query",description:"省份",schema:{type:"string"}}],responses:{200:{description:"Success",content:{"text/plain":{schema:{type:"array",items:{$ref:"#/components/schemas/TrtForWechat"}}},"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/TrtForWechat"}}},"text/json":{schema:{type:"array",items:{$ref:"#/components/schemas/TrtForWechat"}}}}}}}},"/api/voucher/{voucherId}/claim":{get:{tags:["Voucher"],summary:"商户权益卡券领取",parameters:[{name:"voucherId",in:"path",description:"",required:!0,schema:{type:"string",format:"uuid"}}],responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/voucher/{voucherId}/merchant":{get:{tags:["Voucher"],summary:"商户权益卡券适用商户",parameters:[{name:"voucherId",in:"path",description:"礼券id",required:!0,schema:{type:"string",format:"uuid"}}],responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/voucheritem":{get:{tags:["VoucherItem"],summary:"钣喷中心可核销VIN官方权益卡券列表",parameters:[{name:"vin",in:"query",description:"",schema:{type:"string"}}],responses:{200:{description:"Success"}}}},"/api/voucheritem/writeoff":{post:{tags:["VoucherItem"],summary:"官方权益卡券核销",requestBody:{description:"",content:{"application/json":{schema:{type:"array",items:{type:"string"}}},"text/json":{schema:{type:"array",items:{type:"string"}}},"application/*+json":{schema:{type:"array",items:{type:"string"}}}}},responses:{200:{description:"Success"}}}},"/api/voucherpackage/{id}":{get:{tags:["VoucherPackage"],summary:"官方权益详情\r\n获取官方权益详情及适用门店信息 todo: 整合1",parameters:[{name:"id",in:"path",description:"",required:!0,schema:{type:"string",format:"uuid"}}],responses:{200:{description:"Success"}}}},"/api/voucherpackage/voucheritems":{get:{tags:["VoucherPackage"],summary:"个人中心卡券列表",parameters:[{name:"pageIndex",in:"query",description:"",schema:{type:"integer",format:"int32"}},{name:"pageSize",in:"query",description:"",schema:{type:"integer",format:"int32"}},{name:"UseType",in:"query",description:"0是所有,1是待使用,2是失效",schema:{$ref:"#/components/schemas/VoucherItemUseType"}},{name:"packageCategory",in:"query",description:"",schema:{$ref:"#/components/schemas/VoucherPackageCategory"}}],responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/VoucherItemDtoPageInfoViewDto"}},"application/json":{schema:{$ref:"#/components/schemas/VoucherItemDtoPageInfoViewDto"}},"text/json":{schema:{$ref:"#/components/schemas/VoucherItemDtoPageInfoViewDto"}}}}}}},"/api/voucherpackage/merchant/{id}":{get:{tags:["VoucherPackage"],summary:"根据Id获取商户权益详情\r\n商户权益详情 todo: 整合1",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string",format:"uuid"}}],responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/voucherpackage/merchant/code/{code}":{get:{tags:["VoucherPackage"],summary:"根据Code获取商户权益详情",parameters:[{name:"code",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/voucherpackage/merchant/{id}/wechatmpsuncode":{get:{tags:["VoucherPackage"],summary:"获取权益微信小程序太阳码",parameters:[{name:"id",in:"path",description:"",required:!0,schema:{type:"string",format:"uuid"}}],responses:{200:{description:"Success"}}}},"/api/voucherpackage/merchant/cities":{get:{tags:["VoucherPackage"],summary:"商户权益下城市列表",parameters:[{name:"benefitAttribute",in:"query",schema:{$ref:"#/components/schemas/BenefitAttribute"}}],responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/voucherpackage/merchant":{get:{tags:["VoucherPackage"],summary:"商户权益/停车减免权益 列表",parameters:[{name:"pageSize",in:"query",description:"",schema:{type:"integer",format:"int32"}},{name:"pageNumber",in:"query",description:"",schema:{type:"integer",format:"int32"}},{name:"province",in:"query",description:"",schema:{type:"string"}},{name:"city",in:"query",description:"",schema:{type:"string"}},{name:"benefitCategoryId",in:"query",description:"",schema:{type:"string",format:"uuid"}},{name:"benefitAttribute",in:"query",description:"",schema:{$ref:"#/components/schemas/BenefitAttribute"}},{name:"category",in:"query",description:"",schema:{$ref:"#/components/schemas/VoucherPackageCategory"}}],responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/voucherpackage/voucherclaim":{post:{tags:["VoucherPackage"],summary:"商户_官方俱乐部权益保存领取记录",parameters:[{name:"id",in:"query",description:"",schema:{type:"string",format:"uuid"}}],responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"application/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}},"text/json":{schema:{$ref:"#/components/schemas/ResponseBaseInfo"}}}}}}},"/api/voucherpackagelocation/{voucherPackageId}":{get:{tags:["VoucherPackageLocation"],summary:"官方权益门店列表",parameters:[{name:"voucherPackageId",in:"path",description:"礼包id",required:!0,schema:{type:"string",format:"uuid"}},{name:"provinceName",in:"query",description:"省份查询",schema:{type:"string"}}],responses:{200:{description:"Success",content:{"text/plain":{schema:{type:"array",items:{$ref:"#/components/schemas/TrtForWechat"}}},"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/TrtForWechat"}}},"text/json":{schema:{type:"array",items:{$ref:"#/components/schemas/TrtForWechat"}}}}}}}},"/api/voucherpackagelocation/group/{voucherPackageId}":{get:{tags:["VoucherPackageLocation"],summary:"官方权益门店城市列表",parameters:[{name:"voucherPackageId",in:"path",description:"",required:!0,schema:{type:"string",format:"uuid"}}],responses:{200:{description:"Success",content:{"text/plain":{schema:{$ref:"#/components/schemas/TrtForWechatGroupByKeyDtoGroupByKeyDto"}},"application/json":{schema:{$ref:"#/components/schemas/TrtForWechatGroupByKeyDtoGroupByKeyDto"}},"text/json":{schema:{$ref:"#/components/schemas/TrtForWechatGroupByKeyDtoGroupByKeyDto"}}}}}}},"/api/wechatauth":{get:{tags:["WechatAuth"],responses:{200:{description:"Success"}}}},"/yeihughiuu.txt":{get:{tags:["ZBizDomain"],responses:{200:{description:"Success"}}}},"/03fc1txmdn.txt":{get:{tags:["ZBizDomain"],responses:{200:{description:"Success"}}}},"/kxhdzjcamk.txt":{get:{tags:["ZBizDomain"],responses:{200:{description:"Success"}}}},"/rywfuqdztr.txt":{get:{tags:["ZBizDomain"],responses:{200:{description:"Success"}}}},"/xuycvqdus5.txt":{get:{tags:["ZBizDomain"],responses:{200:{description:"Success"}}}},"/ajathxd1oa.txt":{get:{tags:["ZBizDomain"],responses:{200:{description:"Success"}}}}},n={schemas:{AppClientCode:{type:"object",properties:{clientId:{type:"string",nullable:!0},code:{type:"string",nullable:!0},refreshTokenExipry:{type:"string",format:"date-time",nullable:!0},redirectUri:{type:"string",nullable:!0}},additionalProperties:!1},ArticleFollowByCustomerDto:{required:["articleId"],type:"object",properties:{articleId:{type:"string",format:"uuid"},isFollowed:{type:"boolean"}},additionalProperties:!1},AuditLogDto:{type:"object",properties:{type:{type:"string",nullable:!0},value:{type:"string",nullable:!0}},additionalProperties:!1},BenefitAttribute:{enum:[1,2,4],type:"integer",format:"int32"},ClientTypeEnum:{enum:[0,1],type:"integer",format:"int32"},ClubSignEmailInputDto:{required:["clubId"],type:"object",properties:{clubId:{type:"string",format:"uuid"},email:{maxLength:45,minLength:0,type:"string",format:"email",nullable:!0}},additionalProperties:!1},ClubSignInputDto:{required:["clubId"],type:"object",properties:{clubId:{type:"string",format:"uuid"},email:{maxLength:45,minLength:0,type:"string",format:"email",nullable:!0},nickName:{maxLength:45,minLength:0,type:"string",nullable:!0}},additionalProperties:!1},CustomerFormSubmitDto:{required:["code","content","id","version"],type:"object",properties:{id:{type:"string",format:"uuid"},code:{minLength:1,type:"string"},openId:{type:"string",nullable:!0},version:{type:"integer",format:"int32"},content:{},refererNum:{type:"integer",format:"int32",nullable:!0},refererCode:{type:"string",nullable:!0},customerConsent:{type:"boolean"}},additionalProperties:!1},CustomerSurveyDto:{type:"object",properties:{surveyId:{type:"string",format:"uuid"},eventId:{type:"string",format:"uuid",nullable:!0},openId:{type:"string",nullable:!0},version:{type:"integer",format:"int32"},content:{nullable:!0},resourceGroupId:{type:"string",format:"uuid"},targetId:{type:"string",format:"uuid",nullable:!0},code:{maxLength:10,type:"string",nullable:!0},eventSignupInfo:{$ref:"#/components/schemas/EventSignupInfoDto"}},additionalProperties:!1},CustomerVehicleDTO:{type:"object",properties:{vin:{type:"string",nullable:!0},email:{type:"string",nullable:!0},licensePlate:{type:"string",nullable:!0},prefixPlate:{type:"string",nullable:!0},model:{type:"string",nullable:!0},isRemoved:{type:"boolean"},updateBy:{type:"string",nullable:!0},customerConsent:{type:"boolean"},rn:{type:"string",nullable:!0},status:{type:"string",nullable:!0}},additionalProperties:!1},DeliveryAgreementDTO:{type:"object",properties:{status:{$ref:"#/components/schemas/DeliveryStatusDTO"}},additionalProperties:!1},DeliveryAppointmentDTO:{type:"object",properties:{vehicleMapId:{type:"integer",format:"int64"},uid:{type:"integer",format:"int64"},referenceNumber:{type:"string",nullable:!0},appointmentDatetime:{type:"string",format:"date-time"},showWindowToCustomer:{type:"boolean"},appointmentStatusName:{type:"string",nullable:!0},trim:{type:"string",nullable:!0},pickupLocation:{type:"string",nullable:!0}},additionalProperties:!1},DeliveryCheckInDTO:{type:"object",properties:{status:{$ref:"#/components/schemas/DeliveryStatusDTO"}},additionalProperties:!1},DeliveryConfirmationDTO:{type:"object",properties:{status:{$ref:"#/components/schemas/DeliveryStatusDTO"}},additionalProperties:!1},DeliveryCustomerTypeDTO:{enum:["CUSTOMER_A","CUSTOMER_B","CUSTOMER_C"],type:"string"},DeliveryDTO:{type:"object",properties:{vehicleMapId:{type:"integer",format:"int64"},referenceNumber:{type:"string",nullable:!0},uid:{type:"integer",format:"int64"},vehicleImageUrl:{type:"string",nullable:!0},trim:{type:"string",nullable:!0},parkingLocation:{type:"string",nullable:!0},checkIn:{$ref:"#/components/schemas/DeliveryCheckInDTO"},finalPayment:{$ref:"#/components/schemas/DeliveryFinalPaymentDTO"},insurance:{$ref:"#/components/schemas/DeliveryInsuranceDTO"},agreement:{$ref:"#/components/schemas/DeliveryAgreementDTO"},confirmation:{$ref:"#/components/schemas/DeliveryConfirmationDTO"},temporaryLicense:{$ref:"#/components/schemas/DeliveryTemporaryLicenseDTO"},vehicleCheck:{$ref:"#/components/schemas/DeliveryVehicleCheckDTO"},customerLeave:{type:"boolean"},appointmentDatetime:{type:"string",format:"date-time"},showWindowToCustomer:{type:"boolean"},appointmentStatusName:{type:"string",nullable:!0},pickupLocation:{type:"string",nullable:!0},parkingLocationVisible:{type:"boolean"},customerType:{$ref:"#/components/schemas/DeliveryCustomerTypeDTO"},vin:{type:"string",nullable:!0}},additionalProperties:!1},DeliveryFinalPaymentDTO:{type:"object",properties:{status:{$ref:"#/components/schemas/DeliveryStatusDTO"},amountDue:{type:"number",format:"double",nullable:!0}},additionalProperties:!1},DeliveryInsuranceDTO:{type:"object",properties:{status:{$ref:"#/components/schemas/DeliveryStatusDTO"}},additionalProperties:!1},DeliveryStatusDTO:{enum:["NONE","PENDING","COMPLETED","PROCESSING"],type:"string"},DeliveryTemporaryLicenseDTO:{type:"object",properties:{status:{$ref:"#/components/schemas/DeliveryStatusDTO"},distributeStatus:{$ref:"#/components/schemas/DeliveryStatusDTO"}},additionalProperties:!1},DeliveryVehicleCheckDTO:{type:"object",properties:{status:{$ref:"#/components/schemas/DeliveryStatusDTO"}},additionalProperties:!1},DictType:{enum:[1,2],type:"integer",format:"int32"},DiscountValue:{type:"object",properties:{bar:{type:"number",format:"double",nullable:!0},value:{type:"number",format:"double"}},additionalProperties:!1},EventCancelByCustomerDto:{required:["eventId"],type:"object",properties:{eventId:{type:"string",format:"uuid"}},additionalProperties:!1},EventFollowByCustomerDto:{required:["eventId"],type:"object",properties:{eventId:{type:"string",format:"uuid"},isFollowed:{type:"boolean"}},additionalProperties:!1},EventQuickSignUpDto:{required:["eventId","lastName","mobilePhone"],type:"object",properties:{signUpChannel:{$ref:"#/components/schemas/SignUpChannel"},openId:{type:"string",nullable:!0},sex:{type:"integer",format:"int32"},miniOpenId:{type:"string",nullable:!0},identityInfo:{type:"string",nullable:!0},note:{type:"string",nullable:!0},address:{type:"string",nullable:!0},refererCode:{type:"string",nullable:!0},accompanying:{type:"integer",format:"int32"},text1:{type:"string",nullable:!0},text2:{type:"string",nullable:!0},text3:{type:"string",nullable:!0},sourceType:{$ref:"#/components/schemas/SourceType"},sourceKey:{type:"string",nullable:!0},customerConsent:{type:"boolean"},store:{$ref:"#/components/schemas/EventSignUpStoreInfo"},eventId:{type:"string",format:"uuid"},unionId:{type:"string",nullable:!0},mpOpenId:{type:"string",nullable:!0},firstName:{type:"string",nullable:!0},lastName:{minLength:1,type:"string"},email:{type:"string",nullable:!0},mobilePhone:{minLength:1,type:"string"},isSelfClaimCarOwner:{type:"boolean"}},additionalProperties:!1},EventSiginupVerifyInviteeDto:{required:["eventId"],type:"object",properties:{email:{type:"string",nullable:!0},eventId:{type:"string",format:"uuid"},code:{type:"string",nullable:!0}},additionalProperties:!1},EventSignInDto:{required:["eventId"],type:"object",properties:{signUpChannel:{$ref:"#/components/schemas/SignUpChannel"},openId:{type:"string",nullable:!0},sex:{type:"integer",format:"int32"},miniOpenId:{type:"string",nullable:!0},identityInfo:{type:"string",nullable:!0},eventId:{type:"string",format:"uuid"},email:{type:"string",nullable:!0},mobilePhone:{type:"string",nullable:!0}},additionalProperties:!1},EventSignUpPostDto:{required:["eventId","lastName","mobilePhone"],type:"object",properties:{signUpChannel:{$ref:"#/components/schemas/SignUpChannel"},openId:{type:"string",nullable:!0},sex:{type:"integer",format:"int32"},miniOpenId:{type:"string",nullable:!0},identityInfo:{type:"string",nullable:!0},note:{type:"string",nullable:!0},address:{type:"string",nullable:!0},refererCode:{type:"string",nullable:!0},accompanying:{type:"integer",format:"int32"},text1:{type:"string",nullable:!0},text2:{type:"string",nullable:!0},text3:{type:"string",nullable:!0},sourceType:{$ref:"#/components/schemas/SourceType"},sourceKey:{type:"string",nullable:!0},customerConsent:{type:"boolean"},store:{$ref:"#/components/schemas/EventSignUpStoreInfo"},eventId:{type:"string",format:"uuid"},firstName:{type:"string",nullable:!0},lastName:{minLength:1,type:"string"},email:{type:"string",format:"email",nullable:!0},mobilePhone:{minLength:1,type:"string"}},additionalProperties:!1},EventSignUpStoreInfo:{type:"object",properties:{province:{type:"string",nullable:!0},city:{type:"string",nullable:!0},value:{type:"string",nullable:!0}},additionalProperties:!1},EventSignWithSurveyDto:{required:["customerSurvey","eventSignup"],type:"object",properties:{eventSignup:{$ref:"#/components/schemas/EventSignUpPostDto"},customerSurvey:{$ref:"#/components/schemas/CustomerSurveyDto"}},additionalProperties:!1},EventSignupInfoDto:{type:"object",properties:{eventSignupId:{type:"string",format:"uuid",nullable:!0},firstName:{type:"string",nullable:!0},lastName:{type:"string",nullable:!0},email:{type:"string",nullable:!0},mobilePhone:{type:"string",nullable:!0}},additionalProperties:!1},ExamAnswerInputDto:{required:["answerId","questionId"],type:"object",properties:{questionId:{type:"string",format:"uuid"},answerId:{type:"string",format:"uuid"}},additionalProperties:!1},GrantType:{enum:[0,1,2,3],type:"integer",format:"int32"},LandingPageRequestEventType:{enum:[1],type:"integer",format:"int32"},LuckyDrawEnterInputDto:{type:"object",properties:{luckDrawId:{type:"string",format:"uuid"},identityType:{$ref:"#/components/schemas/UserIdentityType"},luckDrawTokenId:{type:"string",format:"uuid"}},additionalProperties:!1},LuckyDrawInitialTokenInputDto:{type:"object",properties:{luckDrawId:{type:"string",format:"uuid"},identityType:{$ref:"#/components/schemas/UserIdentityType"}},additionalProperties:!1},LuckyDrawQualificationInputDto:{type:"object",properties:{luckDrawId:{type:"string",format:"uuid"},identityType:{$ref:"#/components/schemas/UserIdentityType"},grantType:{$ref:"#/components/schemas/GrantType"},resourceId:{type:"string",format:"uuid"},qualificationInput:{nullable:!0}},additionalProperties:!1},LuckyDrawWinnerContactInputDto:{required:["consignee","telephone"],type:"object",properties:{identityType:{$ref:"#/components/schemas/UserIdentityType"},consignee:{maxLength:20,minLength:1,type:"string"},telephone:{maxLength:20,minLength:1,type:"string"},customerConsent:{type:"boolean"}},additionalProperties:!1},LuckyDrawWinnerReceivedInputDto:{type:"object",properties:{identityType:{$ref:"#/components/schemas/UserIdentityType"}},additionalProperties:!1},MailingInputDto:{required:["address","area","city","consignee","province","telephone"],type:"object",properties:{consignee:{maxLength:20,minLength:1,type:"string"},telephone:{maxLength:20,minLength:1,type:"string"},province:{maxLength:20,minLength:1,type:"string"},city:{maxLength:20,minLength:1,type:"string"},area:{maxLength:20,minLength:1,type:"string"},address:{maxLength:200,minLength:1,type:"string"},customerConsent:{type:"boolean"},identityType:{$ref:"#/components/schemas/UserIdentityType"}},additionalProperties:!1},ParkingBenefitDescriptionDto:{type:"object",properties:{id:{type:"string",format:"uuid"},description:{type:"string",nullable:!0},url:{type:"string",nullable:!0}},additionalProperties:!1},PromiseLocation:{type:"object",properties:{lat:{type:"number",format:"double"},lon:{type:"number",format:"double"}},additionalProperties:!1},PromiseSubmitDto:{type:"object",properties:{location:{$ref:"#/components/schemas/PromiseLocation"},promiseCodes:{type:"array",items:{type:"string"},nullable:!0}},additionalProperties:!1},ResponseBaseInfo:{type:"object",properties:{success:{type:"boolean"},data:{nullable:!0},errorCode:{type:"string",nullable:!0},errorMessage:{type:"string",nullable:!0}},additionalProperties:!1},RoadExamHelpInputDto:{required:["answerId","helpId"],type:"object",properties:{helpId:{type:"string",format:"uuid"},answerId:{type:"string",format:"uuid"}},additionalProperties:!1},SignUpChannel:{enum:[0,1,2,3],type:"integer",format:"int32"},SourceType:{enum:[0,1,2],type:"integer",format:"int32"},TocMemberDto:{type:"object",additionalProperties:!1},TrtForWechat:{type:"object",properties:{voucherPackageId:{type:"string",format:"uuid"},trtId:{type:"string",nullable:!0},name:{type:"string",nullable:!0},address:{type:"string",nullable:!0},initialProvince:{type:"string"},initialCity:{type:"string"},city:{type:"string",nullable:!0},serviceHotline:{type:"string",nullable:!0},storePhone:{type:"string",nullable:!0},province:{type:"string",nullable:!0}},additionalProperties:!1},TrtForWechatGroupByKeyDto:{type:"object",properties:{tKey:{type:"string",nullable:!0},tValue:{type:"array",items:{$ref:"#/components/schemas/TrtForWechat"},nullable:!0},tCharKey:{type:"string"}},additionalProperties:!1},TrtForWechatGroupByKeyDtoGroupByKeyDto:{type:"object",properties:{tKey:{type:"string",nullable:!0},tValue:{type:"array",items:{$ref:"#/components/schemas/TrtForWechatGroupByKeyDto"},nullable:!0},tCharKey:{type:"string"}},additionalProperties:!1},Type:{enum:[0,1,2,3,4,5,6,7],type:"integer",format:"int32"},UseType:{enum:[0,1,2],type:"integer",format:"int32"},UserIdentityType:{enum:[0,1],type:"integer",format:"int32"},UserTokensDto:{required:["identity","sign"],type:"object",properties:{access_token:{type:"string",nullable:!0},token_type:{type:"string",nullable:!0},expires_in:{type:"integer",format:"int32"},resource:{type:"string",nullable:!0},refresh_token:{type:"string",nullable:!0},refresh_token_expires_in:{type:"integer",format:"int32"},scope:{type:"string",nullable:!0},secureToken:{type:"string",nullable:!0},id_token:{type:"string",nullable:!0},identity:{minLength:1,type:"string"},sign:{minLength:1,type:"string"}},additionalProperties:!1},VoucherItemDto:{type:"object",properties:{id:{type:"string",format:"uuid"},voucherId:{type:"string",format:"uuid"},code:{type:"string",nullable:!0},type:{$ref:"#/components/schemas/Type"},customTypeName:{type:"string",nullable:!0},value:{type:"string",nullable:!0},discountValue:{$ref:"#/components/schemas/DiscountValue"},email:{type:"string",nullable:!0},vin:{type:"string",nullable:!0},title:{type:"string",nullable:!0},description:{type:"string",nullable:!0},availableFrom:{type:"string",format:"date-time",nullable:!0},availableUntil:{type:"string",format:"date-time",nullable:!0},used:{$ref:"#/components/schemas/UseType"},usedAt:{type:"string",format:"date-time",nullable:!0},location:{type:"string",nullable:!0},creator:{type:"string",nullable:!0},createdAt:{type:"string",format:"date-time"},remark:{type:"string",nullable:!0},errorMessage:{type:"string",nullable:!0},packageId:{type:"string",format:"uuid"},packageTitle:{type:"string",nullable:!0},isAllowedForWritingOff:{type:"boolean"},operator:{type:"string",nullable:!0},packageType:{$ref:"#/components/schemas/VoucherPackageType"},isInvalidated:{type:"boolean"},benefitAttribute:{$ref:"#/components/schemas/BenefitAttribute"}},additionalProperties:!1},VoucherItemDtoPageInfoViewDto:{type:"object",properties:{total:{type:"integer",format:"int32"},pageDatas:{type:"array",items:{$ref:"#/components/schemas/VoucherItemDto"},nullable:!0}},additionalProperties:!1},VoucherItemUseType:{enum:[0,1,2],type:"integer",format:"int32"},VoucherPackageCategory:{enum:[0,1,2,3],type:"integer",format:"int32"},VoucherPackageType:{enum:[0,1],type:"integer",format:"int32"},WeChatAppClientCode:{required:["identity","sign"],type:"object",properties:{clientId:{type:"string",nullable:!0},code:{type:"string",nullable:!0},refreshTokenExipry:{type:"string",format:"date-time",nullable:!0},redirectUri:{type:"string",nullable:!0},identity:{minLength:1,type:"string"},sign:{minLength:1,type:"string"}},additionalProperties:!1},WechatShareCodeTargetType:{enum:[1,2,3,4,5,7,8,9,10,11,12,13,14,15,16,17],type:"integer",format:"int32"}},securitySchemes:{Bearer:{type:"apiKey",description:"JWT Authorization header using the Bearer scheme. \\r\\n\\r\\n\n Enter 'Bearer' [space] and then your token in the text input below.\n \\r\\n\\r\\nExample: 'Bearer 12345abcdef'",name:"Authorization",in:"header"}}},a=[{Bearer:[]}],o=[{name:"Benefits",description:"停车权益"},{name:"LuckyDraw",description:"抽奖"},{name:"MerchantVoucherItem",description:"商户权益 核销"},{name:"ParkingVoucher",description:"停车权益 停车权益本身是不能领取的 只有读取"},{name:"TocLocalAssistant",description:"官方小助手"},{name:"Treasure",description:"季度宝箱"},{name:"VoucherItem",description:"官方礼券 读取核销礼券接口"},{name:"WechatAuth",description:"获取wechat的Ticket和Appid"},{name:"ZBizDomain",description:"微信 抖音 业务域名认证文件"}],r={openapi:e,info:s,paths:t,components:n,security:a,tags:o};exports.components=n,exports.default=r,exports.info=s,exports.openapi=e,exports.paths=t,exports.security=a,exports.tags=o;
|
package/lib/package.json.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e="1.
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e="1.2.0",i="FE command line tool",s="bin/an-cli.js",l={dev:"rollup --config rollup.config.ts --configPlugin @rollup/plugin-typescript -w",build:"rm -rf lib && rollup --config rollup.config.ts --configPlugin @rollup/plugin-typescript",pub:"sh publish.sh",ts:"tsc ./src/int.ts --noEmit --watch"},t={anl:"bin/an-cli.js"},p="Gleason <bianliuzhu@gmail.com>",o={"@commitlint/cli":"^17.4.3","@commitlint/config-conventional":"^17.4.3","@rollup/plugin-commonjs":"^21.0.1","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^13.1.3","@rollup/plugin-typescript":"^8.3.0","@types/inquirer":"^9.0.3","@types/shelljs":"^0.8.11","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0",eslint:"^8.7.0",husky:"^8.0.3",rollup:"^2.64.0","rollup-plugin-cleandir":"^2.0.0","rollup-plugin-terser":"^7.0.2",typescript:"^4.5.4"},r={"app-root-path":"^3.1.0",cac:"^6.7.12",chalk:"4.*","clear-console":"^1.1.0",commander:"^10.0.0",inquirer:"^9.1.4","log-symbols":"^5.1.0",ora:"5.*","progress-estimator":"^0.3.0",shelljs:"^0.8.5"},n=["typescript","cli","typescript 脚手架","ts 脚手架","ts-cli","脚手架"],c=["package.json","README.md","lib","template"],u={type:"git",url:"https://github.com/bianliuzhu/an-cli.git"},a={name:"anl",version:e,description:i,main:s,scripts:l,bin:t,author:p,license:"ISC",devDependencies:o,dependencies:r,keywords:n,files:c,repository:u};exports.author=p,exports.bin=t,exports.default=a,exports.dependencies=r,exports.description=i,exports.devDependencies=o,exports.files=c,exports.keywords=n,exports.license="ISC",exports.main=s,exports.name="anl",exports.repository=u,exports.scripts=l,exports.version=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../utils/index.js");const r="\t";exports.default=class{defalutReturn={headerRef:"",renderStr:""};schemas={};schemasMap=new Map;config;constructor(e,r){this.schemas=e,this.config=r}typeNameToFileName(e){return e.replace(/([A-Z][a-z])/g,(e=>"-"+e.toLowerCase())).replace(/([A-Z]{2,})/g,"-$1").toLowerCase().slice(1)}nameTheHumpCenterStroke(e){try{const r=e.replace("#/components/schemas/","");return{typeName:r,fileName:this.typeNameToFileName(r)}}catch(e){throw console.error(e),JSON.stringify(e)}}parseRef(e){if(!e)return{headerRefStr:"",typeName:""};const{fileName:r,typeName:t}=this.nameTheHumpCenterStroke(e);return{headerRefStr:`import { ${t} } from './${r}';`,typeName:t}}parseObject(e,r){let t="",s="";if("object"===e.type){const n=e;switch(typeof n.additionalProperties){case"boolean":return{headerRef:"",renderStr:""};case"object":{const e=this.parseArray(n.additionalProperties,r)??this.defalutReturn,{headerRef:a,renderStr:i}=e;t=a,s=i}}}return{headerRef:t,renderStr:s}}parseArray(e,t){let s="",n="";const a=e.items.$ref;if(a){const{headerRefStr:i,typeName:o}=this.parseRef(a);s=i;n=`${r}${t}${e?.nullable?"?:":":"} Array<${o}>;`}else{const s=e,a=s?.items;n=`${r}${t}${e?.nullable?"?:":":"} Array<${"integer"===a?.type?"number":a?.type}>;`}return{headerRef:s,renderStr:n}}parseBoolean(e,t){if("boolean"!==e.type)return"";return`${r}${t}: boolean;`}parseEnum(e,t){if("integer"!==e.type)return"";if(Array.isArray(e.enum)){return[`export enum ${t} {`,...e.enum.map((e=>`${r}NUMBER_${e} = ${e},`)),"}"].join("\n")}return""}parseInteger(e,t){return"integer"!==e.type?"":Array.isArray(e.enum)?this.parseEnum(e,t):`${r}${t}: number;`}parseNumber(e,t){if("number"!==e.type)return"";return`${r}${t}: number;`}parseString(e,t){if("string"!==e.type)return null;return{headerRef:"",renderStr:`${r}${t}: string;`}}parseProperties(e,t){try{const s=[],n=[];for(const t in e){const a=e[t];if(a.$ref){const{headerRefStr:e,typeName:i}=this.parseRef(a.$ref);!n.includes(e)&&n.push(e),s.push(`${r}${t}: ${i};`)}else switch(a.type){case"array":{const e=this.parseArray(a,t)??this.defalutReturn,{headerRef:r,renderStr:i}=e;s.push(i),!n.includes(r)&&n.push(r)}break;case"boolean":{const e=this.parseBoolean(a,t)??this.defalutReturn;s.push(e)}break;case"integer":{const e=this.parseInteger(a,t)??this.defalutReturn;s.push(e)}break;case"number":{const e=this.parseNumber(a,t)??this.defalutReturn;s.push(e)}break;case"string":{const{renderStr:e}=this.parseString(a,t)??this.defalutReturn;s.push(e)}break;case"object":{const{headerRef:e,renderStr:r}=this.parseObject(a,t)??this.defalutReturn;s.push(r),!n.includes(e)&&n.push(e)}}}const a=`export interface ${t} {`;return[...n,"\n",a,...s,"}"].join("\n")}catch(e){throw console.error(e),JSON.stringify(e)}}parse(){return new Promise(((e,r)=>{try{for(const e in this.schemas){const r=this.schemas[e],t="type"in r?r:null;if(("$ref"in r?r:null)&&console.warn("ReferenceObject 未处理"),t){const t="items"in r?r:r,s=this.typeNameToFileName(e);if("items"in t)console.log("未处理---------------------------\x3e",t.items);else switch(t.type){case"boolean":{const r=this.parseBoolean(t,e)??this.defalutReturn;this.schemasMap.set(e,{fileName:s,content:r})}break;case"integer":{const r=this.parseInteger(t,e);this.schemasMap.set(e,{fileName:s,content:r})}break;case"number":{const r=this.parseNumber(t,e);this.schemasMap.set(e,{fileName:s,content:r})}break;case"object":{const r=this.parseProperties(t.properties,e);this.schemasMap.set(e,{fileName:s,content:r})}break;case"string":{const{renderStr:r}=this.parseString(t,e)??this.defalutReturn;this.schemasMap.set(e,{fileName:s,content:r})}}}}e(!0)}catch(e){console.error(e),r(e)}}))}writeFileHabdler(){const r=[],t=[],s=`${this.config.saveTypeFolderPath}/models/`,n=({fileName:r,content:n})=>new Promise(((a,i)=>{try{t.push(`export * from './${r}';`),e.writeFileRecursive(`${s}${r}.ts`,n).finally((()=>a(void 0)))}catch(e){console.error(e,!0),i()}}));for(const[,e]of this.schemasMap)r.push(n(e));Promise.all(r).then((()=>{e.writeFileRecursive(`${s}/index.ts`,t.join("\n")).finally((()=>console.log("components done!")))}))}handle(){this.parse().then((()=>this.writeFileHabdler()))}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../utils/index.js");const t="\t";var s;!function(e){e.GET="get",e.PUT="put",e.POST="post",e.DELETE="delete",e.OPTIONS="options",e.HEAD="head",e.PATCH="patch",e.TRACE="trace"}(s||(s={}));const n={namespace:"",payload:{path:[],query:[],body:[]},response:"",_response:"",fileName:"",method:"",path:""};class r{pathsObject={};nonArrayType=["boolean","object","number","string","integer"];pathKey="";contentBody=n;Map=new Map;config;constructor(e,t){this.pathsObject=e,this.config=t}pathTranslantionName(e,t){return{name:e.slice(1).replace(/\/\{\w+\}/g,(()=>"")).replace(/\/\w/g,(e=>{const[,t]=e.split("");return t.toUpperCase()})).replace("api",""),method:t}}pathTranslantionFileName(e){const t=e.replace("/api","").replace(/\{\w+\}/g,(e=>`$${e}`));return{name:e.slice(1).replace(/\//g,"-").replace("api-",""),path:t}}typeNameToFileName(e){return e.replace(/([A-Z][a-z])/g,(e=>"-"+e.toLowerCase())).replace(/([A-Z]{2,})/g,"-$1").toLowerCase().slice(1)}propertiesParse(e){const s=[];for(const n in e){const r=e[n],a=this.schemaParse(r),o=`${t}${t}${n}:${a}`;s.push(o)}return s.join("\n")}nonArraySchemaObjectParse(e){if(!e)return"";switch(e.type){case"boolean":return"boolean";case"integer":case"number":return"number";case"object":return this.propertiesParse(e.properties);case"string":return"string";default:return""}}arraySchemaObjectParse(e){if("array"!==e.type)return"";const{items:t}=e,s="$ref"in t?t:null,n=t;if(s){return`Array<${this.referenceObjectParse(s)}>`}if(n){return`Array<${this.schemaParse(t)}>`}return""}referenceObjectParse(e){if(!e)return"";const t=e.$ref.replace("#/components/schemas/","");return`import('../models/${this.typeNameToFileName(t)}').${t}`}schemaParse(e){if(!e)return"";const t=e?.type,s="$ref"in e?e:null,n="array"===t?e:null,r=t&&this.nonArrayType.includes(t)?e:null;return s?this.referenceObjectParse(s):n?this.arraySchemaObjectParse(n):r?this.nonArraySchemaObjectParse(r):""}responseObjectParse(e){const t=e.content;if(!t)return"";const{schema:s}=Object.values(t)[0];if(s){return this.schemaParse(s).split("\n")}}responseHandle(e){const t=e[200],s="content"in t?t:null,n="$ref"in t?t:null;if(null===s&&null===n&&(this.contentBody.response="type Response = void",this.contentBody._response="void"),n){const e=this.referenceObjectParse(n);this.contentBody.response=`type Response = ${e}['responseObject']`,this.contentBody._response=e}if(s){const e=this.responseObjectParse(s);this.contentBody.response=`type Response = ${e}['responseObject']`,this.contentBody._response=`${e}`}}requestBodyObjectParse(e){const{schema:s}=Object.values(e.content)[0];if(s){const e=s?.type,n="$ref"in s?s:null,r="array"===e?s:null,a=e&&this.nonArrayType.includes(e)?s:null;if(n){const e=this.referenceObjectParse(n);return`${t}type Body = ${e}`}if(r){const e=this.arraySchemaObjectParse(r);return`${t}type Body = ${e}`}if(a){const e=this.nonArraySchemaObjectParse(a);return[`${t}interface Body {`,e,"}"]}}}requestBodyParse(e){if(!e)return"";const s="$ref"in e?e:null,n="content"in e?e:null;if(s){const e=this.referenceObjectParse(s);return`${t}type Body = ${e}`}return n?this.requestBodyObjectParse(n):""}requestParametersParse(e){const s=[],n=[];e?.map((e=>{const r="$ref"in e?e:null,a="name"in e?e:null;if(r){const e=this.referenceObjectParse(r);return console.log(this.pathKey,e,"item 是 ReferenceObject 类型","----为处理---"),e}if(a){if("path"===a.in){const e=this.schemaParse(a.schema);s.push(`${t}${t}type ${a.name} = ${e};`),this.contentBody.payload._path?this.contentBody.payload._path[a.name]=e:this.contentBody.payload._path={[a.name]:e}}if("query"===a.in){const e=this.schemaParse(a.schema);n.push(`${t}${t}${a.name}: ${e};`),this.contentBody.payload._query?this.contentBody.payload._query[a.name]=e:this.contentBody.payload._query={[a.name]:e}}}})),0!==s.length&&(s.unshift(`${t}namespace Path {`),s.push(`${t}}`)),0!==n.length&&(n.unshift(`${t}interface Query {`),n.push(`${t}}`)),this.contentBody.payload.path=s,this.contentBody.payload.query=n}requestHandle(e){if(e.parameters&&this.requestParametersParse(e.parameters),e.requestBody){const t=this.requestBodyParse(e.requestBody);if(t&&Array.isArray(t))this.contentBody.payload.body=t;else{const e=t?.split("\n")||[];this.contentBody.payload.body=e}}}parsePathItemObject(e){for(const t in s){const s=e[t.toLowerCase()];if(s){const{name:e,method:n}=this.pathTranslantionName(this.pathKey,t);this.requestHandle(s),this.responseHandle(s.responses),this.contentBody.method=n,this.contentBody.namespace=e+n}}}initialize(){return new Promise(((e,t)=>{try{for(const e in this.pathsObject){const t=this.pathsObject[e];if(this.pathKey=e,t){const s=this.pathTranslantionFileName(e);this.contentBody.fileName=s.name,this.contentBody.path=s.path,this.parsePathItemObject(t),this.Map.set(e,this.contentBody),this.contentBody={namespace:"",payload:{path:[],query:[],body:[]},response:"",_response:"",fileName:"",method:"",path:""}}}e(this.Map)}catch(e){t(e)}}))}writeApiListFile(e){const{namespace:t,payload:s,method:n,path:r,_response:a}=e,{_path:o,_query:i,body:c}=s,p=t.replace(t[0],t[0].toLowerCase()),h=e=>{const s=[];for(const n in e)s.push(`${n}: ${t}.Path.${n}`);return s.length>1?s.join(","):s.join("")},l=o?h(o):"",y=i?`params: ${t}.Query`:"",u=c.length>0?`params: ${t}.Body`:"",d={};l&&(d.apiParamsPath=l),y&&(d.apiParamsQuery=y),u&&(d.apiParamsBody=u);const m=Object.keys(d).length>=2;return[`export const ${p} = `,"(",o?h(o):"",""+(m?",":""),i?`params: ${t}.Query`:"",c.length>0?`params: ${t}.Body`:"",")"," => ",`${n}${a?`<${t}.Response>`:""}`,"(`"+r+"`"+(y||u?", params":"")+")"].join("")}writeFileHabdler(){const s=[],n=[],r=this.config.saveTypeFolderPath,a=[],o=(s,o)=>new Promise(((s,i)=>{try{const{namespace:c,payload:p,response:h,fileName:l,method:y}=o;!a.includes(y)&&a.push(y);const u=[`declare namespace ${c} {`,...p.path,...p.query,...p.body,`${t}${h}`,"}"],d=this.writeApiListFile(o);n.push(d,"\n"),e.writeFileRecursive(`${r}/api/${l}.d.ts`,u.join("\n")).then((()=>s(1))).catch((e=>{i(e),console.error(e)}))}catch(e){console.error(e,!0),i()}}));for(const[e,t]of this.Map)s.push(o(0,t));Promise.all(s).then((()=>{n.unshift(`import { ${a.join(",")} } from './api';`,"\n"),e.clearDir(this.config.apiListFilePath+"/index.ts").finally((()=>{e.writeFileRecursive(this.config.apiListFilePath+"/index.ts",n.join("\n")).then((()=>{console.log("path parse done!"),this.Map=new Map})).catch((e=>{console.error("-----------\x3e",e)}))}))}))}handle(){this.initialize().then((()=>this.writeFileHabdler()))}}exports.PathParse=r,exports.default=r;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("fs"),s=require("../../data/sw.json.js"),t=require("../utils/index.js"),r=require("./core/components.js");require("http"),require("https"),require("path");var a=require("./core/path.js");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=i(e);const o={saveTypeFolderPath:"types",apiListFilePath:"services",swaggerJsonUrl:"https://serviceoneapi-stg.tesla.cn/core/swagger/v1/swagger.json",indent:"\t",headers:{}};exports.Main=class{schemas={};paths={};handle(e){const t=s.default;this.schemas=t.components?.schemas,this.paths=t.paths;new r.default(this.schemas,e).handle();new a.PathParse(this.paths,e).handle()}initialize(){const e=process.cwd()+"/an.config.json";t.isFileExisted(e).then((()=>{n.default.readFile(e,"utf8",((e,s)=>{if(e)return void console.error(e);const r=JSON.parse(s);console.log("config ----\x3e",r),t.clearDir(r.saveTypeFolderPath).then((()=>this.handle(r)))}))})).catch((s=>{t.clearDir(o.saveTypeFolderPath).then((()=>{t.writeFileRecursive(e,JSON.stringify(o,null,2)).catch((e=>{console.log(e)})).finally((()=>{this.handle(o)}))})),console.error(s)}))}};
|
package/lib/src/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("../node_modules/commander/esm.mjs.js"),
|
|
1
|
+
"use strict";var e=require("../node_modules/commander/esm.mjs.js"),i=require("../package.json.js"),r=require("./build-type/index.js"),n=require("./standard/lint-init.js");e.program.version(`${i.default.version}`,"-v --version").usage("<command> [options]"),e.program.command("type").description("auto interface").action((()=>{(new r.Main).initialize()})),e.program.command("lint").description("install eslint, prettier, commitlint").action((()=>n.lintHandle())),e.program.parse(process.argv);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.ADD_COMMIT_MSG="npx husky add .husky/commit-msg 'npx --no-install commitlint --edit \"$1\"'",exports.COMMIT_CONFIG_CONTENT="\nmodule.exports = {\n\textends: ['@commitlint/config-conventional']\n}",exports.COMMIT_VERIFY="npm install --save-dev @commitlint/cli @commitlint/config-conventional",exports.HUSKY_INSTALL="npx husky install",exports.NPM_HUSK="npm install husky --save-dev",exports.Prettier="npm install --save-dev --save-exact prettier eslint-config-prettier",exports.REACT_ESLINT="npm i eslint eslint-plugin-react@latest @typescript-eslint/eslint-plugin@latest @typescript-eslint/parser@latest -D
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.ADD_COMMIT_MSG="npx husky add .husky/commit-msg 'npx --no-install commitlint --edit \"$1\"'",exports.COMMIT_CONFIG_CONTENT="\nmodule.exports = {\n\textends: ['@commitlint/config-conventional']\n}",exports.COMMIT_VERIFY="npm install --save-dev @commitlint/cli @commitlint/config-conventional",exports.HUSKY_INSTALL="npx husky install",exports.NPM_HUSK="npm install husky --save-dev",exports.Prettier="npm install --save-dev --save-exact prettier eslint-config-prettier",exports.REACT_ESLINT="npm i eslint eslint-plugin-react@latest @typescript-eslint/eslint-plugin@latest @typescript-eslint/parser@latest -D",exports.VUE_ESLINT="npm i eslint-plugin-vue@latest @typescript-eslint/eslint-plugin@latest @typescript-eslint/parser@latest eslint@latest -D";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("path"),s=require("progress-estimator"),t=require("./const.js"),i=require("fs"),o=require("shelljs"),c=require("../utils/index.js");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}const r=l(s).default({storagePath:e.join(__dirname,".progress-estimator")});exports.commitlintHanlde=async()=>{o.which("git")||(c.log.warning("Sorry, this script requires git"),o.exit(1));const e=new Promise(((e,s)=>{try{c.spinner.start("commitlint tools instll..."),o.exec(t.COMMIT_VERIFY,{silent:!0}),c.spinner.success("✨ commitlint instll success!"),e({success:!0})}catch(e){s(e)}})),s=!0,l=new Promise(((e,l)=>{try{c.log.load("instll husky..."),o.exec(t.NPM_HUSK,{silent:s}),c.log.success("husk instll done!"),c.log.load("create husky..."),o.exec(t.HUSKY_INSTALL,{silent:s}),c.log.success("husk create done!"),c.log.load("set commit-msg..."),o.exec(t.ADD_COMMIT_MSG,{silent:s}),c.log.success("set commit-msg done!"),c.log.load("create config file..."),i.writeFileSync(`${process.cwd()}/commitlint.config.js`,t.COMMIT_CONFIG_CONTENT),c.log.success("config file write done!"),e({success:!0})}catch(e){c.spinner.error("commitlint instll fail!"),l(e)}}));try{await r(e,"install commit lint tools",{estimate:1e4}),await r(l,"commit config file write")}catch(e){console.log("commitlintHanlde=====>",e)}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("child_process"),s=require("fs"),r=require("path"),t=require("progress-estimator"),i=require("../utils/index.js"),n=require("./const.js");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=c(s);const a=c(t).default({storagePath:r.join(__dirname,".progress-estimator")});exports.eslintHandle=async s=>{i.spinner.start("start installation...");const r="vue"===s?n.VUE_ESLINT:n.REACT_ESLINT,t="vue"===s?"vue-eslint.js":"react-eslint.js",c=new Promise(((s,t)=>{const n=e.exec(r,(e=>{e&&i.spinner.error(e.message)}));n.stdout?.on("data",(()=>{i.spinner.success("✨ eslint instll success!"),s({success:!0})})),n.stderr?.on("data",(()=>{i.spinner.error("eslint install fail!"),t({success:!1})}))})),o=new Promise(((e,s)=>{try{l.default.copyFileSync(`${__dirname.replace("lib/src","template/.eslintignore")}`,`${process.cwd()}/.eslintignore`),l.default.copyFileSync(`${__dirname.replace("lib/src",`template/${t}`)}`,`${process.cwd()}/.eslintrc.js`),i.spinner.success("✨ .eslintrc file write success"),e({success:!0})}catch(e){i.spinner.error(".eslintrc file write fail"),s(e)}}));try{await a(c,"instll eslint",{estimate:3e4}),await a(o,"write .eslintignore file")}catch(e){console.error("eslintHandle=====>",e)}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../node_modules/inquirer/lib/inquirer.js"),t=require("./install-eslint.js"),r=require("./prettier.js"),i=require("./install-commitlint.js"),a=require("./vscode.js");exports.lintHandle=function(){e.default.prompt([{type:"list",message:"Choose the framework to use",name:"framework",choices:["React","Vue"],filter:e=>e.toLowerCase(),validate:e=>!!e.length||"Choose the framework to use"}]).then((async e=>{await i.commitlintHanlde(),await r.prettierHanlde(),await a.default(),await t.eslintHandle(e.framework)}))};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("child_process"),r=require("fs"),t=require("path"),s=require("progress-estimator"),i=require("../utils/index.js"),c=require("./const.js");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}const o=n(s).default({storagePath:t.join(__dirname,".progress-estimator")});exports.prettierHanlde=async()=>{const t=new Promise(((r,t)=>{const s=e.exec(c.Prettier,(e=>{e&&i.spinner.error(e.message)}));s.stdout?.on("data",(function(){i.spinner.success("✨ prettier instll success!"),r({success:!0})})),s.stderr?.on("data",(function(e){i.spinner.error(e),t({success:!1})}))})),s=new Promise(((e,t)=>{try{r.copyFileSync(`${__dirname.replace("lib/src","template/prettierrc.js")}`,`${process.cwd()}/.prettierrc.js`),i.spinner.success("✨ .prettierrc write done!"),e({success:!0})}catch(e){i.spinner.error("❌ prettierrc write fail!"),t(e)}}));try{await o(t,"install prettier",{estimate:1e4}),await o(s,"write .prettierrc file")}catch(e){console.error("prettierHanlde======>",e)}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("fs"),s=require("../utils/index.js");exports.default=async()=>{const t=`${process.cwd()}/.vscode/settings.json`;if(e.existsSync(t)){const s=e.readFileSync(t,"utf-8"),r=JSON.parse(s);r["editor.formatOnSave"]=!0,r["editor.defaultFormatter"]="esbenp.prettier-vscode";const i=JSON.stringify(r,null,"\t");e.writeFileSync(t,i)}else{const t=`${process.cwd()}/.vscode`;try{e.mkdirSync(t),e.copyFileSync(`${__dirname.replace("lib/src","template/settings.json")}`,`${t}/settings.json`),s.spinner.success("✨ .vscode/settings.json file write success")}catch(e){s.spinner.error(".vscode/settings.json file write fail"),console.error(e)}}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("chalk"),r=require("fs"),t=require("ora");require("path");var o=require("shelljs");function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=s(e),n=s(r);const u={info:e=>console.log(l.default.dim(e)),error:e=>console.log(l.default.red(`× ${e}`)),success:e=>console.log(l.default.green(`✔ ${e}`)),warning:e=>console.log(l.default.yellow(`⚠️ ${e}`)),load:e=>console.log(l.default.dim(`☯︎ ${e}`))},i=s(t).default(),a={stop:()=>i.stop(),error:e=>i.fail(`❌ ${l.default.red(e)}`),start:e=>{i.text=l.default.blue(e),i.start()},success:e=>{i.stopAndPersist({symbol:l.default.green("✔"),text:l.default.green(e)})}};exports.clearDir=function(e){return new Promise(((r,t)=>{try{o.exec(`rm -rf ${e}`),r(!0)}catch(e){console.error(e),t(!1)}}))},exports.isFileExisted=function(e){return new Promise(((r,t)=>{n.default.access(e,(e=>{e?t(!1):r(!0)}))}))},exports.log=u,exports.spinner=a,exports.writeFileRecursive=function(e,r){return new Promise(((t,o)=>{try{const s=e.substring(0,e.lastIndexOf("/"));n.default.mkdir(s,{recursive:!0},(s=>{if(s)return o(!1);n.default.writeFile(e,r,(function(e){if(e)return o(!1);t(!0)}))}))}catch(e){console.error(e),o(e)}}))};
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anl",
|
|
3
|
-
"version": "1.1
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "FE command line tool",
|
|
5
5
|
"main": "bin/an-cli.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"dev": "rollup --config rollup.config.ts --configPlugin @rollup/plugin-typescript -w",
|
|
8
8
|
"build": "rm -rf lib && rollup --config rollup.config.ts --configPlugin @rollup/plugin-typescript",
|
|
9
|
-
"pub": "sh publish.sh"
|
|
9
|
+
"pub": "sh publish.sh",
|
|
10
|
+
"ts": "tsc ./src/int.ts --noEmit --watch"
|
|
10
11
|
},
|
|
11
12
|
"bin": {
|
|
12
13
|
"anl": "bin/an-cli.js"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./const.js"),s=require("progress-estimator"),t=require("path"),i=require("./utils.js"),o=require("fs"),c=require("shelljs");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}const r=l(s).default({storagePath:t.join(__dirname,".progress-estimator")});exports.commitlintHanlde=async()=>{c.which("git")||(i.log.warning("Sorry, this script requires git"),c.exit(1));const s=new Promise(((s,t)=>{try{i.spinner.start("commitlint tools instll..."),c.exec(e.COMMIT_VERIFY,{silent:!0}),i.spinner.success("✨ commitlint instll success!"),s({success:!0})}catch(e){i.spinner.error("commitlint instll failure!"),t(e)}})),t=!0,l=new Promise(((s,l)=>{try{i.log.load("instll husky..."),c.exec(e.NPM_HUSK,{silent:t}),i.log.success("husk instll done!"),i.log.load("create husky..."),c.exec(e.HUSKY_INSTALL,{silent:t}),i.log.success("husk create done!"),i.log.load("set commit-msg..."),c.exec(e.ADD_COMMIT_MSG,{silent:t}),i.log.success("set commit-msg done!"),i.log.load("create config file..."),o.writeFileSync(`${process.cwd()}/commitlint.config.js`,e.COMMIT_CONFIG_CONTENT),i.log.success("🌟 config file write done!"),s({success:!0})}catch(e){i.spinner.error("commitlint instll fail!"),l({success:!1})}}));try{await r(s,"install commit lint tools",{estimate:1e4}),await r(l,"commit config file write")}catch(e){console.log("commitlintHanlde=====>",e)}};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("fs"),s=require("path"),r=require("child_process"),t=require("./utils.js"),i=require("./const.js"),n=require("progress-estimator");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=l(e);const a=l(n).default({storagePath:s.join(__dirname,".progress-estimator")});exports.eslintHandle=async e=>{t.spinner.start("start installation...");const s="vue"===e?i.VUE_ESLINT:i.REACT_ESLINT,n="vue"===e?"vue-eslint.js":"react-eslint.js",l=new Promise(((e,i)=>{const n=r.exec(s,(e=>{e&&t.spinner.error(e.message)}));n.stdout?.on("data",(()=>{t.spinner.success("✨ eslint instll success!"),e({success:!0})})),n.stderr?.on("data",(e=>{t.spinner.error("eslint install fail!"),i(e)}))})),o=new Promise(((e,s)=>{try{c.default.copyFileSync(`${__dirname.replace("lib/src","template/.eslintignore")}`,`${process.cwd()}/.eslintignore`),c.default.copyFileSync(`${__dirname.replace("lib/src",`template/${n}`)}`,`${process.cwd()}/.eslintrc.js`),t.spinner.success("✨ .eslintrc file write success"),e({success:!0})}catch(e){t.spinner.error("eslintrc file write fail"),s(e)}}));try{await a(l,"instll eslint",{estimate:3e4}),await a(o,"write .eslintignore file")}catch(e){console.error("eslintHandle=====>",e)}};
|
package/lib/src/lint-init.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../node_modules/inquirer/lib/inquirer.js"),t=require("./install-eslint.js"),r=require("./prettier.js"),i=require("./install-commitlint.js"),a=require("./vscode.js");exports.lintHandle=function(){e.default.prompt([{type:"list",message:"Choose the framework to use",name:"framework",choices:["React","Vue"],filter:e=>e.toLowerCase(),validate:e=>!!e.length||"Choose the framework to use"}]).then((async e=>{await i.commitlintHanlde(),await r.prettierHanlde(),await a.default(),await t.eslintHandle(e.framework)}))};
|
package/lib/src/prettier.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./const.js"),r=require("progress-estimator"),t=require("path"),s=require("child_process"),i=require("./utils.js"),c=require("fs");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}const o=n(r).default({storagePath:t.join(__dirname,".progress-estimator")});exports.prettierHanlde=async()=>{const r=new Promise(((r,t)=>{const c=s.exec(e.Prettier,(e=>{e&&i.spinner.error(e.message)}));c.stdout?.on("data",(function(){i.spinner.success("✨ prettier instll success!"),r({success:!0})})),c.stderr?.on("data",(function(e){i.spinner.error(e),t({success:!1})}))})),t=new Promise(((e,r)=>{try{c.copyFileSync(`${__dirname.replace("lib/src","template/prettierrc.js")}`,`${process.cwd()}/.prettierrc.js`),i.spinner.success("✨ prettierrc write done!"),e({success:!0})}catch(e){i.spinner.error("❌ prettierrc write fail!"),r(e)}}));try{await o(r,"install prettier",{estimate:1e4}),await o(t,"write .prettierrc file")}catch(e){console.error("prettierHanlde======>",e)}};
|
package/lib/src/utils.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("chalk"),t=require("ora");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("path");var r=o(e);const l={info:e=>console.log(r.default.dim(e)),error:e=>console.log(r.default.red(`× ${e}`)),success:e=>console.log(r.default.green(`✔ ${e}`)),warning:e=>console.log(r.default.yellow(`⚠️ ${e}`)),load:e=>console.log(r.default.dim(`☯︎ ${e}`))},s=o(t).default(),a={stop:()=>s.stop(),error:e=>s.fail(`❌ ${r.default.red(e)}`),start:e=>{s.text=r.default.blue(e),s.start()},success:e=>{s.stopAndPersist({symbol:r.default.green("✔"),text:r.default.green(e)})}};exports.log=l,exports.spinner=a;
|
package/lib/src/vscode.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("fs"),s=require("./utils.js");exports.default=async()=>{const t=`${process.cwd()}/.vscode/settings.json`;if(e.existsSync(t)){const s=e.readFileSync(t,"utf-8"),r=JSON.parse(s);r["editor.formatOnSave"]=!0,r["editor.defaultFormatter"]="esbenp.prettier-vscode";const c=JSON.stringify(r,null,"\t");e.writeFileSync(t,c)}else{const t=`${process.cwd()}/.vscode`;try{e.mkdirSync(t),e.copyFileSync(`${__dirname.replace("lib/src","template/settings.json")}`,`${t}/settings.json`),s.spinner.success("✨ .vscode/settings.json file write success!")}catch(e){console.error("vscodeHandle======>",e)}}};
|
|
File without changes
|