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.
25 lines
456 B
25 lines
456 B
package http |
|
|
|
import ( |
|
opmdl "go-common/app/interface/main/web-show/model/operation" |
|
bm "go-common/library/net/http/blademaster" |
|
) |
|
|
|
// notice |
|
func notice(c *bm.Context) { |
|
arg := new(opmdl.ArgOp) |
|
if err := c.Bind(arg); err != nil { |
|
return |
|
} |
|
notice := opSvc.Notice(c, arg) |
|
c.JSON(notice, nil) |
|
} |
|
|
|
// promote |
|
func promote(c *bm.Context) { |
|
arg := new(opmdl.ArgPromote) |
|
if err := c.Bind(arg); err != nil { |
|
return |
|
} |
|
c.JSON(opSvc.Promote(c, arg)) |
|
}
|
|
|