Initial commit

This commit is contained in:
Donny
2019-04-22 20:46:32 +08:00
commit 49ab8aadd1
25441 changed files with 4055000 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
package staff
import (
"go-common/app/admin/main/videoup/conf"
bm "go-common/library/net/http/blademaster"
)
const (
_staffListURL = "/videoup/staff"
_staffSubmitURL = "/videoup/staff/apply/batch"
)
// Dao is search dao
type Dao struct {
c *bm.ClientConfig
httpClient *bm.Client
staffURI string
submitUrl string
}
var (
d *Dao
)
// New new staff dao
func New(c *conf.Config) *Dao {
return &Dao{
c: c.HTTPClient.Read,
httpClient: bm.NewClient(c.HTTPClient.Read),
staffURI: c.Host.Archive + _staffListURL,
submitUrl: c.Host.Archive + _staffSubmitURL,
}
}