refactor(publish): 公开读改走只读视图,后台仍读基表
This commit is contained in:
@ -143,6 +143,12 @@ func (f *fakeStreet) List(ctx context.Context, q dto.StreetSnapQuery) ([]dto.Pub
|
||||
ImageCount: 8,
|
||||
}}, 1, nil
|
||||
}
|
||||
|
||||
// AdminList 后台列表读基表;假实现里与 List 同源即可(本假实现不区分可见性)。
|
||||
func (f *fakeStreet) AdminList(ctx context.Context, q dto.StreetSnapQuery) ([]dto.PublicStreetSnap, int64, error) {
|
||||
return f.List(ctx, q)
|
||||
}
|
||||
|
||||
func (f *fakeStreet) Detail(ctx context.Context, id string) (*dto.PublicStreetSnapDetail, error) {
|
||||
return &dto.PublicStreetSnapDetail{
|
||||
UID: id,
|
||||
|
||||
Reference in New Issue
Block a user