ticon-issue-opened"> Обсуждения 0 Пулл реквесты 0 Коммиты 1941 Релизы 0

Нет описания

FFIB: 765fc4a615 update 1 месяц назад
..
0001_initial.py aa31a5f59a Add kodo лет %!s(int64=8): %!d(string=назад)
0002_auto_20180104_0414.py 018d52f61d Update package django_xxx лет %!s(int64=8): %!d(string=назад)
0003_auto_20180104_0428.py 9ec76d526a TextField => CharField лет %!s(int64=8): %!d(string=назад)
0004_latestappinfo.py 018d52f61d Update package django_xxx лет %!s(int64=8): %!d(string=назад)
0005_auto_20180115_0021.py 49634dc097 Add api operator login лет %!s(int64=8): %!d(string=назад)
0006_auto_20180115_0047.py 49634dc097 Add api operator login лет %!s(int64=8): %!d(string=назад)
0007_consumeinfosubmitloginfo.py 1b1f0192f8 ConsumeInfoSubmitLogInfo лет %!s(int64=8): %!d(string=назад)
0008_auto_20180129_0422.py a77c4993f8 FloatField лет %!s(int64=8): %!d(string=назад)
0009_auto_20180129_0426.py e04f95dc5e long => lon лет %!s(int64=8): %!d(string=назад)
0010_modelinfo_integral.py 71993af1e4 Add integral for ModelInfo лет %!s(int64=8): %!d(string=назад)
0011_modelinfo_model_full_name.py 145973f8f0 Add brand_full_name for BrandInfo лет %!s(int64=8): %!d(string=назад)
0012_auto_20180401_2012.py f1260953bf Move image/url from ModelImageInfo to ModelInfo лет %!s(int64=8): %!d(string=назад)
0013_consumeinfosubmitloginfo_test_user.py e47aa7f8c4 Add field test_user лет %!s(int64=8): %!d(string=назад)
0014_auto_20180508_1058.py c7b55979c0 Add province code/name for DistributorInfo лет %!s(int64=8): %!d(string=назад)
0015_auto_20180508_1433.py d10bd672ea AdministratorInfo/BrandModelDistributorPriceInfo лет %!s(int64=8): %!d(string=назад)
0016_auto_20180508_1507.py d10bd672ea AdministratorInfo/BrandModelDistributorPriceInfo лет %!s(int64=8): %!d(string=назад)
0017_auto_20180508_1830.py 537c495621 Statistic лет %!s(int64=8): %!d(string=назад)
0018_auto_20180514_1519.py 62948fb5c3 Operator add/delete/update/list лет %!s(int64=8): %!d(string=назад)
0019_saleclerkinfo.py 137ed6dee2 Clerk add/delete/update/list лет %!s(int64=8): %!d(string=назад)
0020_auto_20180517_1819.py 2988703c52 Update лет %!s(int64=8): %!d(string=назад)
0021_auto_20180522_1100.py e7dcf47e22 SaleclerkInfo лет %!s(int64=8): %!d(string=назад)
0022_auto_20180522_1355.py b90bf186bc brand_domain лет %!s(int64=8): %!d(string=назад)
0023_auto_20180826_0448.py 3f9969cafc Support scan jancode лет %!s(int64=7): %!d(string=назад)
0024_latestappscreeninfo.py 900c3fd386 Makemigrations лет %!s(int64=7): %!d(string=назад)
0025_auto_20180917_1554.py 9c585b197e Mch migrations лет %!s(int64=7): %!d(string=назад)
0026_auto_20180930_1159.py 66a598b30c Makemigrations лет %!s(int64=7): %!d(string=назад)
0027_distributorinfo_distributor_short_name.py deb84bfcb5 Makemigrations лет %!s(int64=7): %!d(string=назад)
0028_consumeinfosubmitloginfo_dupload.py e9f8a35b9d Makemigrations лет %!s(int64=7): %!d(string=назад)
0029_auto_20181117_0052.py b8784eee8a Makemigrations лет %!s(int64=7): %!d(string=назад)
0030_auto_20190301_1402.py ff3a23ccf0 Activity лет %!s(int64=7): %!d(string=назад)
0031_activityinfo_model_uni_names.py ded4db2cda activityinfo_model_uni_names лет %!s(int64=7): %!d(string=назад)
0032_auto_20190521_1544.py 5a8859fa5e Makemigrations лет %!s(int64=7): %!d(string=назад)
0033_consumeinfosubmitloginfo_activity_id.py 3ade638ea3 Makemigrations лет %!s(int64=7): %!d(string=назад)
0034_auto_20190620_1709.py d666c88eac COUPON_EXPIRED_TIME_TUPLE лет %!s(int64=7): %!d(string=назад)
0035_auto_20190625_1443.py 219acdedb1 Add field has_used лет %!s(int64=7): %!d(string=назад)
0036_auto_20190701_1441.py 77c612316a queryusedsn лет %!s(int64=7): %!d(string=назад)
0037_auto_20190826_1537.py 8d998319f7 Makemigrations лет %!s(int64=6): %!d(string=назад)
0038_auto_20190826_1625.py 9db41fee66 default False лет %!s(int64=6): %!d(string=назад)
0039_auto_20191119_1348.py 3d0d214667 :sparkles: Member Infos лет %!s(int64=6): %!d(string=назад)
0040_modelinfo_shot_member_name.py 4ce7f5c87b :art: Member Relative APIs лет %!s(int64=6): %!d(string=назад)
0041_activityinfo_coupon_id.py a8239c077f :art: CouponInfo for coupon app лет %!s(int64=6): %!d(string=назад)
0042_auto_20200113_1832.py 212f24c882 MarketCode лет %!s(int64=6): %!d(string=назад)
0043_modelcamerabodyinfo.py 72656ceaff :art: model/cameras лет %!s(int64=6): %!d(string=назад)
0044_modelcamerabodyinfo_camera_brand_name.py 9619c195e6 :art: Makemigrations лет %!s(int64=6): %!d(string=назад)
0045_auto_20200304_1826.py dccd94c448 :art: Opt api model/cameras лет %!s(int64=6): %!d(string=назад)
0046_cameramodelinfo.py dccd94c448 :art: Opt api model/cameras лет %!s(int64=6): %!d(string=назад)
0047_auto_20200304_1848.py dccd94c448 :art: Opt api model/cameras лет %!s(int64=6): %!d(string=назад)
0048_modelcamerabodyinfo_is_important.py 43455cdf4e :art: Support is_important лет %!s(int64=6): %!d(string=назад)
0049_modelcamerabodyinfo_camera_market_time.py da799e7af6 :art: Add field camera_market_time for CameraModelInfo/ModelCameraBodyInfo лет %!s(int64=6): %!d(string=назад)
0050_cameramodelinfo_camera_market_time.py da799e7af6 :art: Add field camera_market_time for CameraModelInfo/ModelCameraBodyInfo лет %!s(int64=6): %!d(string=назад)
0051_auto_20200314_2340.py 7dc0b7fc6b :art: Makemigrations лет %!s(int64=6): %!d(string=назад)
0052_consumeinfosubmitloginfo_code_version.py 03631cb847 add code_version лет %!s(int64=6): %!d(string=назад)
0053_auto_20200407_1118.py 608bdf8508 makemigrations лет %!s(int64=6): %!d(string=назад)
0054_auto_20200411_2143.py 58c38a0546 整理 优惠券 лет %!s(int64=6): %!d(string=назад)
0055_auto_20200601_1634.py 89c3cefcc7 saleclerk migrate лет %!s(int64=6): %!d(string=назад)
0056_auto_20200601_1640.py 3872355991 add department_name лет %!s(int64=6): %!d(string=назад)
0057_auto_20200602_1403.py 11df57b63d support qy login лет %!s(int64=6): %!d(string=назад)
0058_auto_20201202_1203.py 6a9e324f6f :art: Re Makemigrations лет %!s(int64=5): %!d(string=назад)
0059_auto_20201221_1115.py 4ba79f76cd 后台管理,添加运营人员角色 лет %!s(int64=5): %!d(string=назад)
0060_modelinfo_is_show_shot.py 45f886651e 添加 is_show_shot 用于控制是否在前端显示 лет %!s(int64=5): %!d(string=назад)
0061_consumeinfosubmitloginfo_integral.py 39290e111b ConsumeInfoSubmitLogInfo 记录用户积分 лет %!s(int64=5): %!d(string=назад)
0062_distributorinfo_office.py 8dcde2c80c 销售员提交新增事务所和销售担当,以及经销商ID лет %!s(int64=4): %!d(string=назад)
0063_auto_20210915_1653.py 414cc1ada2 :art: back_express_name / back_tracking_number лет %!s(int64=4): %!d(string=назад)
0064_alter_modelinfo_display.py 28f8bc3cb9 :art: Models update for tenancy лет %!s(int64=3): %!d(string=назад)
0065_auto_20221118_1657.py 7f990a3af6 增加型号卡口, лет %!s(int64=3): %!d(string=назад)
0066_auto_20230208_1344.py ed0e1dba9a 清除一些无用字段 лет %!s(int64=3): %!d(string=назад)
0067_consumeshotunbindinginfo.py 0a9dd97a7e 增加解绑功能 лет %!s(int64=3): %!d(string=назад)
0068_alter_consumeshotunbindinginfo_reason.py 0a9dd97a7e 增加解绑功能 лет %!s(int64=3): %!d(string=назад)
0069_auto_20230302_1754.py c25c1f86d3 处理解绑后,再次扫码,不发放相关权益 лет %!s(int64=3): %!d(string=назад)
0070_alter_administratorinfo_admin_type.py 765fc4a615 update 1 месяц назад
__init__.py aa31a5f59a Add kodo лет %!s(int64=8): %!d(string=назад)
kodo - Gogs: Go Git Service

Нет описания

models.py 6.5KB

    # -*- coding: utf-8 -*- from django.db import models from django.utils.translation import ugettext_lazy as _ from django_models_ext import BaseModelMixin, upload_file_url, upload_path from kodo.basemodels import PaiaiSrcMixin, PlatformMixin, VersionMixin class LatestAppInfo(BaseModelMixin, PaiaiSrcMixin): latest_adr_version_code = models.IntegerField(_(u'latest_adr_version_code'), default=0, help_text=u'最新安卓版本号') latest_adr_version_name = models.CharField(_(u'latest_adr_version_name'), max_length=16, blank=True, null=True, help_text=u'最新安卓版本名') latest_adr_app = models.FileField(_(u'latest_adr_app'), upload_to=upload_path, blank=True, null=True, help_text=u'最新版安卓 APP') latest_adr_url = models.URLField(_(u'latest_adr_url'), max_length=255, blank=True, null=True, help_text=u'最新版 APP 链接') latest_ios_version_code = models.IntegerField(_(u'latest_ios_version_code'), default=0, help_text=u'最新 iOS 版本号') latest_ios_version_name = models.CharField(_(u'latest_ios_version_name'), max_length=16, blank=True, null=True, help_text=u'最新 iOS 版本名') latest_ios_url = models.URLField(_(u'latest_ios_url'), max_length=255, blank=True, null=True, help_text=u'最新版 iOS 链接') class Meta: verbose_name = _('latestappinfo') verbose_name_plural = _('latestappinfo') def __unicode__(self): return u'{0.pk}'.format(self) @property def final_latest_adr_url(self): return self.latest_adr_url or upload_file_url(self.latest_adr_app) @property def data(self): return { 'latest_adr_version_code': self.latest_adr_version_code, 'latest_adr_version_name': self.latest_adr_version_name, 'latest_adr_url': self.final_latest_adr_url, 'latest_ios_version_code': self.latest_ios_version_code, 'latest_ios_version_name': self.latest_ios_version_name, 'latest_ios_url': self.latest_ios_url, } class PatchInfo(BaseModelMixin, PlatformMixin, PaiaiSrcMixin): version = models.CharField(_(u'version'), max_length=16, blank=True, null=True, help_text=u'版本(1.0.0)') patch = models.FileField(_(u'patch'), upload_to=upload_path, blank=True, null=True, help_text=u'补丁') class Meta: verbose_name = _('patchinfo') verbose_name_plural = _('patchinfo') def __unicode__(self): return u'{0.pk}'.format(self) @property def patch_url(self): return upload_file_url(self.patch) @property def data(self): return { 'patch_url': self.patch_url, } class APPSettingsInfo(BaseModelMixin, PlatformMixin, PaiaiSrcMixin): channel = models.CharField(_(u'channel'), max_length=16, blank=True, null=True, help_text=u'渠道') version = models.CharField(_(u'version'), max_length=16, blank=True, null=True, help_text=u'版本(1.0.0)') online = models.BooleanField(_(u'online'), default=True, help_text=u'是否上线') class Meta: verbose_name = _('appsettingsinfo') verbose_name_plural = _('appsettingsinfo') def __unicode__(self): return u'{0.pk}'.format(self) @property def data(self): return { 'online': self.online, } class SplashInfo(BaseModelMixin, PaiaiSrcMixin): splash_image = models.ImageField(_(u'splash_image'), upload_to=upload_path, blank=True, null=True, help_text=u'启动页面图片') spalash_image_airtime = models.DateTimeField(_(u'spalash_image_airtime'), blank=True, null=True, help_text=u'启动页面图片开始日期') spalash_image_deadline = models.DateTimeField(_(u'spalash_image_deadline'), blank=True, null=True, help_text=u'启动页面图片截止日期') class Meta: verbose_name = _('splashinfo') verbose_name_plural = _('splashinfo') def __unicode__(self): return u'{0.pk}'.format(self) @property def splash_image_url(self): return upload_file_url(self.splash_image) @property def data(self): return { 'splash_image_url': self.splash_image_url, 'spalash_image_airtime': self.spalash_image_airtime, 'spalash_image_deadline': self.spalash_image_deadline, } class FeedbackInfo(BaseModelMixin, PaiaiSrcMixin): user_id = models.CharField(_(u'user_id'), max_length=32, blank=True, null=True, help_text=u'用户唯一标识') feedback = models.TextField(_(u'feedback'), blank=True, null=True, help_text=u'用户反馈') class Meta: verbose_name = _('feedbackinfo') verbose_name_plural = _('feedbackinfo') def __unicode__(self): return u'{0.pk}'.format(self) class GuestEntranceControlInfo(BaseModelMixin, PlatformMixin, VersionMixin, PaiaiSrcMixin): class Meta: verbose_name = _('guestentrancecontrolinfo') verbose_name_plural = _('guestentrancecontrolinfo') def __unicode__(self): return u'{0.pk}'.format(self) @property def data(self): return { 'platform': self.platform, 'min_adr': self.min_adr, 'min_ios': self.min_ios, 'max_adr': self.max_adr, 'max_ios': self.max_ios, } class BoxProgramVersionInfo(BaseModelMixin): srv_version_code = models.IntegerField(_(u'srv_version_code'), default=0, help_text=u'Box Server 版本号') srv_version_name = models.CharField(_(u'srv_version_name'), max_length=255, blank=True, null=True, help_text=u'Box Server 版本名') srv_sha1 = models.CharField(_(u'srv_sha1'), max_length=255, blank=True, null=True, help_text=u'Box Server Commit SHA1') proc_version_code = models.IntegerField(_(u'proc_version_code'), default=0, help_text=u'Box Proc 版本号') proc_version_name = models.CharField(_(u'proc_version_name'), max_length=255, blank=True, null=True, help_text=u'Box Proc 版本名') proc_sha1 = models.CharField(_(u'proc_sha1'), max_length=255, blank=True, null=True, help_text=u'Box Proc Commit SHA1') class Meta: verbose_name = _('boxprogramversioninfo') verbose_name_plural = _('boxprogramversioninfo') def __unicode__(self): return u'{0.pk}'.format(self) @property def data(self): return { 'srv_version_code': self.srv_version_code, 'srv_version_name': self.srv_version_name, 'srv_sha1': self.srv_sha1, 'proc_version_code': self.proc_version_code, 'proc_version_name': self.proc_version_name, 'proc_sha1': self.proc_sha1, }