mirror of https://github.com/rocboss/paopao-ce
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.
16 lines
429 B
16 lines
429 B
package core
|
|
|
|
import "github.com/rocboss/paopao-ce/internal/dao/jinzhu/dbr"
|
|
|
|
type (
|
|
ShareKey = dbr.ShareKey
|
|
DeleteKeySuccessOrFail = dbr.DeleteKeySuccessOrFail
|
|
)
|
|
|
|
// share_key服务
|
|
type ShareKeyService interface {
|
|
GetUserKeys(UserName string, offset, limit int) ([]*ShareKey, error)
|
|
DeleteUserKey(UserName string, key string) (DeleteKeySuccessOrFail, error)
|
|
GetUserShareKeyCount(name string) (int64, error)
|
|
}
|