From bf13e91d01d11c029e954d2a09c51b3aa3d62cf3 Mon Sep 17 00:00:00 2001 From: shy Date: Tue, 24 Sep 2024 13:11:23 +0800 Subject: [PATCH] add some --- src/api/20240724-community.go | 69 ++++++++ src/api/20240724-education.go | 59 +++++++ src/api/20240724-enterprise.go | 74 +++++++++ src/api/20240903-operation.go | 76 +++++++++ src/api/space.go | 274 +++++++++++++++++++++++++++++++ src/jiaocaiziliao/model/model.go | 6 + src/jiaowuxitong/model/model.go | 39 +++-- src/jiaowuxitong/portal.json | 1 + src/jiaowuxitong/school.go | 35 +++- src/jiaowuxitong/school.js | 18 ++ 10 files changed, 629 insertions(+), 22 deletions(-) create mode 100644 src/api/20240724-community.go create mode 100644 src/api/20240724-education.go create mode 100644 src/api/20240724-enterprise.go create mode 100644 src/api/20240903-operation.go create mode 100644 src/api/space.go create mode 100644 src/jiaowuxitong/school.js diff --git a/src/api/20240724-community.go b/src/api/20240724-community.go new file mode 100644 index 0000000..18b4148 --- /dev/null +++ b/src/api/20240724-community.go @@ -0,0 +1,69 @@ +package api + +const GONGANXITONG_PORTAL = "web.team.gonganxitong.portal" +const GONGANXITONG_ALLOW = "web.team.gonganxitong.allow" +const GONGANXITONG_APPLY = "web.team.gonganxitong.apply" +const GONGANXITONG_DOMAIN = "web.team.gonganxitong.domain" +const GONGANXITONG_EMAIL = "web.team.gonganxitong.email" +const GONGANXITONG_EVENT = "web.team.gonganxitong.event" +const GONGANXITONG_MARKET = "web.team.gonganxitong.market" +const GONGANXITONG_MEMBER = "web.team.gonganxitong.member" +const GONGANXITONG_MESSAGE = "web.team.gonganxitong.message" +const GONGANXITONG_NOTICE = "web.team.gonganxitong.notice" +const GONGANXITONG_QRCODE = "web.team.gonganxitong.qrcode" +const GONGANXITONG_RECENT = "web.team.gonganxitong.recent" +const GONGANXITONG_SERVICE = "web.team.gonganxitong.service" +const GONGANXITONG_SETTING = "web.team.gonganxitong.setting" +const GONGANXITONG_SUPPORT = "web.team.gonganxitong.support" +const HUODONGZUZHI_ACTIVITY = "web.team.huodongzuzhi.activity" +const HUODONGZUZHI_PORTAL = "web.team.huodongzuzhi.portal" +const HUODONGZUZHI_ALLOW = "web.team.huodongzuzhi.allow" +const HUODONGZUZHI_APPLY = "web.team.huodongzuzhi.apply" +const HUODONGZUZHI_EVENT = "web.team.huodongzuzhi.event" +const HUODONGZUZHI_MARKET = "web.team.huodongzuzhi.market" +const HUODONGZUZHI_MEMBER = "web.team.huodongzuzhi.member" +const HUODONGZUZHI_MESSAGE = "web.team.huodongzuzhi.message" +const HUODONGZUZHI_NOTICE = "web.team.huodongzuzhi.notice" +const HUODONGZUZHI_QRCODE = "web.team.huodongzuzhi.qrcode" +const HUODONGZUZHI_RECENT = "web.team.huodongzuzhi.recent" +const HUODONGZUZHI_SERVICE = "web.team.huodongzuzhi.service" +const HUODONGZUZHI_SETTING = "web.team.huodongzuzhi.setting" +const HUODONGZUZHI_SUPPORT = "web.team.huodongzuzhi.support" +const RENZHENGSHOUQUAN_PORTAL = "web.team.renzhengshouquan.portal" +const RENZHENGSHOUQUAN_ALLOW = "web.team.renzhengshouquan.allow" +const RENZHENGSHOUQUAN_APPLY = "web.team.renzhengshouquan.apply" +const RENZHENGSHOUQUAN_AUTH = "web.team.renzhengshouquan.auth" +const RENZHENGSHOUQUAN_CERT = "web.team.renzhengshouquan.cert" +const RENZHENGSHOUQUAN_DOMAIN = "web.team.renzhengshouquan.domain" +const RENZHENGSHOUQUAN_EVENT = "web.team.renzhengshouquan.event" +const RENZHENGSHOUQUAN_MARKET = "web.team.renzhengshouquan.market" +const RENZHENGSHOUQUAN_MEMBER = "web.team.renzhengshouquan.member" +const RENZHENGSHOUQUAN_MESSAGE = "web.team.renzhengshouquan.message" +const RENZHENGSHOUQUAN_NOTICE = "web.team.renzhengshouquan.notice" +const RENZHENGSHOUQUAN_PROFILE = "web.team.renzhengshouquan.profile" +const RENZHENGSHOUQUAN_QRCODE = "web.team.renzhengshouquan.qrcode" +const RENZHENGSHOUQUAN_RECENT = "web.team.renzhengshouquan.recent" +const RENZHENGSHOUQUAN_SERVICE = "web.team.renzhengshouquan.service" +const RENZHENGSHOUQUAN_SETTING = "web.team.renzhengshouquan.setting" +const RENZHENGSHOUQUAN_SUPPORT = "web.team.renzhengshouquan.support" +const YUEHAOXITONG_PORTAL = "web.team.yuehaoxitong.portal" +const YUEHAOXITONG_ALLOW = "web.team.yuehaoxitong.allow" +const YUEHAOXITONG_APPLY = "web.team.yuehaoxitong.apply" +const YUEHAOXITONG_CALL = "web.team.yuehaoxitong.call" +const YUEHAOXITONG_EVENT = "web.team.yuehaoxitong.event" +const YUEHAOXITONG_HISTORY = "web.team.yuehaoxitong.history" +const YUEHAOXITONG_MARKET = "web.team.yuehaoxitong.market" +const YUEHAOXITONG_MEMBER = "web.team.yuehaoxitong.member" +const YUEHAOXITONG_MESSAGE = "web.team.yuehaoxitong.message" +const YUEHAOXITONG_NOTICE = "web.team.yuehaoxitong.notice" +const YUEHAOXITONG_OPEN = "web.team.yuehaoxitong.open" +const YUEHAOXITONG_PLAN = "web.team.yuehaoxitong.plan" +const YUEHAOXITONG_QRCODE = "web.team.yuehaoxitong.qrcode" +const YUEHAOXITONG_RECENT = "web.team.yuehaoxitong.recent" +const YUEHAOXITONG_RECEPTION = "web.team.yuehaoxitong.reception" +const YUEHAOXITONG_SCHEDULE = "web.team.yuehaoxitong.schedule" +const YUEHAOXITONG_SERVICE = "web.team.yuehaoxitong.service" +const YUEHAOXITONG_SETTING = "web.team.yuehaoxitong.setting" +const YUEHAOXITONG_SUPPORT = "web.team.yuehaoxitong.support" +const YUEHAOXITONG_TAKE = "web.team.yuehaoxitong.take" +const YUEHAOXITONG_VOLUME = "web.team.yuehaoxitong.volume" diff --git a/src/api/20240724-education.go b/src/api/20240724-education.go new file mode 100644 index 0000000..110fed7 --- /dev/null +++ b/src/api/20240724-education.go @@ -0,0 +1,59 @@ +package api + +const JIAOCAIZILIAO_PORTAL = "web.team.jiaocaiziliao.portal" +const JIAOCAIZILIAO_ALLOW = "web.team.jiaocaiziliao.allow" +const JIAOCAIZILIAO_APPLY = "web.team.jiaocaiziliao.apply" +const JIAOCAIZILIAO_DOCUMENT = "web.team.jiaocaiziliao.document" +const JIAOCAIZILIAO_EVENT = "web.team.jiaocaiziliao.event" +const JIAOCAIZILIAO_MARKET = "web.team.jiaocaiziliao.market" +const JIAOCAIZILIAO_MEMBER = "web.team.jiaocaiziliao.member" +const JIAOCAIZILIAO_MESSAGE = "web.team.jiaocaiziliao.message" +const JIAOCAIZILIAO_NOTICE = "web.team.jiaocaiziliao.notice" +const JIAOCAIZILIAO_OFFICIAL = "web.team.jiaocaiziliao.official" +const JIAOCAIZILIAO_QRCODE = "web.team.jiaocaiziliao.qrcode" +const JIAOCAIZILIAO_RECENT = "web.team.jiaocaiziliao.recent" +const JIAOCAIZILIAO_SERVICE = "web.team.jiaocaiziliao.service" +const JIAOCAIZILIAO_SETTING = "web.team.jiaocaiziliao.setting" +const JIAOCAIZILIAO_SUPPORT = "web.team.jiaocaiziliao.support" +const JIAOWUXITONG_PORTAL = "web.team.jiaowuxitong.portal" +const JIAOWUXITONG_ALLOW = "web.team.jiaowuxitong.allow" +const JIAOWUXITONG_APPLY = "web.team.jiaowuxitong.apply" +const JIAOWUXITONG_EVENT = "web.team.jiaowuxitong.event" +const JIAOWUXITONG_HOMEWORK = "web.team.jiaowuxitong.homework" +const JIAOWUXITONG_MARKET = "web.team.jiaowuxitong.market" +const JIAOWUXITONG_MEMBER = "web.team.jiaowuxitong.member" +const JIAOWUXITONG_MESSAGE = "web.team.jiaowuxitong.message" +const JIAOWUXITONG_NOTICE = "web.team.jiaowuxitong.notice" +const JIAOWUXITONG_QRCODE = "web.team.jiaowuxitong.qrcode" +const JIAOWUXITONG_RECENT = "web.team.jiaowuxitong.recent" +const JIAOWUXITONG_SERVICE = "web.team.jiaowuxitong.service" +const JIAOWUXITONG_SETTING = "web.team.jiaowuxitong.setting" +const JIAOWUXITONG_SUPPORT = "web.team.jiaowuxitong.support" +const KAOSHIXITONG_PORTAL = "web.team.kaoshixitong.portal" +const KAOSHIXITONG_ALLOW = "web.team.kaoshixitong.allow" +const KAOSHIXITONG_APPLY = "web.team.kaoshixitong.apply" +const KAOSHIXITONG_EVENT = "web.team.kaoshixitong.event" +const KAOSHIXITONG_MARKET = "web.team.kaoshixitong.market" +const KAOSHIXITONG_MEMBER = "web.team.kaoshixitong.member" +const KAOSHIXITONG_MESSAGE = "web.team.kaoshixitong.message" +const KAOSHIXITONG_NOTICE = "web.team.kaoshixitong.notice" +const KAOSHIXITONG_QRCODE = "web.team.kaoshixitong.qrcode" +const KAOSHIXITONG_QUESTION = "web.team.kaoshixitong.question" +const KAOSHIXITONG_RECENT = "web.team.kaoshixitong.recent" +const KAOSHIXITONG_SERVICE = "web.team.kaoshixitong.service" +const KAOSHIXITONG_SETTING = "web.team.kaoshixitong.setting" +const KAOSHIXITONG_SUPPORT = "web.team.kaoshixitong.support" +const ZAIXIANKETANG_PORTAL = "web.team.zaixianketang.portal" +const ZAIXIANKETANG_ALLOW = "web.team.zaixianketang.allow" +const ZAIXIANKETANG_APPLY = "web.team.zaixianketang.apply" +const ZAIXIANKETANG_EVENT = "web.team.zaixianketang.event" +const ZAIXIANKETANG_LESSON = "web.team.zaixianketang.lesson" +const ZAIXIANKETANG_MARKET = "web.team.zaixianketang.market" +const ZAIXIANKETANG_MEMBER = "web.team.zaixianketang.member" +const ZAIXIANKETANG_MESSAGE = "web.team.zaixianketang.message" +const ZAIXIANKETANG_NOTICE = "web.team.zaixianketang.notice" +const ZAIXIANKETANG_QRCODE = "web.team.zaixianketang.qrcode" +const ZAIXIANKETANG_RECENT = "web.team.zaixianketang.recent" +const ZAIXIANKETANG_SERVICE = "web.team.zaixianketang.service" +const ZAIXIANKETANG_SETTING = "web.team.zaixianketang.setting" +const ZAIXIANKETANG_SUPPORT = "web.team.zaixianketang.support" diff --git a/src/api/20240724-enterprise.go b/src/api/20240724-enterprise.go new file mode 100644 index 0000000..3a17f60 --- /dev/null +++ b/src/api/20240724-enterprise.go @@ -0,0 +1,74 @@ +package api + +const GONGYINGLIAN_PORTAL = "web.team.gongyinglian.portal" +const GONGYINGLIAN_ALLOW = "web.team.gongyinglian.allow" +const GONGYINGLIAN_APPLY = "web.team.gongyinglian.apply" +const GONGYINGLIAN_BRAND = "web.team.gongyinglian.brand" +const GONGYINGLIAN_EVENT = "web.team.gongyinglian.event" +const GONGYINGLIAN_EXPENSE = "web.team.gongyinglian.expense" +const GONGYINGLIAN_EXPRESS = "web.team.gongyinglian.express" +const GONGYINGLIAN_GOODS = "web.team.gongyinglian.goods" +const GONGYINGLIAN_LOAN = "web.team.gongyinglian.loan" +const GONGYINGLIAN_MARKET = "web.team.gongyinglian.market" +const GONGYINGLIAN_MATERIAL = "web.team.gongyinglian.material" +const GONGYINGLIAN_MEMBER = "web.team.gongyinglian.member" +const GONGYINGLIAN_MESSAGE = "web.team.gongyinglian.message" +const GONGYINGLIAN_NOTICE = "web.team.gongyinglian.notice" +const GONGYINGLIAN_ORDER = "web.team.gongyinglian.order" +const GONGYINGLIAN_PAYMENT = "web.team.gongyinglian.payment" +const GONGYINGLIAN_PRODUCE = "web.team.gongyinglian.produce" +const GONGYINGLIAN_PRODUCT = "web.team.gongyinglian.product" +const GONGYINGLIAN_PURCHASE = "web.team.gongyinglian.purchase" +const GONGYINGLIAN_QRCODE = "web.team.gongyinglian.qrcode" +const GONGYINGLIAN_QUALITY = "web.team.gongyinglian.quality" +const GONGYINGLIAN_RECENT = "web.team.gongyinglian.recent" +const GONGYINGLIAN_REFUND = "web.team.gongyinglian.refund" +const GONGYINGLIAN_RETURN = "web.team.gongyinglian.return" +const GONGYINGLIAN_SELL = "web.team.gongyinglian.sell" +const GONGYINGLIAN_SERVICE = "web.team.gongyinglian.service" +const GONGYINGLIAN_SETTING = "web.team.gongyinglian.setting" +const GONGYINGLIAN_SHOP = "web.team.gongyinglian.shop" +const GONGYINGLIAN_SUPPORT = "web.team.gongyinglian.support" +const GONGYINGLIAN_WAREHOUSE = "web.team.gongyinglian.warehouse" +const GUANLIXITONG_PORTAL = "web.team.guanlixitong.portal" +const GUANLIXITONG_ALLOW = "web.team.guanlixitong.allow" +const GUANLIXITONG_APPLY = "web.team.guanlixitong.apply" +const GUANLIXITONG_EVENT = "web.team.guanlixitong.event" +const GUANLIXITONG_MARKET = "web.team.guanlixitong.market" +const GUANLIXITONG_MEMBER = "web.team.guanlixitong.member" +const GUANLIXITONG_MESSAGE = "web.team.guanlixitong.message" +const GUANLIXITONG_NOTICE = "web.team.guanlixitong.notice" +const GUANLIXITONG_QRCODE = "web.team.guanlixitong.qrcode" +const GUANLIXITONG_RECENT = "web.team.guanlixitong.recent" +const GUANLIXITONG_SERVICE = "web.team.guanlixitong.service" +const GUANLIXITONG_SETTING = "web.team.guanlixitong.setting" +const GUANLIXITONG_SUPPORT = "web.team.guanlixitong.support" +const GUANLIXITONG_TARGET = "web.team.guanlixitong.target" +const SHICHANGYINGXIAO_PORTAL = "web.team.shichangyingxiao.portal" +const SHICHANGYINGXIAO_ALLOW = "web.team.shichangyingxiao.allow" +const SHICHANGYINGXIAO_APPLY = "web.team.shichangyingxiao.apply" +const SHICHANGYINGXIAO_EVENT = "web.team.shichangyingxiao.event" +const SHICHANGYINGXIAO_MARKET = "web.team.shichangyingxiao.market" +const SHICHANGYINGXIAO_MEMBER = "web.team.shichangyingxiao.member" +const SHICHANGYINGXIAO_MESSAGE = "web.team.shichangyingxiao.message" +const SHICHANGYINGXIAO_NOTICE = "web.team.shichangyingxiao.notice" +const SHICHANGYINGXIAO_PROMOTION = "web.team.shichangyingxiao.promotion" +const SHICHANGYINGXIAO_QRCODE = "web.team.shichangyingxiao.qrcode" +const SHICHANGYINGXIAO_RECENT = "web.team.shichangyingxiao.recent" +const SHICHANGYINGXIAO_SERVICE = "web.team.shichangyingxiao.service" +const SHICHANGYINGXIAO_SETTING = "web.team.shichangyingxiao.setting" +const SHICHANGYINGXIAO_SUPPORT = "web.team.shichangyingxiao.support" +const ZIJINLIAN_PORTAL = "web.team.zijinlian.portal" +const ZIJINLIAN_ALLOW = "web.team.zijinlian.allow" +const ZIJINLIAN_APPLY = "web.team.zijinlian.apply" +const ZIJINLIAN_EVENT = "web.team.zijinlian.event" +const ZIJINLIAN_INVESTMENT = "web.team.zijinlian.investment" +const ZIJINLIAN_MARKET = "web.team.zijinlian.market" +const ZIJINLIAN_MEMBER = "web.team.zijinlian.member" +const ZIJINLIAN_MESSAGE = "web.team.zijinlian.message" +const ZIJINLIAN_NOTICE = "web.team.zijinlian.notice" +const ZIJINLIAN_QRCODE = "web.team.zijinlian.qrcode" +const ZIJINLIAN_RECENT = "web.team.zijinlian.recent" +const ZIJINLIAN_SERVICE = "web.team.zijinlian.service" +const ZIJINLIAN_SETTING = "web.team.zijinlian.setting" +const ZIJINLIAN_SUPPORT = "web.team.zijinlian.support" diff --git a/src/api/20240903-operation.go b/src/api/20240903-operation.go new file mode 100644 index 0000000..a145eb0 --- /dev/null +++ b/src/api/20240903-operation.go @@ -0,0 +1,76 @@ +package api + +const DASHBOARD_PORTAL = "web.team.dashboard.portal" +const DASHBOARD_ALLOW = "web.team.dashboard.allow" +const DASHBOARD_APPLY = "web.team.dashboard.apply" +const DASHBOARD_DASHBOARD = "web.team.dashboard.dashboard" +const DASHBOARD_EVENT = "web.team.dashboard.event" +const DASHBOARD_MARKET = "web.team.dashboard.market" +const DASHBOARD_MEMBER = "web.team.dashboard.member" +const DASHBOARD_MESSAGE = "web.team.dashboard.message" +const DASHBOARD_NOTICE = "web.team.dashboard.notice" +const DASHBOARD_QRCODE = "web.team.dashboard.qrcode" +const DASHBOARD_RECENT = "web.team.dashboard.recent" +const DASHBOARD_SERVICE = "web.team.dashboard.service" +const DASHBOARD_SETTING = "web.team.dashboard.setting" +const DASHBOARD_SUMMARY = "web.team.dashboard.summary" +const DASHBOARD_SUPPORT = "web.team.dashboard.support" +const DEVELOPMENT_PORTAL = "web.team.development.portal" +const DEVELOPMENT_ALLOW = "web.team.development.allow" +const DEVELOPMENT_APPLY = "web.team.development.apply" +const DEVELOPMENT_EVENT = "web.team.development.event" +const DEVELOPMENT_MARKET = "web.team.development.market" +const DEVELOPMENT_MEMBER = "web.team.development.member" +const DEVELOPMENT_MESSAGE = "web.team.development.message" +const DEVELOPMENT_NOTICE = "web.team.development.notice" +const DEVELOPMENT_QRCODE = "web.team.development.qrcode" +const DEVELOPMENT_RECENT = "web.team.development.recent" +const DEVELOPMENT_SERVICE = "web.team.development.service" +const DEVELOPMENT_SETTING = "web.team.development.setting" +const DEVELOPMENT_SUPPORT = "web.team.development.support" +const DEVELOPMENT_VERSION = "web.team.development.version" +const OPERATION_PORTAL = "web.team.operation.portal" +const OPERATION_ALLOW = "web.team.operation.allow" +const OPERATION_APPLY = "web.team.operation.apply" +const OPERATION_EVENT = "web.team.operation.event" +const OPERATION_MARKET = "web.team.operation.market" +const OPERATION_MEMBER = "web.team.operation.member" +const OPERATION_MESSAGE = "web.team.operation.message" +const OPERATION_NOTICE = "web.team.operation.notice" +const OPERATION_QRCODE = "web.team.operation.qrcode" +const OPERATION_RECENT = "web.team.operation.recent" +const OPERATION_RELEASE = "web.team.operation.release" +const OPERATION_SERVICE = "web.team.operation.service" +const OPERATION_SETTING = "web.team.operation.setting" +const OPERATION_SUPPORT = "web.team.operation.support" +const PRODUCTION_PORTAL = "web.team.production.portal" +const PRODUCTION_ALLOW = "web.team.production.allow" +const PRODUCTION_APPLY = "web.team.production.apply" +const PRODUCTION_CASE = "web.team.production.case" +const PRODUCTION_EVENT = "web.team.production.event" +const PRODUCTION_ISSUE = "web.team.production.issue" +const PRODUCTION_MARKET = "web.team.production.market" +const PRODUCTION_MEMBER = "web.team.production.member" +const PRODUCTION_MESSAGE = "web.team.production.message" +const PRODUCTION_NOTICE = "web.team.production.notice" +const PRODUCTION_PLAN = "web.team.production.plan" +const PRODUCTION_QRCODE = "web.team.production.qrcode" +const PRODUCTION_RECENT = "web.team.production.recent" +const PRODUCTION_SERVICE = "web.team.production.service" +const PRODUCTION_SETTING = "web.team.production.setting" +const PRODUCTION_SUPPORT = "web.team.production.support" +const PRODUCTION_TASK = "web.team.production.task" +const STORAGE_PORTAL = "web.team.storage.portal" +const STORAGE_ALLOW = "web.team.storage.allow" +const STORAGE_APPLY = "web.team.storage.apply" +const STORAGE_EVENT = "web.team.storage.event" +const STORAGE_FILE = "web.team.storage.file" +const STORAGE_MARKET = "web.team.storage.market" +const STORAGE_MEMBER = "web.team.storage.member" +const STORAGE_MESSAGE = "web.team.storage.message" +const STORAGE_NOTICE = "web.team.storage.notice" +const STORAGE_QRCODE = "web.team.storage.qrcode" +const STORAGE_RECENT = "web.team.storage.recent" +const STORAGE_SERVICE = "web.team.storage.service" +const STORAGE_SETTING = "web.team.storage.setting" +const STORAGE_SUPPORT = "web.team.storage.support" diff --git a/src/api/space.go b/src/api/space.go new file mode 100644 index 0000000..5a58aed --- /dev/null +++ b/src/api/space.go @@ -0,0 +1,274 @@ +package api + +var Trans = map[string]string{ + "web.team.gonganxitong.portal": "20240724-community", + "web.team.gonganxitong.allow": "20240724-community", + "web.team.gonganxitong.apply": "20240724-community", + "web.team.gonganxitong.domain": "20240724-community", + "web.team.gonganxitong.email": "20240724-community", + "web.team.gonganxitong.event": "20240724-community", + "web.team.gonganxitong.market": "20240724-community", + "web.team.gonganxitong.member": "20240724-community", + "web.team.gonganxitong.message": "20240724-community", + "web.team.gonganxitong.notice": "20240724-community", + "web.team.gonganxitong.qrcode": "20240724-community", + "web.team.gonganxitong.recent": "20240724-community", + "web.team.gonganxitong.service": "20240724-community", + "web.team.gonganxitong.setting": "20240724-community", + "web.team.gonganxitong.support": "20240724-community", + "web.team.huodongzuzhi.activity": "20240724-community", + "web.team.huodongzuzhi.portal": "20240724-community", + "web.team.huodongzuzhi.allow": "20240724-community", + "web.team.huodongzuzhi.apply": "20240724-community", + "web.team.huodongzuzhi.event": "20240724-community", + "web.team.huodongzuzhi.market": "20240724-community", + "web.team.huodongzuzhi.member": "20240724-community", + "web.team.huodongzuzhi.message": "20240724-community", + "web.team.huodongzuzhi.notice": "20240724-community", + "web.team.huodongzuzhi.qrcode": "20240724-community", + "web.team.huodongzuzhi.recent": "20240724-community", + "web.team.huodongzuzhi.service": "20240724-community", + "web.team.huodongzuzhi.setting": "20240724-community", + "web.team.huodongzuzhi.support": "20240724-community", + "web.team.renzhengshouquan.portal": "20240724-community", + "web.team.renzhengshouquan.allow": "20240724-community", + "web.team.renzhengshouquan.apply": "20240724-community", + "web.team.renzhengshouquan.auth": "20240724-community", + "web.team.renzhengshouquan.cert": "20240724-community", + "web.team.renzhengshouquan.domain": "20240724-community", + "web.team.renzhengshouquan.event": "20240724-community", + "web.team.renzhengshouquan.market": "20240724-community", + "web.team.renzhengshouquan.member": "20240724-community", + "web.team.renzhengshouquan.message": "20240724-community", + "web.team.renzhengshouquan.notice": "20240724-community", + "web.team.renzhengshouquan.profile": "20240724-community", + "web.team.renzhengshouquan.qrcode": "20240724-community", + "web.team.renzhengshouquan.recent": "20240724-community", + "web.team.renzhengshouquan.service": "20240724-community", + "web.team.renzhengshouquan.setting": "20240724-community", + "web.team.renzhengshouquan.support": "20240724-community", + "web.team.yuehaoxitong.portal": "20240724-community", + "web.team.yuehaoxitong.allow": "20240724-community", + "web.team.yuehaoxitong.apply": "20240724-community", + "web.team.yuehaoxitong.call": "20240724-community", + "web.team.yuehaoxitong.event": "20240724-community", + "web.team.yuehaoxitong.history": "20240724-community", + "web.team.yuehaoxitong.market": "20240724-community", + "web.team.yuehaoxitong.member": "20240724-community", + "web.team.yuehaoxitong.message": "20240724-community", + "web.team.yuehaoxitong.notice": "20240724-community", + "web.team.yuehaoxitong.open": "20240724-community", + "web.team.yuehaoxitong.plan": "20240724-community", + "web.team.yuehaoxitong.qrcode": "20240724-community", + "web.team.yuehaoxitong.recent": "20240724-community", + "web.team.yuehaoxitong.reception": "20240724-community", + "web.team.yuehaoxitong.schedule": "20240724-community", + "web.team.yuehaoxitong.service": "20240724-community", + "web.team.yuehaoxitong.setting": "20240724-community", + "web.team.yuehaoxitong.support": "20240724-community", + "web.team.yuehaoxitong.take": "20240724-community", + "web.team.yuehaoxitong.volume": "20240724-community", + "web.team.jiaocaiziliao.portal": "20240724-education", + "web.team.jiaocaiziliao.allow": "20240724-education", + "web.team.jiaocaiziliao.apply": "20240724-education", + "web.team.jiaocaiziliao.document": "20240724-education", + "web.team.jiaocaiziliao.event": "20240724-education", + "web.team.jiaocaiziliao.market": "20240724-education", + "web.team.jiaocaiziliao.member": "20240724-education", + "web.team.jiaocaiziliao.message": "20240724-education", + "web.team.jiaocaiziliao.notice": "20240724-education", + "web.team.jiaocaiziliao.official": "20240724-education", + "web.team.jiaocaiziliao.qrcode": "20240724-education", + "web.team.jiaocaiziliao.recent": "20240724-education", + "web.team.jiaocaiziliao.service": "20240724-education", + "web.team.jiaocaiziliao.setting": "20240724-education", + "web.team.jiaocaiziliao.support": "20240724-education", + "web.team.jiaowuxitong.portal": "20240724-education", + "web.team.jiaowuxitong.allow": "20240724-education", + "web.team.jiaowuxitong.apply": "20240724-education", + "web.team.jiaowuxitong.event": "20240724-education", + "web.team.jiaowuxitong.homework": "20240724-education", + "web.team.jiaowuxitong.market": "20240724-education", + "web.team.jiaowuxitong.member": "20240724-education", + "web.team.jiaowuxitong.message": "20240724-education", + "web.team.jiaowuxitong.notice": "20240724-education", + "web.team.jiaowuxitong.qrcode": "20240724-education", + "web.team.jiaowuxitong.recent": "20240724-education", + "web.team.jiaowuxitong.service": "20240724-education", + "web.team.jiaowuxitong.setting": "20240724-education", + "web.team.jiaowuxitong.support": "20240724-education", + "web.team.kaoshixitong.portal": "20240724-education", + "web.team.kaoshixitong.allow": "20240724-education", + "web.team.kaoshixitong.apply": "20240724-education", + "web.team.kaoshixitong.event": "20240724-education", + "web.team.kaoshixitong.market": "20240724-education", + "web.team.kaoshixitong.member": "20240724-education", + "web.team.kaoshixitong.message": "20240724-education", + "web.team.kaoshixitong.notice": "20240724-education", + "web.team.kaoshixitong.qrcode": "20240724-education", + "web.team.kaoshixitong.question": "20240724-education", + "web.team.kaoshixitong.recent": "20240724-education", + "web.team.kaoshixitong.service": "20240724-education", + "web.team.kaoshixitong.setting": "20240724-education", + "web.team.kaoshixitong.support": "20240724-education", + "web.team.zaixianketang.portal": "20240724-education", + "web.team.zaixianketang.allow": "20240724-education", + "web.team.zaixianketang.apply": "20240724-education", + "web.team.zaixianketang.event": "20240724-education", + "web.team.zaixianketang.lesson": "20240724-education", + "web.team.zaixianketang.market": "20240724-education", + "web.team.zaixianketang.member": "20240724-education", + "web.team.zaixianketang.message": "20240724-education", + "web.team.zaixianketang.notice": "20240724-education", + "web.team.zaixianketang.qrcode": "20240724-education", + "web.team.zaixianketang.recent": "20240724-education", + "web.team.zaixianketang.service": "20240724-education", + "web.team.zaixianketang.setting": "20240724-education", + "web.team.zaixianketang.support": "20240724-education", + "web.team.gongyinglian.portal": "20240724-enterprise", + "web.team.gongyinglian.allow": "20240724-enterprise", + "web.team.gongyinglian.apply": "20240724-enterprise", + "web.team.gongyinglian.brand": "20240724-enterprise", + "web.team.gongyinglian.event": "20240724-enterprise", + "web.team.gongyinglian.expense": "20240724-enterprise", + "web.team.gongyinglian.express": "20240724-enterprise", + "web.team.gongyinglian.goods": "20240724-enterprise", + "web.team.gongyinglian.loan": "20240724-enterprise", + "web.team.gongyinglian.market": "20240724-enterprise", + "web.team.gongyinglian.material": "20240724-enterprise", + "web.team.gongyinglian.member": "20240724-enterprise", + "web.team.gongyinglian.message": "20240724-enterprise", + "web.team.gongyinglian.notice": "20240724-enterprise", + "web.team.gongyinglian.order": "20240724-enterprise", + "web.team.gongyinglian.payment": "20240724-enterprise", + "web.team.gongyinglian.produce": "20240724-enterprise", + "web.team.gongyinglian.product": "20240724-enterprise", + "web.team.gongyinglian.purchase": "20240724-enterprise", + "web.team.gongyinglian.qrcode": "20240724-enterprise", + "web.team.gongyinglian.quality": "20240724-enterprise", + "web.team.gongyinglian.recent": "20240724-enterprise", + "web.team.gongyinglian.refund": "20240724-enterprise", + "web.team.gongyinglian.return": "20240724-enterprise", + "web.team.gongyinglian.sell": "20240724-enterprise", + "web.team.gongyinglian.service": "20240724-enterprise", + "web.team.gongyinglian.setting": "20240724-enterprise", + "web.team.gongyinglian.shop": "20240724-enterprise", + "web.team.gongyinglian.support": "20240724-enterprise", + "web.team.gongyinglian.warehouse": "20240724-enterprise", + "web.team.guanlixitong.portal": "20240724-enterprise", + "web.team.guanlixitong.allow": "20240724-enterprise", + "web.team.guanlixitong.apply": "20240724-enterprise", + "web.team.guanlixitong.event": "20240724-enterprise", + "web.team.guanlixitong.market": "20240724-enterprise", + "web.team.guanlixitong.member": "20240724-enterprise", + "web.team.guanlixitong.message": "20240724-enterprise", + "web.team.guanlixitong.notice": "20240724-enterprise", + "web.team.guanlixitong.qrcode": "20240724-enterprise", + "web.team.guanlixitong.recent": "20240724-enterprise", + "web.team.guanlixitong.service": "20240724-enterprise", + "web.team.guanlixitong.setting": "20240724-enterprise", + "web.team.guanlixitong.support": "20240724-enterprise", + "web.team.guanlixitong.target": "20240724-enterprise", + "web.team.shichangyingxiao.portal": "20240724-enterprise", + "web.team.shichangyingxiao.allow": "20240724-enterprise", + "web.team.shichangyingxiao.apply": "20240724-enterprise", + "web.team.shichangyingxiao.event": "20240724-enterprise", + "web.team.shichangyingxiao.market": "20240724-enterprise", + "web.team.shichangyingxiao.member": "20240724-enterprise", + "web.team.shichangyingxiao.message": "20240724-enterprise", + "web.team.shichangyingxiao.notice": "20240724-enterprise", + "web.team.shichangyingxiao.promotion": "20240724-enterprise", + "web.team.shichangyingxiao.qrcode": "20240724-enterprise", + "web.team.shichangyingxiao.recent": "20240724-enterprise", + "web.team.shichangyingxiao.service": "20240724-enterprise", + "web.team.shichangyingxiao.setting": "20240724-enterprise", + "web.team.shichangyingxiao.support": "20240724-enterprise", + "web.team.zijinlian.portal": "20240724-enterprise", + "web.team.zijinlian.allow": "20240724-enterprise", + "web.team.zijinlian.apply": "20240724-enterprise", + "web.team.zijinlian.event": "20240724-enterprise", + "web.team.zijinlian.investment": "20240724-enterprise", + "web.team.zijinlian.market": "20240724-enterprise", + "web.team.zijinlian.member": "20240724-enterprise", + "web.team.zijinlian.message": "20240724-enterprise", + "web.team.zijinlian.notice": "20240724-enterprise", + "web.team.zijinlian.qrcode": "20240724-enterprise", + "web.team.zijinlian.recent": "20240724-enterprise", + "web.team.zijinlian.service": "20240724-enterprise", + "web.team.zijinlian.setting": "20240724-enterprise", + "web.team.zijinlian.support": "20240724-enterprise", + "web.team.dashboard.portal": "20240903-operation", + "web.team.dashboard.allow": "20240903-operation", + "web.team.dashboard.apply": "20240903-operation", + "web.team.dashboard.dashboard": "20240903-operation", + "web.team.dashboard.event": "20240903-operation", + "web.team.dashboard.market": "20240903-operation", + "web.team.dashboard.member": "20240903-operation", + "web.team.dashboard.message": "20240903-operation", + "web.team.dashboard.notice": "20240903-operation", + "web.team.dashboard.qrcode": "20240903-operation", + "web.team.dashboard.recent": "20240903-operation", + "web.team.dashboard.service": "20240903-operation", + "web.team.dashboard.setting": "20240903-operation", + "web.team.dashboard.summary": "20240903-operation", + "web.team.dashboard.support": "20240903-operation", + "web.team.development.portal": "20240903-operation", + "web.team.development.allow": "20240903-operation", + "web.team.development.apply": "20240903-operation", + "web.team.development.event": "20240903-operation", + "web.team.development.market": "20240903-operation", + "web.team.development.member": "20240903-operation", + "web.team.development.message": "20240903-operation", + "web.team.development.notice": "20240903-operation", + "web.team.development.qrcode": "20240903-operation", + "web.team.development.recent": "20240903-operation", + "web.team.development.service": "20240903-operation", + "web.team.development.setting": "20240903-operation", + "web.team.development.support": "20240903-operation", + "web.team.development.version": "20240903-operation", + "web.team.operation.portal": "20240903-operation", + "web.team.operation.allow": "20240903-operation", + "web.team.operation.apply": "20240903-operation", + "web.team.operation.event": "20240903-operation", + "web.team.operation.market": "20240903-operation", + "web.team.operation.member": "20240903-operation", + "web.team.operation.message": "20240903-operation", + "web.team.operation.notice": "20240903-operation", + "web.team.operation.qrcode": "20240903-operation", + "web.team.operation.recent": "20240903-operation", + "web.team.operation.release": "20240903-operation", + "web.team.operation.service": "20240903-operation", + "web.team.operation.setting": "20240903-operation", + "web.team.operation.support": "20240903-operation", + "web.team.production.portal": "20240903-operation", + "web.team.production.allow": "20240903-operation", + "web.team.production.apply": "20240903-operation", + "web.team.production.case": "20240903-operation", + "web.team.production.event": "20240903-operation", + "web.team.production.issue": "20240903-operation", + "web.team.production.market": "20240903-operation", + "web.team.production.member": "20240903-operation", + "web.team.production.message": "20240903-operation", + "web.team.production.notice": "20240903-operation", + "web.team.production.plan": "20240903-operation", + "web.team.production.qrcode": "20240903-operation", + "web.team.production.recent": "20240903-operation", + "web.team.production.service": "20240903-operation", + "web.team.production.setting": "20240903-operation", + "web.team.production.support": "20240903-operation", + "web.team.production.task": "20240903-operation", + "web.team.storage.portal": "20240903-operation", + "web.team.storage.allow": "20240903-operation", + "web.team.storage.apply": "20240903-operation", + "web.team.storage.event": "20240903-operation", + "web.team.storage.file": "20240903-operation", + "web.team.storage.market": "20240903-operation", + "web.team.storage.member": "20240903-operation", + "web.team.storage.message": "20240903-operation", + "web.team.storage.notice": "20240903-operation", + "web.team.storage.qrcode": "20240903-operation", + "web.team.storage.recent": "20240903-operation", + "web.team.storage.service": "20240903-operation", + "web.team.storage.setting": "20240903-operation", + "web.team.storage.support": "20240903-operation", +} diff --git a/src/jiaocaiziliao/model/model.go b/src/jiaocaiziliao/model/model.go index 72525da..b8c358e 100644 --- a/src/jiaocaiziliao/model/model.go +++ b/src/jiaocaiziliao/model/model.go @@ -5,9 +5,12 @@ import "shylinux.com/x/mysql-story/src/db" const ( UID = "uid" NAME = "name" + INFO = "info" TYPE = "type" TITLE = "title" CONTENT = "content" + AVATAR = "avatar" + BACKGROUND = "background" USER_UID = "user_uid" USER_LIBRARY_ROLE = "user_library_role" LIBRARY_UID = "library_uid" @@ -15,6 +18,9 @@ const ( DOCUMENT_UID = "document_uid" DOCUMENT_TYPE = "document_type" SCHOOL_NAME = "school_name" + SCHOOL_INFO = "school_info" + SCHOOL_AVATAR = "school_avatar" + SCHOOL_BACKGROUND = "school_background" CITY_UID = "city_uid" CITY_NAME = "city_name" LINK = "link" diff --git a/src/jiaowuxitong/model/model.go b/src/jiaowuxitong/model/model.go index d4ef1a6..88be430 100644 --- a/src/jiaowuxitong/model/model.go +++ b/src/jiaowuxitong/model/model.go @@ -3,22 +3,29 @@ package model import "shylinux.com/x/mysql-story/src/db" const ( - UID = "uid" - NAME = "name" - TYPE = "type" - TITLE = "title" - CONTENT = "content" - USER_UID = "user_uid" - USER_ROLE = "user_role" - USER_CLASS_ROLE = "user_class_role" - CLASS_UID = "class_uid" - CLASS_NAME = "class_name" - CLASS_TYPE = "class_type" - SCHOOL_UID = "school_uid" - SCHOOL_NAME = "school_name" - CITY_UID = "city_uid" - CITY_NAME = "city_name" - GRADE = "grade" + UID = "uid" + NAME = "name" + INFO = "info" + TYPE = "type" + TITLE = "title" + CONTENT = "content" + AVATAR = "avatar" + BACKGROUND = "background" + USER_UID = "user_uid" + USER_ROLE = "user_role" + USER_CLASS_ROLE = "user_class_role" + CLASS_UID = "class_uid" + CLASS_NAME = "class_name" + CLASS_TYPE = "class_type" + SCHOOL_UID = "school_uid" + SCHOOL_NAME = "school_name" + SCHOOL_INFO = "school_info" + SCHOOL_AVATAR = "school_avatar" + SCHOOL_BACKGROUND = "school_background" + CITY_UID = "city_uid" + CITY_NAME = "city_name" + AUTH_UID = "auth_uid" + GRADE = "grade" ) type UserClass struct { diff --git a/src/jiaowuxitong/portal.json b/src/jiaowuxitong/portal.json index 18d2521..37cdb1f 100644 --- a/src/jiaowuxitong/portal.json +++ b/src/jiaowuxitong/portal.json @@ -2,6 +2,7 @@ "portal": "教务系统", "homework": "家庭作业", "member": "班级成员", + "school": "学校信息", "icons": { "homework": "https://img.icons8.com/officel/80/homework.png" }, diff --git a/src/jiaowuxitong/school.go b/src/jiaowuxitong/school.go index 2d3a0e3..cf71d4b 100644 --- a/src/jiaowuxitong/school.go +++ b/src/jiaowuxitong/school.go @@ -2,17 +2,17 @@ package jiaowuxitong import ( "shylinux.com/x/ice" + kit "shylinux.com/x/toolkits" "shylinux.com/x/education/src/jiaowuxitong/model" ) -type school struct{ Table } - -func (s school) List(m *ice.Message, arg ...string) { - if len(arg) == 0 { - s.Select(m) - } +type school struct { + Table + modify string `name:"modify school_info" role:"void"` + list string `name:"list school_name auto" role:"void"` } + func (s school) FindOrCreateByName(m *ice.Message, arg ...string) { if msg := m.Cmd(s, s.Select, model.NAME, arg[3], arg[0], arg[1]); msg.Length() == 0 { msg := m.Cmd(s, s.Insert, model.NAME, arg[3], arg[0], arg[1]) @@ -21,5 +21,28 @@ func (s school) FindOrCreateByName(m *ice.Message, arg ...string) { arg[2], arg[3] = model.SCHOOL_UID, msg.Append(model.UID) } } +func (s school) Modify(m *ice.Message, arg ...string) { + s.Update(m, kit.Dict(model.INFO, m.Option(model.SCHOOL_INFO)), model.NAME, m.Option(model.SCHOOL_NAME)) +} +func (s school) List(m *ice.Message, arg ...string) { + if len(arg) == 0 { + if m.IsTech() { + s.Select(m, arg...) + } + } else { + msg := s.Select(m.Spawn(), model.NAME, arg[0]) + m.Option(model.SCHOOL_NAME, msg.Append(model.NAME)) + m.Option(model.SCHOOL_INFO, msg.Append(model.INFO)) + m.Option(model.SCHOOL_AVATAR, msg.Append(model.AVATAR)) + m.Option(model.SCHOOL_BACKGROUND, msg.Append(model.BACKGROUND)) + msg.Table(func(value ice.Maps) { + if value[model.AUTH_UID] != "" { + m.Cmdy("web.team.renzhengshouquan.auth", value[model.AUTH_UID]) + } + }) + kit.If(m.IsTech(), func() { m.Action(s.Modify) }) + m.Display("") + } +} func init() { ice.TeamCtxCmd(school{}) } diff --git a/src/jiaowuxitong/school.js b/src/jiaowuxitong/school.js new file mode 100644 index 0000000..5455b49 --- /dev/null +++ b/src/jiaowuxitong/school.js @@ -0,0 +1,18 @@ +Volcanos(chat.ONIMPORT, { + _init: function(can, msg) { msg.Option("_share_title", msg.Option("school_name")) + can.ui = can.page.Appends(can, can._output, [html.HEAD, html.LIST]) + can.page.Append(can, can.ui.head, [{img: can.misc.Resource(can, "usr/icons/background.jpg")}]) + can.page.Append(can, can.ui.head, [can.onimport.itemcard(can, {avatar: msg.Option("school_avatar")}, [ + {view: html.TITLE, list: [msg.Option("school_name"), can.onimport.titleAction(can, msg)]}, + {view: html.STATUS, list: [msg.Option("school_info")]}, + ])]) + can.onimport.myView(can, msg, function(value) { + return [ + {view: html.TITLE, list: [value.name]}, + {view: html.STATUS, list: [value.info]}, + ] + }, function(event, value) { + // can.onimport.myPlugin(can, {space: value.space, index: value.index, args: [value.place_uid]}) + }, can.ui.list) + }, +})