{
"components": {
"schemas": {
"ActionResult": {
"properties": {
"message": {
"type": "string"
},
"status": {
"type": "boolean"
},
"tp": {
"format": "int32",
"type": "integer"
}
},
"type": "object"
},
"ActivityDetailResponse": {
"properties": {
"detail": {
"$ref": "#/components/schemas/UserActivityItem"
},
"events": {
"type": "object"
},
"first_ts": {
"format": "int32",
"type": "integer"
},
"last_ts": {
"format": "int32",
"type": "integer"
}
},
"type": "object"
},
"ActivityEventListResponse": {
"properties": {
"events": {
"type": "object"
},
"last_ts": {
"format": "int32",
"type": "integer"
}
},
"type": "object"
},
"ActivityItem": {
"properties": {
"activity_id": {
"type": "string"
},
"addr": {
"type": "string"
},
"amount": {
"type": "string"
},
"cover": {
"type": "string"
},
"day_range": {
"type": "object"
},
"desc": {
"type": "string"
},
"man_limit": {
"format": "int32",
"type": "integer"
},
"merchant_name": {
"type": "string"
},
"name": {
"type": "string"
},
"state": {
"format": "int32",
"type": "integer"
},
"ts": {
"format": "int32",
"type": "integer"
}
},
"type": "object"
},
"ActivityListResponse": {
"properties": {
"activities": {
"type": "object"
}
},
"type": "object"
},
"AlbumItem": {
"properties": {
"media_id": {
"type": "string"
},
"media_type": {
"type": "string"
},
"name": {
"type": "string"
},
"src": {
"type": "string"
},
"ts": {
"format": "int32",
"type": "integer"
}
},
"type": "object"
},
"AlbumResponse": {
"properties": {
"files": {
"type": "object"
}
},
"type": "object"
},
"AliAppPayResponse": {
"properties": {
"body": {
"type": "string"
}
},
"type": "object"
},
"AuditItems": {
"properties": {
"item_type": {
"type": "string"
},
"key": {
"type": "string"
},
"value": {
"type": "string"
}
},
"type": "object"
},
"CityItem": {
"properties": {
"city_id": {
"type": "string"
},
"cover": {
"type": "string"
},
"name": {
"type": "string"
}
},
"type": "object"
},
"CityListResponse": {
"properties": {
"cities": {
"type": "object"
}
},
"type": "object"
},
"CityMainResponse": {
"properties": {
"activity_list": {
"type": "object"
},
"coupon_list": {
"type": "object"
},
"name": {
"type": "string"
}
},
"type": "object"
},
"CouponBatchItem": {
"properties": {
"amount": {
"type": "string"
},
"coupon_batch_id": {
"type": "string"
},
"total": {
"format": "int32",
"type": "integer"
},
"ts": {
"format": "int32",
"type": "integer"
}
},
"type": "object"
},
"CouponItem": {
"properties": {
"amount": {
"type": "string"
},
"coupon_id": {
"type": "string"
},
"cover": {
"type": "string"
},
"desc": {
"type": "string"
},
"expire_ts": {
"format": "int32",
"type": "integer"
},
"free_total": {
"format": "int32",
"type": "integer"
},
"merchant": {
"$ref": "#/components/schemas/RelationItem"
},
"name": {
"type": "string"
},
"sold": {
"format": "int32",
"type": "integer"
},
"total": {
"format": "int32",
"type": "integer"
},
"ts": {
"format": "int32",
"type": "integer"
},
"used": {
"format": "int32",
"type": "integer"
}
},
"type": "object"
},
"CouponListResponse": {
"properties": {
"coupons": {
"type": "object"
}
},
"type": "object"
},
"CouponTypeForm": {
"properties": {
"amount": {
"type": "string"
},
"cover": {
"type": "string"
},
"desc": {
"type": "string"
},
"expire_in": {
"type": "string"
},
"name": {
"type": "string"
}
},
"type": "object"
},
"CouponTypeItem": {
"properties": {
"amount": {
"type": "string"
},
"coupon_type_id": {
"type": "string"
},
"description": {
"type": "string"
},
"merchant": {
"$ref": "#/components/schemas/RelationItem"
},
"merchant_name": {
"type": "string"
},
"name": {
"type": "string"
}
},
"type": "object"
},
"CouponTypeMngItem": {
"properties": {
"amount": {
"type": "string"
},
"coupon_batch_list": {
"type": "object"
},
"coupon_type_id": {
"type": "string"
},
"cover": {
"type": "string"
},
"description": {
"type": "string"
},
"expire_id": {
"format": "int32",
"type": "integer"
},
"merchant_name": {
"type": "string"
},
"name": {
"type": "string"
},
"sold": {
"format": "int32",
"type": "integer"
},
"state": {
"format": "int32",
"type": "integer"
},
"total": {
"format": "int32",
"type": "integer"
},
"ts": {
"format": "int32",
"type": "integer"
}
},
"type": "object"
},
"CreateOrUpdateActivityForm": {
"properties": {
"amount": {
"type": "string"
},
"cover": {
"type": "string"
},
"desc": {
"type": "string"
},
"duration_day": {
"format": "int32",
"type": "integer"
},
"man_limit": {
"format": "int32",
"type": "integer"
},
"name": {
"type": "string"
},
"start_at": {
"type": "string"
}
},
"type": "object"
},
"CustomerMerchantItem": {
"properties": {
"avatar": {
"type": "string"
},
"merchant_id": {
"type": "string"
},
"name": {
"type": "string"
},
"ts": {
"format": "int32",
"type": "integer"
}
},
"type": "object"
},
"CustomerMerchantListResponse": {
"properties": {
"list": {
"type": "object"
},
"ts": {
"format": "int32",
"type": "integer"
}
},
"type": "object"
},
"EventForm": {
"properties": {
"media": {
"type": "string"
},
"message": {
"type": "string"
}
},
"type": "object"
},
"EventItem": {
"properties": {
"event_id": {
"type": "string"
},
"media": {
"type": "string"
},
"message": {
"type": "string"
},
"msg_type": {
"type": "string"
},
"owned": {
"format": "int32",
"type": "integer"
},
"sender": {
"$ref": "#/components/schemas/RelationItem"
},
"ts": {
"format": "int32",
"type": "integer"
}
},
"type": "object"
},
"FileNameExtractor": {
"properties": {
"file_name": {
"type": "string"
}
},
"type": "object"
},
"IdExtractor": {
"properties": {
"id": {
"type": "string"
}
},
"type": "object"
},
"LoginResponse": {
"properties": {
"profile": {
"$ref": "#/components/schemas/UserProfileItem"
},
"token": {
"type": "string"
}
},
"type": "object"
},
"MakeCouponBatchForm": {
"properties": {
"total": {
"format": "int32",
"type": "integer"
}
},
"type": "object"
},
"MemberPlanItem": {
"properties": {
"actual_amount": {
"type": "string"
},
"amount": {
"type": "string"
},
"desc": {
"type": "string"
},
"discount": {
"type": "string"
},
"name": {
"type": "string"
},
"plan_key": {
"type": "string"
},
"state": {
"format": "int32",
"type": "integer"
}
},
"type": "object"
},
"MemberPlanListResponse": {
"properties": {
"plans": {
"type": "object"
}
},
"type": "object"
},
"MerchantCouponListResponse": {
"properties": {
"coupon_list": {
"type": "object"
}
},
"type": "object"
},
"MerchantCustomerItem": {
"properties": {
"avatar": {
"type": "string"
},
"nickname": {
"type": "string"
},
"ts": {
"format": "int32",
"type": "integer"
},
"user_id": {
"type": "string"
}
},
"type": "object"
},
"MerchantCustomerListResponse": {
"properties": {
"list": {
"type": "object"
},
"ts": {
"format": "int32",
"type": "integer"
}
},
"type": "object"
},
"MerchantEventListResponse": {
"properties": {
"events": {
"type": "object"
},
"last_ts": {
"format": "int32",
"type": "integer"
}
},
"type": "object"
},
"MerchantItem": {
"properties": {
"address": {
"type": "string"
},
"audit_items": {
"type": "object"
},
"audit_status": {
"format": "int32",
"type": "integer"
},
"banner": {
"type": "string"
},
"introduction": {
"type": "string"
},
"logo": {
"type": "string"
},
"merchant_id": {
"type": "string"
},
"name": {
"type": "string"
},
"ts": {
"format": "int32",
"type": "integer"
}
},
"type": "object"
},
"MerchantMainResponse": {
"properties": {
"activity_list": {
"type": "object"
},
"address": {
"type": "string"
},
"banner": {
"type": "string"
},
"coupon_list": {
"type": "object"
},
"logo": {
"type": "string"
},
"name": {
"type": "string"
}
},
"type": "object"
},
"MerchantRegisterForm": {
"properties": {
"address": {
"type": "string"
},
"banner": {
"type": "string"
},
"business_license": {
"type": "string"
},
"city_id": {
"type": "string"
},
"desc": {
"type": "string"
},
"legal_person": {
"type": "string"
},
"logo": {
"type": "string"
},
"name": {
"type": "string"
},
"resident_id": {
"type": "string"
},
"resident_id_card_back": {
"type": "string"
},
"resident_id_card_frond": {
"type": "string"
}
},
"type": "object"
},
"MerchantResponse": {
"properties": {
"merchant": {
"$ref": "#/components/schemas/MerchantItem"
}
},
"type": "object"
},
"MerchantUpdateForm": {
"properties": {
"address": {
"type": "string"
},
"banner": {
"type": "string"
},
"desc": {
"type": "string"
},
"logo": {
"type": "string"
},
"name": {
"type": "string"
}
},
"type": "object"
},
"MetaResponse": {
"properties": {
"city_list": {
"type": "object"
},
"member_plan_list": {
"type": "object"
}
},
"type": "object"
},
"MyCouponsResponse": {
"properties": {
"coupon_list": {
"type": "object"
}
},
"type": "object"
},
"OrderContent": {
"properties": {
"qr": {
"type": "string"
}
},
"type": "object"
},
"OrderResponse": {
"properties": {
"amount": {
"type": "string"
},
"contents": {
"type": "object"
},
"description": {
"type": "string"
},
"order_sn": {
"type": "string"
},
"price": {
"type": "string"
},
"state": {
"format": "int32",
"type": "integer"
},
"total": {
"type": "string"
}
},
"type": "object"
},
"PasswordLoginForm": {
"properties": {
"client_public_key": {
"type": "object"
},
"login_id": {
"type": "string"
},
"password": {
"type": "string"
}
},
"type": "object"
},
"PayConfig": {
"properties": {
"alipay": {
"type": "string"
},
"port": {
"format": "int32",
"type": "integer"
},
"wx_pay": {
"type": "string"
}
},
"type": "object"
},
"PayResultResponse": {
"properties": {
"params": {
"type": "object"
},
"trade_no": {
"type": "string"
}
},
"type": "object"
},
"PreRegisterForm": {
"properties": {
"client_public_key": {
"type": "string"
},
"login_id": {
"type": "string"
},
"tp": {
"type": "string"
}
},
"type": "object"
},
"PrepayedResponse": {
"properties": {
"appId": {
"type": "string"
},
"nonceStr": {
"type": "string"
},
"packageValue": {
"type": "string"
},
"partnerId": {
"type": "string"
},
"prepayId": {
"type": "string"
},
"sign": {
"type": "string"
},
"timeStamp": {
"format": "int64",
"type": "integer"
}
},
"type": "object"
},
"PurchaseCouponForm": {
"properties": {
"chn": {
"type": "string"
},
"coupon_type_id": {
"type": "string"
},
"total": {
"format": "int32",
"type": "integer"
}
},
"type": "object"
},
"PurchaseMemberShipForm": {
"properties": {
"plan_key": {
"type": "string"
},
"total": {
"format": "int32",
"type": "integer"
}
},
"type": "object"
},
"PurchaseRecordItem": {
"properties": {
"amount": {
"type": "string"
},
"cancel_ts": {
"format": "int32",
"type": "integer"
},
"finish_ts": {
"format": "int32",
"type": "integer"
},
"price": {
"type": "string"
},
"record_id": {
"type": "string"
},
"state": {
"format": "int32",
"type": "integer"
},
"total": {
"format": "int32",
"type": "integer"
},
"tp": {
"format": "int32",
"type": "integer"
},
"ts": {
"format": "int32",
"type": "integer"
},
"user": {
"$ref": "#/components/schemas/RelationItem"
}
},
"type": "object"
},
"PurchaseRecordListResponse": {
"properties": {
"records": {
"type": "object"
}
},
"type": "object"
},
"PurchaseRecordResponse": {
"properties": {
"record": {
"$ref": "#/components/schemas/PurchaseRecordItem"
}
},
"type": "object"
},
"RegisterForm": {
"properties": {
"avatar": {
"type": "string"
},
"code": {
"type": "object"
},
"login_id": {
"type": "string"
},
"nickname": {
"type": "string"
},
"password": {
"type": "string"
},
"password_confirm": {
"type": "string"
}
},
"type": "object"
},
"RelationItem": {
"properties": {
"avatar": {
"type": "string"
},
"name": {
"type": "string"
},
"user_id": {
"type": "string"
}
},
"type": "object"
},
"ResetPasswordForm": {
"properties": {
"new_password": {
"type": "string"
},
"password": {
"type": "string"
}
},
"type": "object"
},
"STSResponse": {
"properties": {
"AccessKeyId": {
"type": "string"
},
"AccessKeySecret": {
"type": "string"
},
"Expiration": {
"type": "string"
},
"SecurityToken": {
"type": "string"
}
},
"type": "object"
},
"SoldCouponItem": {
"properties": {
"coupon_id": {
"type": "string"
},
"expire_ts": {
"format": "int32",
"type": "integer"
},
"qr": {
"type": "string"
}
},
"type": "object"
},
"SoldCouponTypeItem": {
"properties": {
"amount": {
"type": "string"
},
"coupon_type_id": {
"type": "string"
},
"coupons": {
"type": "object"
},
"cover": {
"type": "string"
},
"description": {
"type": "string"
},
"name": {
"type": "string"
},
"total": {
"format": "int32",
"type": "integer"
}
},
"type": "object"
},
"StatusResponse": {
"properties": {
"status": {
"type": "string"
}
},
"type": "object"
},
"TradeResponse": {
"properties": {
"check_ts": {
"format": "int32",
"type": "integer"
},
"description": {
"type": "string"
},
"out_trade_no": {
"type": "string"
},
"pay_ts": {
"format": "int32",
"type": "integer"
},
"pay_tx_no": {
"type": "string"
},
"rf_check_ts": {
"format": "int32",
"type": "integer"
},
"rf_state": {
"format": "int32",
"type": "integer"
},
"rf_ts": {
"format": "int32",
"type": "integer"
},
"state": {
"format": "int32",
"type": "integer"
},
"total_amount": {
"type": "string"
},
"tp": {
"format": "int32",
"type": "integer"
},
"ts": {
"format": "int32",
"type": "integer"
}
},
"type": "object"
},
"TsQueryExtractor": {
"properties": {
"ts": {
"format": "int32",
"type": "integer"
}
},
"type": "object"
},
"TwoIdsExt": {
"properties": {
"id1": {
"type": "string"
},
"id2": {
"type": "string"
}
},
"type": "object"
},
"UpdatingProfileForm": {
"properties": {
"avatar": {
"type": "string"
},
"background": {
"type": "string"
},
"birthday": {
"type": "string"
},
"gender": {
"type": "string"
},
"nickname": {
"type": "string"
}
},
"type": "object"
},
"UploadImageForm": {
"properties": {
"image": {
"type": "string"
},
"media_type": {
"type": "string"
}
},
"type": "object"
},
"UserActivityItem": {
"properties": {
"activity_id": {
"type": "string"
},
"addr": {
"type": "string"
},
"amount": {
"type": "string"
},
"coupon_type_id": {
"type": "string"
},
"cover": {
"type": "string"
},
"day_range": {
"type": "object"
},
"desc": {
"type": "string"
},
"man_limit": {
"format": "int32",
"type": "integer"
},
"merchant_name": {
"type": "string"
},
"name": {
"type": "string"
},
"qr_list": {
"type": "object"
},
"state": {
"format": "int32",
"type": "integer"
},
"ts": {
"format": "int32",
"type": "integer"
}
},
"type": "object"
},
"UserAuthItem": {
"properties": {
"client_public_key": {
"type": "string"
},
"server_public_key": {
"type": "string"
}
},
"type": "object"
},
"UserProfileItem": {
"properties": {
"auth": {
"$ref": "#/components/schemas/UserAuthItem"
},
"avatar": {
"type": "string"
},
"background": {
"type": "string"
},
"birthday": {
"type": "string"
},
"email": {
"type": "string"
},
"gender": {
"type": "string"
},
"merchant": {
"type": "object"
},
"mobile": {
"type": "string"
},
"nickname": {
"type": "string"
},
"ts": {
"format": "int32",
"type": "integer"
},
"user_id": {
"type": "string"
}
},
"type": "object"
},
"WeAppPayForm": {
"properties": {
"description": {
"type": "string"
},
"out_trade_no": {
"type": "string"
},
"total_amount": {
"type": "string"
}
},
"type": "object"
},
"WeJsPayForm": {
"properties": {
"description": {
"type": "string"
},
"openid": {
"type": "string"
},
"out_trade_no": {
"type": "string"
},
"total_amount": {
"type": "string"
}
},
"type": "object"
}
}
},
"info": {
"description": "Auto-generated OpenAPI specification from Axum routes",
"title": "Generated API",
"version": "1.0.0"
},
"openapi": "3.0.0",
"paths": {
"/api/": {
"get": {
"operationId": "it_works",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/StatusResponse"
}
}
},
"description": "Successful response"
}
},
"summary": "GET it_works",
"tags": [
"api"
]
}
},
"/api/activity/{file_name}": {
"get": {
"operationId": "get_activity_detail",
"parameters": [
{
"in": "path",
"name": "file_name",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ActivityDetailResponse"
}
}
},
"description": "Successful response"
}
},
"summary": "GET get_activity_detail",
"tags": [
"api"
]
}
},
"/api/activity/{file_name}/events": {
"post": {
"operationId": "post_activity_event",
"parameters": [
{
"in": "path",
"name": "file_name",
"required": true,
"schema": {
"type": "string"
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/EventForm"
}
}
}
},
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
},
"description": "Successful response"
}
},
"summary": "POST post_activity_event",
"tags": [
"api"
]
}
},
"/api/activity/{file_name}/events/newer": {
"get": {
"operationId": "activity_events_newer",
"parameters": [
{
"in": "path",
"name": "file_name",
"required": true,
"schema": {
"type": "string"
}
},
{
"in": "query",
"name": "ts",
"required": true,
"schema": {
"format": "int32",
"type": "integer"
}
}
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ActivityEventListResponse"
}
}
},
"description": "Successful response"
}
},
"summary": "GET activity_events_newer",
"tags": [
"api"
]
}
},
"/api/activity/{file_name}/events/older": {
"get": {
"operationId": "activity_events_older",
"parameters": [
{
"in": "path",
"name": "file_name",
"required": true,
"schema": {
"type": "string"
}
},
{
"in": "query",
"name": "ts",
"required": true,
"schema": {
"format": "int32",
"type": "integer"
}
}
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ActivityEventListResponse"
}
}
},
"description": "Successful response"
}
},
"summary": "GET activity_events_older",
"tags": [
"api"
]
}
},
"/api/bind_media": {
"post": {
"operationId": "bind_media",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UploadImageForm"
}
}
}
},
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AlbumResponse"
}
}
},
"description": "Successful response"
}
},
"summary": "POST bind_media",
"tags": [
"api"
]
}
},
"/api/change_password": {
"post": {
"operationId": "change_password",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ResetPasswordForm"
}
}
}
},
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
},
"description": "Successful response"
}
},
"summary": "POST change_password",
"tags": [
"api"
]
}
},
"/api/chat/merchant/{id1}/user/{id2}": {
"post": {
"operationId": "post_merchant_chat_message",
"parameters": [
{
"in": "path",
"name": "id1",
"required": true,
"schema": {
"type": "string"
}
},
{
"in": "path",
"name": "id2",
"required": true,
"schema": {
"type": "string"
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/EventForm"
}
}
}
},
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
},
"description": "Successful response"
}
},
"summary": "POST post_merchant_chat_message",
"tags": [
"api"
]
}
},
"/api/chat/merchant/{id1}/user/{id2}/newer": {
"get": {
"operationId": "get_merchant_chat_newer",
"parameters": [
{
"in": "path",
"name": "id1",
"required": true,
"schema": {
"type": "string"
}
},
{
"in": "path",
"name": "id2",
"required": true,
"schema": {
"type": "string"
}
},
{
"in": "query",
"name": "ts",
"required": true,
"schema": {
"format": "int32",
"type": "integer"
}
}
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MerchantEventListResponse"
}
}
},
"description": "Successful response"
}
},
"summary": "GET get_merchant_chat_newer",
"tags": [
"api"
]
}
},
"/api/chat/merchant/{id1}/user/{id2}/older": {
"get": {
"operationId": "get_merchant_chat_older",
"parameters": [
{
"in": "path",
"name": "id1",
"required": true,
"schema": {
"type": "string"
}
},
{
"in": "path",
"name": "id2",
"required": true,
"schema": {
"type": "string"
}
},
{
"in": "query",
"name": "ts",
"required": true,
"schema": {
"format": "int32",
"type": "integer"
}
}
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MerchantEventListResponse"
}
}
},
"description": "Successful response"
}
},
"summary": "GET get_merchant_chat_older",
"tags": [
"api"
]
}
},
"/api/check/coupon": {
"post": {
"operationId": "check_qr_coupone",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/FileNameExtractor"
}
}
}
},
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
},
"description": "Successful response"
}
},
"summary": "POST check_qr_coupone",
"tags": [
"api"
]
}
},
"/api/coupons": {
"get": {
"operationId": "get_my_coupons",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MyCouponsResponse"
}
}
},
"description": "Successful response"
}
},
"summary": "GET get_my_coupons",
"tags": [
"api"
]
}
},
"/api/main/{file_name}": {
"get": {
"operationId": "city_main",
"parameters": [
{
"in": "path",
"name": "file_name",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CityMainResponse"
}
}
},
"description": "Successful response"
}
},
"summary": "GET city_main",
"tags": [
"api"
]
}
},
"/api/media/{file_name}": {
"get": {
"operationId": "get_media_info",
"parameters": [
{
"in": "path",
"name": "file_name",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AlbumResponse"
}
}
},
"description": "Successful response"
}
},
"summary": "GET get_media_info",
"tags": [
"api"
]
}
},
"/api/merchant/activities": {
"get": {
"operationId": "merchant_activities",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ActivityListResponse"
}
}
},
"description": "Successful response"
}
},
"summary": "GET merchant_activities",
"tags": [
"api"
]
},
"post": {
"operationId": "create_activity",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CreateOrUpdateActivityForm"
}
}
}
},
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ActivityListResponse"
}
}
},
"description": "Successful response"
}
},
"summary": "POST create_activity",
"tags": [
"api"
]
}
},
"/api/merchant/activity/{file_name}/disable": {
"post": {
"operationId": "disable_activity",
"parameters": [
{
"in": "path",
"name": "file_name",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ActivityListResponse"
}
}
},
"description": "Successful response"
}
},
"summary": "POST disable_activity",
"tags": [
"api"
]
}
},
"/api/merchant/activity/{file_name}/enable": {
"post": {
"operationId": "enable_activity",
"parameters": [
{
"in": "path",
"name": "file_name",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ActivityListResponse"
}
}
},
"description": "Successful response"
}
},
"summary": "POST enable_activity",
"tags": [
"api"
]
}
},
"/api/merchant/activity/{file_name}/publish": {
"post": {
"operationId": "publish_activity",
"parameters": [
{
"in": "path",
"name": "file_name",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ActivityListResponse"
}
}
},
"description": "Successful response"
}
},
"summary": "POST publish_activity",
"tags": [
"api"
]
}
},
"/api/merchant/activity/{file_name}/update": {
"post": {
"operationId": "update_activity",
"parameters": [
{
"in": "path",
"name": "file_name",
"required": true,
"schema": {
"type": "string"
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CreateOrUpdateActivityForm"
}
}
}
},
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ActivityListResponse"
}
}
},
"description": "Successful response"
}
},
"summary": "POST update_activity",
"tags": [
"api"
]
}
},
"/api/merchant/apply": {
"post": {
"operationId": "update_merchant_apply",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MerchantRegisterForm"
}
}
}
},
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MerchantResponse"
}
}
},
"description": "Successful response"
}
},
"summary": "POST update_merchant_apply",
"tags": [
"api"
]
}
},
"/api/merchant/basic": {
"post": {
"operationId": "update_merchant_basic",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MerchantUpdateForm"
}
}
}
},
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LoginResponse"
}
}
},
"description": "Successful response"
}
},
"summary": "POST update_merchant_basic",
"tags": [
"api"
]
}
},
"/api/merchant/coupon/{file_name}": {
"get": {
"operationId": "merchant_coupon_type_by_id",
"parameters": [
{
"in": "path",
"name": "file_name",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MerchantCouponListResponse"
}
}
},
"description": "Successful response"
}
},
"summary": "GET merchant_coupon_type_by_id",
"tags": [
"api"
]
}
},
"/api/merchant/coupon/{file_name}/disable": {
"post": {
"operationId": "merchant_coupon_type_by_id_disable",
"parameters": [
{
"in": "path",
"name": "file_name",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MerchantCouponListResponse"
}
}
},
"description": "Successful response"
}
},
"summary": "POST merchant_coupon_type_by_id_disable",
"tags": [
"api"
]
}
},
"/api/merchant/coupon/{file_name}/enable": {
"post": {
"operationId": "merchant_coupon_type_by_id_enable",
"parameters": [
{
"in": "path",
"name": "file_name",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MerchantCouponListResponse"
}
}
},
"description": "Successful response"
}
},
"summary": "POST merchant_coupon_type_by_id_enable",
"tags": [
"api"
]
}
},
"/api/merchant/coupon/{file_name}/generate": {
"post": {
"operationId": "merchant_coupon_type_by_id_generate",
"parameters": [
{
"in": "path",
"name": "file_name",
"required": true,
"schema": {
"type": "string"
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MakeCouponBatchForm"
}
}
}
},
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MerchantCouponListResponse"
}
}
},
"description": "Successful response"
}
},
"summary": "POST merchant_coupon_type_by_id_generate",
"tags": [
"api"
]
}
},
"/api/merchant/coupons": {
"get": {
"operationId": "merchant_coupon_type",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MerchantCouponListResponse"
}
}
},
"description": "Successful response"
}
},
"summary": "GET merchant_coupon_type",
"tags": [
"api"
]
},
"post": {
"operationId": "create_new_coupon_type",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CouponTypeForm"
}
}
}
},
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MerchantCouponListResponse"
}
}
},
"description": "Successful response"
}
},
"summary": "POST create_new_coupon_type",
"tags": [
"api"
]
}
},
"/api/merchant/info": {
"get": {
"operationId": "merchant_info",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MerchantResponse"
}
}
},
"description": "Successful response"
}
},
"summary": "GET merchant_info",
"tags": [
"api"
]
}
},
"/api/merchant/{file_name}/main_page": {
"get": {
"operationId": "merchant_main",
"parameters": [
{
"in": "path",
"name": "file_name",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MerchantMainResponse"
}
}
},
"description": "Successful response"
}
},
"summary": "GET merchant_main",
"tags": [
"api"
]
}
},
"/api/meta": {
"get": {
"operationId": "get_meta_response",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MetaResponse"
}
}
},
"description": "Successful response"
}
},
"summary": "GET get_meta_response",
"tags": [
"api"
]
}
},
"/api/myself/profile": {
"get": {
"operationId": "get_myself_profile",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LoginResponse"
}
}
},
"description": "Successful response"
}
},
"summary": "GET get_myself_profile",
"tags": [
"api"
]
},
"post": {
"operationId": "update_myself_profile",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpdatingProfileForm"
}
}
}
},
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LoginResponse"
}
}
},
"description": "Successful response"
}
},
"summary": "POST update_myself_profile",
"tags": [
"api"
]
}
},
"/api/password_login": {
"post": {
"operationId": "password_login",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PasswordLoginForm"
}
}
}
},
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LoginResponse"
}
}
},
"description": "Successful response"
}
},
"summary": "POST password_login",
"tags": [
"api"
]
}
},
"/api/pay_result/{file_name}": {
"get": {
"operationId": "pay_result",
"parameters": [
{
"in": "path",
"name": "file_name",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/OrderResponse"
}
}
},
"description": "Successful response"
}
},
"summary": "GET pay_result",
"tags": [
"api"
]
}
},
"/api/pre_register": {
"post": {
"operationId": "pre_register",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PreRegisterForm"
}
}
}
},
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/StatusResponse"
}
}
},
"description": "Successful response"
}
},
"summary": "POST pre_register",
"tags": [
"api"
]
}
},
"/api/purchase/check/{file_name}": {
"post": {
"operationId": "check_final_pay_result",
"parameters": [
{
"in": "path",
"name": "file_name",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
},
"description": "Successful response"
}
},
"summary": "POST check_final_pay_result",
"tags": [
"api"
]
}
},
"/api/purchase/create": {
"post": {
"operationId": "buy_start",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PurchaseCouponForm"
}
}
}
},
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PayResultResponse"
}
}
},
"description": "Successful response"
}
},
"summary": "POST buy_start",
"tags": [
"api"
]
}
},
"/api/register": {
"post": {
"operationId": "register",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/RegisterForm"
}
}
}
},
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LoginResponse"
}
}
},
"description": "Successful response"
}
},
"summary": "POST register",
"tags": [
"api"
]
}
},
"/api/relation/customer": {
"get": {
"operationId": "get_my_merchant_list",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CustomerMerchantListResponse"
}
}
},
"description": "Successful response"
}
},
"summary": "GET get_my_merchant_list",
"tags": [
"api"
]
}
},
"/api/relation/merchant": {
"get": {
"operationId": "get_merchant_customer_list",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MerchantCustomerListResponse"
}
}
},
"description": "Successful response"
}
},
"summary": "GET get_merchant_customer_list",
"tags": [
"api"
]
}
},
"/api/sts": {
"get": {
"operationId": "sts_request",
"parameters": [
{
"in": "query",
"name": "file_name",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/STSResponse"
}
}
},
"description": "Successful response"
}
},
"summary": "GET sts_request",
"tags": [
"api"
]
}
},
"/app/docs": {
"get": {
"operationId": "redoc_ui",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
},
"description": "Successful response"
}
},
"summary": "GET redoc_ui"
}
},
"/app/docs/openapi.json": {
"get": {
"operationId": "openapi",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
},
"description": "Successful response"
}
},
"summary": "GET openapi"
}
},
"/app/js/rapidoc-min.js": {
"get": {
"operationId": "redoc_js",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
},
"description": "Successful response"
}
},
"summary": "GET redoc_js"
}
},
"/app/not_found": {
"get": {
"operationId": "not_found",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
},
"description": "Successful response"
}
},
"summary": "GET not_found"
}
},
"/app/status": {
"get": {
"operationId": "status",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
},
"description": "Successful response"
}
},
"summary": "GET status"
}
},
"/events/": {
"get": {
"operationId": "it_works",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/StatusResponse"
}
}
},
"description": "Successful response"
}
},
"summary": "GET it_works",
"tags": [
"event"
]
}
},
"/events/sse/{id}": {
"get": {
"operationId": "sse_handler",
"parameters": [
{
"in": "path",
"name": "id",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
},
"description": "Successful response"
}
},
"summary": "GET sse_handler",
"tags": [
"event"
]
},
"post": {
"operationId": "sent_message",
"parameters": [
{
"in": "path",
"name": "id",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/StatusResponse"
}
}
},
"description": "Successful response"
}
},
"summary": "POST sent_message",
"tags": [
"event"
]
}
},
"/test/alipay": {
"post": {
"operationId": "alipay_start",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/WeAppPayForm"
}
}
}
},
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
},
"description": "Successful response"
}
},
"summary": "POST alipay_start",
"tags": [
"test"
]
}
},
"/test/test": {
"get": {
"operationId": "it_works",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/StatusResponse"
}
}
},
"description": "Successful response"
}
},
"summary": "GET it_works",
"tags": [
"test"
]
}
}
}
}