refactor(controller): 重构返回处理逻辑,移除TomeeHeader的Ret方法并改为直接返回[]byte
This commit is contained in:
@@ -11,9 +11,9 @@ type SystemTimeInfo struct { //这里直接使用组合来实现将传入的原
|
||||
|
||||
}
|
||||
|
||||
func (s *SystemTimeInfo) Def() { //默认返回方法
|
||||
func (s *SystemTimeInfo) Def()[]byte { //默认返回方法
|
||||
|
||||
s.Head.Set(NewSystemTimeOutboundInfo) //返回传参
|
||||
return s.Head.Pack(NewSystemTimeOutboundInfo) //返回传参
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user