Пример #1
0
from Api.resources import Register
from Api.common import *
from Api.customer import *
from Api.admin import *
from Api.userinfo import *

api=Register()
api.regist(RegistCode('regist_code'))
api.regist(UserResource('user'))
api.regist(Session())
api.regist(CustomerQuestionnaire('customer_questionnaire'))
api.regist(CustomerQuestionnaireState('customer_questionnaire_state'))
api.regist(CustomerQuestion('customer_question'))
api.regist(AdminQuestionnaire('admin_questionnaire'))
api.regist(QuestionnaireCommentResource('admin_questionnaire_comment'))
api.regist(UserInfoQuestionnaire('userinfo_questionnaire'))
api.regist(UserInfoJoinQuestionnaire('userinfo_join_questionnaire'))
api.regist(UserInfoAnswerQuestionnaire('userinfo_answer_questionnaire'))
Пример #2
0
from django.conf.urls import url

from Api.common import RegistCodeResource, UserResource, SessionResource
# from Api.user import *
# from Api.admin import *
# from Api.customer import *
# from Api.payment_callback import *

from Api.resources import Register
# from Api.view import *
api = Register()

api.regist(RegistCodeResource('regist_code'))
api.regist(UserResource('user'))
api.regist(SessionResource('session'))
# # api.regist(QuestionnaireResource('questionnaire'))
# api.regist(PasswordResource('password'))
Пример #3
0
from Api.resources import Register
from Api.demo import Demo

api = Register()

api.regist(Demo("demo"))
Пример #4
0
from django.conf.urls import url

from Api.user_operate import *
from Api.user_action import *
from Api.upload import *
from Api.messages import *
from Api.news import *
from Api.register_code import *
from Api.resources import Register

api = Register()
# 通用接口
api.regist(my_wish('my_wish'))
api.regist(get_wish('get_wish'))
api.regist(regist('regist'))
api.regist(SessionResource('session'))
api.regist(get_wish_info('get_wish_info'))

# comment api path
api.regist(add_comment('add_comment'))
api.regist(del_comment('del_comment'))
api.regist(get_comment_list('get_comment_list'))
api.regist(get_user_comment_list('get_user_comment_list'))

# pick api path
api.regist(add_pick('add_pick'))
api.regist(del_pick('del_pick'))
api.regist(get_user_pick_list('get_user_pick_list'))

# share api path
api.regist(add_share('add_share'))
Пример #5
0
from django.conf.urls import url

from Api.view import *
from Api.resources import Register

api = Register()
api.regist(ReigstCodeResource('regist_code'))
api.regist(UserRegistResource('regist'))
api.regist(UserLoginResource('login'))
api.regist(QuestionnaireResource('questionnaire'))
api.regist(QustionResource('requestion'))
api.regist(QuestionnaireCommentResource('questionnaire_comment'))
api.regist(QuestionnaireStateResource('questionnaire_state'))
api.regist(AnswerResource('answer'))
api.regist(AnswerItemResource('answer_item'))
api.regist(CommentQuestionnaireResource('comment_questionnaire'))
Пример #6
0
from django.conf.urls import url

from Api.common import *
from Api.user import *
from Api.admin import *
from Api.customer import *
from Api.payment_callback import *

from Api.resources import Register

api = Register()
# 通用接口
api.regist(ReigstCodeResource('regist_code'))
api.regist(UserResource('user'))
api.regist(SessionResource('session'))
api.regist(QuestionnaireResource('questionnaire'))
api.regist(PasswordResource('password'))

# 客户
api.regist(CustomerQuestionnaireResource('customer_questionnaire'))
api.regist(CustomerQuestionResource('customer_question'))
api.regist(CustomerQuestionnaireStateResource('questionnaire_state'))
api.regist(CustomerQuestionIndexResource('question_index'))
api.regist(WalletResource('wallet'))
api.regist(WalletFlowResource('walletflow'))

# 管理员
api.regist(QuestionnaireCommentResource('questionnaire_comment'))
api.regist(AdminQuestionnaireResource('admin_questionnaire'))

# 用户