21 lines
287 B
Go
21 lines
287 B
Go
package model
|
|
|
|
// 区段
|
|
type Section interface {
|
|
PipeElement
|
|
}
|
|
|
|
type SectionImpl struct {
|
|
*TwoPortsPipeElement
|
|
}
|
|
|
|
var _ Section = (*SectionImpl)(nil)
|
|
|
|
func NewSection(uid string) *SectionImpl {
|
|
return &SectionImpl{
|
|
TwoPortsPipeElement: &TwoPortsPipeElement{
|
|
uid: uid,
|
|
},
|
|
}
|
|
}
|