You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
519 B
22 lines
519 B
package subtitle |
|
|
|
import ( |
|
"context" |
|
"go-common/app/interface/main/dm2/model" |
|
"go-common/library/ecode" |
|
"go-common/library/log" |
|
) |
|
|
|
// Update fn |
|
func (d *Dao) Update(c context.Context, aid int64, open bool, lan string) (err error) { |
|
var arg = &model.ArgSubtitleAllowSubmit{ |
|
Aid: aid, |
|
AllowSubmit: open, |
|
Lan: lan, |
|
} |
|
if err = d.sub.SubtitleSujectSubmit(c, arg); err != nil { |
|
log.Error("d.sub.SubtitleSujectSubmit (%+v) error(%v)", arg, err) |
|
err = ecode.CreativeSubtitleAPIErr |
|
} |
|
return |
|
}
|
|
|