14 lines
319 B
Go
14 lines
319 B
Go
package agent
|
|
|
|
import (
|
|
"context"
|
|
"fmt"
|
|
)
|
|
|
|
type mockClient struct{}
|
|
|
|
// Generate mock 客户端:返回占位图路径(开发联调用,不真实调用)
|
|
func (c *mockClient) Generate(ctx context.Context, req *GenerateReq) (string, error) {
|
|
return fmt.Sprintf("/workspace/mock/effect_%s.png", req.Angle), nil
|
|
}
|