|
|
|
@@ -14,6 +14,7 @@ type ResourceQueue struct { |
|
|
|
AccCardType string |
|
|
|
CardsTotalNum int |
|
|
|
IsAutomaticSync bool |
|
|
|
Remark string |
|
|
|
CreatedTime timeutil.TimeStamp `xorm:"created"` |
|
|
|
CreatedBy int64 |
|
|
|
UpdatedTime timeutil.TimeStamp `xorm:"updated"` |
|
|
|
@@ -29,6 +30,7 @@ func (r ResourceQueue) ConvertToRes() *ResourceQueueRes { |
|
|
|
ComputeResource: r.ComputeResource, |
|
|
|
AccCardType: r.AccCardType, |
|
|
|
CardsTotalNum: r.CardsTotalNum, |
|
|
|
Remark: r.Remark, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@@ -41,6 +43,7 @@ type ResourceQueueReq struct { |
|
|
|
CardsTotalNum int |
|
|
|
CreatorId int64 |
|
|
|
IsAutomaticSync bool |
|
|
|
Remark string |
|
|
|
} |
|
|
|
|
|
|
|
func (r ResourceQueueReq) ToDTO() ResourceQueue { |
|
|
|
@@ -52,6 +55,7 @@ func (r ResourceQueueReq) ToDTO() ResourceQueue { |
|
|
|
AccCardType: r.AccCardType, |
|
|
|
CardsTotalNum: r.CardsTotalNum, |
|
|
|
IsAutomaticSync: r.IsAutomaticSync, |
|
|
|
Remark: r.Remark, |
|
|
|
CreatedBy: r.CreatorId, |
|
|
|
UpdatedBy: r.CreatorId, |
|
|
|
} |
|
|
|
@@ -89,6 +93,7 @@ type ResourceQueueRes struct { |
|
|
|
ComputeResource string |
|
|
|
AccCardType string |
|
|
|
CardsTotalNum int |
|
|
|
Remark string |
|
|
|
} |
|
|
|
|
|
|
|
func InsertResourceQueue(queue ResourceQueue) (int64, error) { |
|
|
|
|