def __init__(self,account_name,password): self.id = helper.dcid() myMd5 = hashlib.md5() myMd5.update(password) myMd5_Digest = myMd5.hexdigest() self.password = myMd5_Digest self.account_name = account_name
def __init__(self,company_name,cover_image,company_url, company_addr,pm_manager,company_introduce): self.id = helper.dcid() self.company_name = company_name self.cover_image = cover_image self.company_url = company_url self.company_addr = company_addr self.pm_manager = pm_manager self.company_introduce = company_introduce
def __init__( self,city,cover_image,detail_addr,phone,mail, fax_no,baidu_share): self.id = helper.dcid() self.city = city self.cover_image = cover_image self.detail_addr = detail_addr self.phone = phone self.mail = mail self.fax_no = fax_no self.baidu_share
def get_oss_sts_token(pic_type): upload_key = u'image/' + pic_type + u'/' + str(helper.dcid()) + u'.png' access_key_id, access_key_secret, security_token = current_app.oss.fetch_sts_token( ) ret_dict = { 'upload_key': upload_key, 'access_key_id': access_key_id, 'access_key_secret': access_key_secret, 'security_token': security_token } return ret_dict
def __init__(self,bg_image,title,slogan): self.id = helper.dcid() self.bg_image = bg_image self.title = title self.slogan = slogan
def __init__(self,type_name,description=None): self.id = helper.dcid() self.type_name = type_name self.description = description
def __init__(self,title,cover_image,content): self.id = helper.dcid() self.title = title self.cover_image = cover_image self.content = content