forked from TencentBlueKing/bk-itsm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
146 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
# ============================================================================== | ||
# 加载环境差异化配置 | ||
# ============================================================================== | ||
|
||
import importlib | ||
|
||
from django.conf import settings | ||
|
||
bkchat_config = importlib.import_module( | ||
"platform_config.{}.bkchat.config".format(settings.RUN_VER) | ||
) | ||
moa_config = importlib.import_module( | ||
"platform_config.{}.moa.config".format(settings.RUN_VER) | ||
) | ||
|
||
|
||
BaseBkchatConfig = bkchat_config.BaseBkchatConfig | ||
BaseMoaConfig = moa_config.BaseMoaConfig | ||
|
||
|
||
class BaseTicket(BaseMoaConfig, BaseBkchatConfig): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# -*- coding: utf-8 -*- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
|
||
class BaseBkchatConfig: | ||
def notify_fast_approval( | ||
self, state_id, receivers, message="", action="", **kwargs | ||
): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
|
||
def notify_fast_approval_message( | ||
ticket, state_id, receivers, message, action, **kwargs | ||
): | ||
pass | ||
|
||
|
||
def send_fast_approval_message(title, content, receivers, ticket_id, state_id): | ||
pass | ||
|
||
|
||
def proceed_fast_approval(request): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
|
||
class BaseMoaConfig: | ||
def create_moa_ticket(self, state_id): | ||
pass | ||
|
||
def close_moa_ticket(self, state_id, operator): | ||
pass |