public_sentiment/web/service/base_service.py
2024-09-18 13:41:28 +08:00

16 lines
423 B
Python

#!/usr/bin/env python
# -*- coding: utf-8 -*-
from web.dao.public_sentiment_comment_dao import PublicSentimentCommentDao
from web.dao.training_sensitive_word_dao import TrainingSensitiveWordDao
class BaseService:
"""
service层的基类
"""
def __init__(self):
self.public_sentiment_comment_dao = PublicSentimentCommentDao()
self.training_sensitive_word_dao = TrainingSensitiveWordDao()