我的架构和Consumer类如下:
${message.content}
是否可以通过某种方式将from uplink import (
Consumer,
post,
Field,
json,
)
class = CustomerSchema(Schema):
id = fields.Integer()
name = fields.String()
class MyClass(Consumer):
@json
@post('/sort_clients')
def filter_clients(self, customer_type: Field) -> CustomerSchema:
值传递给customer_type
?作为上下文还是新的架构字段?