mirror of
https://github.com/AynaLivePlayer/AynaLivePlayer.git
synced 2025-12-18 07:58:16 +08:00
update history
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
package player
|
||||
|
||||
import "AynaLivePlayer/liveclient"
|
||||
import (
|
||||
"AynaLivePlayer/liveclient"
|
||||
"github.com/jinzhu/copier"
|
||||
)
|
||||
|
||||
type Media struct {
|
||||
Title string
|
||||
@@ -34,3 +37,9 @@ func (m *Media) DanmuUser() *liveclient.DanmuUser {
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Media) Copy() *Media {
|
||||
newMedia := &Media{}
|
||||
copier.Copy(newMedia, m)
|
||||
return newMedia
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user