subscription routes
This commit is contained in:
@@ -143,6 +143,13 @@ def myproduct_dash():
|
|||||||
return response
|
return response
|
||||||
|
|
||||||
# /panel/myproduct/subscription
|
# /panel/myproduct/subscription
|
||||||
|
@api.route("/panel/myproduct/subscription", methods=["POST"])
|
||||||
|
def myproduct_subscription():
|
||||||
|
data = request.get_json()
|
||||||
|
logger.info(f"Route MyProduct Data ==>>>> {data}")
|
||||||
|
response = MyProductsService.process_subscription(data)
|
||||||
|
return response
|
||||||
|
|
||||||
|
|
||||||
# /panel/account/calendar
|
# /panel/account/calendar
|
||||||
@api.route("/panel/account/calendar", methods=["POST"])
|
@api.route("/panel/account/calendar", methods=["POST"])
|
||||||
|
|||||||
@@ -16,6 +16,17 @@ from app.config import Config
|
|||||||
|
|
||||||
class MyProductsService(BaseService):
|
class MyProductsService(BaseService):
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
|
def process_subscription(data):
|
||||||
|
response_data = {
|
||||||
|
"subscription": "No ready",
|
||||||
|
"member_id": 1,
|
||||||
|
"uid": '',
|
||||||
|
}
|
||||||
|
return ResponseHelper.success(data=response_data)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def process_request(data):
|
def process_request(data):
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user