24 lines
510 B
Go
24 lines
510 B
Go
|
package appservice
|
||
|
|
||
|
import (
|
||
|
"bbs-backend/api/request"
|
||
|
"bbs-backend/common/errcode"
|
||
|
"bbs-backend/logic/domainservice"
|
||
|
)
|
||
|
|
||
|
func GetBBSInfo() (map[string]string, error) {
|
||
|
forumInfo, err := domainservice.GetBBSInfoDomainService()
|
||
|
if err != nil {
|
||
|
return nil, errcode.ErrInternalServerError
|
||
|
}
|
||
|
return forumInfo, nil
|
||
|
}
|
||
|
|
||
|
func UpdateBBSInfo(req request.UpdateBBSInfoRequest) error {
|
||
|
err := domainservice.UpdateBBSInfoDomainService(req)
|
||
|
if err != nil {
|
||
|
return errcode.ErrInternalServerError
|
||
|
}
|
||
|
return nil
|
||
|
}
|