mirror of
https://shylinux.com/x/operation
synced 2025-04-25 01:08:04 +08:00
add some
This commit is contained in:
parent
71cfb398c8
commit
8f1ac6b896
@ -5,6 +5,7 @@ import "shylinux.com/x/mysql-story/src/db"
|
||||
const (
|
||||
UID = "uid"
|
||||
NAME = "name"
|
||||
INFO = "info"
|
||||
TYPE = "type"
|
||||
TITLE = "title"
|
||||
CONTENT = "content"
|
||||
|
@ -7,7 +7,7 @@ import (
|
||||
|
||||
type Portal struct {
|
||||
operation.Portal
|
||||
placeCreate string `name:"placeCreate city_name* company_name* dashboard_name* dashboard_type*:select" role:"void"`
|
||||
placeCreate string `name:"placeCreate city_name* company_name* dashboard_name* dashboard_type:select" role:"void"`
|
||||
}
|
||||
|
||||
func init() {
|
||||
|
@ -5,6 +5,7 @@ import "shylinux.com/x/mysql-story/src/db"
|
||||
const (
|
||||
UID = "uid"
|
||||
NAME = "name"
|
||||
INFO = "info"
|
||||
TYPE = "type"
|
||||
TITLE = "title"
|
||||
CONTENT = "content"
|
||||
@ -14,8 +15,6 @@ const (
|
||||
REPOS_NAME = "repos_name"
|
||||
REPOS_TYPE = "repos_type"
|
||||
VERSION_UID = "version_uid"
|
||||
COMPANY_UID = "company_uid"
|
||||
CITY_UID = "city_uid"
|
||||
)
|
||||
|
||||
type UserRepos struct {
|
||||
|
@ -7,7 +7,7 @@ import (
|
||||
|
||||
type Portal struct {
|
||||
operation.Portal
|
||||
placeCreate string `name:"placeCreate city_name* company_name* repos_name* repos_type*:select" role:"void"`
|
||||
placeCreate string `name:"placeCreate city_name* company_name* repos_name* repos_type:select" role:"void"`
|
||||
}
|
||||
|
||||
func init() { gonganxitong.PortalCmd(Portal{Portal: operation.NewPortal(userRepos{}, repos{})}) }
|
||||
|
@ -23,8 +23,8 @@
|
||||
}
|
||||
},
|
||||
"repos_type": {
|
||||
"local": "本地库",
|
||||
"remote": "远程库"
|
||||
"system": "系统库",
|
||||
"github": "Github"
|
||||
}
|
||||
}
|
||||
}
|
@ -9,13 +9,13 @@ func init() { ice.TeamCtxCmd(repos{}) }
|
||||
type ReposType int
|
||||
|
||||
const (
|
||||
ReposLocal ReposType = iota
|
||||
ReposRemote
|
||||
ReposSystem ReposType = iota
|
||||
ReposGithub
|
||||
)
|
||||
|
||||
var ReposTypeList = map[ReposType]string{
|
||||
ReposLocal: "local",
|
||||
ReposRemote: "remote",
|
||||
ReposSystem: "system",
|
||||
ReposGithub: "github",
|
||||
}
|
||||
|
||||
func (s ReposType) String() string { return ReposTypeList[s] }
|
||||
|
@ -10,14 +10,12 @@ type CloudType int
|
||||
|
||||
const (
|
||||
CloudSystem CloudType = iota
|
||||
CloudLocal
|
||||
CloudAliyun
|
||||
CloudTencent
|
||||
)
|
||||
|
||||
var CloudTypeList = map[CloudType]string{
|
||||
CloudSystem: "system",
|
||||
CloudLocal: "local",
|
||||
CloudAliyun: "aliyun",
|
||||
CloudTencent: "tencent",
|
||||
}
|
||||
|
@ -5,17 +5,15 @@ import "shylinux.com/x/mysql-story/src/db"
|
||||
const (
|
||||
UID = "uid"
|
||||
NAME = "name"
|
||||
INFO = "info"
|
||||
TYPE = "type"
|
||||
TITLE = "title"
|
||||
CONTENT = "content"
|
||||
USER_UID = "user_uid"
|
||||
USER_CLOUD_ROLE = "user_cloud_role"
|
||||
CLOUD_UID = "cloud_uid"
|
||||
CLOUD_NAME = "cloud_name"
|
||||
CLOUD_TYPE = "cloud_type"
|
||||
RELEASE_UID = "release_uid"
|
||||
COMPANY_UID = "company_uid"
|
||||
CITY_UID = "city_uid"
|
||||
)
|
||||
|
||||
type UserCloud struct {
|
||||
|
@ -7,7 +7,7 @@ import (
|
||||
|
||||
type Portal struct {
|
||||
guanlixitong.Portal
|
||||
placeCreate string `name:"placeCreate city_name* company_name* cloud_name* cloud_type*:select" role:"void"`
|
||||
placeCreate string `name:"placeCreate city_name* company_name* cloud_name* cloud_type:select" role:"void"`
|
||||
}
|
||||
|
||||
func init() { gonganxitong.PortalCmd(Portal{Portal: guanlixitong.NewPortal(userCloud{}, cloud{})}) }
|
||||
|
@ -24,7 +24,6 @@
|
||||
},
|
||||
"cloud_type": {
|
||||
"system": "系统云",
|
||||
"local": "本地云",
|
||||
"aliyun": "阿里云",
|
||||
"tencent": "腾讯云"
|
||||
}
|
||||
|
@ -3,10 +3,7 @@ Volcanos(chat.ONIMPORT, {
|
||||
can.onimport.myView(can, msg, function(value) { return [
|
||||
{view: html.TITLE, list: [value.title, can.onimport.textView(can, value), can.onimport.titleAction(can, value)]},
|
||||
{view: html.STATUS, list: [value.uid.slice(0, 6), can.onimport.timeView(can, value), value.user_name]},
|
||||
{view: html.STATUS, list: [
|
||||
can.base.TimeTrim(value.process_time), "~", can.base.TimeTrim(value.finish_time),
|
||||
"计划:", value.plan_title,
|
||||
]},
|
||||
{view: html.STATUS, list: [can.base.TimeTrim(value.process_time), "~", can.base.TimeTrim(value.finish_time), "计划:", value.plan_title]},
|
||||
{view: html.OUTPUT, list: [value.content]},
|
||||
] })
|
||||
},
|
||||
|
@ -5,6 +5,7 @@ import "shylinux.com/x/mysql-story/src/db"
|
||||
const (
|
||||
UID = "uid"
|
||||
NAME = "name"
|
||||
INFO = "info"
|
||||
TYPE = "type"
|
||||
LEVEL = "level"
|
||||
STATUS = "status"
|
||||
@ -27,8 +28,6 @@ const (
|
||||
TASK_UID = "task_uid"
|
||||
TASK_STATUS = "task_status"
|
||||
CASE_STATUS = "case_status"
|
||||
COMPANY_UID = "company_uid"
|
||||
CITY_UID = "city_uid"
|
||||
MARKET_UID = "market_uid"
|
||||
BEGIN_TIME = "begin_time"
|
||||
END_TIME = "end_time"
|
||||
|
@ -10,7 +10,7 @@ import (
|
||||
|
||||
type Portal struct {
|
||||
guanlixitong.Portal
|
||||
placeCreate string `name:"placeCreate city_name* company_name* story_name* story_type*:select" role:"void"`
|
||||
placeCreate string `name:"placeCreate city_name* company_name* story_name* story_type:select" role:"void"`
|
||||
}
|
||||
|
||||
func (s Portal) AfterPlaceAuth(m *ice.Message, arg ...string) {
|
||||
|
@ -3,10 +3,7 @@ Volcanos(chat.ONIMPORT, {
|
||||
can.onimport.myView(can, msg, function(value) { return [
|
||||
{view: html.TITLE, list: [value.title, can.onimport.textView(can, value), can.onimport.titleAction(can, value)]},
|
||||
{view: html.STATUS, list: [value.uid.slice(0, 6), can.onimport.timeView(can, value), value.user_name]},
|
||||
{view: html.STATUS, list: [
|
||||
can.base.TimeTrim(value.process_time), "~", can.base.TimeTrim(value.finish_time),
|
||||
"计划:", value.plan_title, "用例:", value.case_count+" 个",
|
||||
]},
|
||||
{view: html.STATUS, list: [can.base.TimeTrim(value.process_time), "~", can.base.TimeTrim(value.finish_time), "计划:", value.plan_title, "用例:", value.case_count+" 个"]},
|
||||
{view: html.OUTPUT, list: [value.content]},
|
||||
] })
|
||||
},
|
||||
|
@ -12,6 +12,4 @@ func init() { ice.TeamCtxCmd(userStory{}) }
|
||||
|
||||
type UserStoryRole = operation.UserCloudRole
|
||||
|
||||
var UserStoryCreator = operation.UserCloudCreator
|
||||
var UserStoryLeader = operation.UserCloudLeader
|
||||
var UserStoryRoleList = operation.UserCloudRoleList
|
||||
|
@ -5,7 +5,6 @@ import (
|
||||
|
||||
"shylinux.com/x/ice"
|
||||
"shylinux.com/x/icebergs/base/cli"
|
||||
"shylinux.com/x/icebergs/base/web"
|
||||
kit "shylinux.com/x/toolkits"
|
||||
|
||||
"shylinux.com/x/operation/src/storage/model"
|
||||
@ -24,12 +23,11 @@ type file struct {
|
||||
func (s file) Upload(m *ice.Message, arg ...string) {
|
||||
up := kit.Simple(m.Optionv(ice.MSG_UPLOAD))
|
||||
p := s.path(m, m.Option(model.STORAGE_UID), up[1])
|
||||
m.Cmdy(web.CACHE, web.WATCH, up[0], p)
|
||||
s.ValueCreate(m, model.TITLE, up[1], model.CONTENT, "", model.TYPE, kit.Format(FilePath), model.SIZE, up[2])
|
||||
s.ValueCreate(m, model.TITLE, m.UploadSave(p), model.CONTENT, "", model.TYPE, kit.Format(FilePath), model.SIZE, up[2])
|
||||
s.DashboardUpdate(m)
|
||||
}
|
||||
func (s file) Right(m *ice.Message, arg ...string) {
|
||||
msg := m.Cmd(s.Prefix(m, Portal{}), Portal{}.PlaceList, m.Option(model.USER_UID), arg[0])
|
||||
msg := m.Cmd(s.PrefixPortal(m), Portal{}.PlaceList, m.Option(model.USER_UID), arg[0])
|
||||
m.WarnNotRight(kit.Int(msg.Append(model.USER_STORAGE_ROLE)) == 0)
|
||||
}
|
||||
func (s file) List(m *ice.Message, arg ...string) {
|
||||
|
@ -5,6 +5,7 @@ import "shylinux.com/x/mysql-story/src/db"
|
||||
const (
|
||||
UID = "uid"
|
||||
NAME = "name"
|
||||
INFO = "info"
|
||||
TYPE = "type"
|
||||
TITLE = "title"
|
||||
CONTENT = "content"
|
||||
@ -15,8 +16,6 @@ const (
|
||||
STORAGE_TYPE = "storage_type"
|
||||
FILE_UID = "file_uid"
|
||||
FILE_TYPE = "file_type"
|
||||
COMPANY_UID = "company_uid"
|
||||
CITY_UID = "city_uid"
|
||||
SIZE = "size"
|
||||
)
|
||||
|
||||
|
@ -9,7 +9,7 @@ import (
|
||||
|
||||
type Portal struct {
|
||||
guanlixitong.Portal
|
||||
placeCreate string `name:"placeCreate city_name* company_name* storage_name* storage_type*:select" role:"void"`
|
||||
placeCreate string `name:"placeCreate city_name* company_name* storage_name* storage_type:select" role:"void"`
|
||||
}
|
||||
|
||||
func (s Portal) AfterPlaceAuth(m *ice.Message, arg ...string) {
|
||||
|
@ -25,7 +25,6 @@
|
||||
},
|
||||
"storage_type": {
|
||||
"system": "系统文件",
|
||||
"local": "本地文件",
|
||||
"baidu": "百度网盘",
|
||||
"aliyun": "阿里云盘"
|
||||
}
|
||||
|
@ -10,14 +10,12 @@ type StorageType int
|
||||
|
||||
const (
|
||||
StorageSystem StorageType = iota
|
||||
StorageLocal
|
||||
StorageBaidu
|
||||
StorageAliyun
|
||||
)
|
||||
|
||||
var StorageTypeList = map[StorageType]string{
|
||||
StorageSystem: "system",
|
||||
StorageLocal: "local",
|
||||
StorageBaidu: "baidu",
|
||||
StorageAliyun: "aliyun",
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user