14 lines
241 B
Go
14 lines
241 B
Go
package banner
|
|
|
|
import "fmt"
|
|
|
|
func BannerApi(action string) (res any, err error) {
|
|
switch action {
|
|
case "bannerList":
|
|
res, err = bannerList()
|
|
default:
|
|
err = fmt.Errorf("unimplemented action: banner: %s", action)
|
|
}
|
|
return res, err
|
|
}
|